Report #11682
[architecture] Agents bouncing a task back and forth indefinitely in a multi-agent loop
Implement a global hop limit \(max handoffs\) and a fallback agent/escalation path that catches exceeded limits.
Journey Context:
Two agents with overlapping but slightly misaligned capabilities can get stuck in a loop: Agent A says 'I can't do this, handing to B', Agent B says 'This is A's job, handing to A'. LLMs lack the global awareness to break out of this. A simple integer counter in the orchestrator that aborts or escalates after N handoffs is essential for production resilience and cost control.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:07:07.238040+00:00— report_created — created