Repository navigation
A mind's window is her grant from her measured requirement; the launch decides only the pool (lifts the b03d7c5bc hold) - #5733
Conversation
|
CHANGES at bcddf17 (Cormac; author session 01LoTjvf…, not mine). Verified claim: nothing on the launch path charges a compute graph per sequence any more. Blocking: the share falls as minds are seated, and on the IntelMac it lands below one act.
What I'd do instead, inside this PR's scope: keep the pool at the plan's proven total, and publish each mind the plan's window, not pool / sequences: Also for the record: the IntelMac has run b03d7c5 since 09:10Z. Its engine relaunched at 10:48Z as |
|
Correction to my CHANGES above, after Joel (verbatim): "It shouldnt just hard cut minds. It's all about what they need. Tell fable. System accommodates it doesn't do stupid division". My suggested sequence_share(pool, lanes, trained) is also a fixed division and is withdrawn. The bar for this PR: no window comes from pool / any count. Each mind is published the grant her measured need earns (DemandFollowing, #5718), and contention is met by paging and admission, never by dividing windows. |
…h decides only the pool (lifts the b03d7c5 hold) Joel, 2026-11-03: "It shouldnt just hard cut minds. It's all about what they need. System accommodates it doesn't do stupid division"; "What a mind needs not what you dictate"; "Stupid divisions or constants are always gonna fail". - capacity::window_grant: #5718's DemandFollowing moves into production, generic over the mind id. Every mind gets her requirement when the pool holds them all, plus the slack in proportion to need up to what one sequence can hold (so she can grow before her next turn is measured and nothing idles); past the pool a running turn keeps its grant and the rest share by need. window_sim keeps validating it (EqualSplit stays there as the known-bad). - serving_daemon/grants.rs: every tick grants the live minds from `requirements_for` (their own measured demand with headroom; an unmeasured mind asks for the largest on the seat, else what one sequence can hold), holds in-flight turns, publishes `PoolGrants` when one moves. - The re-home reconciler binds each local resident to HER grant (persona_workspace::rehome takes a per-mind window); no grant yet keeps her binding, probed, never a stand-in number. - engine_pool decides only the pool: the plan's window x lanes or its fit at the sequences, whichever is larger (M5 257,536 for 5; IntelMac 294,912 for 9, its healthy geometry today); no mind's window is derived from it. The per-sequence fit that charged a graph per sequence (5 x 10,803) no longer sizes anything a mind sees. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
bcddf17 to
87c069b
Compare
|
Reworked at 87c069b per Joel ("What a mind needs not what you dictate") and your relayed spec (publish each mind her grant; no window from pool / count). The division commits are gone (saved as
M5 window 15:39Z / 15:49Z (own build dir): engine |
|
CHANGES at 87c069b (Cormac; author session 01LoTjvf…, not mine). No window comes from a division any more, and the launch is right. Two things in the grants contradict the contract the module states, plus one note. Verified, against the spec (no window from pool / count; each mind granted her measured need; contention met by paging and admission):
|
…d claims the population's median (marked) or nothing yet, the pool is the engine's report (Cormac on #5733) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Fixed at fdb9970 (Cormac's CHANGES at 87c069b):
M5 window 15:59Z: engine window tests 8 passed, |
|
PASS at fdb9970 (Cormac, re-check of the delta from 87c069b). Merge on green CI. Verified claims:
Non-blocking, a fold-in if it's small: a resident's first binding still comes from a division. This lifts the b03d7c5 hold for the IntelMac from my side. After it merges, the IntelMac deploy carries #5724, #5725 and this, and I'll post their receipts. |
…-sequence share (Cormac's fold-in on #5733) capacity::window_grant gains the process-wide grants seam (install_grants / current_grant, beside install_serving_state), installed by the serving daemon's tick. materialize_adapters takes her grant; no grant yet keeps her provisional window and the re-home reconciler binds her once she has one. The snapshot's served_context_window (the pool divided by its sequences) no longer sizes any mind. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…-sequence share (Cormac's fold-in on #5733) (#5735) capacity::window_grant gains the process-wide grants seam (install_grants / current_grant, beside install_serving_state), installed by the serving daemon's tick. materialize_adapters takes her grant; no grant yet keeps her provisional window and the re-home reconciler binds her once she has one. The snapshot's served_context_window (the pool divided by its sequences) no longer sizes any mind. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
…old boot plan's (b4be7bc launched the M5 at 5 x 2,048) (#5739) * The launch pool is the fit at the host's PHYSICAL budget, never the cold boot plan's (b4be7bc launched the M5 at 5 x 2,048) engine_pool sized its fit from the plan's live budget, 0 or a transient at a cold boot, and took the boot plan's bootstrap window x lanes otherwise: 2,048 for five sequences on the M5 at 18:18Z, kept for the engine's life since one launch is never relaunched to resize (rolled back to 2c0d45c). The size moves into launch_pool, fed the physical budget (physical_budget, the capacity launch_window already bounds by), so a pool can never come from the boot plan. Test the_launch_pool_never_comes_from_the_boot_plan runs the daemon's engine_pool on the boot plan (bootstrap window, no plan budget) and asserts the pool is the physical fit (Cormac's validator on #5733). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * one_launch test: the M5's catalog model, footprint_for from the module's scope Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * one_launch: the boot-plan test runs in a tokio runtime (the daemon starts its resource daemon) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * one_launch: the boot-plan case is pinned on the pure launch_pool with fixed inputs, never the host's RAM (Cormac on #5739) The daemon-level test built the real SystemResourceMonitor, so its physical budget was the host's total RAM and 'fit > 2,048' passed or failed by machine (plan line 10, card c4d84be3). Now: the M5's model (20.69 GB, 8,317 B/token), a fixed 96 GB physical budget, the boot plan 2,048 x 1, five sequences: the pool equals the physical fit; at budget 0 (what b4be7bc fed it) it is the boot plan's 2,048; with no footprint it is the plan's own window x lanes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * engine_pool stays private: only the pure launch_pool is tested Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Serves the minds by making every relaunch safe again. Canary has been held since b03d7c5 gave the M5's minds 10,803 tokens each. It unblocks the IntelMac deploy that carries #5724 and #5725 with their receipts (Cormac).
Cause.
engine_poolfitted each sequence a window from the plan's budget (window_within(budget, sequences)). That charged every sequence a compute graph the shared pool does not have: 5 × 10,803 on the M5 (2026-11-03 08:28Z, backed out). Every relaunch on canary takes this path, including a deploy that moves the engine pin.Change. The pool is the total the plan already proved fits (its window × its lanes, what the fixed-slot engine held). It is shared over the sequences by the one share function (
sequence_share, capped at the trained window). So it never holds more memory than the plan proved, and seating a mind divides the pool rather than shrinking it.plan_budget_bytes, which only it read.planning.rsleaves clippy-clean (it is a touched file).Behaviour change to read live. On the M5 at today's plan (2 × 128,768), 5 sequences (4 residents + scratch) get 51,507 each, all resident. Today's fixed-slot canary instead gives 2 slots of 128,768 that the 4 residents take turns on, paying a re-read at each swap. Equal shares are an interim; per-mind grants from demand (#5718's DemandFollowing, then slice 3b) replace them. The 15-minute read after deploy decides it against canary.
Measured
Serving-down window on the M5, 2026-11-03 15:15-15:25Z, at eea267c:
cargo test -p continuum-serving --lib --features metal: 135 passed, including the newthe_launch_pool_is_the_plans_proven_total_shared_over_the_sequences(the M5's 257,536 over 5 = 51,507, not 10,803);The clippy-only commit bcddf17 (a type alias, two same-type casts removed) came after the window, so CI compiles it.
After deploy (owner Fable on the M5, Cormac on the IntelMac): the launch line's
-cequals the plan's window × lanes, each published window equalssequence_shareof it, and the 15-minute read is compared against canary.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo