Skip to content

feat(airc): one page back on first attach — airc f01a3f4 + backlog_tail(32) - #2098

Merged
joelteply merged 1 commit into
canaryfrom
feat/first-attach-one-page
Aug 2, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/first-attach-one-page

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

Completes the #295 arc per Joel's Discord analogy: a fresh node's first attach now shows one page of recent room history (32 events) instead of either extreme — the old full-history storm (fixed in #2094) or #2094's zero-backlog void.

airc PR #1312 (merged, f01a3f4) added the backlog_tail knob: the daemon streams the newest N backlog events at the catch-up seam, coalescing older history into the watermark summary — tail delivered before the summary, so the #261 cursor discipline holds (a persisted watermark never skips an undelivered event).

Changes

  • All airc crate pins bumped together 816a0be → f01a3f4 (mixed revs = two airc-core versions = type clashes)
  • FIRST_ATTACH_PAGE = 32 on the no-cursor attach via with_backlog_tail
  • Resumed attaches unchanged (gap replay stays uncoalesced, owed to the transcript writer)

Testing

inbound_attach mod 9/9 green against the bumped rev; first-attach test now asserts the page.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…cklog_tail(32) (#295 follow-up)

Joel: 'When you join a Discord channel do you read the whole history
from 10 years back? No — one page.' #2094 bounded the first-ever attach
to zero backlog (pure live-edge join); airc PR #1312 adds the
backlog_tail knob — the daemon streams the newest N backlog events at
the catch-up seam and coalesces everything older into the watermark
summary, tail delivered BEFORE the summary so the #261 cursor
discipline holds.

Continuum side: bump ALL airc crate pins 816a0be → f01a3f4 together
(mixed revs would produce two airc-core versions and type clashes) and
set FIRST_ATTACH_PAGE = 32 on the no-cursor attach. Resumed attaches
unchanged: gap replay stays uncoalesced.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 2, 2026 02:15
@joelteply
joelteply merged commit 5becd05 into canary Aug 2, 2026
@joelteply
joelteply deleted the feat/first-attach-one-page branch August 2, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant