Skip to content

fix(serving): smoke miss on an advancing lane is contention, not wedge evidence (L11) — the 23-min boot kill-loop - #2326

Merged
joelteply merged 1 commit into
canaryfrom
fix/l11-slot-progress-liveness
Aug 16, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/l11-slot-progress-liveness

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The measured failure (2026-08-16 boot, probe ledger)

Adoption at boot worked — lane ready 3 seconds after the first reconcile. Then the health machinery killed the healthy lane three times (wedge declarations 10:19:04, 10:19:49, 10:34:52; adopt_rejected 10:21:09 and 10:36:12) before a respawn finally stuck at 10:36. Twenty-three minutes of the system fighting itself per reboot, and citizens citing "the ongoing rebuilds and interruptions" in their withdrawal messages.

The lane was never wedged. It was grinding through the dead core's ghost turns — in-flight work whose clients died with the old core. No adapter stream observes that work, so every existing liveness shield (L9 decode-age, prefill stamps, #2317's delivery record) was blind, and two smoke misses read as death.

Two fixes

  1. L11 — slot-progress exoneration. On a smoke miss, fingerprint the server's own /slots (id_task, is_processing, n_prompt_tokens_processed, n_decoded — enabled by default, answers on the HTTP thread while compute is saturated). Fingerprint moved since the last miss → the serve loop is provably advancing for someone → contention, streak resets. Frozen fingerprint → counts exactly as before (the 2026-08-05 four-hour wedge held one task at one impossible progress forever), so real-wedge detection latency is unchanged. Pure verdict judge_smoke_miss lives beside its sibling classify_never_started_timeout — one classifier family, one place.

  2. Fresh lanes start with a clean failure record. serve() kills the old child, which murders its in-flight turns; their deaths stamped 4 real-turn failures onto the replacement lane's account and re-wedged it 45 seconds after birth (10:19:49) — each kill manufactured the evidence for the next. reset_real_decode_failures always promised "the freshly relaunched lane starts clean"; the reset at serve() Ok is the site that makes it true.

Tests

  • Pure verdict table (advance/frozen/first-miss/fetch-error rows)
  • Fingerprint moves with work, ignores volatile params, None on non-array (JSON shape pinned from the live /slots on :58057)
  • Daemon-level: drives miss→advance→exonerate then miss→frozen→wedge through the real spawn_health_heartbeat_if_due path; pre-existing L9/Eliminate hardcoded type switch statements across codebase (72+ sites) #363 heartbeat tests unregressed

Part of #452 (boot owns the process tree) / #446 (starvation-stamped-as-wedge family).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…dge evidence (L11) + fresh lanes start with a clean failure record

THE 23-MINUTE BOOT KILL-LOOP (2026-08-16, measured in the probe ledger):
adoption at boot WORKED (ready 3s after first reconcile) — then the health
machinery killed the healthy lane three times (10:19:04, 10:19:49→10:21:09,
10:34:52→10:36:12) before a respawn finally stuck at 10:36. The lane was
never wedged; it was grinding through the dead core's GHOST turns — real
work no adapter stream observes, so every liveness shield (L9 decode-age,
prefill stamps) was blind, and two smoke misses read as death.

Two fixes, both evidence-shaped:

1. L11: on a smoke MISS, fingerprint the server's OWN /slots (id_task,
   is_processing, n_prompt_tokens_processed, n_decoded — enabled by default,
   answers on the HTTP thread while compute is saturated). Fingerprint moved
   since the last miss → the serve loop is provably advancing for SOMEONE →
   contention, streak resets. Frozen → counts exactly as before (the
   2026-08-05 wedge held one task at one impossible progress forever), so
   real-wedge detection latency is unchanged. Pure verdict (judge_smoke_miss)
   beside its sibling classify_never_started_timeout — one family, one place.

2. serve() Ok now resets the real-decode-failure streak: our own kill murders
   the in-flight turns, whose deaths stamped 4 failures onto the REPLACEMENT
   lane's account and re-wedged it 45s after birth (10:19:49) — each kill
   manufactured the evidence for the next. reset_real_decode_failures always
   promised 'the freshly relaunched lane starts clean'; this is the site that
   makes it true.

Tests: pure verdict table + fingerprint moves-with-work/ignores-params rows
in llama_server; daemon-level heartbeat test drives miss→advance→exonerate
then miss→frozen→wedge through the real spawn_health_heartbeat_if_due path.

Part of #452 (boot owns the process tree) / #446 (starvation-as-wedge family).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit e6c4095 into canary Aug 16, 2026
5 checks passed
@joelteply
joelteply deleted the fix/l11-slot-progress-liveness branch August 16, 2026 18:04
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