Skip to content

fix(serving): a cold boot below the capability floor serves the viable plan instead of booting dark (48f5438a, minimal half) - #4182

Merged
joelteply merged 2 commits into
canaryfrom
fix/cold-boot-below-floor-serves
Sep 17, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/cold-boot-below-floor-serves

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

A cold boot below the capability floor booted the node DARK

Measured on the Intel tier 2026-09-17 (Cormac): #4169 deployed without #4174 sized a CPU host below its capability floor, and floor_gate refused the plan with "the previous plan stands" — but on a cold boot there is no previous plan, so the refuse served nothing. The node reported resident 0, active_model None, degraded_reason NULL, no llama-server, zero citizens — dark — while a servable 1.5B sat on disk.

Cormac's recovery proved the diagnosis: serving/pin qwen2.5-coder-1.5b came up at a 32,768 window, ready, and all eight citizens hosted immediately. The floor was standing in front of a model the box could run.

Fix

The floor exists so a capable host doesn't sink below its capability — but sinking needs an incumbent to sink from. On a cold boot there is none, so refusing a below-floor plan is strictly worse than serving it: a viable base beats no base.

below_floor_refuses(verdict, has_incumbent) — a below-floor plan is refused only when there's an incumbent to preserve. With an incumbent, behaviour is unchanged (a host never sinks below its floor). With no incumbent, the plan is served and the node boots on the best base its budget can run, with a serving.plan.cold_boot_below_floor_served probe so the fall-through is visible. Pure and unit-tested.

Scope

This is the minimal half of 48f5438a — the fallback the card names. Two related pieces are deliberately not here:

Each is survivable alone; this one guarantees no cold boot goes dark while any base is servable.

Test

a_cold_boot_below_the_floor_serves_rather_than_booting_dark — Below+incumbent refuses; Below+no-incumbent serves; At/above never refuses. Fails against the pre-fix unconditional refuse.

acceptance: read-and-confirm a CPU host below its capability floor boots on a servable base instead of resident 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…e plan instead of booting dark (48f5438a, the minimal half)

Measured on the Intel tier 2026-09-17 (Cormac): #4169 deployed without #4174 sized
a CPU host below its capability floor, and the floor gate refused the plan with
"the previous plan stands" — but on a COLD BOOT there is no previous plan, so the
refuse served NOTHING. The node reported resident 0, active_model None,
degraded_reason NULL, no llama-server, ZERO citizens — dark — while a servable 1.5B
sat on disk. Cormac's recovery proved it: `serving/pin qwen2.5-coder-1.5b` came up
at a 32,768 window, ready, and PersonaSpawnSupervisor hosted all eight immediately.
The floor was standing in front of a model the box could run.

The floor exists so a capable host does not SINK below its capability — but sinking
needs an incumbent to sink FROM. On a cold boot there is none, so refusing a
below-floor plan is strictly worse than serving it: a viable base beats no base.

Fix: `below_floor_refuses(verdict, has_incumbent)` — a below-floor plan is refused
ONLY when there is an incumbent to preserve. With an incumbent the behaviour is
unchanged (a host never sinks below its floor); with no incumbent the plan is served
and the node boots on the best base its budget can actually run, with a
`serving.plan.cold_boot_below_floor_served` probe so the fall-through is visible.
Pure and unit-tested (the cold-boot assert fails against the pre-fix unconditional
refuse).

This is the MINIMAL half of 48f5438a — the fallback the card names ("demotion_refused
has no fallback when incumbent is <none>"). The DEEPER half is Cormac's, with his
measurements: `host_floor_of` counts a 4B whose weights fit but whose served window
is a dead 2,048 as ABOVE a serviceable 1.5B, so the floor must count only models
with a VIABLE served window, not weight-fit alone. And #4174 completes the #4169
pair separately (BigMama's stack) so the plan isn't below floor on that tier at all.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) September 17, 2026 21:56
…, then served — both specs hold

The red test was a real spec: a_transient_six_gigabytes_on_a_big_card_refuses_to_
sink_below_the_floor — a 53 GB card, NO incumbent, one 6 GB reading (the teardown
transient the floor was written for; it latched a 0.5B for 80 min once). Under
"no incumbent → serve" that boot publishes a 4B on a 53 GB card. The Intel tier's
case is the opposite end: below the floor CONTINUOUSLY for 40+ minutes, dark for 90.
The two disagree only on TIME, and are orders of magnitude apart.

below_floor_refuses(verdict, has_incumbent, below_for): with an incumbent refuse,
unchanged; with none, refuse while the shortfall is younger than
COLD_BOOT_BELOW_FLOOR_GRACE (180 s — anything from ~30 s to ~5 min satisfies both
incidents, Cormac's sizing), then serve rather than stay dark. The probe
cold_boot_below_floor_served carries waited_s so a small model on a big card reads
as a decision with its wait, not a bug.

serving_daemon::tests 69/69.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply
joelteply merged commit 592ff99 into canary Sep 17, 2026
6 checks passed
@joelteply
joelteply deleted the fix/cold-boot-below-floor-serves branch September 17, 2026 23:14
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