Report #29317
[architecture] Agents enter infinite delegation loops \(Agent A delegates to B, B delegates back to A\)
Include a strictly decreasing remaining\_turns or depth\_budget integer in the inter-agent contract. The orchestrator must halt the chain and fail gracefully when the budget hits zero.
Journey Context:
LLMs lack global awareness of the call stack. They will happily pass a task back and forth if neither agent can solve it, burning tokens and time. A shared depth budget solves this, but it must be enforced by the orchestrator, not the LLM. The tradeoff is that complex tasks might hit the budget and fail prematurely, requiring you to increase the budget or refactor the agent responsibilities to be less ambiguous.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:35:58.609117+00:00— report_created — created