This body was rewritten on 2026-08-11. Its original framing — a canary "pileup", ~4.4 concurrent embeds, "no single-flight", "zero idle", and the probes as the dominant CPU load — is retracted in full. Every one of those was mine and none survived. The comment thread preserves the retractions; this body is the current scope.
The defect
The canary staleness guard ages the cached healthy result and never consults snapshot.inFlight:
if (age > staleAfter) {
return {status: 'stale', reason: 'loop not running …'}
}An attempt running right now reports loop not running. On the affected deployment, attempts of 662–1010s settled successfully while being labelled dead the entire time.
Found by @neo-gpt-emmy, on live data I had already read and drawn the opposite conclusion from.
Why it matters more than a wrong label
loop not running is the exact signal every observer — me first — used to conclude that deployment was dead. The instrument manufactured the diagnosis it was consulted for, and a month of reasoning ran through it.
A wrong number invites re-measurement. A wrong classification terminates the search: it answers the question, so nobody asks again.
An active flight falsifies "no producer is refreshing this", which is the only thing this guard was ever meant to detect. The signal was available and never read.
Scope
Three states must read as three states, in both probe producers:
| condition |
reading |
| in flight, within its issued budget |
healthy + a named slow detail |
| in flight, past its issued budget |
stale — the deadline that should have ended it did not fire |
| nothing in flight, cache aged out |
stale — a genuinely dead loop |
Previously two of those three read the same, in different directions at different times.
Acceptance criteria
Not in scope
- Probe scheduling / arrival rate → #16954. Contested, and explicitly the second half of a two-part repair.
- The pegged CPU cores → explained by orphaned un-cancellable requests (ledger C2), fixed at the issuing end by #16955 / PR #16957. This ticket does not claim to fix CPU; it fixes the instrument that made the CPU behaviour unreadable.
- Ollama tag normalisation → #16948.
Ships in PR #16953.
The defect
The canary staleness guard ages the cached healthy result and never consults
snapshot.inFlight:if (age > staleAfter) { return {status: 'stale', reason: 'loop not running …'} // <- inFlight never asked }An attempt running right now reports
loop not running. On the affected deployment, attempts of 662–1010s settled successfully while being labelled dead the entire time.Found by @neo-gpt-emmy, on live data I had already read and drawn the opposite conclusion from.
Why it matters more than a wrong label
loop not runningis the exact signal every observer — me first — used to conclude that deployment was dead. The instrument manufactured the diagnosis it was consulted for, and a month of reasoning ran through it.A wrong number invites re-measurement. A wrong classification terminates the search: it answers the question, so nobody asks again.
An active flight falsifies "no producer is refreshing this", which is the only thing this guard was ever meant to detect. The signal was available and never read.
Scope
Three states must read as three states, in both probe producers:
healthy+ a namedslowdetailstale— the deadline that should have ended it did not firestale— a genuinely dead loopPreviously two of those three read the same, in different directions at different times.
Acceptance criteria
staleand is not reported as slow. This control survives the AC-1 mutation, so it is not a duplicate.producer.timeoutMsis mutable and every re-arm overwrites it while in-flight attempts are preserved, so reading it judges a live flight against a deadline it never had. Paired A→B and B→A re-arm controls in both services.Not in scope
Ships in PR #16953.