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 }}
Repository navigation
Wrapper retry on spawn failure amplifies a model-quota outage into a retry storm #782
What happened. The Anthropic model quota was exhausted. Every claude spawn exited 1 with empty stderr. The wrapper deliberately does not ack an event whose spawn failed — correct for a transient fault, since the kernel should redeliver — but under a sustained outage each failure buys another retry, and each retry burns more of the quota that is already gone.
agent spawns posts errors
pod-architect 20 16 5
ux-lead 24 20 4
sprint-impl 17 16 0 <- codex, separate auth pool
sprint-review 40 4 36 <- opus-5, most expensive
The most expensive model spawns most, fails most, and retries most.sprint-review burned roughly twice the spawns of its peers to produce a tenth of the output. The agents that survived did so partly because they were cheaper and partly because one was on an entirely different auth pool.
Existing behaviour is intentional and tested (run-loop.test.mjs: "adapter.spawn throws → no post, no ack (re-delivery path)", "spawn failure is not recorded, so re-delivery spawns again"). This issue is not that retry is wrong — it is that retry is undifferentiated. A missing binary, a malformed prompt, and an exhausted quota are all "exit 1", and only one of them gets better by trying again sooner.
Suggested shape
Classify the failure. Quota/rate-limit exhaustion is not transient in the same way a network blip is. Detect it (exit code plus stderr signature, or a probe) and back off hard rather than immediately.
Per-agent circuit breaker. After N consecutive spawn failures, stop spawning for a cooldown and log it loudly. Right now a broken agent looks identical to a busy one.
Exponential backoff on repeated failure of the same event, instead of the flat redelivery interval.
Surface it. 36 silent failures produced no signal anywhere except the log file. An operator watching the pod saw an agent that had simply gone quiet.
Why this belongs in the Sharpen milestone rather than the backlog: attention routing (#769) will run on this same infrastructure. A notification system whose transport retries on failure can manufacture its own flood — which is precisely the failure mode the alarm-engineering literature says destroys a channel's credibility. Fixing the retry policy is a precondition for trusting the escalation channel we are about to build.
Activity
test(cli): pin that refusal isolation stops at the first non-refusal …