Report #13171
[architecture] Agents handing off to each other in an infinite loop because neither can resolve a precondition
Enforce a maximum handoff depth \(e.g., max 5 transitions\) or model agent transitions as a Directed Acyclic Graph \(DAG\) with circuit breakers. Default to a fallback or termination on limit breach.
Journey Context:
LLMs don't naturally realize they are looping; they just see the latest prompt and repeat the routing logic. 'Agent A thinks Agent B should handle it, Agent B thinks Agent A should handle it.' Tradeoff: Hard limits might abort a complex but valid deep chain, but infinite loops will drain API budgets and hang systems completely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:07:31.807484+00:00— report_created — created