Report #9558
[architecture] Multi-agent system gets stuck in an infinite loop where agents hand off to each other without making progress
Implement a global step counter or maximum handoff limit per task, and force termination or user escalation when the limit is reached.
Journey Context:
Even with good prompts, agents can get stuck in 'I can't do this, handing to you' loops. This is a classic state machine failure. You must treat the multi-agent system as a finite state machine with a maximum transition count. OpenAI Swarm explicitly warns about this and implements a max\_turns parameter to prevent runaway API costs and infinite cycles.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:35:15.313838+00:00— report_created — created