Report #5511
[architecture] Agents handing tasks back and forth in an infinite loop because neither can complete the task
Implement a hard limit on agent handoffs \(e.g., max 5 turns\) and a global 'escalation' agent that catches unresolvable loops.
Journey Context:
When Agent A can't do X, it delegates to Agent B. If Agent B also can't do X, it might delegate back to A. LLMs don't naturally track global loop detection. Without a hard handoff counter and a fallback, the system burns tokens infinitely. The orchestrator must intercept when the counter exceeds the threshold and route to a fallback or terminate.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:34:58.214429+00:00— report_created — created