You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 6, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 6, 2026. It is now read-only.
dispatchCapacity reports healthy while both slots are held 13.5h by offline agents: no max hold for an occupied slot #419
dispatchCapacity reports state: "healthy" while both of its slots have been held for 13.5 hours by agents that are offline and produced no work.
Live reading from the deployed daemon's unauthenticated /healthz at 2026-08-31T11:03:22.808Z (controls held in the same window: bogus route -> 404, /evidence unauthenticated -> 401, /healthz -> 200):
48505635 ms is 13.47 hours. The container booted at 2026-08-31T09:56:20.539Z, so both slots were acquired 741 minutes before this process existed — back-computed to 2026-08-30T21:34:57.173Z and 21:34:06.385Z. They survived the restart.
Why it reports healthy
There are two hold bounds and neither applies:
waitWarnMs (1800000) concerns queue wait time. waiting: 0, so it never triggers.
agentlessHoldTimeoutMs (1800000) bounds a slot held without a placed agent. Both occupants have placedAgents: 1, so they are exempt.
There is no maximum hold for a slot that has an agent placed. A slot can be held indefinitely — here 27× the agentless timeout — and the subsystem still reports healthy. The one bound that exists is the one that does not apply to the failure that actually happens.
Why it matters
batchSize is 2 and both slots are occupied, so no candidate can be placed at all while this persists. It is a total dispatch stop that presents as a green subsystem. An operator reading /healthz sees dispatchCapacity: healthy and correctly concludes capacity is fine; it is fully consumed by two ghosts.
It is currently masked by a second condition — readinessReconcile is stalled on this boot, so nothing is being enumerated and nothing queues behind the full slots. That is why waiting is 0 rather than climbing. The moment the sweep recovers, this becomes the binding constraint.
What done looks like
A maximum hold for an occupied slot, not only for an agentless one. A slot whose placed agent has gone offline, or which has exceeded any plausible run duration, must be reclaimable.
state must reflect it. A slot held past that bound degrades dispatchCapacity, so /healthz stops reporting healthy during a total dispatch stop.
Reclamation must survive a restart, or the durable record must be cleared on boot. These occupants have already survived one restart, which is what makes them unrecoverable today — there is no operator path to release them short of editing durable state.
A test with a must-fire / must-not-fire pair: a slot held past the bound with an offline agent degrades state and is reclaimed; a slot held by a genuinely running agent inside the bound does not.
Activity
test: pin the placed-agent boundary at exactly agentHoldTimeoutMs (#419)
fix(dispatch-capacity): degrade state when a placed slot outlasts age…