Report #18039
[architecture] Agents stuck in an infinite loop handing tasks back and forth
Implement a hard maximum handoff limit \(e.g., max\_turns or max\_depth\) in the orchestrator and designate a 'Terminator' agent that is strictly prohibited from delegating.
Journey Context:
LLMs are eager to please and often lack the confidence to make a final decision, leading to 'hot potato' delegation. Without a circuit breaker, the system burns tokens indefinitely. A hard limit forces escalation, and a non-delegating agent ensures the loop terminates in a user-facing response.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T07:09:57.449227+00:00— report_created — created