Skip to content

fix(persona): the boot draw is bounded by the warm slots — 16 minds loaded onto a node whose lanes seat four and starved the plan to a 2,048-token lane (card 7c38ff6f) - #4245

Merged
joelteply merged 2 commits into
canaryfrom
fix/the-boot-draw-is-bounded-by-the-warm-slots
Sep 20, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/the-boot-draw-is-bounded-by-the-warm-slots

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The M5 boot on 23d3301 (01:12Z 9/20)

The old lane was dead at boot (serving.lane_registry.sweep RemovedDead), the spawner drew all sixteen minds, their residency left the pinned 27B a 20 GB Eco budget, and the plan launched one lane at 2,048 tokens for minds whose typical prompt is 52k. The hourly lane-bound rest (#4244) was fifty minutes away.

Fix

PersonaSpawnerModule::seats() is bounded by bounded_by_warm_slots(seats, lanes) = lanes × MINDS_PER_LANE_STARVED_ABOVE, never below the resident floor. lanes = the live lane when ready, else the last settled geometry at a cold boot, else none — and none bounds nothing. The memory the roster would have taken is the plan's for lanes. The mirror is free: the reconciler re-reads seats() every pass, so lanes that grow draw more; lanes that shrink are the hourly rest's. Probe persona.roster.bounded when the bound changes what is drawn.

Follows #4244's constant (2 per lane once it lands; 3 until then), one source.

Test

the_draw_is_bounded_by_the_warm_slots_and_an_unknown_lane_count_bounds_nothing.

Receipt

The next M5 boot draws 2 × lanes minds, the plan's budget stays out of the Eco band, and the lane comes up at the remembered 2 × 67,584.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…nds loaded onto a node whose lanes seat four and starved the plan to a 2,048-token lane

The M5 boot on 23d3301, 01:12Z 9/20: the old lane was dead at boot
(`serving.lane_registry.sweep RemovedDead`), the spawner drew all sixteen minds, their
residency left the pinned 27B a 20 GB Eco budget, and the plan launched ONE lane at 2,048
tokens for minds whose typical prompt is 52k. The hourly lane-bound rest (#4244) was fifty
minutes away. Card 7c38ff6f (Joel: the active roster is the warm slots × ~2, the rest
dormant).

`PersonaSpawnerModule::seats()` is now bounded by `bounded_by_warm_slots(seats, lanes)`:
`lanes × MINDS_PER_LANE_STARVED_ABOVE`, never below the resident floor, where `lanes` is the
live lane when one is ready, else the last SETTLED geometry (`served_window_store`) at a cold
boot, else none — and none bounds nothing (an absence is not a number). The memory the
roster would have taken is the plan's for lanes. The mirror is free: the reconciler re-reads
`seats()` every pass, so lanes that grow draw more; lanes that shrink are the hourly rest's.
A `persona.roster.bounded` row when the bound changes what is drawn.

Test: two lanes seat two lanes' worth; one lane seats the edge, never below the floor; lanes
past the population change nothing; None and 0 bound nothing; an empty population stays
empty.

Receipt: the next M5 boot draws 2 × lanes minds (persona.roster.bounded row), the plan's
usable budget stays out of the Eco band, and the lane comes up at the remembered 2 × 67,584.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head f2b1ce1 (checks running at read time; merge on green, batched with #4244). The bound sits where the memory decision is made: seats() never exceeds lanes × the per-lane edge (floor held), lanes = the live lane when READY else the last settled geometry else none, and none bounds nothing — an absence is not a number, pinned. Two things I checked that make it safe rather than merely right: (1) a point sample cannot hurt here — the reconciler only ADDS toward seats(), shrinking is the hourly rest's, so a launch read at 1 lane between geometries delays a draw and destroys nothing; (2) the loop this closes (residents → memory → lanes → residents) has a fixed point: lanes are knee-bounded (#4241), so the climb stops at knee × 2 minds, and a degraded settle (the 01:12Z 1-lane-at-2048, which served_window_store saved) self-corrects upward — 2 minds drawn, the plan sees the memory, lanes grow, the next pass draws more. The probe row on change only is the right cadence.

…_lanes, else the remembered geometry handed in at boot), never a global; the three tests that pinned 'lanes never cap the roster' move to the reversed rule, named

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head d5bdf59. The delta from f2b1ce1 is the right correction: the bound reads what the spawner was TOLD (serving_lanes under a fitting plan, else remembered_lanes handed in once at construction from load_geometry, else none) — no global read on the draw path — and the three 9/13 tests are moved to the reversed rule with the reversal named where a reader will find it (the 9/13 KV-paging premise, the 9/20 residency measurement), asserting through MINDS_PER_LANE_STARVED_ABOVE so they hold at 3 now and 2 after #4244. The ordering question I checked: a fitting plan computed under the old residents (the 01:12Z one-lane plan) bounds the draw to 2, the freed memory re-fills the plan, set_serving raises serving_lanes, the reconciler re-reads seats() — the climb converges at the knee and nothing destructive happens on the way. Merge with #4244 as one restart.

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