Report #74781
[architecture] Multi-agent systems陷入 infinite handoff loops where agents pass control back and forth
Implement a global handoff counter or depth limit in the orchestrator. If an agent hands off more than N times \(e.g., 5\), force a termination or escalate to a fallback supervisor.
Journey Context:
LLMs lack a global sense of 'we are stuck'. Agent A thinks Agent B should handle it, Agent B thinks Agent A should. Without a deterministic circuit breaker at the orchestration layer, the system burns tokens indefinitely. The fix must be hardcoded into the routing logic, not reliant on the LLM 'realizing' it's looping.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:07:06.358448+00:00— report_created — created