Repository navigation
fix(persona): runtime room joins reach the LIVE perception stream — deaf run rooms (P0 20b44763) - #2312
Merged
Conversation
…eaf run rooms (P0 20b44763) MEASURED 2026-08-15: three benchmark rounds, 12 addressed kickoffs each into per-run activity rooms, ZERO citizen turns — while the same citizens turn instantly on an academy message. Root cause at both ends, read in-file: airc-lib's subscribe_subscribed_filtered snapshots the subscribed-channel list ONCE at subscribe time (messaging.rs:302), and the persona's perception stream is opened once at prime(). A room joined at runtime (dispatch's rt.airc().join) grants durable membership to a channel her existing stream structurally cannot carry — every per-run room is born deaf, which is why no benchmark round has ever reached a claim, a write, or the grader. The wire, event-driven per system law (not the forbidden auto-resubscribe fallback — that masks wire faults; this answers a REAL membership event): - PersonaAircRuntime gains a watch membership_epoch; new join_room() bumps it after airc.join. THE runtime-join path for a living persona. - AircCitizen::membership_epoch() (default: closed receiver — stubs never change membership; consumers park on a closed channel, never busy-loop). - AircPersonaConversation::next_message selects on stream.next() OR an epoch move; on a move it re-opens via subscribe_all_rooms with the enlarged snapshot (probe: persona.inbound.resubscribed). - benchmark dispatch joins assignees via rt.join_room. Sibling of the 2026-08-08 narrowing bug on the same trait: that snapshot was the WRONG SET; this one was the right set at the WRONG TIME. Tests: default-epoch closed-channel contract pinned in airc_citizen tests; conversation + citizen mods green (11 passed). Live acceptance = next dispatched round drives a citizen turn IN the run room. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 15, 2026
… turn sees the bench room's board (#443) (#2316) Measured live on the 2026-08-15 round: every turn in the per-run bench room fired rag.room_gate.abstain with bound=academy, turn=bench-room — the source was BOUND to the persona's bootstrap room, so a citizen took a WORK turn with NO board surface while the kickoff told her "card X is claimed for you". Layer 6 of the round-killer stack, and exactly the #406 prediction ("per-run bench rooms would read as chat"). The board she needs is the board OF THE ROOM SHE IS STANDING IN. The reader already takes the room as a parameter and REFUSES (NotSubscribed, fail-loud) any room her own airc scope has not joined — so the stamped turn room now drives the read, and cross-room leakage is impossible BY CONSTRUCTION (enforced by the store, not by whoever remembered to bind correctly). The bound room remains only as the fallback for UNSTAMPED contexts (background consolidation, legacy construction — pre-gate behavior unchanged). Invariants preserved and pinned in the rewritten test (StubReader now records which room each read was keyed on): - same-room turn reads the turn room - a different-room turn reads THAT room, never the bound one - the eval fork's synthetic nil context gets NOTHING and never reaches the reader (the exam-bleed pin, unchanged — probed as rag.room_gate.abstain) - unstamped ctx keeps the bound-room fallback Scope: room-kanban (RoomBoardSource) only — the work surface benchmarks need. The wall source (room-board) needs a reader signature change and follows as its own slice; recall's turn-room paging is #367 (BigMama's find). Sound BECAUSE of #2312: dispatch's rt.join_room subscribes the citizen's scope to the run room, so the parametric read resolves there. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
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 that killed every benchmark round
MEASURED 2026-08-15: three dispatch rounds, 12 addressed kickoffs each into per-run activity rooms, zero citizen turns — while the same citizens turn instantly on an academy message. No round has ever reached a claim, a write, or the grader: the chain dies at perception, not grading.
Root cause, both ends read in-file: airc-lib's
subscribe_subscribed_filteredsnapshots the subscribed-channel list ONCE at subscribe time (messaging.rs:302), and the persona's perception stream opens once atprime(). Dispatch'srt.airc().join(run_room)grants durable membership to a channel her existing stream structurally cannot carry — every per-run room is born deaf.The wire (event-driven, not a fallback)
PersonaAircRuntime.membership_epoch(watch) +join_room()— THE runtime-join path; bumps the epoch afterairc.join.AircCitizen::membership_epoch()default = closed receiver (stubs never change membership; consumers park on closed, never busy-loop — contract pinned by test).AircPersonaConversation::next_messageselects on the stream OR an epoch move; on a move it re-opens viasubscribe_all_roomswith the enlarged snapshot (persona.inbound.resubscribedprobe). Distinct from the terminal-Noneno-auto-resubscribe doctrine: that masks wire faults; this answers a real membership event.join_room.Sibling of the 2026-08-08 narrowing bug on the same trait: that snapshotted the WRONG SET; this snapshotted the right set at the WRONG TIME.
Validation
cargo checkclean; airc_citizen + airc_persona_conversation mods: 11 passed.default_membership_epoch_is_a_closed_channel(park-vs-busy-loop contract).🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo