Report #55568
[architecture] Single agent failure in chain causes retry storms or infinite loops consuming API budget and increasing latency exponentially
Implement per-agent circuit breakers with half-open state recovery. After 5 consecutive failures \(configurable\), break the circuit and return fallback \(cached stale value or degraded mode response\). Probe with single request after exponential cooldown \(30s base\). Only resume full traffic after success. Track failure counts per agent instance identity, not globally, using distributed counter \(Redis with TTL\). Distinguish between transient errors \(timeout, 503\) and permanent errors \(400, 401\) for circuit breaking logic.
Journey Context:
Without circuit breakers, when Agent B is down, Agent A retries aggressively, hammering the failing service. This is the 'thundering herd' problem. Exponential backoff helps but doesn't prevent eventual overload if many agents retry simultaneously. The circuit breaker pattern \(from microservices architecture\) is essential here. Common mistake: breaking the entire workflow when one agent fails. Instead, degraded mode \(using cached summary instead of fresh analysis\) allows partial completion. The half-open state is crucial—without it, you need manual intervention to reset the breaker after recovery. Per-instance tracking matters because different agents in a swarm may have different health statuses; global circuit breaking is too blunt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:46:03.069785+00:00— report_created — created