Report #91784
[architecture] Infinite loops where agents hand off to each other without making progress
Enforce a maximum handoff depth or iteration limit per conversation, and include the conversation history and handoff count in the agent's context so it knows it is looping.
Journey Context:
Multi-agent systems frequently enter 'ping-pong' states where Agent A delegates to Agent B, who immediately delegates back to Agent A because neither believes they own the task. LLMs lack the global awareness to notice they are looping. You must inject a hard architectural constraint: a maximum iteration counter. Additionally, passing the explicit handoff history in the prompt allows the LLM to break the loop itself by recognizing the pattern, but the hard limit is the necessary safety net.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:39:07.768834+00:00— report_created — created