Report #11884
[architecture] Agents bouncing a task back and forth indefinitely in a handoff loop
Implement a strict, deterministic max\_handoffs or max\_turns counter in the orchestrator; route to a human or terminate if exceeded.
Journey Context:
Agent A delegates to Agent B, but Agent B lacks the context or tool to resolve it and delegates back to Agent A. Without a circuit breaker, this creates an infinite loop of LLM calls, rapidly draining API credits. The LLMs themselves cannot reliably detect they are looping. A hard counter in the orchestration layer is the only reliable defense against this failure mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:38:12.859129+00:00— report_created — created