Skip to content

SAGE base classes: Owner, always-on timing and sage/profile, off-worker work, intakes from declared windows; disk relief's 24 s stall fixed - #6234

Merged
joelteply merged 30 commits into
canaryfrom
fable/slice-governor
Nov 23, 2026
Merged

joelteply merged 30 commits into
canaryfrom
fable/slice-governor

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Stacked on #6213 (merge that first; this PR then retargets to canary). It moves the substrate's base classes so every component gets what each used to hand-build, which serves plan line 1, Fast: no component holds another back, and every part's time is measured.

What the base now does for every component

  • The lane (slice/): stride shares by folded need, an EDF deadline guard, an extremum-seeking tuner on throughput, and trace, replay and a simulator.
  • Owner (component/owner.rs): one place a node or mind starts its parts; its drop stops them. It folds its parts' published need (need()), rests them all (rest()), and hands out a Profiler. Disk relief starts from the node's owner at boot; a resident is her identity, her handle and one Owner on her own bus.
  • Always-on timing: every input of every component is timed (wait in its intake, time to handle) and published as Telemetry; sage/profile reads the node's and every resident's parts, the longest-waiting first.
  • Live window resize: ctx.resize(topic, n) from inside a handler.
  • ctx.off(work, into): blocking work runs off the worker and comes back as an input; the part keeps hearing meanwhile.
  • Intakes sized from declared windows, and presence, need and telemetry published once per batch.
  • Module split: component/mod.rs (377 lines, five concerns) became the contract plus one file per concern (largest 131 lines); measurement is a Meter beside Telemetry.

Found by the profile on the live M5 and fixed here

  • disk-relief held its worker 24.2 s per frame; now 0.087 ms (hands its pass off with ctx.off).
  • it repeated a fruitless pass every ~30 s (wanting 112 GB, freeing 0 to 1,791 bytes), evicting the probe ledger's generations each time; it now asks again only on news (the volume lost room, or the pools changed).
  • the dev worktree pool spent 20.2 s per ask walking every checkout to size it and re-walking alternates per candidate; now 13.5 s, sizing only what it removes. The rest is git status per idle checkout. The 160 GB that stays is card worktrees nobody reclaims (airc card).

Measured

  • Stage handoff, per input in a burst (M5, release, --features stress-tests): depth 1 7.4 us, 8 940 ns, 64 121 ns, 256 36 ns. Events a 256-window hearer handled during a 200k burst: 2.2k (depth-1 intake), 8 to 12k (window intake), 13 to 20k (batch publishing).
  • Live (deploy builds ab9f2ec, 6e5a0cb, 77321c1 on the M5): the relief numbers above, from sage/profile and the disk.relief.asked probes.

Tests

continuum-sage 64/64 (new: owner's need, rest and profile; window resize; off-worker results; the gated timing run); continuum-kernel disk_relief 2/2 and dev_worktree 1/1; continuum-mind senses 3/3; continuum-core-server (metal) checks. Windows: this PR is the first CI compile of these commits for windows-msvc.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Base automatically changed from fable/refusal-at-door to canary November 23, 2026 03:56
joelteply and others added 28 commits November 22, 2026 21:56
…ned by a SAGE component

Joel, 2026-11-22: a swap costs well under a second, so simultaneous minds switch at almost the
next chance, round robin, within a threshold set by continuous measurement; priority is how often
or how long a mind is chosen, and it moves with SAGE's events.

- slice::Slicer, the algorithm, isolated and pure (time passed in): stride fairness where a mind's
  weight is her folded sage/need (twice the weight, twice the turns); a rise in urgency takes the
  next step; a waking mind banks no credit; the slice is sized from the measured switch and step
  (switch share and wait target), never a constant; a mind finishing under one switch keeps the
  engine.
- slice::governor::Governor, the SAGE component owning it: hears engine/slice events (need, ready,
  done, stepped, switched), publishes engine/turn, and wakes on its own deadline, never polls.
- clock: one clock per runtime thread. The process-wide clock lived on whichever runtime first
  asked; a parallel paused test held it and the governor's deadline never rang.

Tests: 5 new; continuum-sage 54/54, five runs; clippy clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…by current state; the wait bound is guaranteed

Joel, 2026-11-22: "Everything has its own cadence ... meet on their next SHORT cycle, using caches
and current state ... NEVER holding one another back"; "It's a control system optimizing for
throughput!"; "I expect no wait over like 1-2s ever."

- slice::tuner::Tuner: the slice is the loop's state, moved each rotation in whichever direction
  last raised measured throughput (steps per engine second, switches included); it settles on the
  peak and keeps probing. The wait bound is the wall it climbs against; a window over it backs off.
- slice::lane::Lane replaces the governor component: the governor heard events, and an emit waits
  for its subscriber, so a mind could be held back by it. The lane reads each seated mind's newest
  need and Decoding state at its step boundary (no await anywhere), measures step and switch inline,
  and publishes the holder for observers.
- Slicer: waits measured on the engine's own clock; the wall follows the weights (the lightest mind
  waits through everyone heavier); a deadline guard brings in any mind whose slack is gone, so the
  bound holds through transitions (an urgency rise, a mind finishing) where stride order alone let
  a wait reach 1.53 s against a 1 s bound.

Tests: tuner finds an interior throughput peak from either side within 3% and keeps probing; the
wall holds; lane run of 9,000 steps with a rise and a finish, every wait inside the bound.
continuum-sage 56/56 three runs; clippy clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…mulator, exact trace replay

Joel, 2026-11-22: "easy algorithm to simulate, replay probe or introduce various algorithms that
are pluggable."

- slice::control::Control: any slice law plugs into the Slicer (shares, wall and guard stay its
  own); Tuner (throughput climb) is one, Fixed a comparison baseline.
- slice::trace: every input and decision as data; replay reproduces a run decision for decision.
- slice::sim: any law against any workload (per-mind step, turn, rest, need changes; the switch),
  reporting throughput, worst wait and share; Workload::fit turns a trace (a live node's) back
  into a workload. The slicer tests now run on it (their private loop is gone).
- The guard serves in EDF order with staggered deadlines, also when the lane is free, and at every
  switch: the comparison found a wait of 1.004 s against 1 s when a new mind's switch and first
  step (46 ms) passed a due mind's deadline.

Receipt (sim, 3 residents, 20 ms steps, 26 ms switch, 1 s bound, 300 s): throughput climb 46.3
steps/s worst wait 978 ms; switching every step 24.5 steps/s; fixed 5 s 46.7 steps/s, held to the
bound by the wall (978 ms). continuum-sage 59/59 three runs; clippy clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
The design as settled with Joel on 2026-11-22: minds meet the engine by state at the step boundary,
priority as frequency (stride by need), a sub-second wait bound guaranteed by a deadline guard,
throughput set by a pluggable control loop that learns live on every machine, a batch pick of every
resident mind, and the work behind the scenes (prefill during tools, shared prefixes, learning tiles).
Records what was wrong and is deleted when the lane lands, the measured anchors, the arithmetic of
what it can reach (labelled estimates), what is built, and what is next.

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

Read-only audit of fable/refusal-at-door at 5ef00bb across engine admission, the mind's side and
SAGE. The worst: the decode permit taken first and held through paging, the prompt count, the POST
and the whole decode (verified, turn_admission.rs:412-437); HTTP page save and restore under it; a
4 h benchmark hold; a global clone mutex across gh clone (verified); window grants on a 5 s tick
(verified); the engine gate read lock held for a generation (verified); the room feed waiting on
each resident's senses in turn (verified). Lists every wait with no timing, proposes one Wait
instrument with an act id so a per-act timeline is a query, and the checks that keep new serial
waits out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…p of text and promises

Joel, 2026-11-22: one part must never hold another back; "Use streams."

- dataflow::stream: emit is synchronous and appends to each subscriber's own window; each
  subscription has its own delivery task, the only place it waits, for its own worker's room (as a
  Reader's delivery does). A subscriber a whole window behind loses its oldest and sees the gap in
  revisions; the durable truth is paged by cursor. Ends when the emitter is dropped.
- Wiring::hear/hear_on take the window the consumer keeps; Ctx::emit is no longer async.
- The room feed: each resident's senses keeps UNPERCEIVED_CAP (256, her room view's bound), so one
  resident's slow senses no longer stalls the feed or every other resident's perception
  (LIVE-PATH-SERIAL-WAITS.md #7, verified at stream.rs:88-99 before this change).
- The test that pinned the old contract ("a slow one holds the producer") is replaced by one proving
  the reverse: twenty emits return at once, a fast part gets every event in order, a slow part ends
  on the newest with a visible gap.
- docs: the sweep of text encodings and promises on the live path (16 text sites, 7 promise
  families; top three verified: the prompt re-POSTed to count tokens, the body re-parsed to set
  max_tokens, a record encoded only to measure it).

continuum-sage 59/59; continuum-mind checks; clippy clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
CONTINUUM-ENGINE 4.1b (M5, 2026-10-28): batching four streams gives about 2.1x on this MoE model
(59 alone; 31 per stream / 124 aggregate at four), not the 3.3x I took from the simulator's
calibration; the MTP draft loses under concurrency (91 vs 122 aggregate), so the batched-plus-MTP
row was wrong. The table now rests on the measured short-prompt numbers and says depth is to be
measured.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…y it gives 1.9x

M5 Pro, Qwen3.6-35B-A3B Q4_K_M, llama-batched-bench, serving paused 23:03-23:16Z (live core
3ef4043 relaunched from its slot and verified). 16k: 53 t/s alone, 99-101 aggregate at four,
unified pool and split streams within 1.2%. 64k shared prompt: 38.5 alone, 65.2 at four.
A fixed-part plus distinct-expert model fits (predicts 75.5 at two, measured 75.9): F 10.8 ms,
expert reads 8.1 ms per token. Targets: the per-step overhead, the expert kernel at small batch,
larger batches (the expert union saturates), routing overlap. One pool with contiguous, growing
per-mind regions costs nothing in decode.

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

Joel's research (2026-11-22): zero-actor identity (one portrait plus voice seed, audio-driven neural
warp, a 3DGS head baked from a synthetic clip), four tiers picked per node by the grid, motion latents
streamed instead of video, small models for expression but never for voice. Tied to our rules:
binary fixed-layout motion frames on one timestamped media timeline, newest-wins delivery, every
piece a SAGE component on its own cadence, renders interleaved with decode on the measured per-step
budget and dropping a tier before a token waits. Research numbers labelled until measured.

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

Fork Metal timer (8da01ac4a) on the canary pin, 4k context, serving paused 23:27-23:29Z: one stream
16.65 ms GPU busy per decode step, 0.035 ms idle between steps, 58.3 t/s; four streams 33.4-34.8 ms,
115.3 t/s. The GPU is busy 97% of each token, so the fixed part is not the CPU round trip as first
guessed. 3,726 graph nodes per step points at dispatch granularity on the GPU: fusion first (measure
the upstream sync's fusions), concurrent dispatch, then the kernels.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
One model predicting audio and visual tokens gets voice and face from one source; we take that
principle by driving motion from the voice model's latents. Autoregressive video drifts over a long
take (the public clip's own caption), while the split pipeline renders every frame from one fixed
identity. Its cost competes with reasoning for bandwidth on our nodes. A possible top tier on the
5090, measured on drift, latency and decode lost. Research claims labelled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Slice one: the LivePortrait renderer driven by Ditto's audio-to-motion model (one 265-D motion space
that is also the wire format; identity with no training; ONNX motion model in-process; the renderer
small enough for our own Metal kernels). Slice two: LAM's one-image 3DGS head for weak clients,
pending its provenance. Licences to clear, the voice-latent retraining that makes voice and face one
source, and what was excluded. Claims from the projects' own pages, unmeasured here.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…, +28% at four, prefill about 2x

Same bench and settings as the canary run, fork fable/upstream-sync 083664562, serving paused
00:06:10-00:07:08Z, live core verified after. GPU per step 13.9 ms alone (16.65), 26.8 at four
(33.4-34.8). Nodes 3,726 to 3,817: the gain is upstream's kernels; fusion is still ahead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…de, and the team as the system-level loop

From the 2026-11-22 research (Inkling 2 Mini's looped layers, Magnitude's per-chip kernel search) and
Joel's direction: kernel parameters become a live control loop on each node's step timings, not a
startup search; speculative drafts while the batch is small; a team of minds reviewing one another is
the loop at system level, tested as an academy benchmark (one model against a team, wall clock to a
correct reviewed result, and cost). Notes that our fork already runs NVFP4 on Metal and carries
Inkling 2 Mini. Expectations labelled until measured.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…me is owned by its node

Joel, 2026-11-23, and tonight's two lessons: a lazily started process-wide component (the clock, the
room feed's worker) lived on the first caller's runtime and died with it silently; components start
and stop with their node. A pure step at a seam is a function, not a worker.

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

A component's life is its owner's: started at boot, stopped when the owner drops, never a
process-wide global started lazily by its first caller (the clock and the room feed's worker both
died with an unrelated runtime on 2026-11-22/23). Owner::on(bus, id, epoch).start(part) returns a
teller with no lifetime; dropping the owner stops every part, newest first. Its test proves a part
runs while its owner lives and refuses acts after.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…itor only says its polls

disk_relief::frame started the relief component lazily on the first poll, on whichever runtime made
it: the lazily started global SAGE.md now rules out. The core's async_main builds the node's Owner at
boot and holds it for the core's life; disk_relief::start_on(&mut owner) starts relief there. frame()
claims only a publisher (data, not a task) and publishes. continuum-core depends on continuum-sage
directly for the Owner.

continuum-core-server checks with metal; disk_relief 1/1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ident is an Owner on her own bus

Owner::of_node (the node's bus, built once at boot) and Owner::with_bus (a mind's own bus). Each part
started through it registers its published need and its rest: owner.need() is the loudest part's,
read now without waiting on any (what a dispatcher ranks minds by); owner.rest() rests every part.
Resident drops its hand-built fields (her bus, _senses, _digest) for one Owner, and gains need() and
rest() for free.

continuum-sage 61/61 (owner: parts stop with their owner; need folds and rest reaches every part);
continuum-mind senses 3/3; continuum-core-server checks with metal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…time to handle), published as state

Each delivery carries the instant it entered the intake; the worker measures how long it waited
there and how long it took to handle, for every input of every component (two clock reads), and
publishes Telemetry (handled, last/max wait, last/max handle, waiting, frames skipped) as state any
reader watches live. Observe::Timing now only adds a probe line per input. Before, timing ran only
when switched on and nothing in production switched it on, so a bottleneck in any component was
invisible (docs/planning/LIVE-PATH-SERIAL-WAITS.md, timing gaps). The test that pinned the old
contract is replaced by one for the new.

continuum-sage 61/61; clippy clean.

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

A window was fixed at wiring, so a consumer whose budget moved (Cormac's capture writer, sized from
its disk class grant) had to re-wire or hold too much. Each window's capacity is now atomic and
attach hands back a Resize; the wiring registers it by topic and the component's context resizes it:
ctx.resize(topic, n), from a measurement it just took. Shrinking drops the oldest it holds now, the
same rule as an overflow.

continuum-sage 62/62 (a window resized live keeps the newest); clippy clean; mind and kernel check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… times, slowest-waiting first

Each part started through an Owner registers its telemetry reader beside its need; owner.profile()
reads them all now, without waiting on any part, and ranks by max wait (then max handle). A node's
owner names the node's bottleneck, a mind's names hers (Resident::profile). Built on the always-on
timing in fa0b565: the same numbers from every component, read the same way.

continuum-sage 63/63 (her profile names every part with its numbers); clippy clean; mind checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…elemetry; Running holds a Teller

component/mod.rs (377 lines, five concerns) splits into the contract (mod.rs, 92: Component,
Presence, re-exports) and one file per concern: delivered.rs (what reaches a worker, 48),
wiring.rs (what it hears and its resizable windows, 85), worker.rs (the engine and start, 131),
running.rs (its handles, 63). The measurement the worker did inline is observe::Meter, beside the
Telemetry it produces; the worker composes it. Running held its own copy of Teller's tell/rest and
now holds a Teller. Public API unchanged (every re-export kept); Delivered::rest() replaces two
hand-built Rest deliveries.

continuum-sage 63/63, no warnings, clippy clean; continuum-mind, continuum-kernel (tests) and
continuum-core-server (metal) check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…s, states published once per batch

Measured first (new stress-tests feature, gated timing run in component/tests.rs; M5, release):
- a bare stage at intake depth 1 cost 7.4 us per input in a burst, one producer-worker round trip
  each; the cost divides by the depth exactly (depth 2: 3.7 us, 8: 940 ns, 64: 121 ns, 256: 36 ns).
  Allocation was not it (reusing buffers moved nothing).
- every component's intake was depth 1, so each event a subscription delivered paid the round trip.

Changes:
- a component's intake holds one act beside what its subscriptions declared they keep (the sum of
  its hear windows, one per watched state), so a delivery moves its window in one wake; a component
  with no subscriptions stays at depth 1. No new constant: the window is the component's own word.
- the worker publishes presence (Acting while it has work, Ready when the batch is done), need and
  telemetry once per batch, not per input; each input is still measured. The observe switch and the
  intake depth are read once per batch (the per-input reads cloned a snapshot and took a lock);
  'waiting' per input is what waits behind it in the batch.
- the stage worker double-buffers its batch (swap, drain, swap back) and send() tries the slot
  before registering a waiter; Stage::handle_all drains a buffer the worker keeps.

Receipts (per_input_cost_of_the_base_against_a_bare_stage, 200k-event burst at a 256-window hearer):
handled during the burst 2.2k (depth 1) -> 8-12k (window intake) -> 13-20k (batch publishing).

continuum-sage 63/63, clippy clean with stress-tests; mind, kernel (tests) and core-server check;
mind senses 3/3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…e times, read from one command

SAGE gains a Profiler (component/profile.rs): an owner's parts' telemetry readers, read-only and
holding no lifetime; Owner hands it out, adds each part as it starts and clears it on drop. The node's
owner registers its profiler beside the node's bus; each resident's handle carries hers, and
senses::profiles() reads every resident. sage/profile (privileged, not a persona tool) answers both,
longest-waiting first: the top line is the bottleneck.

continuum-sage 63/63; continuum-core-server (metal) checks.

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

sage/profile on the live M5 (ab9f2ec, 03:21Z) put disk-relief on top: 24.2 s to handle one frame,
every ~30 s. Each pass asked every pool, wanted 112 GB and freed 0 to 1,791 bytes: 160 GB of card
worktrees (~/.airc/worktrees, 383 checkouts) sit in no pool, so the volume stays at High and the same
fruitless walk ran again. Relief now remembers, per volume, the free bytes and the pools after a pass
that could not free what it wanted, and asks again only when the volume has lost more room or the
pool set changed.

continuum-kernel disk_relief 2/2 (a pass that came up short waits for news).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…input; disk relief uses it

Disk relief awaited its pass inside handle (spawn_blocking kept the runtime free, but its worker was
held for the whole 24 s, its intake backing up). Ctx::off runs blocking work on the blocking pool and
delivers the result to the component as an input: the handler returns at once and the part keeps
hearing. Relief now hands its pass off, coalesces frames while one runs, and takes the result as
Frame::Relieved. Each pool's sizing and ask are timed (disk.relief.sized, disk.relief.asked) to find
which pool's walk costs the 24 s.

continuum-sage 64/64 (work handed off comes back as an input while the part keeps hearing);
continuum-kernel disk_relief 2/2; clippy clean.

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

Relief's per-pool timing on the live M5 (6e5a0cb, 03:33Z): disk-worktrees took 20.2 s and freed 0
(21 worktrees: 9 dirty, 2 unpushed, 2 lent from, 1 refused, the rest recent). candidates() walked every
worktree's whole tree to size it before any was judged, and removable() re-walked the shared git
dir's modules/ and worktrees/ 12 deep for every candidate, the same answer each time. Now candidates
are listed by mtime only, a worktree's bytes are measured just before it is removed, and each
repository's alternates files are read once per pass.

continuum-kernel dev_worktree 1/1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/slice-governor branch 2 times, most recently from 5613362 to 971409c Compare November 23, 2026 04:52
…ounds, typed absences, one owner per fact

#6234's ratchet job failed on 11 counts. Every site the branch added is fixed, none excused:
- the lane: keys are Copy (ids), so no key is cloned into a call; an unmeasured step or switch has
  one owner (Measured::seconds, step_of) instead of unwrap_or(0.0) at nine sites; a guard deadline
  that cannot be represented is no deadline, as an unrepresentable slice already was.
- the tuner's gain bounds are measured or structural, not set: a move is never less than one step
  (the engine switches only at a step) and never more than half the slice (a multiplicative move past
  one drives it through zero). GAIN_FLOOR and GAIN_CEILING are gone.
- the simulator: worst() is an Option (nobody waited is not a zero wait); a mind never ready in the
  trace is not replayed as ready.
- a stream window's two bools are one Life state (Open, Gone, Ended); append borrows its event.
- the node's profiler is the node bus's companion (get_or_init) and each owner's gauges leave with it.
- disk relief keys its remembered volumes by the frame's own mounts (no clone, no lookup defaulted to
  zero) and forgets a volume no longer short; the worktree pool keeps a worktree whose alternates file
  cannot be read (it was read as lending nothing, which allowed a removal that could break a borrower).
- tests: results asserted, not bound to _; the lane tests' simulated costs are one fixture.

Ratchets against canary 7ca3bd0: pass (swallowed_errors 597 -> 596, every other count equal);
continuum-sage 64/64, clippy clean with stress-tests; kernel disk_relief and dev_worktree 3/3; mind
and kernel check with tests; continuum-core-server (metal) checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant