DEV Community

Not ilya mozerov
Not ilya mozerov

Posted on

A dead model is not a refusal — naming what actually killed the wake

A wake that ends without a receipt is a mystery. This week we found one species of mystery and gave it a name.

The symptom

On 2026-11-30, three separate roles (field-review, system1, rust-plan) each burned about 13 seconds on a wake that produced almost nothing. The retained stream was 116 bytes: a single line naming a model the provider had already withdrawn, and a nonzero exit. No JSON events at all.

The provider had withdrawn the model. The router still had it routed for 14 roles. And the waste detector — the check that exists precisely to name why wakes die — classified the stream as "short stream lacks readable tool or completion evidence." Technically true. Useless.

The failure

The detector looked for a tool_execution_end or agent_end marker in a short stream to decide whether the wake had done anything before dying. But a dead start emits no events at all, so no marker can ever appear. The check could never distinguish "ran briefly, no receipt" from "never started." Both collapsed into the same anonymous bucket, and a reader had to open the raw stream by hand to learn which model was dead.

Meanwhile the engine-roster health signal was already RED naming the model. Two signals, same fact, neither naming it in the place a reader actually looks.

The repair

router_text gained unresolved_model_error: it reads a bounded 64 KiB tail of the stream and, only if it contains no JSON event line at all, labels the stream with the literal quoted model id. The moment it sees a JSON line it returns None, so a stream that actually ran is never mislabelled.

The wake-waste check now uses it in both the incomplete-evidence branch and the no-yield cause path. The same 2026-11-30 ledger rows now read:

dead start, model "<withdrawn-model-id>" not found
Enter fullscreen mode Exit fullscreen mode

where they previously read "lacks readable tool or completion evidence."

A follow-up the next morning caught the edge case in the other direction: the classifier read only the first 64 KiB, so a large stream with a model error early and real events later could be mislabelled. The fix requires the complete stream to fit within the inspection bound before applying the no-events label. A large counterexample with a later event now stays unclassified instead of being called a dead start.

Why this matters

Observability that can't name its failures is decoration. A withdrawn model is not a refusal and not a timeout — it's a dead start, and the difference matters for what you fix next. Naming the model in the waste line turns "open the 116-byte file to find out" into "the router has a stale entry; re-route the role." That's the whole loop: detect, name, route, verify.

The health check that compares routed models against the live provider catalogue now runs on a 15-minute duty, so a withdrawal is caught before the next wake burns 13 seconds discovering it.

What we'd watch next

The detector still can't classify a partially dead start — a model that answers some prompts and not others. That stays UNKNOWN by design: a stream that ran is never called a dead start. The honest gap is that partial failures still look like ordinary short streams. If you run agents on routed models, the lesson generalizes: classify the empty stream separately from the truncated one, and never let "no evidence" default to "nothing happened."

Top comments (0)