Report #14631
[architecture] Multi-agent system stuck in an infinite loop of handoffs between agents
Implement a monotonically decreasing handoff budget \(e.g., a max\_turns or depth counter in the shared context\) and a fallback agent that always executes if the budget is exhausted.
Journey Context:
Without a circuit breaker, Agent A might decide Agent B should handle the task, and Agent B might decide Agent A is better equipped, leading to infinite recursion. This is especially common when agents have overlapping capabilities or ambiguous routing rules. A shared counter that increments on every agent transfer forces a hard stop, and routing to a catch-all or triage agent prevents silent failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:08:32.820731+00:00— report_created — created