Skip to content

fix(persona): runtime room joins reach the LIVE perception stream — deaf run rooms (P0 20b44763) - #2312

Merged
joelteply merged 1 commit into
canaryfrom
fix/deaf-run-rooms-membership-epoch
Aug 15, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/deaf-run-rooms-membership-epoch

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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_filtered snapshots the subscribed-channel list ONCE at subscribe time (messaging.rs:302), and the persona's perception stream opens once at prime(). Dispatch's rt.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 after airc.join.
  • AircCitizen::membership_epoch() default = closed receiver (stubs never change membership; consumers park on closed, never busy-loop — contract pinned by test).
  • AircPersonaConversation::next_message selects on the stream OR an epoch move; on a move it re-opens via subscribe_all_rooms with the enlarged snapshot (persona.inbound.resubscribed probe). Distinct from the terminal-None no-auto-resubscribe doctrine: that masks wire faults; this answers a real membership event.
  • Benchmark dispatch joins assignees via 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 check clean; airc_citizen + airc_persona_conversation mods: 11 passed.
  • New test: default_membership_epoch_is_a_closed_channel (park-vs-busy-loop contract).
  • Live acceptance owed after deploy: dispatch a round → citizen turn fires on the kickoff IN the run room.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…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
joelteply merged commit 2482f39 into canary Aug 15, 2026
5 checks passed
@joelteply
joelteply deleted the fix/deaf-run-rooms-membership-epoch branch August 15, 2026 13:21
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]>
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