Skip to content

Make main a safe drop-in for the prod image: atproto 0.0.69, bounded Redis trim - #14

Merged
DGaffney merged 1 commit into
mainfrom
fix/prod-dropin
Oct 29, 2026
Merged

DGaffney merged 1 commit into
mainfrom
fix/prod-dropin

Conversation

@DGaffney

Copy link
Copy Markdown
Contributor

Follow-up to #13, needed before main can replace the image prod runs (20260904-timeus-envelope, an older code lineage built as an overlay).

  • Pin atproto 0.0.69. Prod's image asserts 0.0.69; main's lock had 0.0.65, which rejects app.bsky.embed.gallery (the 8/17 freshness incident).
  • REDIS_TRIM_MAXLEN, default 20000 (0 = unbounded). Prod trims hydrated_jetstream to ~100 entries, about 2 s of firehose. Its reader (feed-processor redis_streamer) resumes from its own last id, so any lag over ~2 s at a :00/:30 burst trims posts out from under it. Replaying Bluesky jetstream against the S3 archive found exactly that: contiguous runs of 8-53 posts missing at bursts. Main previously never trimmed, which would grow ElastiCache without bound. 20k entries ≈ 7 min of lag tolerance, ~80 MB at the p50 enriched size (~3.3 KB). The reader only replays the newest 25 on connect, so a longer stream adds no replay flood.

39 tests pass (2 new).

🤖 Generated with Claude Code

…Redis trim

Prod runs an older lineage that pins atproto 0.0.69 (0.0.65 rejects
app.bsky.embed.gallery and fails whole hydration chunks) and trims the
hydrated_jetstream stream to ~100 entries, about two seconds of firehose,
so its websocket reader loses contiguous runs at every burst. Pin the
version prod needs and add REDIS_TRIM_MAXLEN (default 20000, 0 = off);
main previously never trimmed at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DGaffney
DGaffney merged commit f3715fa into main Oct 29, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant