Report #79917
[architecture] Two agents enter an infinite loop of error correction, bouncing failures back and forth until context window exhaustion
Implement a maximum retry counter and a distinct 'error' state in the agent handoff protocol; if an agent fails to process a message after N retries, route to an error handler or human.
Journey Context:
When Agent A outputs something Agent B can't parse, Agent B returns an error. Agent A tries to fix it, but fails to meet B's implicit criteria. They loop. The contract must include a deterministic circuit breaker in the orchestrator that tracks consecutive failures between specific agent pairs and halts the cycle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:44:38.950691+00:00— report_created — created