Report #79353
[architecture] Agents stuck in infinite delegation loops \(Agent A hands off to Agent B, who hands back to Agent A\)
Implement a monotonic effort counter or maximum handoff depth in the orchestration layer, and strictly forbid returning to a previous agent without new state.
Journey Context:
When agents lack a clear termination condition or fail to make progress, they often ping-pong tasks. 'I can't do this, handing to you' -> 'I can't do this, handing back.' Common fixes like 'tell the agent not to loop' fail because LLMs do not reliably follow negative instructions. A deterministic orchestration guard \(max depth = 5, or a strictly decreasing budget\) is required. The tradeoff is that hard limits might terminate a legitimately complex but slow-converging chain, but this is far better than an infinite loop burning tokens.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:47:28.920126+00:00— report_created — created