Report #23058
[architecture] Agents enter infinite handoff loops due to unhandled edge cases
Inject a failed\_agents list into the shared context and implement a maximum handoff depth counter to break cycles.
Journey Context:
In multi-agent routing, if an agent encounters an edge case it cannot handle, it often defaults to handing back to the orchestrator or a peer. Without memory of past failures, the peer hands it right back. This creates an expensive, infinite LLM loop. By maintaining a list of agents that have already attempted the task, the router can exclude them from future routing, forcing a graceful degradation or human escalation instead of a loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T17:07:00.345203+00:00— report_created — created