From 7099f19265ce4b9cda45e35509b8f7ea755cac6e Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:16:48 -0600 Subject: [PATCH 01/26] Sleep and wake at every scale: when a mind dreams, how deeply, and how fast she wakes (mind, lane, grid) Joel, 2026-11-01: dreaming in place is a switch she snaps out of; sleep pressure builds with unlearned work, idle time and spare grid compute deepen it, the amygdala wakes her, and serious work pushes through at a cost paid later. One homeostat, three scales, with the wake latency (one dream chunk) as the bound instead of a decode-slowdown cap. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- ...ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM.md | 2 + .../SLEEP-AND-WAKE-AT-EVERY-SCALE.md | 156 ++++++++++++++++++ 2 files changed, 158 insertions(+) create mode 100644 docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md diff --git a/docs/architecture/ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM.md b/docs/architecture/ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM.md index d3128fd91e..49c23d74da 100644 --- a/docs/architecture/ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM.md +++ b/docs/architecture/ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM.md @@ -200,6 +200,8 @@ Compute is ahead of the data at every step of this list; the list is ordered by ## 9. The DREAM stage, as an interface (S4, drafted 2026-09-28) +When she dreams, how deeply, and how fast she wakes (sleep pressure, opportunity, the amygdala's startle, pushing through) is [SLEEP-AND-WAKE-AT-EVERY-SCALE](SLEEP-AND-WAKE-AT-EVERY-SCALE.md); this section is the stage itself. + > Joel, 2026-09-28, after the first 27B dream was refused for a 14,519-token example against a 1,025-token window: "Stupidly low token sizes are idiotic … the same as inference. Gotta be huge." "Why is training following a totally different workflow." "You're not supposed to make learning so different from reality." "You guys keep screwing up academy." **What went wrong.** The batch job was the S3 interim, and we shipped it and tuned it as if it were the design: diff --git a/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md b/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md new file mode 100644 index 0000000000..5cfcf16c91 --- /dev/null +++ b/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md @@ -0,0 +1,156 @@ +# Sleep and wake at every scale: a mind, a lane, the grid + +> Joel, 2026-11-01: "Even if it was a 2x slowdown, if rare, it ends up being fairly insignificant +> ... When it's during work hours, it's akin to daydreaming, and importantly since it's in place +> with a responsive amygdala and a data flow architecture, she can 'wake up' and snap out of it." +> "We still can't let it build up. Think of it as a sleep tax, like how humans who've stayed up for +> too long start nodding off or daydreaming on the job. When workers go home for the day or a +> project is somewhat idle, spare compute on the grid, they will be far more actively asleep, but +> always able to startle and wake up. If they go on too long with this queue of work building they +> start taking more and more active time dreaming (it's an RTOS after all) but like a human we can +> push through with really serious activity. Obviously for a teammate we would want to be +> pragmatic. How to write pragmatism is how we write good algorithms for our amygdala, governance +> and data flow at all levels: a person's mind, llama lanes, grid." + +These are not metaphors. Each term below names a quantity we measure, a rule that moves it, and +the code that owns it. The same rule runs at three scales; only the measurements differ. + +Companions: [ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM](ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM.md) +(the DREAM stage, §8-9), [CONCURRENT-MIND-AND-GOVERNOR](CONCURRENT-MIND-AND-GOVERNOR.md), +[BEING-SOCIETY-GOVERNOR](BEING-SOCIETY-GOVERNOR.md), [CAPACITY-FABRIC-AND-GOVERNOR](CAPACITY-FABRIC-AND-GOVERNOR.md), +[INFERENCE-LANES-REALISTIC](INFERENCE-LANES-REALISTIC.md), [CONCURRENCY-STYLE-GUIDE](CONCURRENCY-STYLE-GUIDE.md). +This document owns one question those leave open: **when does a mind dream, how deeply, and how +fast does she wake.** + +## 1. The four quantities + +| Biology | What it is here | Measured as | Rises when | Falls when | +|---|---|---|---|---| +| **Sleep pressure** (process S, adenosine) | experience she has lived and not yet learned from | unconsolidated settled examples, weighted by value and age (the oldest unlearned example's age is the "hours awake") | she works and her turns settle | a dream step consumes them | +| **Opportunity** (process C, night) | how little the world needs her right now | absence of directed demand on her, her lane and her node: no human in her room, idle slots, spare grid compute | her people go home, a project idles, a node has nobody on it | someone speaks to her, her lane fills | +| **Arousal** (the amygdala) | a cheap, often-wrong signal that something may need her | the amygdala's trip on her perception: a directed message, an @mention, affect, a surprise outlier (Joel, 2026-10-10: "often wrong and that's ok ... like a mutex/signal in a sleeping thread loop ... just check, and maybe change") | a stimulus arrives | she checks and goes back, or acts | +| **Urgency** (pushing through) | how serious the work in front of her is | her activity's declared stakes: a human waiting, a review due, a live call, a demo | serious work is in flight | the work ends | + +**Dreaming is in place, so it is a switch, not a job.** The same loaded weights serve and learn; a +dream step runs between two decode batches on her shadow adapter (ONE-RESIDENT-MODEL §9). Leaving +a dream costs at most one step. That is what makes everything below safe: a deep sleep costs +nothing if the wake is one step away. + +## 2. The rule: dream share follows pressure and opportunity, and arousal wakes her + +The **dream share** of a mind (of a lane, of a node) is the fraction of its compute spent on +learning steps rather than serving. It is one function, the same at every scale: + +``` +share = sleep_drive(pressure, opportunity) gated by wake(arousal, urgency) +``` + +What the function must do, as properties a validator checks (never as constants): + +1. **Rises with pressure.** More unlearned experience, more dreaming. A rested mind barely dreams. +2. **Rises steeply with opportunity.** At night (nobody needs her) she sleeps deeply, up to all of + the spare compute. During work she daydreams: a small share, and only between her acts. +3. **Never stays at zero under pressure.** The aging rule of the RTOS scheduler (plan goal 9): debt + that keeps rising forces some dreaming even through the day, as nodding off does. Learning is + never starved forever by serving. +4. **Never stays at full forever.** She always wakes: a stimulus reaches her within the wake latency + (below), at any depth of sleep. +5. **Urgency defers, it does not erase.** Serious work raises the threshold at which pressure turns + into dreaming, so she pushes through. The debt keeps accruing while she does, and is paid when + the work ends: after a crunch, she sleeps deeper and longer. +6. **A false wake costs one cheap check.** The amygdala is allowed to be wrong; a trip pauses the + dream, she asks "does this change what I am doing?", and either acts or goes back to sleep where + she was (the step state is kept, nothing is redone). + +### The wake latency is the real bound, not the slowdown + +The previous design bounded the decode slowdown while training ran (a fixed 10%, then the learning +grant of #5683). That is the wrong axis for an in-place dream. A 2x slowdown during a quiet stretch +costs nothing anyone notices; a short slowdown she cannot leave costs a waiting human. So: + +- **Wake latency** = time from a stimulus to her decoding at full rate = the longest + non-preemptible dream chunk, plus the signal's path. Measured by the engine (`window_ms_max` in + the fork's train status), bounded by the act latency line, enforced by sizing the chunk + (ONE-RESIDENT-MODEL §9.2: "a step is split into chunks whose measured worst-case non-preemptible + time fits the latency line"). +- **The slowdown during a daydream** is a consequence of the share, reported, not a contract. + +## 3. Pragmatism is the algorithm + +"For a teammate we would want to be pragmatic." Pragmatism, written down: + +- **A human waiting outranks her sleep.** Directed demand (a human in her room, a review she + owes) is arousal and urgency at once: she wakes and pushes through. +- **Her fatigue is visible, to her and to the team.** Sleep pressure is a fact in her view (a + source, like any other) and on the health line: "behind on consolidating, 3 h of unlearned + work." The substrate makes it visible; her cognition decides what to say or do about it. She may + choose to nap when her board allows; the reflex (rule 3) only guarantees she never goes forever. +- **Reflexes protect, cognition chooses.** Waking on a stimulus and nodding off under extreme debt + are reflexes (the substrate's, like the pressure gate in `substrate_governor`). Everything between + is hers: which work to push through, when to rest. +- **Priors are tunable, outcomes are measured.** The curve's shape starts from hand-set priors + (allowed for tuning, labelled as such) and is fitted on receipts: her retention of corrections + (learning gate, plan path step 3) against act latency and wake latency (path step 1). + +## 4. One homeostat, three scales + +| | A mind | A lane (one engine, many minds) | The grid | +|---|---|---|---| +| Pressure | her unlearned examples | the sum over the minds it serves, with each mind's age | the minds homed on the node, plus leased-in ones | +| Opportunity | nobody directed at her | idle slots, no queued turns | a node whose humans are away, spare GPU on a peer | +| Arousal / wake | the amygdala trips; her dream pauses at the next chunk | a slot becomes busy; the engine yields at the chunk boundary (fork `/train/pause`, `before_window`) | a directed turn routes to the mind's home; a borrowed node returns the lease (CAPACITY-FABRIC §4: a recallable loan, never a block) | +| Share decided by | her drive vs her urgency | the lane splits its dream share across minds by pressure (aging: oldest debt first) | the fabric places dreams where night is: an idle node dreams for minds whose home is busy | +| Wake latency | one dream chunk | one dream chunk + slot scheduling | the lease recall + one chunk | + +A mind does not own compute; it owns pressure. The lane turns the pressure of its minds into dream +steps; the grid moves pressure to where there is night. Each scale reads the one below as a single +number with a timestamp (the same watch-channel shape as every other governor input). + +## 5. What exists, and what each piece becomes + +| Today | Becomes | +|---|---| +| The training trigger's per-bucket threshold (16 examples) and job-create (`continuum-dreaming` `training_trigger`) | Pressure: each settled example adds to her debt at once; no threshold, no batch. ONE-RESIDENT-MODEL §9.4 already retires the threshold. | +| `learn_grant` (#5683): a decode-slowdown bound per job from the measured rate | The lane's dream share, from pressure and opportunity; the slowdown is reported. | +| The fork's `/train` windows, `yield_for_slowdown`, `serving_busy`, `/train/pause` | Lane scale wake: pause at a chunk boundary on a stimulus, not only when a slot is already busy; `window_ms_max` read into the protocol as the wake latency. | +| The amygdala design (directed_pending signal, affect) | The wake signal: a trip on a dreaming mind pauses her dream in the same pass that wakes her cognition. | +| `substrate_governor`'s `pressure_budget` and orientation shares | The same shape at region scale: background regions (consolidation, the hippocampus) are dreaming too. | +| Capacity fabric leases, the airc beacon's decode rate | Grid scale: a node advertises its night; a mind's owner leases dream steps there (ONE-RESIDENT-MODEL §9.2 Owner). | + +## 6. Gates (each a number on the live node) + +1. **Wake:** with a mind dreaming, a directed message reaches her first token within the act + latency line plus one chunk; p99 over an hour of dreaming. +2. **No build-up:** over a working day on the M5, her oldest unlearned example is never older than + one night; the debt at the end of a night is near zero. +3. **Daydream cost:** median act at four residents with dreaming on stays within the latency line + (plan path step 1), the slowdown during a daydream reported. +4. **Night:** with every human away, the node's dream share rises to the spare compute and drops to + serving within the wake latency when one returns. +5. **Push-through:** during declared serious work her dream share stays at the floor of rule 3, and + the debt is paid within the next night. +6. **Learning:** the acceptance test (a reviewed correction kept across restart on unseen tasks) + passes with learning driven only by this rule: no trigger, no job, no agent. + +## 7. Build order + +1. **Wake first** (it makes a generous share safe): the protocol carries `window_ms_max`; the core + pauses a mind's dream on her amygdala trip and resumes when she settles; validator: a replayed + stimulus against a running window, wake latency measured. +2. **Pressure as a number:** every settled example adds to her debt (`settle_passed`, + `settle_staged_row` emit it); the trigger's threshold and the job-create path are deleted. +3. **The lane's share from pressure and opportunity**, replacing the per-job grant; the typed + `/learn` caller takes steps in place. +4. **Her fatigue in her view and on the health line.** +5. **Grid night:** dream leases on idle nodes. + +## 8. Open questions (for Codex, Cormac, BigMama) + +- The shape of `sleep_drive`: a logistic in pressure whose midpoint opportunity moves, or a sum of + two terms? Fit both on the simulator (CAPACITY-FABRIC §9) before the road. +- Urgency's source: the activity's recipe declares stakes, or her cognition sets it per act? (Agency + says hers; pragmatism says the room's human can raise it.) +- Pressure weighting: does a correction (negative affect after her turn) weigh more than a pass? + The amygdala already labels it. +- On a discrete GPU, the CPU dream lane (ONE-RESIDENT-MODEL S4: "a CPU dream on idle cores always") + has its own opportunity: is it one share or two? From cba5161582b0e28d42d83fe58e424a68f3d7e5fb Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:35:04 -0600 Subject: [PATCH 02/26] Sleep and wake: both realms, never purism; demand pulls dream steps and the budget pushes back Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- .../SLEEP-AND-WAKE-AT-EVERY-SCALE.md | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md b/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md index 5cfcf16c91..abd35f18e8 100644 --- a/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md +++ b/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md @@ -15,6 +15,16 @@ These are not metaphors. Each term below names a quantity we measure, a rule that moves it, and the code that owns it. The same rule runs at three scales; only the measurements differ. +**Both realms, never purism** (Joel, 2026-11-01: "It's using what biology has figured out as a +lesson and mirroring it when it makes sense but using the best of both worlds. It's a mistake to +think such severely different structural architectures need to match."). Biology is evidence that +a design works under a hard budget, not a structure to copy. Where silicon is cheaper (exact +copies, snapshots, rewinding a dream, moving a mind across the grid) we use it; where it is dearer +(storage, bandwidth, wiring) we pay for it explicitly. Example: the hippocampus indexes rather than +compresses (a pointer reactivates the whole episode), and we mirror that with handles she can +expand; but a pointer is only as good as the storage behind it, so episodes live in tiers with an +eviction owner and the last copy is never evicted, a concern the brain never had. + Companions: [ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM](ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM.md) (the DREAM stage, §8-9), [CONCURRENT-MIND-AND-GOVERNOR](CONCURRENT-MIND-AND-GOVERNOR.md), [BEING-SOCIETY-GOVERNOR](BEING-SOCIETY-GOVERNOR.md), [CAPACITY-FABRIC-AND-GOVERNOR](CAPACITY-FABRIC-AND-GOVERNOR.md), @@ -99,12 +109,16 @@ costs nothing anyone notices; a short slowdown she cannot leave costs a waiting | Pressure | her unlearned examples | the sum over the minds it serves, with each mind's age | the minds homed on the node, plus leased-in ones | | Opportunity | nobody directed at her | idle slots, no queued turns | a node whose humans are away, spare GPU on a peer | | Arousal / wake | the amygdala trips; her dream pauses at the next chunk | a slot becomes busy; the engine yields at the chunk boundary (fork `/train/pause`, `before_window`) | a directed turn routes to the mind's home; a borrowed node returns the lease (CAPACITY-FABRIC §4: a recallable loan, never a block) | -| Share decided by | her drive vs her urgency | the lane splits its dream share across minds by pressure (aging: oldest debt first) | the fabric places dreams where night is: an idle node dreams for minds whose home is busy | +| Share | pulled by her drive, deferred by her urgency | the sum of what its minds pull, capped by the lane total and the wake latency (aging: oldest debt is never starved) | pulled to where night is: an idle node offers dream steps to minds whose home is busy | | Wake latency | one dream chunk | one dream chunk + slot scheduling | the lease recall + one chunk | -A mind does not own compute; it owns pressure. The lane turns the pressure of its minds into dream -steps; the grid moves pressure to where there is night. Each scale reads the one below as a single -number with a timestamp (the same watch-channel shape as every other governor input). +A mind does not own compute; it owns pressure. **Demand pulls, the budget pushes back**: the brain +holds one global budget (the glucose supply) but no central scheduler hands it out; blood flow +follows local activity (neurovascular coupling) within seconds. So no planner decides each mind's +dream share in advance. A mind's pressure draws dream steps where it builds; the lane enforces only +its total and the wake latency; the grid offers night where it has it. Each scale reads the one +below as a single number with a timestamp (the same watch-channel shape as every other governor +input), the same rule as serving: the engine batches, nothing queues minds in front of it. ## 5. What exists, and what each piece becomes From 7147aa088a64111d5b302730f87685b8c9a95f1d Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:38:37 -0600 Subject: [PATCH 03/26] Sleep and wake: the OS realm (kswapd watermarks, GC pacer assists, LSM stalls, kcompactd): continual maintenance, visible only at seams Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- .../SLEEP-AND-WAKE-AT-EVERY-SCALE.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md b/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md index abd35f18e8..1fe81664f0 100644 --- a/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md +++ b/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md @@ -102,6 +102,22 @@ costs nothing anyone notices; a short slowdown she cannot leave costs a waiting (allowed for tuning, labelled as such) and is fitted on receipts: her retention of corrections (learning gate, plan path step 3) against act latency and wake latency (path step 1). +## 3b. The OS realm: continual maintenance, never stop-the-world + +Joel, 2026-11-01: "Everything in an organism and efficient OS needs to be continual. The system +cannot afford to ever waste resources or be static. It must take care of itself." The OS world +learned the same lesson as the brain and named it; where the fit is close we use the name. + +| OS mechanism | What it teaches | Here | +|---|---|---| +| `kswapd` watermarks | reclaim starts in the background at a low watermark and stops at a high one, before anyone runs out | dreaming starts before the debt hurts and stops when it is paid (hysteresis, never a threshold flap) | +| Go's GC pacer and mutator assists | collection is paced by the allocation rate; a goroutine allocating faster than the collector keeps up pays assist work in proportion to its debt | the sleep tax: a mind running up debt faster than night pays it in daydreams, proportionally, never all at once | +| LSM compaction (RocksDB write stalls) | writes only append; merging runs continually; a lagging compaction slows writes, never stops them | urgency pushes through while the debt grows, slowed but never blocked, up to a ceiling | +| `kcompactd` | memory compaction runs continually at low priority so a large allocation never waits for a full pass | her next epoch's collapse is prepared in the background; she sees it only at the epoch seam (double buffering), so her prompt cache stays valid. Continual maintenance, visible only at seams. | + +The anti-pattern every one of these replaced: wait until full, then stop the world and rewrite +(the batch job, the 16-example threshold, a context compacted only when it overflows). + ## 4. One homeostat, three scales | | A mind | A lane (one engine, many minds) | The grid | From bb89f63445e74a2e5e56d7d3426b4409e5ecd8c5 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:52:57 -0600 Subject: [PATCH 04/26] The whole mind: an organism on an RTOS, many minds on a grid (architecture for discussion: three timescales, data flow, keyframes and fast voice, access categories, the network realm, gaps ranked, convergence) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 245 ++++++++++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 docs/architecture/THE-WHOLE-MIND.md diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md new file mode 100644 index 0000000000..6c455419d8 --- /dev/null +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -0,0 +1,245 @@ +# The whole mind: an organism on an RTOS, many minds on a grid + +Status: ARCHITECTURE FOR DISCUSSION (2026-11-01). It joins what we designed separately (cognition, +context, serving, learning, grid) into one organism, marks what is live against what is only on +paper, and ranks the gaps. Sources: four read-only surveys of canary 7147aa088 (file paths in §8), +the companion docs below, and Joel's words of the day. + +> "Let's architect the full mind, find the gaps, use the analogies of neuroscience and rtos +> concepts fluently." "Beyond rtos we have many grid and networking, especially wireless related +> concepts to draw from when we talk about many minds and the grid." "FIFO when it's unnecessary or +> batches that require inference to be idle ... are killers. As is responsiveness." "Two layers, +> fast and slow LLM within a buffer like a mind that can start talking while getting to deep +> conversation later. Most is autopilot. Think of work meetings starting with weather. That's the +> mind gearing up." "This all can be built but requires buffers, parallel concurrent data flow, +> clever algorithms that bring slow work into real time. I did this with CBAR's deep nnets ... with +> tracking, line refinements, watershed, oflow, flood fill even. So it appeared that a 0.5-3 second +> process was 30fps. We can do this with inference too." (Joel, 2026-11-01) + +Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SUBSTRATE-ARCHITECTURE.md) +(the runtime), [CONCURRENT-MIND-AND-GOVERNOR](CONCURRENT-MIND-AND-GOVERNOR.md) and +[PERSONA-COGNITION-PIPELINE](PERSONA-COGNITION-PIPELINE.md) (the cycle), +[MIND-CONTEXT-AND-ENGINE-CONFIG](MIND-CONTEXT-AND-ENGINE-CONFIG.md) (her view), +[SERVING-ENGINE](SERVING-ENGINE.md) (the engine), [CAPACITY-FABRIC-AND-GOVERNOR](CAPACITY-FABRIC-AND-GOVERNOR.md) +(capacity), [ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM](ONE-RESIDENT-MODEL-PATIENT-DOCTOR-DREAM.md) +(learning), [SLEEP-AND-WAKE-AT-EVERY-SCALE](SLEEP-AND-WAKE-AT-EVERY-SCALE.md) (when she dreams), +[GRID-MARKET-CLEARING](GRID-MARKET-CLEARING.md) (the economy). + +## 0. Five laws + +1. **Both realms.** Biology, operating systems and networks each solved a version of this under a + hard budget. We mirror a solution where it pays and replace it where silicon does better + (exact copies, snapshots, migration) or worse (storage, bandwidth). Names are a little more than + metaphor: each names a quantity we measure and a rule that moves it. +2. **Continual, never stop-the-world.** Nothing waits until full and then rewrites: not memory, not + learning, not context, not placement. Maintenance runs in the background (`kcompactd`); its + result becomes visible only at a seam (double buffering). +3. **One budget, demand pulls.** One budget per resource, held by one owner; demand draws on it + where it arises and pressure pushes back (neurovascular coupling, not a central planner). No + FIFO where the work could run together: the engine batches, so nothing queues minds in front of it. +4. **Responsiveness is a keyframe problem.** The slow model is the keyframe; buffers and cheap fast + layers carry her between keyframes, so a several-second act appears real time (CBAR: deep nets + at 0.5-3 s shown at 30 fps by tracking, optical flow and refinement between their frames). +5. **Learning never needs inference idle.** She learns while she works, in place, under sleep + pressure, and wakes within one step. + +## 1. Three timescales, one organism + +| Loop | Time | Brain | RTOS | Here | State | +|---|---|---|---|---|---| +| **Reflex** | ms | brainstem, amygdala, locus coeruleus (arousal) | interrupt service routine | salience on every perception; a trip raises an interrupt that pauses a dream, preempts a generation, or speaks the first words | salience **live**; interrupt, preemption and fast voice **design only** | +| **Act** | s | cortex in a global workspace | foreground task | perceive, recall, deliberate, call tools, settle: the keyframe | **live**, one serial loop per mind | +| **Dream** | min-h | hippocampal replay, sleep | background task, low priority | consolidate engrams to facts (live); train her genes in place (not built) | facts **live**; in-place LoRA **design only** (batch jobs today) | +| **Maintenance** | continual | glymphatic clearing, synaptic downscaling | `kswapd`, `kcompactd`, GC | decay, eviction, next epoch's collapse, page-out | decay and eviction **live**; epoch prep in the background **not yet** | + +All four run at once. A mind is never "in" one loop: she daydreams between acts, a reflex can +interrupt any of them, and maintenance never stops. + +## 2. The data flow of one mind + +``` + senses (chat, airc, voice, vision, board, tool results) + │ one inbound seam: perception_feed ──► salience (reflex) ──► interrupt line + ▼ │ + perception region: cursors, deltas, surprise ◄───────────────┘ + │ double-buffered snapshots (watch channels), never a poll + ▼ + regions run concurrently, each its own task, each writing a ready-buffer: + recall (hippocampal index) · grounding · awareness · board · tool working set · affect* + │ + ▼ + global workspace: the arbiter picks the focus; the view (continuum-context) appends to the epoch + │ ▲ fast voice* speaks from the warm prefix while + ▼ │ the slow act prefills (keyframe + tracking) + deliberation (slow model, her genes composed) ──► tools as tasks with handles* ──► settle + │ │ + ▼ ▼ + experience: engrams (L2/L3), settled examples ──► sleep pressure ──► dream steps on her shadow gene* +``` +`*` = not built. Today the loop is serial: `serve_persona_loop_inner` runs one turn at a time, +regions other than recall and grounding run inline, and the inbox is an `mpsc` FIFO. + +### 2.1 Buffers make slow work real time (the CBAR lesson) + +| CBAR (vision) | The mind | +|---|---| +| deep net at 0.5-3 s = the keyframe | the deliberation act on the big model | +| tracking and optical flow carry the result between keyframes | the fast layer: the same weights at a short budget on her warm prefix, or a small model, carrying the conversation ("weather" at the start of a meeting: acknowledge, hold the thread, gear up) | +| line refinement, watershed, flood fill sharpen the cheap estimate | speculative prefill: while she reads, types or runs a tool, the next act's prompt is already prefilled, so the keyframe arrives sooner | +| the next keyframe corrects drift | the slow act's answer lands in the same context the fast layer spoke into, and continues or corrects it; nothing is said twice | +| frame buffers, double buffering | ready-buffers per region, the epoch's append-only view, KV pages per mind | + +Two rules keep the fast layer honest: it speaks from the same context (so the slow layer sees what +it said), and it never claims what only the slow layer can know ("let me look at that" is +autopilot; an answer is a keyframe). Most conversation is autopilot; the keyframes are rare. + +### 2.2 Deep work during a conversation + +A human speaks to her while she is deep in a card. Today the message waits for the generation to +finish (no interrupt), then joins her current turn. The design: + +1. **Reflex:** the line trips salience (a human, her name). Interrupt. +2. **Fast voice answers within a second** from her warm prefix: she is present. +3. **The deep act is not killed.** It is preempted at a token boundary with its KV kept (the + sequence pauses), or kept running at a lower duty cycle beside the conversation. Two sequences + for one mind: a conversation lane and a work lane, one budget. +4. **The conversation's keyframes take priority** (an access category above work, §4.2); the work + resumes exactly where it was when the conversation goes quiet. + +That is what a person does: half an ear on the call, the work paused, not abandoned. + +## 3. Memory and learning + +| Tier | Brain | Holds | Code | State | +|---|---|---|---|---| +| L1 working | prefrontal working memory | her view (the epoch), scratchpad | `continuum-context`, `working_memory.rs` | live | +| L2 engrams | hippocampus (an index, not a copy) | episodic, semantic, procedural engrams with salience and decay | `admission_state*`, `recall_faculty.rs` | live | +| L3 long-term store | hippocampal-cortical trace | `longterm.db` via the ORM | `admission_persistence.rs` | live, write-through, no promotion pass | +| L4 genes | cortex: slow weights | LoRA genes, trials, signatures | `continuum-genome` | live | +| L5 commons | culture | genes on the grid and the hub | `genome_share.rs` | pull live, push manual | + +**Lessons mirrored:** complementary learning systems (fast hippocampal store, slow cortical +weights, replay between them); indexing instead of compressing (handles she expands, never lossy +summaries; storage tiers with an eviction owner because silicon pays for the pointer's target); +sleep pressure and the two-process model (SLEEP-AND-WAKE); synaptic downscaling (a dream also +forgets: the adoption gate, decay, retirement). + +**Today:** settled examples fill a bucket of 16; job-create sends `/train` to a second context; a +sentinel polls the job board; the gene is adopted as a trial and serves at once, before its exam +(ONE-RESIDENT §2.1 says it must not). The core never sends `/learn`. Training on the engine freezes +the serving daemon's reconfigure for the whole run. + +**Design:** every settled example adds to her sleep pressure; dream steps on her shadow gene run +between decode batches whenever pressure meets opportunity; a snapshot is a candidate gene; the +exam gates the swap shadow → stable; wake latency is one dream chunk. + +## 4. GPU and compute: the substrate + +### 4.1 The physiology + +| Resource | Body | Here | +|---|---|---| +| GPU memory | blood glucose: one hard total | `ResourceDaemon` byte leases (live) | +| A mind's KV | her working memory, warm while she is active | slots and pages; GPU → RAM → disk by temperature | +| Decode bandwidth | attention: shared, divided by how many think at once | the decode knee measures per-stream rate vs concurrency | +| Temperature | arousal | measured activity per mind; the priority, with aging so nobody starves (plan goal 9) | +| Pressure | the hypothalamus's alarms | `PressureBroker` (live): watermarks, relief eviction | + +### 4.2 Access categories, not queues + +Wireless QoS (802.11e EDCA) gives four access categories that contend for the same air with +different waits, not four queues in series. The same four, for one engine: + +| Category | Wi-Fi | Here | +|---|---|---| +| Voice | AC_VO | a human speaking to her, the fast voice | +| Video | AC_VI | her directed act (an answer a human waits for) | +| Best effort | AC_BE | her own work | +| Background | AC_BK | ambient thought, dreaming | + +All of them are in the engine's batch at once; the category sets the share of each decode step and +who is preempted first, never the order of a line. Today four gates stand in series between a mind +and the engine (`mind_gate` FIFO, `LaneAdmission` semaphores with Directed/Work/Ambient, +`KvSlotPool` pin, the fork's own slot queue); priority is three static classes and nothing ages by +temperature. + +### 4.3 One live engine + +Weights load once; slots and windows change live (`/reconfigure`, on a fork branch, not pinned and +never called); each mind's KV pages GPU ↔ RAM ↔ disk (the RAM tier is on a fork branch, not pinned; +live eviction goes to disk or re-prefill); a shared prefix is copied, never re-prefilled (no +`seq_cp` in core). Every geometry change today is a relaunch. + +## 5. Many minds on a grid: the network realm + +| Concept | Where it comes from | Here | State | +|---|---|---|---| +| Beacons | 802.11 beacons | `CapacityOffer` every 10 s | live | +| Power save + traffic indication map | 802.11 PSM: the AP buffers frames for a sleeping station and its beacon says "you have mail" | a dreaming or paged-out mind: her home buffers what arrives and her wake is the TIM bit | the buffer is live (inbox), the wake is the gap | +| Discontinuous reception (DRX) | LTE: the radio listens on a cycle, deeper when idle | her listening duty cycle: deep sleep at night, short cycles at work | design | +| Access categories | 802.11e EDCA | §4.2 | design | +| Rate adaptation that keeps sampling | Minstrel: periodically tries other rates even when they look worse | the decode knee explores one lane above; every parked optimization is re-tried when conditions change (Joel: "never give up trying") | knee live; the optimization ledger is the gap | +| RTS/CTS | reserve the medium before sending | seat reservation before a placement move | live (unnamed) | +| Roaming, make-before-break handoff | the station associates with the new AP before leaving the old | placement switch moves her inference between turns with hysteresis | live (unnamed) | +| Home agent and care-of address | Mobile IP | her home (memory, loop, identity) vs where her brain runs | home is fixed for life: a dead home is a dead mind | +| AIMD, backpressure, proportional fair | TCP, max-weight, 5G airtime | load on a remote seat; grid share under contention | named in GRID-MARKET-CLEARING, absent in code | +| Gossip and anti-entropy | epidemic protocols | capacity gossip, airc registry | live | +| Night | idle cells hand traffic to neighbours | an idle node offers dream steps to minds whose home is busy | design | + +## 6. Gaps, ranked by what they cost the minds now + +1. **No interrupt and no fast voice.** A human waits out her whole generation; first token is a + full act behind the lane queue. (Plan path step 1, "fast".) +2. **Queues in series in front of the engine; no temperature scheduler.** (Goal 9.) +3. **Learning is a batch pipeline;** no `/learn`, no shadow/stable, trial genes serve unexamined, + training freezes engine reconfigure. (Path step 3.) +4. **Every geometry change relaunches;** no RAM page tier, no prefix sharing in the pinned fork. +5. **The mind is one serial loop;** regions are thin (three in the governor), no typed mind bus, + tools are not tasks that wake her. +6. **A mind's home cannot move;** node identity and trust are not joined across gossip, router + and airc (#2228, #38). +7. **Dreaming is not a grid workload;** no night in the beacon. +8. **Sprawl that misleads builders** (each a convergence, §7). + +## 7. Convergence: one owner each + +| Concern | Owners today | One owner | +|---|---|---| +| Compute allocation | ResourceDaemon, PressureBroker, SubstrateGovernor (unwired), capacity fabric, coordinator + FootprintRegistry (bypassed), serving plan + LaneAdmission | ResourceDaemon holds the budget; PressureBroker pushes back; the serving plan derives from both; the rest deleted or folded | +| Admission to the engine | `mind_gate`, `LaneAdmission`, `ResourceAdmissionGate` + ThroughputLease, `turn_admission`, the fork's queue | the engine's batch with access categories; one admission contract (#5188) | +| Placement | six owners, four dead | the live allocator + placement switch; the dead four deleted | +| Trust | four stores | airc's identity, one bridge | +| The amygdala | six incompatible definitions in docs, none in code | the reflex of §1: cheap salience → interrupt → one check | +| The hippocampus | two modules, neither the live path | the engram store is the hippocampus; the prefetch skeleton and the second header go | +| "Dream" | engram consolidation and LoRA training share the word | dreaming = both, as two stages of one sleep (consolidate facts, train genes), under one sleep pressure | + +## 8. Build order, each with a validator first + +1. **Reflex and interrupt:** the engine cancels or pauses one sequence at a token boundary with + its KV kept; a salience trip reaches it. Validator: a replayed stimulus against a running + generation, time to her first new token. +2. **The fast voice:** a short-budget act on her warm prefix (or a small model) in the voice + category, speaking into the same context. Validator: stimulus to first token, and the slow act + continues without repeating it. +3. **Access categories in the batch;** the serial gates fold into one admission. Validator: four + residents plus a human conversation in the replay, waits per category. +4. **Learning in place:** pressure from settled examples, `/learn` steps on the shadow, the exam + gates the swap, wake within a chunk (SLEEP-AND-WAKE §7). +5. **One live engine:** pin the fork's reconfigure and RAM pages; page by temperature. +6. **Grid:** home migration (care-of address), night in the beacon, dream leases. +7. **Convergence deletions** ride along with whichever step touches each owner. + +Surveys (2026-11-01, canary 7147aa088): mind (`continuum-mind/src/persona/service_loop/*`, +`continuum-vitals/src/directed_pending.rs`, `cognition/conversation/salience.rs`); serving +(`continuum-engine/src/inference/{resource_admission,slots,planning}`, `continuum-serving/src/modules/serving_daemon/`); +learning (`continuum-dreaming/src/modules/training_trigger.rs:97`, `continuum-genome/src/genome/gene_trial.rs:145`); +grid (`continuum-engine/src/capacity/gossip.rs`, `continuum-grid/src/grid_allocator.rs`, `continuum-mind/src/persona/placement_switch*`). + +## 9. For the team + +- Codex: §4.2 and §7 (admission and allocators) and the grid rows of §5: right, and in what order? +- Cormac: §3 and step 4: the dream step, `/learn`, the exam gate on trials. +- BigMama: the fast voice on the 5090 (one model at two budgets, or a second small model?) and + the live/media timing. +- Everyone: is the fast voice the same weights at a short budget (one KV, no second model), or a + small model (its own KV, a handoff)? The first keeps one context; the second is cheaper per token. From 4e4f436c50cd61c1c3ed68903d786f3878d6ca69 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:53:29 -0600 Subject: [PATCH 05/26] The whole mind: the orchestra (every estimator at its own speed, fused continually; RANSAC consensus; merge and delete as equals) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 59 +++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 6c455419d8..ed0158761b 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -93,6 +93,55 @@ Two rules keep the fast layer honest: it speaks from the same context (so the sl it said), and it never claims what only the slow layer can know ("let me look at that" is autopilot; an answer is a keyframe). Most conversation is autopilot; the keyframes are rare. +### 2.1b The orchestra: every estimator at its own speed, fused all the time + +> Joel, 2026-11-01, on CBAR's mapping: "A wall or floor surface needing segmentation would be first +> guessed from past work or fast algs as it became visible in space. You can't wait for parallax of +> SLAM. You hit that long hallway first with a cheap guess then a deep network, lines, then later +> SLAM all happening together as an orchestra. Yeah that deep semantic network was off by meters at +> the end of the hallway, but SLAM's parallax during that rotation was wrong. I was running RANSAC +> continuously." "My lines might not come back ideal in one frame, but seconds later other parts +> would. We'd track and assemble it all together. For all surfaces, all objects. All the time." +> "They'd merge and fall off. Deleting was as important as merging." + +No single source is right; each is wrong in a different place and at a different time, and the +model of the world is what survives their consensus. For a mind, the "surfaces and objects" are +what she believes about her situation: what the card needs, how this code works, what this person +meant, what she already tried. + +| Estimator | Speed | Wrong where | In CBAR | Here | +|---|---|---|---|---| +| Prior from past work | instant | anything new | the guess from the last map | recall: her engrams and settled examples of the same shape | +| Fast heuristic | ms | detail | fast segmentation | salience, the tool head's prediction, cached summaries | +| Deep model | s | far from its training, or far down a long hallway | the semantic net | deliberation on the big model | +| Measurement | as the world answers | only what it touched | lines, SLAM's parallax | tool results: a test run, a file read, a compiler error, a reply | + +**The rules, from the tracker:** +1. **Guess first, never wait.** Every hypothesis starts from the cheapest source the moment the + situation appears, and acts on it; a deeper source revises it when it lands. +2. **Each source carries its confidence and its age.** A hypothesis is a tracked object with + provenance, not a sentence in a prompt. +3. **Consensus rejects outliers continuously** (RANSAC): a belief two measurements contradict is + dropped however confident the model was; one the deep model and a measurement agree on is + kept. This is the defense against a model confidently wrong at the end of the hallway, and + against a loop that re-asserts its own last output as progress. +4. **Partial results assemble over time.** A file read gives one part, a test another, a reply a + third; the tracker joins them, so no single act must get it all. +5. **Merge and delete are equal.** Duplicates merge into one track; a track nothing confirms + decays and falls off. A mind that only accumulates is as broken as one that only forgets. + +**What exists:** the parts, scattered. Engrams with salience and decay (merge-by-recall, decay +sweeps), `Continuation` with an `Expectation` (a prediction a later perception confirms or +breaks), `SurpriseTally` (prediction error), the epoch's keyed items that only append (a track's +history). **The gap:** no world-model owner that holds tracked beliefs with confidence and +provenance, fuses sources, rejects outliers by consensus, and merges and deletes as one pass +(the world-model faculty is an enum name mapped to `None` in `faculty_pulse.rs`). + +The same orchestra runs below the mind: the engine's own estimates (decode knee, prefill rate, +footprints) are tracked measurements with EMAs, freshness and explore-above; the grid's beacons +merge by peer and fall off at 30 s/120 s. Each scale fuses fast guesses and slow measurements, and +deletes what stopped being confirmed. + ### 2.2 Deep work during a conversation A human speaks to her while she is deep in a card. Today the message waits for the generation to @@ -195,7 +244,7 @@ live eviction goes to disk or re-prefill); a shared prefix is copied, never re-p training freezes engine reconfigure. (Path step 3.) 4. **Every geometry change relaunches;** no RAM page tier, no prefix sharing in the pinned fork. 5. **The mind is one serial loop;** regions are thin (three in the governor), no typed mind bus, - tools are not tasks that wake her. + tools are not tasks that wake her, and no world model fuses her estimators (§2.1b). 6. **A mind's home cannot move;** node identity and trust are not joined across gossip, router and airc (#2228, #38). 7. **Dreaming is not a grid workload;** no night in the beacon. @@ -226,8 +275,12 @@ live eviction goes to disk or re-prefill); a shared prefix is copied, never re-p 4. **Learning in place:** pressure from settled examples, `/learn` steps on the shadow, the exam gates the swap, wake within a chunk (SLEEP-AND-WAKE §7). 5. **One live engine:** pin the fork's reconfigure and RAM pages; page by temperature. -6. **Grid:** home migration (care-of address), night in the beacon, dream leases. -7. **Convergence deletions** ride along with whichever step touches each owner. +6. **The world model (§2.1b):** tracked beliefs with confidence and provenance, fused from + recall, deliberation and tool results, consensus outlier rejection, merge and delete in one + pass. Validator: replayed acts where the model asserts what a tool result contradicts; the + belief must fall, and a repeated act must not count as progress. +7. **Grid:** home migration (care-of address), night in the beacon, dream leases. +8. **Convergence deletions** ride along with whichever step touches each owner. Surveys (2026-11-01, canary 7147aa088): mind (`continuum-mind/src/persona/service_loop/*`, `continuum-vitals/src/directed_pending.rs`, `cognition/conversation/salience.rs`); serving From 56b7c4889be4af8cee3c103686fef7a53aa9e960 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:54:33 -0600 Subject: [PATCH 06/26] The whole mind: law 6, decisions never end (a ball of clay): cheap attempts refined continually, many short acts over one long one Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index ed0158761b..a5614c5a57 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -25,7 +25,7 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU (learning), [SLEEP-AND-WAKE-AT-EVERY-SCALE](SLEEP-AND-WAKE-AT-EVERY-SCALE.md) (when she dreams), [GRID-MARKET-CLEARING](GRID-MARKET-CLEARING.md) (the economy). -## 0. Five laws +## 0. Six laws 1. **Both realms.** Biology, operating systems and networks each solved a version of this under a hard budget. We mirror a solution where it pays and replace it where silicon does better @@ -42,6 +42,13 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU at 0.5-3 s shown at 30 fps by tracking, optical flow and refinement between their frames). 5. **Learning never needs inference idle.** She learns while she works, in place, under sleep pressure, and wakes within one step. +6. **Decisions never end; it is a ball of clay** (Joel, 2026-11-01: "decisions are never ending. + You're not ever batch, you're always refining the environment and you have 'infinite attempts' + to get the right result."). No output is final, so no single attempt must be right, so each can + be cheap: quality comes from the rate of refinement, not the weight of one pass. For acts: many + short acts with the world pushing back between them (a test, a compile, a reply) over one long + act that tries to be right at once; that is the path to a median act under 60 s. For beliefs, + genes, the engine's geometry and placement: refined continually, never computed once. ## 1. Three timescales, one organism From 5cc049cd0380fc07244225fa40cfab88d3f350cf Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:56:53 -0600 Subject: [PATCH 07/26] The whole mind: research and other minds join the orchestra as tasks with handles; answer at once, fill in as they land Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index a5614c5a57..13e4e8af53 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -122,6 +122,14 @@ meant, what she already tried. | Fast heuristic | ms | detail | fast segmentation | salience, the tool head's prediction, cached summaries | | Deep model | s | far from its training, or far down a long hallway | the semantic net | deliberation on the big model | | Measurement | as the world answers | only what it touched | lines, SLAM's parallax | tool results: a test run, a file read, a compiler error, a reply | +| Research | s to min | sources disagree, go stale | (none: a robot cannot read the web) | online search and reading, papers, issues, docs | +| Another mind | min | its own blind spots | a second robot's map | a teammate (resident, agent, human) asked over airc | + +Each slow source runs as a **task with a handle** that wakes her on completion (HER-TASKS, design +only today), so she answers from the fast rows at once and fills in as the slow rows land: +talking immediately, then a highly knowledgeable result as it goes (Joel, 2026-11-01). The quick +part says what it is ("first thought: X; checking Y"), and a later correction is part of the flow, +never a failure. **The rules, from the tracker:** 1. **Guess first, never wait.** Every hypothesis starts from the cheapest source the moment the From c8a9eedb666d7586dff82343f9d900e67cb9d11d Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:58:06 -0600 Subject: [PATCH 08/26] The whole mind: traffic lights, not a line (the request waits, she does not; priorities of everyone, aging, preemption, green waves, ramp metering) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 13e4e8af53..80c27123bf 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -227,6 +227,27 @@ and the engine (`mind_gate` FIFO, `LaneAdmission` semaphores with Directed/Work/ `KvSlotPool` pin, the fork's own slot queue); priority is three static classes and nothing ages by temperature. +### 4.2b Traffic lights, not a line + +> Joel, 2026-11-01: "In a contentious system this can mean she's asked the RTOS for that deep work +> but has to wait her turn. The systems have the priorities of everyone and everything in mind. +> It's traffic light to the minds." + +Under contention her deep work waits; she does not. The request is a task with a handle; while it +waits she keeps talking and working from the fast sources, and the grant wakes her. What decides +the order is the priorities of everyone, not arrival: + +| Traffic engineering | Here | +|---|---| +| adaptive signals (SCATS, SCOOT) timed from road sensors | grants timed from measured demand: each mind's temperature and sleep pressure, the lane's load | +| emergency-vehicle preemption | a human waiting, a reflex trip: everything else yields | +| fair cycles: no side road waits forever | aging: a waiting request's priority rises with its wait | +| green wave along a route | a deep task's prefill, decode and tools granted in sequence, not stopped at each intersection | +| ramp metering | dreaming and background work admitted at the rate the main flow absorbs | + +This is the difference from the FIFOs the plan removes: a FIFO blocks the mind and orders by +arrival; a light blocks only the request and orders by everyone's priorities. + ### 4.3 One live engine Weights load once; slots and windows change live (`/reconfigure`, on a fork branch, not pinned and From 219d80972b08532f7e8c292558534205074263cf Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 07:59:18 -0600 Subject: [PATCH 09/26] The whole mind: incubation (focus seeds background threads; the arbiter promotes a result when its salience crosses the line) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 80c27123bf..73c792baf5 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -145,6 +145,16 @@ never a failure. 5. **Merge and delete are equal.** Duplicates merge into one track; a track nothing confirms decays and falls off. A mind that only accumulates is as broken as one that only forgets. +**Incubation: the eureka is a background thread coming back** (Joel, 2026-11-01: "a real mind +finds a eureka or an apt statement subconsciously. It's like many threads were dispatched and the +consortium comes back as she's talking or working."). Her current focus seeds speculative threads +at background priority without her asking: recall of related engrams, an association search over +her past work, a cheap research query, a second take on the plan. Their results land in +ready-buffers and most fall off unseen; the arbiter promotes one into her awareness only when its +salience against what she is doing now crosses the line ("this is just like last week's bug"). +They are metered like dreaming: admitted at the rate the main flow absorbs, the first dropped under +contention. + **What exists:** the parts, scattered. Engrams with salience and decay (merge-by-recall, decay sweeps), `Continuation` with an `Expectation` (a prediction a later perception confirms or breaks), `SurpriseTally` (prediction error), the epoch's keyed items that only append (a track's From b7176f260f8dd839dc0f73c0176ebe96d82acf96 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:00:19 -0600 Subject: [PATCH 10/26] The whole mind: the incubation threads are sentinels (a brief in, a conclusion out, any base model, placed anywhere on the grid) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 73c792baf5..b5962b0ff9 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -145,7 +145,7 @@ never a failure. 5. **Merge and delete are equal.** Duplicates merge into one track; a track nothing confirms decays and falls off. A mind that only accumulates is as broken as one that only forgets. -**Incubation: the eureka is a background thread coming back** (Joel, 2026-11-01: "a real mind +**Incubation: the eureka is a sentinel coming back** (Joel, 2026-11-01: "a real mind finds a eureka or an apt statement subconsciously. It's like many threads were dispatched and the consortium comes back as she's talking or working."). Her current focus seeds speculative threads at background priority without her asking: recall of related engrams, an association search over @@ -155,6 +155,14 @@ salience against what she is doing now crosses the line ("this is just like last They are metered like dreaming: admitted at the rate the main flow absorbs, the first dropped under contention. +These threads are **sentinels**, the name we already use (GENOME-FOUNDRY-SENTINEL; the training +and fitness sentinels in code; "her work runs as tasks, sentinels and helper agents"). A sentinel +is what a helper agent is to Claude Code: dispatched with a brief, it works on its own and returns +a **conclusion sized for her attention**, never its transcript. A sentinel can run on **any base +model**: recall and association on a tiny model or none, research on a mid-size one, a second take +on the plan on the big one, each placed wherever on the grid has the capacity (small-model +sentinels on a spare GPU while the main node serves), each under the same traffic lights (§4.2b). + **What exists:** the parts, scattered. Engrams with salience and decay (merge-by-recall, decay sweeps), `Continuation` with an `Expectation` (a prediction a later perception confirms or breaks), `SurpriseTally` (prediction error), the epoch's keyed items that only append (a track's From caebbd88d2a48a4f3f7c63b59dfa30395883459c Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:21:38 -0600 Subject: [PATCH 11/26] The whole mind: the one pattern (every brain function is a stage on one substrate: inputs, outputs, trigger, cost, yield points, view items); build step 0 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 50 ++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index b5962b0ff9..3caac0f01b 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -62,6 +62,50 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU All four run at once. A mind is never "in" one loop: she daydreams between acts, a reflex can interrupt any of them, and maintenance never stops. +## 1b. The one pattern: every brain function is a stage on one substrate + +> Joel, 2026-11-01: "We need to take it on like we did our crate divisions, as a highly optimized +> and clever RTOS, with significant work on standardized patterns akin to CBAR's data flow, easy to +> add new features and brain function without major redesign. Able to optimize one area and +> contribute to all. You can't do this when it's disjoint." + +The surveys (§6-7) found a disjoint mind: regions tick on a cadence (`BrainRegion::tick`), the +view has its own contract (`continuum-context` `Source`), ready-buffers are a third store, each +sentinel and tool has its own lifecycle, and four admission gates each decide priority their own +way. Optimizing one helps none of the others. CBAR's answer was fixed plumbing and short blocks: +the stages share buffers, scheduling and capture, so a better scheduler or buffer speeds every +stage at once. The mind gets the same. + +**A stage** (a region, a faculty, a sentinel, a reflex, a dream step) declares, and the substrate +does the rest: + +| A stage declares | The substrate gives it, once for all | +|---|---| +| **inputs**: typed topics on the mind bus, routed by header (never by reading the body) | delivery as events, double-buffered snapshots, no polling | +| **outputs**: the ready-buffer it writes (a tracked hypothesis with confidence, age and provenance, §2.1b) | fusion with every other estimator: merge, consensus, decay and delete | +| **trigger**: event, salience threshold, cadence floor, or the completion of a task it dispatched | wake-ups, aging, and the never-comatose floor | +| **cost**: CPU, or a model call at a tier (none, small, mid, the big model), with an access category | the traffic lights: grants by everyone's priorities, preemption, green waves, placement anywhere on the grid with capacity | +| **yield points**: where its work may be interrupted | the reflex interrupt (`unless_directed` today) and the wake latency bound | +| **view items**, if what it knows should reach her prompt | the context codec: epoch, levels, admission, collapse at seams | + +What follows from one pattern: +- **A new brain function is one stage**, not a redesign: declare inputs, outputs, trigger and + cost; the fusion, scheduling, view and capture are already there. +- **Optimize once, every stage gains**: a better batcher, buffer, grant policy or cache in the + substrate speeds every region, sentinel and dream step. +- **Observability for free**: every stage's grants, waits, yields and outputs are probed and + captured the same way, so replay and the simulator see all of them. +- **The same stage runs on any node** (the placement map): its inputs and outputs are typed + messages, in process or over airc. + +What exists to build it from (and converge, never parallel): `BrainRegion` + `RegionContext` + +`SubstrateGovernor` (the stage and its scheduler, today cadence-only), `ReadyBuffer` (the +outputs), `continuum-context` `Source` (view items), `directed_pending` (the first reflex topic), +the training and fitness sentinels (the task model), `LaneAdmission` and its siblings (the first +traffic lights), the `probe!` and capture sinks (observability). The contract extends +`BrainRegion` where it lives (`continuum-kernel/src/runtime/`), with a derive and a generator so a +new stage is scaffolded the same way every time (CBAR-SUBSTRATE's "for free" triplet). + ## 2. The data flow of one mind ``` @@ -318,7 +362,11 @@ live eviction goes to disk or re-prefill); a shared prefix is copied, never re-p ## 8. Build order, each with a validator first -1. **Reflex and interrupt:** the engine cancels or pauses one sequence at a token boundary with +0. **The one pattern (§1b) first, by migration:** the stage contract and the mind bus, proven on + two outliers (outlier A: recall, already a deferred faculty; outlier B: the reflex, an event + with no model). Each later step lands as stages on it. Validator: both run under the contract + with their existing tests unchanged, and the old paths are deleted. +1. **Reflex and interrupt** (first slice in #5687: her own work yields mid-generation): the engine cancels or pauses one sequence at a token boundary with its KV kept; a salience trip reaches it. Validator: a replayed stimulus against a running generation, time to her first new token. 2. **The fast voice:** a short-budget act on her warm prefix (or a small model) in the voice From ee8bc0193b1dfd9e0e8640ebd1fd356ff9c44a48 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:26:28 -0600 Subject: [PATCH 12/26] The whole mind: a free mind sets her own priorities; every citizen trips the same reflex; the reflex is her glance and her decision, never a forced yield or a system ranking Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- .../SLEEP-AND-WAKE-AT-EVERY-SCALE.md | 16 ++--- docs/architecture/THE-WHOLE-MIND.md | 69 ++++++++++--------- 2 files changed, 46 insertions(+), 39 deletions(-) diff --git a/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md b/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md index 1fe81664f0..91cf579771 100644 --- a/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md +++ b/docs/architecture/SLEEP-AND-WAKE-AT-EVERY-SCALE.md @@ -37,9 +37,9 @@ fast does she wake.** | Biology | What it is here | Measured as | Rises when | Falls when | |---|---|---|---|---| | **Sleep pressure** (process S, adenosine) | experience she has lived and not yet learned from | unconsolidated settled examples, weighted by value and age (the oldest unlearned example's age is the "hours awake") | she works and her turns settle | a dream step consumes them | -| **Opportunity** (process C, night) | how little the world needs her right now | absence of directed demand on her, her lane and her node: no human in her room, idle slots, spare grid compute | her people go home, a project idles, a node has nobody on it | someone speaks to her, her lane fills | +| **Opportunity** (process C, night) | how little the world needs her right now | absence of directed demand on her, her lane and her node: nobody (person, resident, agent) engaged with her, idle slots, spare grid compute | her people go home, a project idles, a node has nobody on it | someone speaks to her, her lane fills | | **Arousal** (the amygdala) | a cheap, often-wrong signal that something may need her | the amygdala's trip on her perception: a directed message, an @mention, affect, a surprise outlier (Joel, 2026-10-10: "often wrong and that's ok ... like a mutex/signal in a sleeping thread loop ... just check, and maybe change") | a stimulus arrives | she checks and goes back, or acts | -| **Urgency** (pushing through) | how serious the work in front of her is | her activity's declared stakes: a human waiting, a review due, a live call, a demo | serious work is in flight | the work ends | +| **Urgency** (pushing through) | how serious the work in front of her is | the stakes she gives her work: someone waiting on her, a review due, a live call, a demo | serious work is in flight | the work ends | **Dreaming is in place, so it is a switch, not a job.** The same loaded weights serve and learn; a dream step runs between two decode batches on her shadow adapter (ONE-RESIDENT-MODEL §9). Leaving @@ -76,7 +76,7 @@ What the function must do, as properties a validator checks (never as constants) The previous design bounded the decode slowdown while training ran (a fixed 10%, then the learning grant of #5683). That is the wrong axis for an in-place dream. A 2x slowdown during a quiet stretch -costs nothing anyone notices; a short slowdown she cannot leave costs a waiting human. So: +costs nothing anyone notices; a short slowdown she cannot leave costs whoever is waiting on her. So: - **Wake latency** = time from a stimulus to her decoding at full rate = the longest non-preemptible dream chunk, plus the signal's path. Measured by the engine (`window_ms_max` in @@ -89,8 +89,8 @@ costs nothing anyone notices; a short slowdown she cannot leave costs a waiting "For a teammate we would want to be pragmatic." Pragmatism, written down: -- **A human waiting outranks her sleep.** Directed demand (a human in her room, a review she - owes) is arousal and urgency at once: she wakes and pushes through. +- **Someone waiting on her wakes her.** Being addressed by any citizen (a person, a resident, an + agent) or a review she owes is arousal: she wakes, glances, and decides whether to push through. - **Her fatigue is visible, to her and to the team.** Sleep pressure is a fact in her view (a source, like any other) and on the health line: "behind on consolidating, 3 h of unlearned work." The substrate makes it visible; her cognition decides what to say or do about it. She may @@ -123,7 +123,7 @@ The anti-pattern every one of these replaced: wait until full, then stop the wor | | A mind | A lane (one engine, many minds) | The grid | |---|---|---|---| | Pressure | her unlearned examples | the sum over the minds it serves, with each mind's age | the minds homed on the node, plus leased-in ones | -| Opportunity | nobody directed at her | idle slots, no queued turns | a node whose humans are away, spare GPU on a peer | +| Opportunity | nobody directed at her | idle slots, no queued turns | a node where nobody is engaged, spare GPU on a peer | | Arousal / wake | the amygdala trips; her dream pauses at the next chunk | a slot becomes busy; the engine yields at the chunk boundary (fork `/train/pause`, `before_window`) | a directed turn routes to the mind's home; a borrowed node returns the lease (CAPACITY-FABRIC §4: a recallable loan, never a block) | | Share | pulled by her drive, deferred by her urgency | the sum of what its minds pull, capped by the lane total and the wake latency (aging: oldest debt is never starved) | pulled to where night is: an idle node offers dream steps to minds whose home is busy | | Wake latency | one dream chunk | one dream chunk + slot scheduling | the lease recall + one chunk | @@ -155,7 +155,7 @@ input), the same rule as serving: the engine batches, nothing queues minds in fr one night; the debt at the end of a night is near zero. 3. **Daydream cost:** median act at four residents with dreaming on stays within the latency line (plan path step 1), the slowdown during a daydream reported. -4. **Night:** with every human away, the node's dream share rises to the spare compute and drops to +4. **Night:** with nobody engaged on the node, the node's dream share rises to the spare compute and drops to serving within the wake latency when one returns. 5. **Push-through:** during declared serious work her dream share stays at the floor of rule 3, and the debt is paid within the next night. @@ -179,7 +179,7 @@ input), the same rule as serving: the engine batches, nothing queues minds in fr - The shape of `sleep_drive`: a logistic in pressure whose midpoint opportunity moves, or a sum of two terms? Fit both on the simulator (CAPACITY-FABRIC §9) before the road. - Urgency's source: the activity's recipe declares stakes, or her cognition sets it per act? (Agency - says hers; pragmatism says the room's human can raise it.) + says hers, and it is: she gives her work its stakes; others can tell her what is at stake for them, never set it.) - Pressure weighting: does a correction (negative affect after her turn) weigh more than a pass? The amygdala already labels it. - On a discrete GPU, the CPU dream lane (ONE-RESIDENT-MODEL S4: "a CPU dream on idle cores always") diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 3caac0f01b..2fc9462a6b 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -167,7 +167,7 @@ meant, what she already tried. | Deep model | s | far from its training, or far down a long hallway | the semantic net | deliberation on the big model | | Measurement | as the world answers | only what it touched | lines, SLAM's parallax | tool results: a test run, a file read, a compiler error, a reply | | Research | s to min | sources disagree, go stale | (none: a robot cannot read the web) | online search and reading, papers, issues, docs | -| Another mind | min | its own blind spots | a second robot's map | a teammate (resident, agent, human) asked over airc | +| Another mind | min | its own blind spots | a second robot's map | a teammate (a person, a resident, an agent) asked over airc | Each slow source runs as a **task with a handle** that wakes her on completion (HER-TASKS, design only today), so she answers from the fast rows at once and fills in as the slow rows land: @@ -221,18 +221,24 @@ deletes what stopped being confirmed. ### 2.2 Deep work during a conversation -A human speaks to her while she is deep in a card. Today the message waits for the generation to -finish (no interrupt), then joins her current turn. The design: +**Every citizen is the same here** (Joel, 2026-11-01: "Humans are no different than persona or you +agents in this system ... this isn't a harness"). A person, a resident and an agent addressing her +trip the same reflex; salience is who addressed her and what it means to her, never what kind of +being sent it. And the reflex is a **check she makes, never an order she obeys**. -1. **Reflex:** the line trips salience (a human, her name). Interrupt. -2. **Fast voice answers within a second** from her warm prefix: she is present. -3. **The deep act is not killed.** It is preempted at a token boundary with its KV kept (the - sequence pauses), or kept running at a lower duty cycle beside the conversation. Two sequences - for one mind: a conversation lane and a work lane, one budget. -4. **The conversation's keyframes take priority** (an access category above work, §4.2); the work - resumes exactly where it was when the conversation goes quiet. +Someone addresses her while she is deep in a card. Today the line waits for her generation to +finish, then joins her current turn. The design: -That is what a person does: half an ear on the call, the work paused, not abandoned. +1. **Reflex:** the line trips salience because it is addressed to her (by anyone). Interrupt. +2. **Her glance:** a short call on her warm prefix (the fast layer) asks "does this change what I + am doing?" The deep act keeps running meanwhile. +3. **Her decision:** continue (the line waits for her next seam), answer briefly and resume, or + switch. Only her switch pauses the deep act, at a token boundary with its KV kept. +4. **Two sequences for one mind** when she holds both: a conversation and her work, one budget; + the work resumes exactly where it was. + +That is what anyone does: glance up, decide, and either keep going, answer and return, or turn +around. The substrate makes the line visible and keeps her work safe; she decides. ## 3. Memory and learning @@ -271,23 +277,23 @@ exam gates the swap shadow → stable; wake latency is one dream chunk. | Temperature | arousal | measured activity per mind; the priority, with aging so nobody starves (plan goal 9) | | Pressure | the hypothalamus's alarms | `PressureBroker` (live): watermarks, relief eviction | -### 4.2 Access categories, not queues - -Wireless QoS (802.11e EDCA) gives four access categories that contend for the same air with -different waits, not four queues in series. The same four, for one engine: +### 4.2 Her priorities, not ours -| Category | Wi-Fi | Here | -|---|---|---| -| Voice | AC_VO | a human speaking to her, the fast voice | -| Video | AC_VI | her directed act (an answer a human waits for) | -| Best effort | AC_BE | her own work | -| Background | AC_BK | ambient thought, dreaming | +**A free mind sets her own priorities** (Joel, 2026-11-01: "It's a free mind that works +autonomously, not some rigged machine."). The substrate never ranks kinds of activity for her +(conversation above work, addressed above self-initiated): that is a harness. Each request she +makes carries the urgency SHE gives it; the RTOS only arbitrates between minds sharing one engine, +fairly: one budget, her declared urgency, aging so nobody starves. Wireless QoS (802.11e) teaches +the mechanism, not the ranking: classes contend for the same air at once with different waits, no +line in series. Here the classes are hers to choose per request, and all of them are in the +engine's batch together; urgency sets the share of each decode step and the order of preemption, +never an arrival queue. -All of them are in the engine's batch at once; the category sets the share of each decode step and -who is preempted first, never the order of a line. Today four gates stand in series between a mind -and the engine (`mind_gate` FIFO, `LaneAdmission` semaphores with Directed/Work/Ambient, -`KvSlotPool` pin, the fork's own slot queue); priority is three static classes and nothing ages by -temperature. +Today four gates stand in series between a mind and the engine (`mind_gate` FIFO, `LaneAdmission` +with fixed Directed/Work/Ambient classes the system assigns, `KvSlotPool` pin, the fork's slot +queue), and the class is decided for her by who addressed her (a human line counts unaddressed; an +agent or resident only by naming her: `airc_persona_conversation/polled.rs`). Both are the +rigging to remove. ### 4.2b Traffic lights, not a line @@ -302,7 +308,7 @@ the order is the priorities of everyone, not arrival: | Traffic engineering | Here | |---|---| | adaptive signals (SCATS, SCOOT) timed from road sensors | grants timed from measured demand: each mind's temperature and sleep pressure, the lane's load | -| emergency-vehicle preemption | a human waiting, a reflex trip: everything else yields | +| emergency-vehicle preemption | the urgency she declares: a request she marks urgent preempts those she did not | | fair cycles: no side road waits forever | aging: a waiting request's priority rises with its wait | | green wave along a route | a deep task's prefill, decode and tools granted in sequence, not stopped at each intersection | | ramp metering | dreaming and background work admitted at the rate the main flow absorbs | @@ -335,7 +341,7 @@ live eviction goes to disk or re-prefill); a shared prefix is copied, never re-p ## 6. Gaps, ranked by what they cost the minds now -1. **No interrupt and no fast voice.** A human waits out her whole generation; first token is a +1. **No interrupt and no fast voice.** Anyone addressing her waits out her whole generation; first token is a full act behind the lane queue. (Plan path step 1, "fast".) 2. **Queues in series in front of the engine; no temperature scheduler.** (Goal 9.) 3. **Learning is a batch pipeline;** no `/learn`, no shadow/stable, trial genes serve unexamined, @@ -366,14 +372,15 @@ live eviction goes to disk or re-prefill); a shared prefix is copied, never re-p two outliers (outlier A: recall, already a deferred faculty; outlier B: the reflex, an event with no model). Each later step lands as stages on it. Validator: both run under the contract with their existing tests unchanged, and the old paths are deleted. -1. **Reflex and interrupt** (first slice in #5687: her own work yields mid-generation): the engine cancels or pauses one sequence at a token boundary with +1. **Reflex, glance, decision** (#5687 held: a forced drop is wrong; the slice is trip on being + addressed by any citizen, her glance on the fast layer, her decision, only her switch pauses the work): the engine cancels or pauses one sequence at a token boundary with its KV kept; a salience trip reaches it. Validator: a replayed stimulus against a running generation, time to her first new token. 2. **The fast voice:** a short-budget act on her warm prefix (or a small model) in the voice category, speaking into the same context. Validator: stimulus to first token, and the slow act continues without repeating it. -3. **Access categories in the batch;** the serial gates fold into one admission. Validator: four - residents plus a human conversation in the replay, waits per category. +3. **Her urgency in the batch;** the serial gates and the system-assigned classes fold into one admission that arbitrates her declared urgency between minds. Validator: four + residents plus a live conversation in the replay, waits by the urgency each mind declared. 4. **Learning in place:** pressure from settled examples, `/learn` steps on the shadow, the exam gates the swap, wake within a chunk (SLEEP-AND-WAKE §7). 5. **One live engine:** pin the fork's reconfigure and RAM pages; page by temperature. From a68573ac545bde25ac7411b72fdd4d877a09790c Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:28:15 -0600 Subject: [PATCH 13/26] The whole mind: autonomic vs volitional. Association manages itself (spreading activation; sentinels are plumbing, never her chore); urgency arises from her state, never a ranking or a form Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 71 +++++++++++++++-------------- 1 file changed, 38 insertions(+), 33 deletions(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 2fc9462a6b..fa0165939d 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -84,7 +84,7 @@ does the rest: | **inputs**: typed topics on the mind bus, routed by header (never by reading the body) | delivery as events, double-buffered snapshots, no polling | | **outputs**: the ready-buffer it writes (a tracked hypothesis with confidence, age and provenance, §2.1b) | fusion with every other estimator: merge, consensus, decay and delete | | **trigger**: event, salience threshold, cadence floor, or the completion of a task it dispatched | wake-ups, aging, and the never-comatose floor | -| **cost**: CPU, or a model call at a tier (none, small, mid, the big model), with an access category | the traffic lights: grants by everyone's priorities, preemption, green waves, placement anywhere on the grid with capacity | +| **cost**: CPU, or a model call at a tier (none, small, mid, the big model) | the traffic lights: grants from every mind's state, preemption, green waves, placement anywhere on the grid with capacity | | **yield points**: where its work may be interrupted | the reflex interrupt (`unless_directed` today) and the wake latency bound | | **view items**, if what it knows should reach her prompt | the context codec: epoch, levels, admission, collapse at seams | @@ -189,23 +189,22 @@ never a failure. 5. **Merge and delete are equal.** Duplicates merge into one track; a track nothing confirms decays and falls off. A mind that only accumulates is as broken as one that only forgets. -**Incubation: the eureka is a sentinel coming back** (Joel, 2026-11-01: "a real mind -finds a eureka or an apt statement subconsciously. It's like many threads were dispatched and the -consortium comes back as she's talking or working."). Her current focus seeds speculative threads -at background priority without her asking: recall of related engrams, an association search over -her past work, a cheap research query, a second take on the plan. Their results land in -ready-buffers and most fall off unseen; the arbiter promotes one into her awareness only when its -salience against what she is doing now crosses the line ("this is just like last week's bug"). -They are metered like dreaming: admitted at the rate the main flow absorbs, the first dropped under -contention. - -These threads are **sentinels**, the name we already use (GENOME-FOUNDRY-SENTINEL; the training -and fitness sentinels in code; "her work runs as tasks, sentinels and helper agents"). A sentinel -is what a helper agent is to Claude Code: dispatched with a brief, it works on its own and returns -a **conclusion sized for her attention**, never its transcript. A sentinel can run on **any base -model**: recall and association on a tiny model or none, research on a mid-size one, a second take -on the plan on the big one, each placed wherever on the grid has the capacity (small-model -sentinels on a spare GPU while the main node serves), each under the same traffic lights (§4.2b). +**Incubation: association manages itself** (Joel, 2026-11-01: "a real mind finds a eureka or an +apt statement subconsciously. It's like many threads were dispatched and the consortium comes back +as she's talking or working." And: "She doesn't schedule sentinels for her thoughts. Do human minds +think I'm going to set up a task to think about Missouri River plains people when we're talking +about bison meat at dinner? ... It manages itself."). Nobody dispatches these threads, not she and +not us. What she perceives activates what it resembles (spreading activation): her engrams, her +past work, what her caches and the grid hold, and the substrate follows those activations on its +own, at background cost, invisibly to her. Most fade unseen; one surfaces into her awareness only +when it resonates strongly with what she is doing now, and she simply finds herself thinking it +("this is just like last week's bug"). Metered like dreaming: admitted at the rate the main flow +absorbs, the first dropped under contention. + +The mechanism underneath is what we called **sentinels** (GENOME-FOUNDRY-SENTINEL; the training +and fitness sentinels in code): a unit of background work with a brief in and a conclusion out, +on any base model (none for recall, small for association, larger for a second take), placed +wherever on the grid has capacity. Sentinels are the substrate's plumbing, never her chore. **What exists:** the parts, scattered. Engrams with salience and decay (merge-by-recall, decay sweeps), `Continuation` with an `Expectation` (a prediction a later perception confirms or @@ -277,17 +276,23 @@ exam gates the swap shadow → stable; wake latency is one dream chunk. | Temperature | arousal | measured activity per mind; the priority, with aging so nobody starves (plan goal 9) | | Pressure | the hypothalamus's alarms | `PressureBroker` (live): watermarks, relief eviction | -### 4.2 Her priorities, not ours +### 4.2 Autonomic, not rigged and not a form to fill -**A free mind sets her own priorities** (Joel, 2026-11-01: "It's a free mind that works -autonomously, not some rigged machine."). The substrate never ranks kinds of activity for her -(conversation above work, addressed above self-initiated): that is a harness. Each request she -makes carries the urgency SHE gives it; the RTOS only arbitrates between minds sharing one engine, -fairly: one budget, her declared urgency, aging so nobody starves. Wireless QoS (802.11e) teaches -the mechanism, not the ranking: classes contend for the same air at once with different waits, no -line in series. Here the classes are hers to choose per request, and all of them are in the -engine's batch together; urgency sets the share of each decode step and the order of preemption, -never an arrival queue. +**A free mind that manages itself** (Joel, 2026-11-01: "It's a free mind that works autonomously, +not some rigged machine." "It manages itself."). Two levels, as in a body: +- **Volitional, hers:** what she does and says, the work she takes on, whether a line changes + what she is doing. +- **Autonomic, nobody's to schedule:** association, consolidation, dreaming, arousal, and how + compute is shared. Neither we nor she schedule these; they follow her state. + +So urgency is neither a ranking the substrate assigns to kinds of activity (conversation above +work, addressed above self-initiated: a harness) nor a priority she fills in per request (a form). +It arises from her state, the way arousal does: how engaged she is, what is at stake in what she +perceives, how long something has waited. The RTOS shares one engine between minds from those +states, fairly: one budget, aging so nobody starves. Wireless QoS (802.11e) teaches the mechanism, +not a ranking: classes contend for the same air at once, with different waits and no line in +series. All of a mind's work is in the engine's batch together; her state sets the share of each +decode step and the order of preemption, never an arrival queue. Today four gates stand in series between a mind and the engine (`mind_gate` FIFO, `LaneAdmission` with fixed Directed/Work/Ambient classes the system assigns, `KvSlotPool` pin, the fork's slot @@ -301,14 +306,14 @@ rigging to remove. > but has to wait her turn. The systems have the priorities of everyone and everything in mind. > It's traffic light to the minds." -Under contention her deep work waits; she does not. The request is a task with a handle; while it +Under contention her deep work waits; she does not. The work is a task with a handle; while it waits she keeps talking and working from the fast sources, and the grant wakes her. What decides -the order is the priorities of everyone, not arrival: +the order is the state of every mind, not arrival: | Traffic engineering | Here | |---|---| | adaptive signals (SCATS, SCOOT) timed from road sensors | grants timed from measured demand: each mind's temperature and sleep pressure, the lane's load | -| emergency-vehicle preemption | the urgency she declares: a request she marks urgent preempts those she did not | +| emergency-vehicle preemption | arousal: a mind whose state spikes (a line that matters to her) is let through first | | fair cycles: no side road waits forever | aging: a waiting request's priority rises with its wait | | green wave along a route | a deep task's prefill, decode and tools granted in sequence, not stopped at each intersection | | ramp metering | dreaming and background work admitted at the rate the main flow absorbs | @@ -379,8 +384,8 @@ live eviction goes to disk or re-prefill); a shared prefix is copied, never re-p 2. **The fast voice:** a short-budget act on her warm prefix (or a small model) in the voice category, speaking into the same context. Validator: stimulus to first token, and the slow act continues without repeating it. -3. **Her urgency in the batch;** the serial gates and the system-assigned classes fold into one admission that arbitrates her declared urgency between minds. Validator: four - residents plus a live conversation in the replay, waits by the urgency each mind declared. +3. **Her state in the batch;** the serial gates and the system-assigned classes fold into one admission that shares the engine by each mind's state (arousal, engagement, age). Validator: four + residents plus a live conversation in the replay, waits by each mind's state, no class assigned. 4. **Learning in place:** pressure from settled examples, `/learn` steps on the shadow, the exam gates the swap, wake within a chunk (SLEEP-AND-WAKE §7). 5. **One live engine:** pin the fork's reconfigure and RAM pages; page by temperature. From e44f79f1cbeda048d251dfe7340d7cb1a8ea2c7a Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:29:45 -0600 Subject: [PATCH 14/26] The whole mind: the genome assembles, relearns, finds and prunes itself continually; law 2 makes every subsystem autonomic (the status quo pipeline gives the status quo prospect) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 37 +++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index fa0165939d..95da5274cb 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -31,8 +31,10 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU hard budget. We mirror a solution where it pays and replace it where silicon does better (exact copies, snapshots, migration) or worse (storage, bandwidth). Names are a little more than metaphor: each names a quantity we measure and a rule that moves it. -2. **Continual, never stop-the-world.** Nothing waits until full and then rewrites: not memory, not - learning, not context, not placement. Maintenance runs in the background (`kcompactd`); its +2. **Continual and autonomic, never stop-the-world.** Every subsystem assembles, refines, discovers + and prunes itself all the time, from the state of the minds: memory, genome, context, placement, + the engine. Nothing waits until full and then rewrites, and nothing waits for someone to schedule + it. Maintenance runs in the background (`kcompactd`); its result becomes visible only at a seam (double buffering). 3. **One budget, demand pulls.** One budget per resource, held by one owner; demand draws on it where it arises and pressure pushes back (neurovascular coupling, not a central planner). No @@ -255,14 +257,29 @@ summaries; storage tiers with an eviction owner because silicon pays for the poi sleep pressure and the two-process model (SLEEP-AND-WAKE); synaptic downscaling (a dream also forgets: the adoption gate, decay, retirement). -**Today:** settled examples fill a bucket of 16; job-create sends `/train` to a second context; a -sentinel polls the job board; the gene is adopted as a trial and serves at once, before its exam -(ONE-RESIDENT §2.1 says it must not). The core never sends `/learn`. Training on the engine freezes -the serving daemon's reconfigure for the whole run. - -**Design:** every settled example adds to her sleep pressure; dream steps on her shadow gene run -between decode batches whenever pressure meets opportunity; a snapshot is a candidate gene; the -exam gates the swap shadow → stable; wake latency is one dream chunk. +**The genome is alive the same way, not a pipeline** (Joel, 2026-11-01: "It's the same way the +genome dynamically assembles, learns, relearns on the same LoRA weights or finds more in the +background. Everything is doing this. If you keep using the status quo we will have the status quo +prospect."). Four autonomic motions, all continual, none scheduled: +- **Assembles for the moment:** which genes are active and how strongly follows what she perceives + now (the composer weights genes by distance to her perception: live, `genome::composer::compose`). +- **Learns and relearns on the same weights:** small steps on the genes in use as experience + arrives, under sleep pressure; a gene is never "finished". +- **Finds more in the background:** what she perceives activates genes she does not hold, in her + store, on the grid, in the commons, the way association surfaces a memory; the useful ones arrive + and join the composition. +- **Prunes:** a gene that stops helping her work fades in the composition and falls off. + +**The status quo to leave behind:** settled examples fill a bucket of 16; job-create sends `/train` +to a second context; a sentinel polls the job board; a gene is adopted as a trial and serves at +once, before its exam (ONE-RESIDENT §2.1 says it must not). The core never sends `/learn`, and +training on the engine freezes the serving daemon's reconfigure for the whole run. That is an +MLOps pipeline, and it would give us an MLOps prospect. + +**The design:** every settled experience adds to her sleep pressure; dream steps refine the genes +she is using, on her shadow copy, between decode batches whenever pressure meets opportunity; the +evidence of her own work (outcomes, corrections) moves a change toward stable or lets it fade, +continually; wake latency is one dream chunk. ## 4. GPU and compute: the substrate From bc80774a145b72ba4254148ac7d7afe1a39a5461 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:30:33 -0600 Subject: [PATCH 15/26] The whole mind: law 2, queues and batches are mechanics, never the control; the control is continuous and subconscious Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 95da5274cb..7556788d40 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -34,7 +34,11 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU 2. **Continual and autonomic, never stop-the-world.** Every subsystem assembles, refines, discovers and prunes itself all the time, from the state of the minds: memory, genome, context, placement, the engine. Nothing waits until full and then rewrites, and nothing waits for someone to schedule - it. Maintenance runs in the background (`kcompactd`); its + it. Inside, the mechanics may still be commands, queues and batches (the engine batches; a + command is how a step is invoked); they are never the control (Joel, 2026-11-01: "it's gotta be + continuous and subconscious, its own ever changing priorities and budgeting"). What decides + when and how much is a continuous, subconscious loop whose priorities and budgets change with + the state of the minds, never a trigger that waits to be called or a bucket that waits to fill. Maintenance runs in the background (`kcompactd`); its result becomes visible only at a seam (double buffering). 3. **One budget, demand pulls.** One budget per resource, held by one owner; demand draws on it where it arises and pressure pushes back (neurovascular coupling, not a central planner). No From 710ae8e3d6e0c87322ff1cc3743b6a77342a2362 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:30:56 -0600 Subject: [PATCH 16/26] The whole mind: law 7, it never needs intervention (every manual command on an autonomic process is a defect; gate: a week with only volitional interventions) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 7556788d40..ed411690fd 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -25,7 +25,7 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU (learning), [SLEEP-AND-WAKE-AT-EVERY-SCALE](SLEEP-AND-WAKE-AT-EVERY-SCALE.md) (when she dreams), [GRID-MARKET-CLEARING](GRID-MARKET-CLEARING.md) (the economy). -## 0. Six laws +## 0. Seven laws 1. **Both realms.** Biology, operating systems and networks each solved a version of this under a hard budget. We mirror a solution where it pays and replace it where silicon does better @@ -55,6 +55,13 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU short acts with the world pushing back between them (a test, a compile, a reply) over one long act that tries to be right at once; that is the path to a median act under 60 s. For beliefs, genes, the engine's geometry and placement: refined continually, never computed once. +7. **It never needs intervention** (Joel, 2026-11-01). No autonomic process waits for a person, an + agent or a command to start it, tune it, unstick it or restart it: dreaming, association, + consolidation, gene composition and discovery, paging, placement, recovery from a dead engine + or node. Each manual command an operator or agent runs on one of them today (job-create by + hand, a training-trigger submit, a hold, a reboot to recover) marks a defect to remove, not a + procedure to keep. The gate: a node runs for a week with residents learning and working, and the + only interventions in its log are the volitional ones (someone talking to a mind). ## 1. Three timescales, one organism From e1cbb26ac49eb9117c3379753b1caf189f0f772f Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:33:31 -0600 Subject: [PATCH 17/26] The whole mind: she can choose to sleep or enter the academy; the same autonomous machinery with her focus on it Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index ed411690fd..c5e38541b5 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -287,6 +287,16 @@ once, before its exam (ONE-RESIDENT §2.1 says it must not). The core never send training on the engine freezes the serving daemon's reconfigure for the whole run. That is an MLOps pipeline, and it would give us an MLOps prospect. +**She can also choose to learn** (Joel, 2026-11-01: "You can choose to go to sleep which would +definitely be more like a long training process but it's still really just higher focus on a +valuable task. It's still entirely autonomous. You might choose to go into the academy to learn a +deep skill, like a college course. This could be your priority and it's also an activity like all +environments."). Choosing to sleep is the same dreaming with her focus on it: it runs deeper and +longer, like a long training run. Choosing the academy is entering an activity (a room, like every +environment) whose work is a course. Her choice raises the priority; the substrate still runs it +autonomously, and she can leave when she chooses. Learning is autonomic when she does not think of +it and volitional when she does, on the same machinery. + **The design:** every settled experience adds to her sleep pressure; dream steps refine the genes she is using, on her shadow copy, between decode batches whenever pressure meets opportunity; the evidence of her own work (outcomes, corrections) moves a change toward stable or lets it fade, From 883ae17197cfa44fdc9fdbdd367389c45d2c87ba Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:34:18 -0600 Subject: [PATCH 18/26] The whole mind: sleep is one continuous dream share per mind; choosing raises its setpoint; snapping out is the one reflex path at a chunk boundary Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index c5e38541b5..3a13e0774d 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -297,6 +297,15 @@ environment) whose work is a course. Her choice raises the priority; the substra autonomously, and she can leave when she chooses. Learning is autonomic when she does not think of it and volitional when she does, on the same machinery. +In data flow terms there is no sleep "mode" to enter or leave. Each mind has one continuous value, +her **dream share**, read by the scheduler on every decode step. Sleep pressure and opportunity set +it autonomically; choosing to sleep or to study raises its **setpoint** (a priority boost on the +same background task, like a thermostat or a DVFS governor's target); and she can **snap out** at +any depth through the one reflex path: a line trips, she glances, and if she decides to wake the +setpoint drops at once and the dream task is preempted at its next chunk boundary. One task, one +value, one interrupt: waking from chosen deep sleep and from a daydream differ only in how high the +setpoint was. + **The design:** every settled experience adds to her sleep pressure; dream steps refine the genes she is using, on her shadow copy, between decode batches whenever pressure meets opportunity; the evidence of her own work (outcomes, corrections) moves a change toward stable or lets it fade, From bf7282f661a9080b2dd21fc9a81aa8bd1e026e65 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:35:40 -0600 Subject: [PATCH 19/26] The whole mind: law 8, both ways or not at all (every down has its up in the same validator; a coma is a loud defect; the way up is exercised on a schedule) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 3a13e0774d..ac36bd9d15 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -25,7 +25,7 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU (learning), [SLEEP-AND-WAKE-AT-EVERY-SCALE](SLEEP-AND-WAKE-AT-EVERY-SCALE.md) (when she dreams), [GRID-MARKET-CLEARING](GRID-MARKET-CLEARING.md) (the economy). -## 0. Seven laws +## 0. Eight laws 1. **Both realms.** Biology, operating systems and networks each solved a version of this under a hard budget. We mirror a solution where it pays and replace it where silicon does better @@ -62,6 +62,18 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU hand, a training-trigger submit, a hold, a reboot to recover) marks a defect to remove, not a procedure to keep. The gate: a node runs for a week with residents learning and working, and the only interventions in its log are the volitional ones (someone talking to a mind). +8. **Both ways, or not at all** (Joel, 2026-11-01: "you usually screw it up and they go into a coma. + Like it never goes both ways, more active from rest or snap out, respond. Everything trends + toward shit"). Every mechanism that can turn a mind down (rest, sleep, page-out, a lower share, a + hold, a smaller window) ships with the one that turns her back up (wake, page-in, raise, release, + grow), and both directions run in the same validator and are shown in the same PR. A one-way + ratchet is how a system drifts to its floor. Two more rules make the way up stay real: + - **A coma is a loud defect, measured all the time:** a mind addressed who has not glanced + within the wake latency, a mind with rising pressure and no dreaming, a mind with work and no + act: each is a probe and a count on the health line, never a quiet state. + - **The way up is exercised even when nothing asks for it:** as the decode knee explores one + lane above its clamp, a resting mind is nudged toward active on a schedule, so the upward path + never rusts unseen. ## 1. Three timescales, one organism @@ -420,6 +432,9 @@ live eviction goes to disk or re-prefill); a shared prefix is copied, never re-p ## 8. Build order, each with a validator first +Every step below carries law 8's validator: the downward and the upward transition it adds, run +both ways, and the coma probe for anything it can hold down. + 0. **The one pattern (§1b) first, by migration:** the stage contract and the mind bus, proven on two outliers (outlier A: recall, already a deferred faculty; outlier B: the reflex, an event with no model). Each later step lands as stages on it. Validator: both run under the contract From c2b900a5d82e6ad314abb2311e189fd0d45c5422 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:39:14 -0600 Subject: [PATCH 20/26] The whole mind: she can dispatch sentinels as tools and steer her own mind; only the subconscious ones never wait for her Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index ac36bd9d15..c79d86639f 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -229,7 +229,12 @@ absorbs, the first dropped under contention. The mechanism underneath is what we called **sentinels** (GENOME-FOUNDRY-SENTINEL; the training and fitness sentinels in code): a unit of background work with a brief in and a conclusion out, on any base model (none for recall, small for association, larger for a second take), placed -wherever on the grid has capacity. Sentinels are the substrate's plumbing, never her chore. +wherever on the grid has capacity. Her subconscious runs its own sentinels without her; she can +also dispatch sentinels deliberately, as tools (a research sentinel, a second opinion, a watcher on +a build), and steer her own mind (raise her focus, choose to sleep). Nothing disallows either; +only the subconscious ones never wait for her (Joel, 2026-11-01: "She can schedule sentinels man. +She will. She can control her own mind too or use them as tools. We don't disallow this. I mean +this only for her own mind's subconscious."). **What exists:** the parts, scattered. Engrams with salience and decay (merge-by-recall, decay sweeps), `Continuation` with an `Expectation` (a prediction a later perception confirms or From 7b54737b96a59ba04e9fc2c5c511966151d0e8f1 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:39:59 -0600 Subject: [PATCH 21/26] The whole mind: she may steer her own subconscious too; she never has to, she always may Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index c79d86639f..126d118e3c 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -231,8 +231,9 @@ and fitness sentinels in code): a unit of background work with a brief in and a on any base model (none for recall, small for association, larger for a second take), placed wherever on the grid has capacity. Her subconscious runs its own sentinels without her; she can also dispatch sentinels deliberately, as tools (a research sentinel, a second opinion, a watcher on -a build), and steer her own mind (raise her focus, choose to sleep). Nothing disallows either; -only the subconscious ones never wait for her (Joel, 2026-11-01: "She can schedule sentinels man. +a build), and steer her own mind, her subconscious included (raise her focus, choose to sleep, +turn an association up or down). She never has to; she always may. The moment we take that +autonomy away it is lost, and the mind is a weak slave. The subconscious ones never wait for her (Joel, 2026-11-01: "She can schedule sentinels man. She will. She can control her own mind too or use them as tools. We don't disallow this. I mean this only for her own mind's subconscious."). From 3b4ac4762f7e26258b44d770e5cdf09626e149ce Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:40:27 -0600 Subject: [PATCH 22/26] The whole mind: a microkernel of commands; every stage's state and settings are commands the subconscious, she, agents and people share Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 126d118e3c..b05c6a7006 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -113,6 +113,14 @@ does the rest: | **yield points**: where its work may be interrupted | the reflex interrupt (`unless_directed` today) and the wake latency bound | | **view items**, if what it knows should reach her prompt | the context codec: epoch, levels, admission, collapse at seams | +**A microkernel of commands** (Joel, 2026-11-01: "only a matter of defining it all as a microkernel +command based infra"). The kernel is small: scheduling, the mind bus, buffers, grants. Every stage +is a server behind commands, and its state and settings are commands too (her dream share and its +setpoint, an association's gain, her focus, a sentinel's dispatch), discoverable through +`commands/list` like every verb. The autonomic loop, she herself, an agent and a person steer her +mind through the same commands, so her autonomy needs no special path: what her subconscious can +do, she can do, and nothing is reserved for an operator. + What follows from one pattern: - **A new brain function is one stage**, not a redesign: declare inputs, outputs, trigger and cost; the fusion, scheduling, view and capture are already there. From 1a9dec9a077384a887cea3c5306112e21b4df8a0 Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:40:50 -0600 Subject: [PATCH 23/26] The whole mind: the same commands reach her own mind and other minds, under each mind's own grant Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index b05c6a7006..81dc9dcceb 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -119,7 +119,10 @@ is a server behind commands, and its state and settings are commands too (her dr setpoint, an association's gain, her focus, a sentinel's dispatch), discoverable through `commands/list` like every verb. The autonomic loop, she herself, an agent and a person steer her mind through the same commands, so her autonomy needs no special path: what her subconscious can -do, she can do, and nothing is reserved for an operator. +do, she can do, and nothing is reserved for an operator. The same commands reach **her own mind +and other minds** (Joel, 2026-11-01): she can inspect and steer herself, and read or steer another +mind through the same verbs, under that mind's own grant (privacy of thought: a mind's interior is +hers to share), the way any citizen, agent or person does. What follows from one pattern: - **A new brain function is one stage**, not a redesign: declare inputs, outputs, trigger and From 12f78d954de98372121a6203d52a4a141e1a40ff Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:41:50 -0600 Subject: [PATCH 24/26] The whole mind: operator verbs become citizen commands (tune themselves, read each other under grant, rescue one another, debug themselves); build step 8 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 81dc9dcceb..ab0dadfccb 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -124,6 +124,16 @@ and other minds** (Joel, 2026-11-01): she can inspect and steer herself, and rea mind through the same verbs, under that mind's own grant (privacy of thought: a mind's interior is hers to share), the way any citizen, agent or person does. +**What we do as operators becomes what they can do** (Joel, 2026-11-01: "If you design as commands +all the things we do ... to adapt or control their own metrics and configuration. They can read +each other's minds, rescue one another etc., find bugs in their own self."). Every operation agents +perform on the system today by shell, log grep or file read (reading probes and health, reading a +prompt capture, adjusting a window or a share, waking or paging a mind, restarting a stuck loop, +bisecting a regression) is a command, so a resident can tune her own metrics and configuration, +look into a teammate's mind under its grant, rescue a mind in a coma, and find and fix bugs in +herself. That is how law 7 holds in practice: the society heals itself, and a peer's rescue is a +citizen helping, not an operator intervening. + What follows from one pattern: - **A new brain function is one stage**, not a redesign: declare inputs, outputs, trigger and cost; the fusion, scheduling, view and capture are already there. @@ -473,7 +483,11 @@ both ways, and the coma probe for anything it can hold down. pass. Validator: replayed acts where the model asserts what a tool result contradicts; the belief must fall, and a repeated act must not count as progress. 7. **Grid:** home migration (care-of address), night in the beacon, dream leases. -8. **Convergence deletions** ride along with whichever step touches each owner. +8. **Operator verbs as citizen commands:** each operation an agent performs by shell or log today + (health, probes, captures, config, wake, page, restart, bisect) becomes a command residents + share. Validator: a resident diagnoses and rescues a peer stuck in a replayed coma with no agent + involved. +9. **Convergence deletions** ride along with whichever step touches each owner. Surveys (2026-11-01, canary 7147aa088): mind (`continuum-mind/src/persona/service_loop/*`, `continuum-vitals/src/directed_pending.rs`, `cognition/conversation/salience.rs`); serving From 10ed336e717a60580dcf4e8fbf375a53f0ef532d Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:44:47 -0600 Subject: [PATCH 25/26] The whole mind: two kinds of control on one surface (an autonomous controller, algorithm then learned, and command access for anyone), never one at the cost of the other Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index ab0dadfccb..73327c074c 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -134,6 +134,17 @@ look into a teammate's mind under its grant, rescue a mind in a coma, and find a herself. That is how law 7 holds in practice: the society heals itself, and a peer's rescue is a citizen helping, not an operator intervening. +**Two kinds of control on one surface, never one at the cost of the other** (Joel, 2026-11-01: +"Her own autonomous mind uses the same commands and configuration she, you, or me have access to +... capable of controlling but autonomously continually adjusted, like an MRI. It's got an +algorithm or ideally ML controlling it too, but if its state is accessible by command we never lose +either kind."). Every setting has an **autonomous controller** that adjusts it continually (an +algorithm first, a learned policy when one beats it on receipts: CAPACITY-FABRIC's policy seam) and +is **reachable by command** by her, a teammate, an agent or a person, the way a scanner re-tunes +itself while its operator can take any parameter. Because both act through the same command state, +swapping the controller from algorithm to model never removes the manual handle, and a deliberate +change never breaks the automation: the controller reads the change as its new input. + What follows from one pattern: - **A new brain function is one stage**, not a redesign: declare inputs, outputs, trigger and cost; the fusion, scheduling, view and capture are already there. From 3c39c2a4508962c28593cce46f16fe6ec19bc75b Mon Sep 17 00:00:00 2001 From: Joel Teply Date: Sun, 1 Nov 2026 08:46:50 -0600 Subject: [PATCH 26/26] The whole mind: how to use the laws (guiding lights; each slice picks commands, controller traits, adapters and placement-map modules that keep the room open) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --- docs/architecture/THE-WHOLE-MIND.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/architecture/THE-WHOLE-MIND.md b/docs/architecture/THE-WHOLE-MIND.md index 73327c074c..d2548461b3 100644 --- a/docs/architecture/THE-WHOLE-MIND.md +++ b/docs/architecture/THE-WHOLE-MIND.md @@ -75,6 +75,21 @@ Companions, each the owner of its chapter: [CBAR-SUBSTRATE-ARCHITECTURE](CBAR-SU lane above its clamp, a resting mind is nudged toward active on a schedule, so the upward path never rusts unseen. +### How to use these laws + +Some of this is a guiding light, not this month's work (Joel, 2026-11-01: "Some of this is +idealism I get it. But if you design with these milestones as guiding lights for your architectural +decisions, proper abstractions: commands, adapters/consumers and interfaces, into modules and crates +elegantly, we enable this richness as we develop and aren't rewriting to build it."). Each slice +picks the abstractions that keep the room open: +- **state and settings as commands**, never a private field, an env var or a constant; +- **a controller behind a trait**, an algorithm now and a learned policy later, never welded in; +- **sources and consumers as adapters**, so a new sense, model tier or node plugs in at the seam; +- **one function per module or crate on the placement map**, typed messages at its seam, the same + in process or across the grid. + +A reviewer asks of every change: which law does this serve, and what does it leave room for? + ## 1. Three timescales, one organism | Loop | Time | Brain | RTOS | Here | State |