Skip to content

feat(privacy): her mind cycle, so working memory never crosses into a public turn - #4773

Merged
joelteply merged 1 commit into
canaryfrom
feat/privacy-mind-cycle
Oct 5, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/privacy-mind-cycle

Conversation

@joelteply

@joelteply joelteply commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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, and run_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 way fork_eval_cycle does. The fork:
    • has its own WorkingMemory;
    • opens no prompt or workspace capture (Capture::Withheld);
    • recalls synchronously, so no dispatch listener can fold completions into both memories;
    • mirrors her live genome, decoding and model binding before each use (WorkspaceCycle::mirror_mind_from);
    • is never in cycles, so the volatile checkpoint never writes it.
  • Her strip (BigMama's catch on feat(mind): her awareness strip is a grounding source in every turn #4749): outside her mind room, a continuation whose activity is her mind room renders only "private work pending", never its note (render_lines_in).

Nothing can start a turn in her mind room until focus/continue private=true lands; that is next.

Evidence

  • 37/37 pass. New: her_mind_room_runs_on_its_own_cycle_never_checkpointed and a_private_continuation_shows_its_note_only_in_her_mind_room.
  • Mutation: with cycle_for_room forced to the live cycle, the cycle test FAILS.
  • A deadlock I wrote and fixed before pushing: an if let lock guard lived into the else.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

… 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
joelteply merged commit 45c0464 into canary Oct 5, 2026
7 checks passed
@joelteply
joelteply deleted the feat/privacy-mind-cycle branch October 5, 2026 06:07
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]>
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