Skip to content

fix(serving): a collapsed geometry seeds neither the next boot nor the footprint record — a remembered window below the typical prompt is a fall, not a steady state; no per-token reading at a starved window (the 5090 at 1 × 2,048) - #4255

Merged
joelteply merged 2 commits into
canaryfrom
fix/a-collapsed-geometry-seeds-neither-the-next-boot-nor-the-record
Sep 20, 2026

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What broke

  • The M5's 07:52Z collapse wrote (2,048, 1) to the served-window store as "the last steady geometry"; the 08:43Z boot planned it first (1 × 2,048 with a 26 GB grant).
  • The 5090 has served 1 × 2,048 all afternoon. Every prompt the M5's minds spill to its seat is refused (remote peer's adapter failed: … prompt ~31143 tokens ≥ the served per-slot window of 2048) or answered against a 2k slot. The M5's idle hour (0 acts, 228 pulls deferred, "the lanes are the block") was 112 lane grants, one a minute, routed to that seat — not a permit stall.

Two laws let a fall persist across boots and measurements:

The fix

  1. StoredServedWindow::steady_geometry() — a record whose window is below the typical prompt the same record remembers cannot have served a turn; it is the collapse the plan shed to. None: the cold boot plans from demand, not from the fall (the record's lane count no longer caps the boot at one lane, its window no longer joins the floor). An unknown typical (older record) never disqualifies; zero lanes is no geometry.
  2. lane_footprint::window_measurable(window) / MEASURABLE_WINDOW_MIN (one full turn, 16,384 tokens) — below it the bytes beyond weights are the engine's fixed buffers, and dividing them by 2,048 reads as ~244k B/token; saved, that record fits no window and pins the next plan at the floor the node fell to. The daemon withholds the reading (serving.footprint.unmeasured leg=starved_window; the unknown-grant leg now carries leg=unknown_grant and both carry window), the previous record stands.

Tests

  • a_window_below_the_typical_prompt_is_a_collapse_not_a_steady_geometry (collapse → None; steady → Some; unknown typical → Some; zero lanes → None; equal → Some).
  • a_starved_window_is_not_a_measurement (the floor, and the 244k arithmetic it guards against).

Next, separate

Placement: a seat whose served window is below the mind's prompt is not an offer — the beacon carries no window today, so that is a beacon field + a placement term (card to follow). Until then a collapsed seat draws every spill and refuses it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…e footprint record — a remembered window below the typical prompt is a fall, not a steady state, and no per-token reading is taken at a starved window (the 5090 at 1 × 2,048)

Measured 2026-09-20: the M5's 07:52Z collapse wrote (2,048, 1) to the served-window store as
"the last steady geometry" and the 08:43Z boot planned it FIRST (1 × 2,048, --cache-ram 26806).
The 5090 has served 1 × 2,048 all afternoon: every prompt the M5's minds spill to its seat is
refused ("prompt ~31143 tokens ≥ the served per-slot window of 2048") or answered against a 2k
slot; the M5's idle hour (0 acts, 228 pulls deferred) was 112 lane grants routed to that seat.
Two laws let a fall persist:

1. `StoredServedWindow::steady_geometry()`: a record whose window is below the typical prompt it
   remembers cannot have served a turn — it is the collapse the plan shed to. `None`, so a cold
   boot plans from demand instead of from the fall (its lane count no longer caps the boot at one
   lane; its window no longer joins the floor). An unknown typical (older record) never
   disqualifies; zero lanes is no geometry.
2. `lane_footprint::window_measurable(window)` / `MEASURABLE_WINDOW_MIN` (one full turn, 16,384):
   below it the bytes beyond weights are fixed buffers, and dividing them by 2,048 reads as
   ~244k B/token — saved, that record fits no window and pins the next plan at the floor the
   node fell to. The daemon WITHHOLDS the reading (`serving.footprint.unmeasured leg=starved_window`;
   the unknown-grant leg now carries `leg=unknown_grant`), the previous record stands.

Tests: `a_window_below_the_typical_prompt_is_a_collapse_not_a_steady_geometry`,
`a_starved_window_is_not_a_measurement` (pins the 244k arithmetic the floor guards against).

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 with one condition — reviewed at exact head 5a91b1c (checks running at read time).

Both laws are right and both tests pin the live shape: a window below the typical prompt the same record carries is the fall, not a state (steady_geometry), and a per-token reading below one full turn is buffers over tokens, not a measurement (window_measurable, the 500 MB / 2,048 arithmetic pinned at > 200k). The boot filter reading steady_geometry is the right seam.

The condition is the node ALREADY in the trap — the 5090 this afternoon, the M5 at 08:43Z: its lane-footprint.json says ~244k B/token, that record is what corrects the plan UP to 1 × 2,048 (a measurement above the estimate corrects it; this one is 7× above), and the starved-window leg now WITHHOLDS — no observe, so per #4251's own wording the record is "neither written nor retired". Follow the loop: record 244k → plan 1 × 2,048 → window 2,048 < 16,384 → withhold → record stands → plan 1 × 2,048. Law (2) as written makes the trap permanent for a node that is in it; law (1) does not open it either, because a boot "from demand" still costs its lanes with the 244k record and lands on one lane at the floor. So: the starved-window leg must RETIRE the model's record (the apply_sample(.., None) path already exists — observe's "no reading retires it" — call it, or an explicit lane_footprint::retire(model)), with the probe saying so: a record that cannot be re-confirmed at a measurable window must not keep ruling the plan from disk (the module's own doc, line 141). The plan then falls back to the estimate (~33k B/token), plans 2 × 67k, the window becomes measurable, and the next honest reading replaces the estimate. Pin it: a record present + a tick at a starved window → the record is gone. That is the line that lets the 5090 climb out without a hand deleting a file.

Nit, not a condition: PersonaSpawnerModule::with_remembered_lanes(load_geometry().map(|g| g.lanes)) (#4245) is a second reader of the same record and still reads a collapse as steady (lanes = 1 → the boot draws 2 minds). It errs safe — fewer residents leave the plan more memory — so no change owed tonight, but it is one record with two readers and one law; steady_geometry().map(|(_, l)| l) there keeps them one.

…node already in the trap climbs out (Cormac's condition on #4255); the roster bound reads the same steady-geometry law (his nit)

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

Copy link
Copy Markdown
Contributor Author

Condition taken at 61c28c2: the starved-window leg now RETIRES the model's record (lane_footprint::retire, saved immediately; probe carries record_retired), so record → 1 × 2,048 → withhold → record is no longer a loop: the plan falls to the estimate, plans a real window, the next honest reading replaces it. Pinned in a_starved_window_is_not_a_measurement: a trap record present, retire → gone, a second retire finds nothing. Nit taken too: the spawner's remembered lanes read steady_geometry() — one record, one law. Fresh word at 61c28c2 when green, please.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head 61c28c2. The condition is taken exactly: the starved leg retires the record through the existing no-reading path (lane_footprint::retire, saved at once, record_retired on the probe), the test pins a trap record going away, and the spawner's remembered lanes read steady_geometry so the record has one law for both readers. Merge on green; the 5090 climbing from 1 x 2,048 to a real window on its own is the receipt.

@joelteply
joelteply enabled auto-merge (squash) September 20, 2026 13:37
@joelteply
joelteply merged commit adcc7ff into canary Sep 20, 2026
6 checks passed
@joelteply
joelteply deleted the fix/a-collapsed-geometry-seeds-neither-the-next-boot-nor-the-record branch September 20, 2026 13:55
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