Repository navigation
The boot launches at what its minds need: remembered residents, a settle gate, one retirement for a floor-sized engine (card 8569b03d) - #5976
Merged
Conversation
… boot plan, a settle gate, and one retirement for a floor-sized engine (card 8569b03d) The M5, 2026-11-13: at 19:36Z the boot plan read 16 GB usable while the stopped engine's memory was still coming back, launched -c 2045, and the plan 15 s later (2 x 134,690 at 25 GB) was never applied; at 22:16Z an engine launched at 49,408 for 5 sequences and did not grow in 10 minutes. Every mind needed 68-110k and was dark until the engine was killed by hand. - cognition: WorkingSetRegistry::remembered_residents, the newest minds a held turn measured. - serving demand: before the persona registry exists, the requirements are the remembered residents', so the boot plan goes through the allocator and the launch floor (seated needs, capped at the proven pool on a gap reading) holds them. - settle: the host's compressor shrinking between readings (continuum_host::host_memory, #5971) holds a launch below the seated needs until the host stops returning memory; read before every reconcile, off the runtime. No reading never waits. - floor_sized: a ready engine whose pool holds fewer seated minds' needs than a launch at the live budget would is retired once (per engine process); the next reconcile launches the grown pool. The fork has no live pool resize route (checked cd2e16d87 tools/server/server.cpp routes). - dyno 9 (boot during memory settle) before/after; dyno 10 (leased-in mind) known-red on the grid seam (MissingSeam::LeasedInRequirement). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Serves the persistent minds sharing one engine: after a boot, each mind gets the context its own turns need, instead of staying dark at a floor pool. Advances order-of-work line 3/3b (KV capacity, one live engine). Card 8569b03d. Stacked follow-up: the post-fit readers and the
sent_*deletion.Evidence (the M5, 2026-11-13)
-c 2045(2,048-token pool). 15 s later the plan recomputed 2 x 134,690, but nothing applied it, and every mind stayed dark until the engine was killed by hand.The chain
serving_demandbuiltrequirements_for(&live)from an emptylivelist (demand.rs). The boot plan skipped the allocator, andseated_forsummed no needs.launch_pool's floorheld = need.min(proven or fit)is 0, so even a pool this model was proven to run at is ignored. The launch took the transient fit, which at 16 GB was below the weights: the plan'sMIN_SERVE_CTX x 1.tools/server/server.cppat pin cd2e16d87). So a pool launched from a transient reading stays that size for the engine's life.The fix
WorkingSetRegistry::remembered_residents): before the registry exists, the seated minds are the newest minds a held turn measured, capped at the population count. Their full-detail requirements (A mind's grant follows what her view holds at full detail, never a render her last grant collapsed (card 90197043) #5973) feed the boot plan's allocator and the launch floor. A mind that only ever wished (a fixture, a departed mind) is not counted.serving_daemon/settle.rs): a launch with no engine on its port, sized below the seated minds' needs, waits while the host's OS compressor is shrinking between two readings (continuum_host::host_memory, Memory pressure sheds against the host's deficit (compressor + swap), not RAM past a fraction #5971), read before every reconcile and off the async runtime. There is no timer and no fraction, and the host bounds the wait itself. A host that gives no reading never waits.serving_daemon/floor_sized.rs): a ready engine whose pool holds fewer seated minds' needs than a launch at the live budget would hold is retired once (once per engine process) through the existingidle_if_current. The next reconcile launches the grown pool through the settle gate. The rule counts minds, never slack tokens, so it fires at most once per mind outgrowing the pool. Live work blocks it, because the occupancy guard runs first.Simulation and tests
serving_daemon/tests/dyno.rs): before reproduces the 2,048 launch with no residents in the demand. After: the gate waits while the compressor shrinks; a gap reading launches at the proven pool, which holds every remembered need; the settled plan's launch holds every need; and an engine already at the floor is retired once for the grown plan.#[ignore],MissingSeam::LeasedInRequirement). The generate wire carries no requirement, and that seam is grid (Codex).floor_sizedpinned test: boot at the floor, then the grown plan is applied once; no relaunch for slack or a wobble.settletest: waits only while memory comes back; a growing compressor or no reading never waits.Lines
453 added, 14 removed (12 files). The deletion of
sent_median/window_target/typical_prompt_floor/prompt_floor_ofand the sent rings is the stacked PR.Not compiled locally
The M5 is serving live minds, so CI is the compiler.
Live receipt (after deploy, owner Fable)
Engine pool at boot vs the remembered residents' requirements (
serving.launch.plan,serving.launch.await_settle, the engine's-c), and time from boot to a grown plan applied (serving.engine.floor_sizedto the next ready). Card 8569b03d stays open until it is posted.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo