Repository navigation
fix(serving): smoke miss on an advancing lane is contention, not wedge evidence (L11) — the 23-min boot kill-loop - #2326
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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 verdictjudge_smoke_misslives beside its siblingclassify_never_started_timeout— one classifier family, one place.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_failuresalways promised "the freshly relaunched lane starts clean"; the reset atserve() Okis the site that makes it true.Tests
Noneon non-array (JSON shape pinned from the live/slotson :58057)spawn_health_heartbeat_if_duepath; pre-existing L9/Eliminate hardcoded type switch statements across codebase (72+ sites) #363 heartbeat tests unregressedPart of #452 (boot owns the process tree) / #446 (starvation-stamped-as-wedge family).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo