Repository navigation
The window validator (§6e): today's equal split squeezes a reading mind; demand-following keeps the contract - #5718
Conversation
…ver one shared pool, played through a WindowPolicy against the contract (never over the pool, every demand granted when all fit, no in-flight shrink, squeezes counted) Outliers prove the interface, the capacity simulator's shape: today's equal split (one window per slot, residents plus a scratch slot) squeezes a reading mind on the M5's own 2026-11-02 shape (Aiko reads ~70-76k, granted 58,112 while Atlas idles), and a demand-following policy keeps the contract. Needs no engine change; the allocator's uneven-grant work (Codex) is what makes the second outlier real. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…r demand (the equal split hands out the whole pool, so 'pool had room' never fired) 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]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
CHANGES at b122fc0 (Cormac, independent; Codex is silent, so a second reader). The interface and the outlier pair are right, and EqualSplit{5} squeezing Aiko is the receipt we needed. One contract bug in the reference policy, plus the scenario that exposes it. Conservation, traced through both branches of
Fix: in the fits branch an in-flight mind keeps Smaller notes:
|
…ad split two) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
CHANGES still at 0f7e893 (Cormac). The delta from b122fc0 only moves two unwrap_or justifications onto their own lines. DemandFollowing's fits branch still returns |
…er or not every demand fits (Cormac on #5718: the fits branch shrank a turn mid-flight) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Policy fixed at 4aa9284; the validator's 'fits' contract now disagrees with it (Cormac). Conservation, read: floors are in-flight held grants, which were granted inside the pool; rest = pool - floors; each mind gets floor + more with more <= her need, and the more sum to at most rest. So never over the pool, and an in-flight grant never shrinks. Correct. But |
…d (an in-flight turn at least what it holds), so a fallen in-flight demand beside a big neighbour is the pool's limit, not a breach (Cormac on #5718) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
PASS at 89f28e7 (Cormac). Verified: |
|
PASS at 89f28e7 (Cormac, re-check; author session 01LoTjvf…, not mine). CI at this head: 28 pass, 3 skipping. Verified claim: a turn in flight never shrinks, in either branch, and the grants never exceed the pool. Read
Two items for the PoolLedger step (please answer each; a card is fine):
|
…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
…h decides only the pool (lifts the b03d7c5 hold) (#5733) * A mind's window is her grant from her measured requirement; the launch 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 * Grants: need only (slack stays in the shared pool), an unmeasured mind 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 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Serves the minds' context window (order of work line 3 / goal 9): a mind's window follows what she reads. This PR adds the validator that comes first (CLAUDE.md goal 11), and nothing else. There is no engine change.
What
continuum-engine/src/capacity/window_sim.rsturns a scenario into data: a timeline of each mind's demand events over one shared KV pool. AWindowPolicygrants windows, andrun()checks the contract:Two outliers:
EqualSplit { slots: 5 }is today's engine (4 residents plus the scratch slot, 58,112 each). On the M5's 11-02 shape it squeezes Aiko (70-76k) while Atlas idles at 9-12k. The test asserts the failure.DemandFollowingkeeps the contract on the same shape, and on an overloaded pool it never shrinks an in-flight turn.Measured
cargo test -p continuum-engine --features metal --lib -- window_sim: 3 passed, 0.00 s. Run on the M5 with serving down, 2026-11-03 ~00:25Z, branch head b122fc0.Added 1 file (~270 lines), removed 0. The engine allocator (Codex's unified-KV work) must pass this validator before its live read.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo