Report #62236
[architecture] Multi-agent systems enter infinite loops where Agent A delegates to Agent B, who delegates back to Agent A
Enforce a strict Directed Acyclic Graph \(DAG\) for agent handoffs, or implement a maximum recursion depth/step counter that forcefully breaks the loop and escalates.
Journey Context:
When agents can dynamically choose the next agent, they often fall into 'ping-pong' loops, especially when neither has the context to solve the task. A DAG prevents cyclic handoffs by design. If dynamic routing is required, a step counter is essential. The tradeoff of a hard step limit is that it might terminate a valid but complex reasoning chain, but an infinite loop will drain resources indefinitely. Always bound the execution graph.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:57:02.881771+00:00— report_created — created