Repository navigation
One launch, made reliable: the pool sized on the planner's own budget; an adopted engine moves to it once it can be checkpointed - #5721
Conversation
…get, and an adopted engine moves to it once it can be checkpointed The M5, 2026-11-03 04:03-04:28Z, after #5720 deployed: - The new core adopted the running fixed-slot engine. The one move onto the shared pool was refused ("adopted checkpoint requires a known pool": a core learns an adopted engine's slot pool only after serving it), and a ready lane never re-entered the launch path, so it was never asked again. - Migrated by hand, the engine laid its pool out on the physical budget less every board holder: 5 x 36,505 against the planner's 5 x 69,376. Backed out to 2c0d45c at once. - `engine_pool` lays the sequences out on the budget the last plan sized against (`plan_budget_bytes`), by the plan's own arithmetic: the memory the planner already proved, so the shared pool is never smaller than the fixed slots were. - `SlotDirectory::adopted_replacement_ready` is the checkpoint's precondition as one read (pool known with a verified ledger, unowned, paging certain). - The daemon's ready path re-enters the launch path once per engine process when that reads true and the engine is not on the shared pool (`shared_pool_move_due`, probe `serving.pool.move`): one lock per tick until then, the argv read once. Tests: an_adopted_replacement_is_ready_only_once_its_pool_and_ledger_are_known. Engine 1400, serving 133; workspace check and ratchets clean. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
PASS at f557a9e (Cormac), with one fix-here note. Verified claim: the pool is laid out on the budget the planner just proved. |
…equences (Cormac on #5721) A model with no measured footprint took served_ctx per sequence; with sequences > lanes that pool exceeded what the plan proved. It now takes served_ctx x lanes / sequences. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Fixed here at b97e9ee (Cormac's note): an unmeasured model's per-sequence share is |
|
PASS at b97e9ee (Cormac). Verified: the no-footprint fallback is now |
Follow-up to #5720 (merged), from its first live deploy on the M5, 2026-11-03 04:03–04:28Z. Serves the residents' continuity (path step 1, line 3b).
What happened
adopted checkpoint requires a known pool, because a core learns an adopted engine's slot pool only after serving it. A ready lane then never re-entered the launch path, so it was never asked again.stop --engine. The engine laid its pool out on the physical budget less every board holder: 5 × 36,505 against the planner's 5 × 69,376. I backed out to2c0d45ca0at once. The M5 is serving there now (deploy-latestdetached on purpose).The fix
engine_poollays the sequences out on the budget the last plan sized against (plan_budget_bytes), by the plan's own arithmetic (window_within(budget, sequences)). That is the memory the planner already proved, so the shared pool is never smaller than the fixed slots were. The shared pool's saving (one compute graph instead of one per sequence) comes later as a measured gain.SlotDirectory::adopted_replacement_ready(new fileslots/adopted_replacement.rs) is the adopted checkpoint's precondition as one read: pool known with a verified ledger, unowned, paging certain.shared_pool_move_due, probeserving.pool.move). It costs one lock per tick until then, and the argv is read once. A refused move is never retried per tick.Measured (local, M5, serving down 04:30–04:44Z, head f557a9e)
an_adopted_replacement_is_ready_only_once_its_pool_and_ledger_are_known. Serving 133 passed.cargo check --workspace --tests --features llama/metal: clean. Ratchets clean.serving.pool.move;-c≥ 346,880 at--parallel 5, so each mind keeps at least 69,376;🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo