Repository navigation
fix(serving): never-started timeout on a delivering lane is starvation, not wedge evidence (round-killer L8) - #2317
Merged
Conversation
…ion, not wedge evidence (round-killer L8)
Live incident 2026-08-15 (bench-hard-rs, dispatched 12:16): serving.health
declared 'sustained real-turn failures' and relaunched the Qwen3.8-27B lane
every 2 minutes, forever — while llama-server's own log showed 11k-token
completions at 17.5 t/s between the kills. The lane was never wedged; it
was OVERSUBSCRIBED (demand_lanes=4 on 1-2 slots, multi-minute thinking
turns). Queued turns timed out never-started, each stamped
note_real_decode_failure, two stamps hit HEALTH_FAILS_TO_RELAUNCH, and the
relaunch killed the in-flight generations that proved the lane healthy —
re-queueing everything into the next 2-minute cycle. The round produced
zero graded work.
The adapter's never-started timeout arm has always admitted the ambiguity
in its own error text ('either the backend is dead or the queue is
oversubscribed far beyond this budget') and then stamped both worlds
identically. The smoke path already learned this lesson ('DELIVERY BEATS
PROBING — probe quiet lanes, trust busy ones'); the real-turn counter,
which deliberately OUTRANKS that trust path (#363), had the same
busy-vs-wedged confound unaddressed.
Fix: classify_never_started_timeout(ms_since_real_decode, waited_ms) — a
pure function judging the timeout by the lane's OWN delivery record. Real
tokens for ANYONE within the window we waited = Starved: alive,
oversubscribed, NO wedge stamp; the shortfall stays loud on its own
channel (inference.queue_starved — #234 QoS reads this). No delivery
across the whole wait, or none ever observed = WedgeEvidence: stamp, the
#363 undersized/dead class the counter exists for. Started-then-stopped
and keepalive-masked stalls (#385) keep stamping unconditionally — those
are genuine per-slot evidence.
Table test covers busy/dead/fresh-boot/boundary rows.
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.
Live incident 2026-08-15: the health monitor relaunched a healthy, actively-decoding 27B lane every 2 minutes because queue-starved turns (4 demand lanes, 1-2 slots) stamped real-turn failures. The round produced zero graded work. See commit message for the full chain — probes, llama log, and the 2-minute heal/kill cycle timestamps all captured in-session.
Classifier is pure + table-tested (busy/dead/fresh-boot/boundary). Starvation stays loud via
inference.queue_starvedfor #234 QoS — it stops masquerading as lane death.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo