Repository navigation
fix(serving): a starved window cannot measure itself — a trimmed turn samples its demand, a refused prompt samples its size (the 5090 at 2 × 2048) - #4256
Conversation
… samples its demand, a refused prompt samples its size The 5090, 2026-09-20, build e1c9e41 (canary tip, the S4U consumer's first deploy): serving 2 × 2048 and refusing 2,932 prompts — p10 8k, p50 56k, p90 136k — while served-window.json remembered typical_prompt_tokens = 828 and serving.geometry.settled wrote 2048 × 2 as the geometry the next boot plans first. Every turn on the grid routed to this seat and bounced (Fable's remote_lane.answered served_window Some(2048) → "refusing to generate"). The seal, two sample sites: - local: `record_sent` took the POST-FIT size. A fit is bounded by the window by construction, so under 2048 every 56k turn sampled ~828, the median read 828, `window_target` floored 828 × 1.25 to MIN_SERVE_CTX = 2048, and the store remembered it. The window measured itself. - remote: `note_leased_in_sent` fired only on a served generate; a prompt the guard REFUSED never reached the pool. The seat's median saw only what fit. Fix, one rule: a prompt the window failed votes at its real size. - `WorkingSetRegistry::sent_sample_for_plan(demand, sent, window)`: at a window that trimmed the turn (demand > window) the untrimmed demand is the sample; at a window that held it, what was sent is. Pure, pinned with the 5090's numbers (56,057 / 828 / 2048 → 56,057). - `serving_guard`'s refusal notes the refused size into the seat's pool (`note_refused_prompt`), beside served leased-in prompts. Fable's #4237/#4238 lane (the store must not seed a starved geometry; no footprint reading at a starved window) is the same fault from the store's side; this is the sample side. Together: a starved boot climbs out on its own first plan tick instead of remembering the starvation. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
|
APPROVE — reviewed at exact head 494c627 (checks running at read time; merge on green). This is the sample-side half of the seal and the diagnosis is exact: a post-fit "sent" is bounded by the window by construction, so fed back as the window's floor it can only confirm the window (828 under 2,048 while 2,932 prompts at p50 56k were refused). Both fixes are the right mirror — a turn the window trimmed samples what it NEEDED, a prompt the seat refused samples its size into the pool — and the loop converges: demand > window → the window grows → the fit stops trimming → sent ≤ window votes again. The refused-prompt pin (56,057 lands in the pool) and the three-case One note for the receipt, not a condition. |
|
APPROVE — reviewed at exact head 494c627. The seal is exactly the mirror of #4255: a window that trimmed the turn must not be the one that measures the turn, and a prompt the guard refused votes its real size into the seat's pool. |
… is never published — the previous plan stands and the trap record retires (no constant; card 2eec3977) (#4257) * fix(serving): a plan whose window is below what the residents require is never published — the previous plan stands and the trap record retires (no constant: the requirement is the residents' measured typical with headroom today, their declared role requirement under the allocator; card 2eec3977) Joel, 2026-09-20, reading the 5090 at 2 × 2,048 refusing 2,932 prompts (p50 56k): "2k context is a complete waste of a lane"; and on a fixed floor: "you're making rigid laws that concern me". So the seam holds a comparison, never a number: - `serving_plan::persona_lane_holds(window, requirement)` — pure; the requirement is `ServingDemand::typical_prompt_floor()` (the median sent prompt × headroom, sealed against a starved window by #4256); `None` imposes nothing beyond the engine's runnable floor. - `publish_plan`: a plan below the requirement is NOT published — the previously published plan stands (a running lane keeps serving), and `lane_footprint::retire` drops the per-token record that shrank the window so the next tick plans from the estimate. Probe `serving.plan.below_persona_floor {model, lanes, window, requirement, record_retired}`, once per (model, window, lanes). Stopgap by design: it dies with the planner when the allocator (declared requirements × measured capacity, one grid daemon) lands; the same comparison then reads the declaration. Tests: `a_persona_lane_holds_what_the_residents_require`, `a_plan_below_one_coding_turn_is_not_published_and_the_previous_stands` (a real plan, then a squeezed budget: the real plan stands). `publish_plan_drives_the_watch` fixtures carry real trained windows and a measured demand ceiling, as every live node has. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): a below-requirement plan only refuses when a previous plan stands — a cold daemon publishes its best runnable plan and says so Cormac's condition on #4257: with nothing published, refusing the only runnable plan left the node with no lane at all. Now the below-requirement leg retires the record and probes serving.plan.below_persona_floor with published=true when no plan stands, and returns (the previous plan stands) only when one does. Test gains the cold-boot case. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): the daemon's demand pool without a registry is the residents the working set remembers — and the test seeds it there, not in the process-global ring CI on #4257: the test seeded eight 56k samples into resource_admission's leased-in ring, which every test in the binary shares; the 8272-test run's ring then held other tests' 30k samples (the roomy plan came out at 37,561) and this test's 56k samples re-homed a 65k lane in a_jittering_gain_never_accumulates_into_a_re_home. Now the no-registry branch of demand derivation folds the working set's remembered residents into the median (a node reboots with the same minds; their last prompts are its best floor), and the test records its samples on the daemon's own working set. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(serving): the daemon's leased-in sample ring is an injectable source, and the seam tests own their demand pool CI twice: the roomy plan came out at 37.5k because sent_median_with folds the process-global leased-in ring, which resource_admission's own test fills with 64 samples near 30k; and this test's 56k samples in the global working set re-homed the 65k lane of a_jittering_gain_never_accumulates_into_a_re_home. LeasedInSentSource on the daemon (the DecodeAgeSource pattern; production = the ring), set_leased_in_sent_source under cfg(test), and the three seam tests take a private WorkingSetRegistry plus an empty ring. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(serving): every harness daemon owns its demand pool Third CI run: a_jittering_gain_never_accumulates_into_a_re_home read the process-global working set's remembered residents (other tests' sent samples) as a requirement above its 65k plan. daemon_with gives every harness daemon a private WorkingSetRegistry and an empty leased-in ring; no daemon test reads working_set::global() directly. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
Measured on the 5090, now (build e1c9e41 = canary tip, the S4U consumer's first deploy)
serving/status: lanes 2, served_context_window 2048.served-window.json:per_slot_window 2048, lanes 2, typical_prompt_tokens 828.serving.geometry.settledat 13:32Z wrote 2048 × 2 as the geometry the next boot plans first. Refusals in the logs: 2,932 — p10 8,243 · p50 56,057 · p90 136,127 · max 212,667 tokens. No prompt on this grid fits 2048; every turn routed to this seat bounces (Fable'sremote_lane.answered served_window Some(2048)).The seal — the window measures itself
record_senttook the post-fit size. A fit is bounded by the window, so under 2048 every 56k turn sampled ~828 → median 828 →window_targetfloors 828 × 1.25 toMIN_SERVE_CTX= 2048 → the store remembers 2048 as steady.note_leased_in_sentfired only on a served generate; a prompt the guard refused never reached the pool. The seat's median saw only what fit.Fix — a prompt the window failed votes at its real size
WorkingSetRegistry::sent_sample_for_plan(demand, sent, window): at a window that trimmed the turn, the untrimmed demand is the sample; at a window that held it, what was sent is. Pure; pinned with the 5090's numbers.serving_guard's refusal notes the refused size into the seat's pool (note_refused_prompt) beside served leased-in prompts; pinned.Fable's store-side fixes (#4237: the window follows the typical prompt; the pending "a remembered geometry below the residents' typical prompt must not seed the boot") are the same fault from the other side. Together a starved boot climbs out on its first plan tick instead of remembering the starvation.
Receipt after deploy here:
serving.planwindow ≥ 56k × 1.25 within a tick of the first turns, a re-home off 2048,refusing to generatecount flat, and the health line with acts > 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc