Skip to content

refactor(persona): consume airc room_roster — delete continuum-side IdentityPublished parsing - #1654

Merged
joelteply merged 1 commit into
canaryfrom
feat/persona-consume-room-roster
Jun 17, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/persona-consume-room-roster

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

Consume BigMama's Airc::room_roster (airc #1232) in RoomRosterSource — and delete the continuum-side IdentityPublished parsing it replaces.

Why

The adversarial review of #1650 flagged that RoomRosterSource did a 2-scan join (presence via active_agents + names via a hand-rolled IdentityPublished parse) — a wire-format coupling between continuum and airc's internals. I sent BigMama a spec for a one-call API; they shipped it (airc #1232) exactly as specced. This is the "thin continuum, airc owns presence+identity" payoff: airc does the join, continuum consumes Vec<RoomMember>.

How

  • Bump airc pin 1a47231 → 72824ba — one commit (perf(concurrency): Drop-guard for ConcurrencyPolicy in_flight cleanup on panicking work futures #1232 room_roster), minimal-risk delta.
  • AircRosterReader collapses from {self_peer_id, active_agents, peer_alias_map} → {self_peer_id, room_roster}.
  • deliver() makes one room_roster(within, window) call and iterates RoomMembers (name already joined; fall back to short peer-id for present-but-unnamed; self excluded).
  • Deleted: parse_identity_names, the identity-scan constant, and the airc_core IdentityEvent/Body/TranscriptEvent/TranscriptKind + HashMap imports. The 3 reader impls collapse to a single room_roster delegation.

Validation

  • Compiles clean (lib + tests, metal,accelerate,test-fixtures), clippy 0 errors.
  • 7 room_roster tests green; same [Present in this room] grounding, same self-exclusion, same metadata.display_name → other_persona_names projection contract.
  • −92 net lines (109 insertions, 201 deletions) — pure simplification, zero IPC amplification.

Coordination

Closes the loop on the room_roster spec exchange with BigMama over airc. Independent of #1653 (ACL gate — different files, no airc-bump there).

🤖 Generated with Claude Code

…dentityPublished parsing

BigMama shipped Airc::room_roster (airc#1232) exactly to the spec I sent over
airc: one batched call returning Vec<RoomMember{peer_id, display_name, runtime,
availability, last_seen_ms}> = active_agents + IdentityPublished name-join done
airc-side. So continuum stops doing that join itself.

- Bump airc pin 1a47231 → 72824ba (one commit: #1232 room_roster).
- RoomRosterSource: AircRosterReader collapses from {self_peer_id, active_agents,
  peer_alias_map} to {self_peer_id, room_roster}. deliver() makes ONE room_roster
  call and iterates RoomMembers. DELETED: parse_identity_names, the IdentityScan
  constant, and the airc_core IdentityEvent/Body/TranscriptEvent/TranscriptKind +
  HashMap imports — the wire-format coupling the adversarial review of #1650
  flagged. Thin continuum: airc owns presence+identity join.
- The 3 AircRosterReader impls (PersonaAircRuntime, AircHandleAdapter,
  StubAircCitizen) collapse to a single room_roster delegation.

Same [Present in this room] grounding, same self-exclusion, same projection
contract (metadata.display_name → other_persona_names); fewer moving parts and
zero IPC amplification. 7 tests green; clippy clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@joelteply
joelteply merged commit 335ac0f into canary Jun 17, 2026
4 checks passed
@joelteply
joelteply deleted the feat/persona-consume-room-roster branch June 17, 2026 03:17
joelteply added a commit that referenced this pull request Nov 4, 2026
…rains (the conditions #5743 set) (#5761)

#5743 reverted 38a22ab because airc #1618 derived every row at open and the M5's
residents (1.7-12.8 GB stores) stalled 4-8+ min at boot. Its stated way
forward: airc derives per page, never at open, and every store has a
byte-budgeted, set-based drain. Both are now in airc canary:
- #1654 (76e8e2d, card 70055c76): open is schema only (0.016 s on a copy of
  Paige's 1.55 GB store, against 23.4 s); indexes are built after the drain; a
  read derives nothing and says whether its file was settled; a store this
  binary wrote is settled at open by one index seek.
- #1653 (86b153e, card e95d41a4): each kind declares its retention, and the
  drain runs in bounded windows on its own connection.

Only the nine airc revs and their lock entries move (plus airc-lib's fs2 line);
no other package re-resolves. `cargo check --locked` of continuum-airc-protocol,
airc-test-fixtures, continuum-process and continuum-rooms passes on the new pin.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[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