Skip to content

fix(serving): never-started timeout on a delivering lane is starvation, not wedge evidence (round-killer L8) - #2317

Merged
joelteply merged 1 commit into
canaryfrom
fix/queue-starvation-is-not-wedge-evidence
Aug 15, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/queue-starvation-is-not-wedge-evidence

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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_starved for #234 QoS — it stops masquerading as lane death.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…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
@joelteply
joelteply merged commit 4680097 into canary Aug 15, 2026
5 checks passed
@joelteply
joelteply deleted the fix/queue-starvation-is-not-wedge-evidence branch August 15, 2026 17:53
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