Repository navigation
fix(perception): page the TURN's room, not the landing-room pointer (#367) - #2175
Merged
Merged
Conversation
… pointer (#367) BigMama's find: RECALL pages the persona's DEFAULT room, not the TURN room. Glass-boxed to the perception page: AircRagSource::deliver called page_recent, which airc-lib scopes to the reader's CURRENT-ROOM pointer — the landing room (#academy since 192a299). A turn happening in any other room (a bench room, a subscribed project room) delivered the default room's transcript, and everything downstream followed the wrong room: the channel digest, the derived-room fallback, and the recall query built from that window. That last hop is exactly the reported symptom — semantic recall paged memories relevant to the default room's chatter instead of the conversation the turn is actually in. Fix at the paging seam: AircTranscriptReader gains page_recent_in(room, limit); the airc_lib::Airc funnel impl pins EventFilter.channel to the turn room (ctx.airc_room, threaded since #127); deliver() passes it. None keeps the pointer-scoped page — still correct for room-less work (consolidation, dreams). PersonaAircRuntime and AircHandleAdapter forward explicitly rather than inheriting the trait default (#262 lesson: a silently-inherited default is how regressions ship). Regression test: deliver_pages_the_turn_room_not_the_pointer — Some(room) reaches the reader's page scope; a room-less ctx pages Some(None). 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 defect (BigMama's find, task #367)
RECALL pages the persona's DEFAULT room, not the TURN room. Glass-boxed to the perception page:
AircRagSource::delivercalledpage_recent, which airc-lib scopes to the reader's current-room pointer — the landing room (#academy since the commons slice). A turn happening in any other room delivered the default room's transcript, and everything downstream followed the wrong room:events.last().room_id→ default room → all room-scoped grounding follows)This compounds with the academy-commons migration: every citizen's pointer now lands in #academy, so every turn outside it was mis-paged.
The fix
At the paging seam:
AircTranscriptReadergainspage_recent_in(room, limit); theairc_lib::Aircfunnel impl pinsEventFilter.channelto the turn room (ctx.airc_room, threaded since #127);deliver()passes it.Nonekeeps the pointer-scoped page — still correct for room-less work (consolidation, dreams).PersonaAircRuntimeandAircHandleAdapterforward explicitly rather than inheriting the trait default (#262 lesson).Verification
cargo checkgreen;cargo test airc_source12/12 including new regressiondeliver_pages_the_turn_room_not_the_pointer(Some(room) reaches the reader's page scope; room-less ctx pages Some(None)).no_room_scope_derives_room_from_transcriptetc.) untouched and green.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo