Repository navigation
feat(privacy): her mind cycle, so working memory never crosses into a public turn - #4773
Merged
Merged
Conversation
… public turn Step 1b of docs/architecture/PRIVACY-OF-THOUGHT.md. Working memory is the cross-turn channel: a private turn's facts would have surfaced in her next public turn's prompt (and been captured there), and been checkpointed to disk. - PersonaWorkspaceRegistry::cycle_for_room(persona, room) is THE selection the service loop asks, at both cycle lookups: a message turn and run_self_cycle, where a continuation naming her mind room lands (#4748). Her mind room runs on her MIND cycle; every other room on her live one. - mind_cycle() forks it lazily from her template (like fork_eval_cycle) with its own WorkingMemory, no prompt or workspace capture (Capture::Withheld), and synchronous recall (no dispatch listener folding into both memories). It mirrors her live genome, decoding and model binding before each use (WorkspaceCycle::mirror_mind_from), and is never in `cycles`, so the volatile checkpoint never writes it. - Her strip (BigMama's catch on #4749): outside her mind room, a continuation in her mind room renders only "private work pending", never its note (AwarenessSnapshot::render_lines_in; the awareness source passes the turn's room). Tests: her mind room runs on its own cycle, reused, never checkpointed; a private continuation's note shows only in her mind room. 37/37 pass. With cycle_for_room forced to the live cycle, the cycle test FAILS. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Oct 5, 2026
…to her mind room (#4782) * feat(privacy): focus/continue private=true, the act that takes her into her mind room Step 1c of docs/architecture/PRIVACY-OF-THOUGHT.md. With the gates (#4760) and her mind cycle (#4773) in place, this is the act that makes a private turn reachable, and it is hers: - focus/continue gains `private`: her continuation's activity is her mind room (mind_room_id, never resolved by name; it is not an airc channel), and #4748's Continuation wake starts her private turn there. - Sink 10: a private continuation is never written to mind-state.json in plaintext (PerceptionRegion::save writes her open state without it); until her sealed store exists it lives in memory only. - Speech in her mind room reaches its only member, her, and is never published: without this gate the runtime would publish to an airc room NAMED by the mind room's uuid. Tests: a private continuation is never on disk while she still holds it; speech in her mind room is never published, an open room still is. 37/37 pass; with the save gate off, and separately with the speech gate off, the matching test FAILS. FocusContinueParams.ts regenerated. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(privacy): fit focus/continue's private param in the tool surface CI's tool-surface guard measured 17230 against a ceiling of 17087. The param's doc and the verb's description are cut to one line each (17150); the 63 left are the param's schema itself, the feature, so the ceiling is re-pinned 17087 -> 17150 with the reason in its ledger. FocusContinueParams.ts regenerated with the shorter doc. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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.
Step 1b of
docs/architecture/PRIVACY-OF-THOUGHT.md: her mind cycle, so working memory never crosses into a public turn.Working memory is the cross-turn channel. Without this, a private turn's facts would surface in her next public turn's prompt, get captured there, and be checkpointed to disk.
Change
PersonaWorkspaceRegistry::cycle_for_room(persona, room)is the one selection the service loop asks. Both cycle lookups use it: the message turn, andrun_self_cycle, where a continuation naming her mind room lands (feat(mind): her turn starts from her own wake #4748).mind_cycle()forks lazily from her template, the same wayfork_eval_cycledoes. The fork:WorkingMemory;Capture::Withheld);WorkspaceCycle::mirror_mind_from);cycles, so the volatile checkpoint never writes it.render_lines_in).Nothing can start a turn in her mind room until
focus/continue private=truelands; that is next.Evidence
her_mind_room_runs_on_its_own_cycle_never_checkpointedanda_private_continuation_shows_its_note_only_in_her_mind_room.cycle_for_roomforced to the live cycle, the cycle test FAILS.if letlock guard lived into theelse.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE