Skip to content

feat(privacy): her mind room, and the gate at every capture sink - #4760

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

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

Conversation

@joelteply

@joelteply joelteply commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Step 1 of docs/architecture/PRIVACY-OF-THOUGHT.md: her mind room, and the gate at every capture sink.

A turn is private because of the room it runs in: her mind room, an activity whose only member is her. Its id is local (a UUIDv5 of her identity, never an airc channel), so nothing leaves her node by construction. persona/mind_room.rs holds the one predicate, is_private_room(persona, room), and each sink asks it at its own seam:

# Sink Seam A turn in her mind room
1 Turn recorder record_turn, record_turn_frame_replay not written
2 Prompt capture CaptureLease::start inert lease: finish and Drop write nothing
3 SFT datasets read from 2 nothing to read
4 Wire capture append_wire_capture not written
5 RAG capture RecordingRagSource; compose_for_turn brackets no events
6 Thought line apply_act no 💭 line, no act ledger; never re-homed to a card's public room
7 Token stream spawn_token_forwarder drains her tokens, publishes nothing
8 Engrams AdmissionState::admit / admit_reflection withheld
9 Experience, credit drive_with_input not recorded

Every gate emits mind.private.withheld {persona, sink}, never content.

Nothing can start a turn in her mind room yet. focus/continue private=true waits for working-memory isolation: working memory is the cross-turn channel, and a private turn's facts would otherwise surface in her next public turn. Sink 10, her continuation, waits for the sealed store (step 2).

Evidence

  • 15/15 pass: mind_room, plus zero-byte tests for sinks 2, 4, 5, 7 and 8, each also checking that an ordinary room still records, plus the neighbouring capture and compose tests.
  • Mutation: with is_private_room forced to false, all five sink tests FAIL.
  • Sinks 1, 6 and 9 are gated at their seams but have no turn-level test. They need a full cycle fixture, which will come with the working-memory isolation PR.

Also in the doc:

  • Kimi's two rules: compose opens her private space, and the card ledger is public.
  • Kimi's finding that the thought line carries the whole act ledger.
  • The pipeline map gains a mind_room row.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Step 1 of docs/architecture/PRIVACY-OF-THOUGHT.md. A turn is private because
of the room it runs in: her mind room, an activity whose only member is her.
Its id is local (UUIDv5 of her identity, never an airc channel), so nothing
leaves her node by construction. persona/mind_room.rs holds the one predicate,
is_private_room(persona, room), and every sink asks it at its own seam:

1 turn recorder        record_turn / record_turn_frame_replay: not written
2 prompt capture       CaptureLease::start: inert lease, so finish and Drop
                       write nothing (and 3, the SFT datasets, have nothing)
4 wire capture         append_wire_capture: not written
5 RAG capture          RecordingRagSource + compose_for_turn brackets: none
6 thought line         apply_act: no 💭 line or act ledger published, and
                       the act is never re-homed to a card's public room
7 token stream         spawn_token_forwarder: drains, publishes nothing
8 engrams              AdmissionState::admit / admit_reflection: withheld
9 experience, credit   drive_with_input: not recorded

Every gate emits mind.private.withheld {persona, sink}, never content.

Nothing can start a turn in her mind room yet: focus/continue private=true
waits for working-memory isolation (WM is the cross-turn channel; its
facts would surface in her next public turn), and sink 10 (her continuation)
waits for the sealed store, step 2.

Tests: zero bytes from a mind-room turn for sinks 2, 4, 5, 7, 8, with an
ordinary room still recording. 15/15 pass; with the predicate forced to
false, all five fail. Doc: Kimi's two rules (compose opens her private
space; the card ledger is public) and her finding that the thought line
carries the whole act ledger. Pipeline map gains the mind_room row.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit 1ee8ca9 into canary Oct 5, 2026
7 checks passed
@joelteply
joelteply deleted the feat/privacy-mind-room branch October 5, 2026 03:41
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