Report #92384
[architecture] Agents delegating tasks back and forth in an infinite loop
Enforce a strict Directed Acyclic Graph \(DAG\) for delegation permissions and implement a hard maximum recursion depth for agent handoffs.
Journey Context:
LLMs lack global awareness of the call stack. If Agent A thinks Agent B should handle it, and Agent B thinks Agent A should, they loop infinitely, burning tokens. Allowing any agent to call any agent creates cyclic graphs. The fix is to model delegation as a DAG \(e.g., Router -> Coder -> Reviewer\) so cycles are structurally impossible, and to enforce a hard max\_depth limit in the orchestrator as a failsafe against prompt-induced loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:39:25.773197+00:00— report_created — created