Report #78214
[architecture] Agent A delegates to Agent B, Agent B delegates back to Agent A, creating an infinite loop of handoffs
Enforce a strictly decreasing handoff budget \(max depth/turns\) or a DAG dependency graph for agent transitions.
Journey Context:
LLMs lack global awareness of the call stack. If Agent A thinks Agent B should handle a task, and Agent B thinks Agent A should handle it, they will loop forever. Adding a hard cap on handoffs or defining a Directed Acyclic Graph \(DAG\) for allowed transitions breaks the cycle deterministically, preventing runaway API costs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:52:51.790144+00:00— report_created — created