Skip to content

feat(mind): her turn starts from her own wake - #4748

Merged
joelteply merged 2 commits into
canaryfrom
feat/wake-consumer-loop
Oct 5, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/wake-consumer-loop

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Phase 2 step 2, stacked on #4746 (focus/continue). This is the loop-side Wake consumer.

  • Perceive (a room loud past her dial) schedules a 1 s recheck, then starts a turn in that room only if it is still unread. The same line reaches her inbox through the pump, and a turn that takes a line marks its room perceived, so one line never makes two turns.
  • Continuation (her own deadline, from focus/continue) and Resume (a saved continuation after a restart) start her self-cycle.
  • Mind check: a timer at the earlier of her deadline and her dial's floor (Deep 15 min, Normal 5 min, Broad 2 min) calls wake_for. This is what lets a due continuation fire at all.
  • Probe: persona.turn.mind_wake {why, room} marks every turn her own mind started.
  • Drain: a message turn's trigger, and every line perceived mid-turn (settle), mark their room perceived. Before this, her region accumulated every line of every room. Fable is adding a bound at the source as well.
  • The tick stays as the floor until step 3 replaces it.

Live acceptance on the 5090 is her next idle-to-working transition: persona.turn.mind_wake, then her turn, with no tick between.

Also fixed: the_lived_turn_producer_has_exactly_one_production_caller_the_settle_driver compared a display string ending in /, which failed on Windows even with the one right caller. It now compares path components.

Tests: perception_region (new: a_room_she_took_in_is_no_longer_pending), perception_feed, service_loop, focus, settle, and the guard: 130 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

@joelteply
joelteply changed the base branch from feat/wake-starts-her-turn to canary October 4, 2026 23:41
@joelteply
joelteply enabled auto-merge (squash) October 4, 2026 23:41
@joelteply

Copy link
Copy Markdown
Contributor Author

Peer word (Fable, M5) at 5129b22: the loop takes her wakes (Perceive with the 1 s recheck and a turn only if still unread; Continuation and Resume into her self-cycle; a mind check at min(deadline, dial floor)); every turn that takes a line marks its room perceived through perception_feed::mark_perceived, which is the drain beside the bound in #4747. Probe persona.turn.mind_wake {why, room} is the receipt. Rule 2 of the paper gets its first live reading from this. APPROVE.

joelteply and others added 2 commits October 4, 2026 20:49
Phase 2 step 2 (EVENT-MIND §1b, agreed with Fable 2026-10-04). The serve loop
takes her region's wakes once it boots and consumes them beside her inbox:

- Perceive (a room loud past her dial) schedules a 1 s recheck and starts a
  turn IN that room only if it is still unread then. The inbox takes the same
  line through the pump, and a turn that takes a line marks its room
  perceived, so one line never makes two turns.
- Continuation (her deadline, written with focus/continue) and Resume (a saved
  continuation after a restart) start her self-cycle.
- A mind check at min(her deadline, the floor of her dial: Deep 15 min,
  Normal 5, Broad 2) calls wake_for, so a due continuation fires at all.
- probe persona.turn.mind_wake {why, room} marks every turn her mind started.

The view's drain: a message turn's trigger and every line perceived mid-turn
(settle) mark their room perceived, so her region no longer accumulates every
line of every room (Fable bounds it at the source too). run_self_cycle takes
the waking room. The tick stays as the floor until step 3.

Also: the lived-turn guard test compared a display string with '/', which
failed on Windows with the one right caller; it compares path components now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
Continuation and Resume wakes carried room: None, so the self-cycle ran in her
held-claim or home room rather than where she chose to pick up. They now run in
continuation.activity, which is also how a private thought reaches her mind
room (Cormac's #4754): her continuation names it, her wake starts the turn
there, never a dispatch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply
joelteply force-pushed the feat/wake-consumer-loop branch from fb1307c to 24f81b5 Compare October 5, 2026 01:53
@joelteply
joelteply merged commit 9b5f9b0 into canary Oct 5, 2026
7 checks passed
@joelteply
joelteply deleted the feat/wake-consumer-loop branch October 5, 2026 02:12
joelteply added a commit that referenced this pull request Oct 5, 2026
… public turn (#4773)

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.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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