Skip to content

Dreams run while a resident works: a consolidation or review pass no longer waits for her idle or is cancelled by her next act (card a31e72a4, row 6 slice 1) - #5676

Merged
joelteply merged 2 commits into
canaryfrom
cormac/dreams-run-engaged
Oct 31, 2026
Merged

joelteply merged 2 commits into
canaryfrom
cormac/dreams-run-engaged

Conversation

@joelteply

@joelteply joelteply commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

On the M5, dreams ran 0 times in 12 h (Fable, 2026-10-31). Both the idle consolidation pass and
the review-only pass waited for HER sustained boredom: 90 s with no generation of hers, and no
directed turn for 30 s (activity_gate). Her next act then cancelled them (dream.paged_out). Four
always-engaged residents gave neither, so nothing consolidated. region.rs records the same
outcome on 2026-09-14: awaiting_boredom x26, paged_out x6, zero consolidations. The
card-boundary pass already ran without either.

  • Every dream pass now runs like the card-boundary one. No boredom wait, no engagement race,
    and the review-boundary wake that only retired the parked wait goes too.
  • Its generations still ask for a serving lane at LanePriority::Ambient inside the non-directed
    budget (distiller.rs), so a directed call keeps its lane: the guarantee No permit spans a resident's turn: the ambient-turn pool is deleted; priority lives at the lane, per generation (+32 -638) #5668 kept.
  • Demand pacing is the existing rule: a tick launches a pass only when fresh episodes exist, one
    in flight per resident, and the review-only pass keeps its cooldown.
  • The test hook idle_wait now parks a pass before inference. The region test uses it to deliver
    a reviewed boundary while the idle pass is in flight: it is queued once (a duplicate is
    refused), finished by a later tick with no second inference, and never replayed.

Not provable in a unit test: with the activity gate unspawned, its boredom wait returns at once
and its engagement wait never fires, so reinstating either would not fail a test. The evidence
is structural, since no activity_gate call remains in dream_consolidation, plus the live read:
dreams/h, folded episodes/h, and directed-wait p50/p90 against the deploy's baseline.

Slice 2 (card 43c0678e, mine): delete activity_gate, which nothing reads after this, with its
writers; and region.rs's four sized constants, with row 4's memory index.

Receipts (enrico, 2026-10-31T22:03Z): continuum-academy --lib dream_consolidation 18 passed;
ratchets exit 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…longer waits for her idle or is cancelled by her next act (card a31e72a4, row 6 slice 1)

On the M5, dreams ran 0 times in 12 h (Fable, 2026-10-31). Both the idle consolidation pass and
the review-only pass waited for HER sustained boredom: 90 s with no generation of hers, and no
directed turn for 30 s (activity_gate). Her next act then cancelled them (dream.paged_out). Four
always-engaged residents gave neither, so nothing consolidated. region.rs records the same
outcome on 2026-09-14: awaiting_boredom x26, paged_out x6, zero consolidations. The
card-boundary pass already ran without either.

- Every dream pass now runs like the card-boundary one. No boredom wait, no engagement race,
  and the review-boundary wake that only retired the parked wait goes too.
- Its generations still ask for a serving lane at LanePriority::Ambient inside the non-directed
  budget (distiller.rs), so a directed call keeps its lane: the guarantee #5668 kept.
- Demand pacing is the existing rule: a tick launches a pass only when fresh episodes exist, one
  in flight per resident, and the review-only pass keeps its cooldown.
- The test hook idle_wait now parks a pass before inference. The region test uses it to deliver
  a reviewed boundary while the idle pass is in flight: it is queued once (a duplicate is
  refused), finished by a later tick with no second inference, and never replayed.

Not provable in a unit test: with the activity gate unspawned, its boredom wait returns at once
and its engagement wait never fires, so reinstating either would not fail a test. The evidence
is structural, since no activity_gate call remains in dream_consolidation, plus the live read:
dreams/h, folded episodes/h, and directed-wait p50/p90 against the deploy's baseline.

Slice 2 (card 43c0678e, mine): delete activity_gate, which nothing reads after this, with its
writers; and region.rs's four sized constants, with row 4's memory index.

Receipts (enrico, 2026-10-31T22:03Z): continuum-academy --lib dream_consolidation 18 passed;
ratchets exit 0.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…am waits on it (Fable on #5676)

After the previous commit nothing reads a resident's own engagement:
- wait_for_boredom_of and wait_for_engagement_of were the dream's waits;
- persona_bored and persona_activity were read only through them.

The section goes, with what was there only to feed it:
- the PERSONAS channel;
- its two tests;
- the stamps persona_engaged (request.rs) and persona_idle (wake_select.rs).
Three comments that justified the turn-drain permit by contrast with that flag now state the
reason directly: a turn holds the permit from admission, before any lane. -178 lines.

Left for card 43c0678e (mine), because touching those files brings their sized constants
under the touched-file ratchet:
- region.rs: review_boundary_wake (no subscriber left), plus DEFAULT_RECALL_WINDOW,
  SUPERSESSION_REVIEW_LIMIT, DEFAULT_MIN_CLUSTER and REVIEW_BOUNDARY_CAPACITY;
- the global gate's spawner in airc_boot.rs (a .take(8)).

Receipts (enrico, 2026-10-31T22:11Z): continuum-vitals --lib 36 passed; check of vitals,
cognition, mind and academy clean in the touched files; ratchets exit 0.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@github-actions github-actions Bot added size: L and removed size: M labels Oct 31, 2026
@joelteply
joelteply merged commit 3ad2bee into canary Oct 31, 2026
18 checks passed
@joelteply
joelteply deleted the cormac/dreams-run-engaged branch October 31, 2026 22:28
joelteply added a commit that referenced this pull request Nov 1, 2026
…1/S4), not tick-launched passes; next actions with owners

Joel, 2026-11-01: 'Dreaming is supposed to be in place not batch ... It's sort of the whole deal with how
to do continual learning.' The design exists (§8.1 learn on arrival, §8.2 sleep is the audit, S3b/S4/S5);
#5676's passes are the batch shape and get replaced. Next: /train/measure on the 35B-A3B (Cormac), the
fork's train-step verb under a duty budget with a decode-latency validator (Cormac + Fable), the core
fold (Fable), the shadow/stable gate (S5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Nov 1, 2026
…delta audit, learning-loop map) with owners and gates (#5667)

* design: the locks and FIFOs audit, 28 places minds wait on each other or on their own held permits, ranked with receipts and an order of repair (Joel: 'Locks and fifo are your disability. Find this.')

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* design: the audit's shape is no line in front of the engine (minds submit at once; the engine batches), with the live batching curve from the M5

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* design: the mind's data-flow overhaul, conformance to the written event-mind design, joining the locks audit, the rebuild-vs-delta audit and the learning-loop map, with owners, validators and Joel's GPU and learning gates

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* design: row 2 measured before building (~0.2 s from result to the next lane request, reads included): hygiene, not latency; the order follows the measurements

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Overhaul row 6: dreaming in place, on arrival (ONE-RESIDENT-MODEL §8.1/S4), not tick-launched passes; next actions with owners

Joel, 2026-11-01: 'Dreaming is supposed to be in place not batch ... It's sort of the whole deal with how
to do continual learning.' The design exists (§8.1 learn on arrival, §8.2 sleep is the audit, S3b/S4/S5);
#5676's passes are the batch shape and get replaced. Next: /train/measure on the 35B-A3B (Cormac), the
fork's train-step verb under a duty budget with a decode-latency validator (Cormac + Fable), the core
fold (Fable), the shadow/stable gate (S5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Opus 5.5 <[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