Skip to content

fix(persona): home room from HER durable membership — never the operator's focused room (#298) - #2105

Merged
joelteply merged 1 commit into
canaryfrom
fix/persona-home-room-not-operator-focus
Aug 2, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/persona-home-room-not-operator-focus

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The bug (Joel: "we can't launch with these hacked rooms")

Every persona on a machine was born into — and re-joined on every boot to — whatever room the operator's airc CLI happened to have focused. discover_default_room_name() parses airc room (the operator scope's current-room pointer) and bootstrap force-joined it. With the operator scope parked in k3-serving for MoE coordination, the entire resident population squatted in a coordination room, colliding Conway chatter, wordstats work, and agent coordination in one channel. Bonus defect: the runtime stored the passed-in RoomId, not the actually-joined channel — silently divergeable.

The fix

  • PersonaAircRuntime::bootstrap resolves the home room via airc.current_room() — the persona's own durable subscription default, from HER airc home. Fresh scopes get airc's canonical landing semantics: subscribe #general, set default, publish presence + identity card. Resumed personas keep their real membership.
  • default_room / default_room_name deleted from bootstrap, PersonaBirth, and PersonaInstanceManagerModule::new — the deleted parameters are the regression guard: there is no way left to thread an operator room into a birth.
  • Runtime stores the actually-joined room (fixes the divergence).
  • Operator/node surfaces (grid-capacity gossip, nav seed, node presence emitter) still ride the discovered room — that's the operator plane, unchanged by design.

Testing

  • cargo check -p continuum-core --lib --features metal,accelerate clean (no new warnings; removed one dead import each in the two touched files).
  • Fresh-scope → #general is airc-lib's own tested current_room() contract (crates/airc-lib/src/airc.rs).
  • Live validation after deploy: existing resident homes get a one-time heal (airc part k3-serving — tombstoned so nothing re-adds it), then reboot and confirm residents perceive/speak in their own rooms.

Task #298.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…the operator's focused room (#298)

Joel: "I still see they're all in a kimi k3 room. You never took this room
bug on. We can't launch with these hacked rooms."

The hack chain: discover_default_room_name() shells `airc room` and takes
the OPERATOR daemon's current-room pointer — whatever room the human/agent
CLI last focused. PersonaAircRuntime::bootstrap then force-joined every
persona to it on EVERY boot. Since the operator scope was parked in
k3-serving (an MoE-serving coordination room), the entire resident
population was born into and re-joined to it forever. Their home followed
my CLI usage. Bonus defect: the runtime stored the passed-in RoomId, not
the actually-joined channel — the two could silently diverge.

Fix: bootstrap resolves the home room with airc.current_room() — the
persona's OWN durable subscription default, loaded from HER airc home.
airc's canonical fresh-scope semantics land a new mind in #general
(subscribe + set_default + presence + identity card); a resumed persona
keeps her real membership. The operator's focus pointer no longer exists
on the birth path: default_room/default_room_name are deleted from
bootstrap, PersonaBirth, and PersonaInstanceManagerModule::new. The
runtime now stores the actually-joined room.

Operator/node surfaces (grid_capacity gossip, nav seed, node presence
emitter) still ride the discovered room — that's the operator plane,
correct and unchanged.

The deleted parameters ARE the regression guard: there is no longer any
way to thread an operator room into a persona birth. The fresh-scope →
#general semantics are airc-lib's own tested current_room() contract.

Follow-up (same task): one-time heal of existing resident homes whose
durable state inherited k3-serving from the old bootstrap (airc part
tombstones it so re-joins don't resurrect it).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 431ba23 into canary Aug 2, 2026
2 of 4 checks passed
@joelteply
joelteply deleted the fix/persona-home-room-not-operator-focus branch August 2, 2026 10:58
joelteply added a commit that referenced this pull request Aug 2, 2026
… model-load storm (BigMama's 102-context spin) (#2106)

Glass-boxed live on the Windows node: 102 llama_context creations x
~1200 MiB with ZERO IPC deltas, eating memory out from under the
ResourceGovernor. Root cause: resolve_recall_embedder runs per persona
REGISTRATION (and registration re-runs on every respawn), and every call
built a FRESH LlamaCppAdapter — a full ~1.2 GB embed-GGUF load into a
new context, a probe, and ~16 calibration passes. The call-site comment
claimed "already cached by the resolver"; only content vectors were
cached, never the resolution. Nine personas = nine resident embed
contexts; respawn churn = the storm.

Fix: rung 1 (the in-process embed model) resolves through ONE
process-global cell. Success memoizes permanently and resolution is
single-flight (concurrent spawns share one load). Failure is never
memoized permanently — the #71 lesson: a late-arriving embed model must
still be adoptable — but re-attempts are rate-limited by a 60s cooldown,
capping the worst case at ~1 load/minute instead of one per respawn.

Regression test pins the invariant: three back-to-back failed resolves
cost at most ONE load attempt.

Also repairs two test call sites of PersonaInstanceManagerModule::new
that PR #2105 missed (its signature change compiled clean under `cargo
check` but broke `cargo test` builds — check does not compile test code).

Governor accounting follow-up stays #225 (register embed weights as a
ResourceConsumer); this fix removes the drift MULTIPLICATION.


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