Repository navigation
fix(perception): kinds-filtered paging — personas hear direction while the room streams (#297) - #2101
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 ONEAircTranscriptReaderimpl onairc_lib::Airc; both delegates route through the trait impl (compression: one definition of what a perception page means)page_recent_filteredpushes kinds down to the daemon — newest-N-of-kind, filtered BEFORE the limitkinds: None(durable transcript wants the full wire)Testing
airc_source+inbound_attachfilters: 20/20 green against the bumped rev; cargo check clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo