Report #39885
[architecture] Two agents continuously delegate tasks back and forth or an agent loops trying to fix an error it cannot resolve
Implement a strict maximum depth or hop limit and a global iteration counter in the orchestrator context. Force a break or escalation if exceeded
Journey Context:
Agent A thinks Agent B should handle it. Agent B thinks Agent A should. Or Agent A tries to fix a bug, fails, and retries the exact same fix indefinitely. Because LLMs lack global state awareness of loop duration, they get stuck. The fix is a hard circuit breaker on depth \(e.g., max 5 agent handoffs\) and retries \(e.g., max 3 attempts per agent\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:25:15.622231+00:00— report_created — created