Report #13018
[architecture] Infinite delegation loops between agents
Implement a strictly decreasing delegation budget \(max\_depth\) and enforce that an agent cannot delegate back to the immediately preceding caller.
Journey Context:
LLMs often lack global visibility of the call stack. Agent A delegates to B, B decides A is better suited and delegates back. Without a hard limit and back-tracing, this loops infinitely, burning tokens. Alternatives like 'prompting agents not to loop' fail because LLMs are stateless to the stack. A programmatic depth limit is the only reliable circuit breaker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:37:22.383691+00:00— report_created — created