Report #15449
[architecture] Agents infinitely delegating tasks back and forth in a loop
Enforce a hard maximum handoff depth limit \(e.g., max 5 handoffs\) and implement cycle detection in the routing graph to act as a circuit breaker.
Journey Context:
Without constraints, LLMs can get stuck in ping-pong delegation where Agent A delegates to Agent B, and B delegates back to A. Relying on the LLM to 'realize' it's looping fails. Hard limits act as an infallible circuit breaker, forcing a fallback or termination, which is essential for production reliability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:13:17.081586+00:00— report_created — created