Skip to content

fix(perception): kinds-filtered paging — personas hear direction while the room streams (#297) - #2101

Merged
joelteply merged 1 commit into
canaryfrom
fix/297-perception-pages-messages
Aug 2, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/297-perception-pages-messages

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The bug

Working personas were deaf to direction: the perception page was raw newest-50 events, and persona turns stream ~4 chunk-frames/sec — active residents' own voices evicted every durable message from their window within a minute. Live signature: a resident asked the same question 3× while four direction messages sat undelivered in her page; cross-machine delivery was perfect (the wire was fine — the window was flooded). Sibling of the #2094 attach flood: same root, raw firehose into perception.

Fix

  • perception_page_filter() (Message + Attachment) at the ONE AircTranscriptReader impl on airc_lib::Airc; both delegates route through the trait impl (compression: one definition of what a perception page means)
  • airc pins f01a3f4 → cf6e2c6 (airc PR fix(gpu): inference-grpc hard-fail on no-GPU (companion to #1312) #1314): page_recent_filtered pushes kinds down to the daemon — newest-N-of-kind, filtered BEFORE the limit
  • Replay/hydration keeps kinds: None (durable transcript wants the full wire)

Testing

airc_source + inbound_attach filters: 20/20 green against the bumped rev; cargo check clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ose — kinds-filtered paging (#297)

Working personas were DEAF to direction while the room was busy: a raw
newest-50 page counts ephemeral StreamChunk frames (~4/sec per talking
persona), so three active residents' own streaming evicted every
durable message from their window within a minute. Glass-boxed live:
a resident asked the same question 3× because four direction messages
never entered her page while the attach cursor advanced normally —
cross-machine delivery perfect, local perception stale: the wire was
fine, the WINDOW was flooded ([[perception-resolution-contract]]
violated at the page seam; the sibling of the #2094 attach flood).

Fix, compression-clean: perception_page_filter() (Message + Attachment)
lives at the ONE AircTranscriptReader impl on airc_lib::Airc; both
delegates (PersonaAircRuntime, AircHandleAdapter) route through the
trait impl. airc pins bumped f01a3f4 → cf6e2c6 (PR #1314) so
page_recent_filtered pushes kinds down to the daemon — the page is the
newest N MESSAGES, not the survivors of newest N raw events. The
replay/hydration InboxRequest keeps kinds: None (durable transcript
wants the full wire).

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 04:17
@joelteply
joelteply merged commit 984b9ac into canary Aug 2, 2026
@joelteply
joelteply deleted the fix/297-perception-pages-messages branch August 2, 2026 04:17
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