Repository navigation
fix(persona): home room from HER durable membership — never the operator's focused room (#298) - #2105
Merged
Conversation
…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
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]>
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 (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()parsesairc room(the operator scope's current-room pointer) and bootstrap force-joined it. With the operator scope parked ink3-servingfor 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-inRoomId, not the actually-joined channel — silently divergeable.The fix
PersonaAircRuntime::bootstrapresolves the home room viaairc.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_namedeleted from bootstrap,PersonaBirth, andPersonaInstanceManagerModule::new— the deleted parameters are the regression guard: there is no way left to thread an operator room into a birth.Testing
cargo check -p continuum-core --lib --features metal,accelerateclean (no new warnings; removed one dead import each in the two touched files).#generalis airc-lib's own testedcurrent_room()contract (crates/airc-lib/src/airc.rs).airc partk3-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