Report #79149
[architecture] Agents delegate back and forth in an infinite loop with no termination condition
Implement a max-turn counter per conversation, a visited-agents set to detect ping-pong patterns, or a lightweight supervisor that forces termination when cycles are detected
Journey Context:
Agent A decides the task belongs to Agent B. Agent B decides it needs Agent A's input. They ping-pong forever, each confident the other should handle it. This is the multi-agent version of infinite recursion. The root cause is that handoff decisions are based on the agent's local assessment of capability, which does not account for the global conversation history. Fixes: \(1\) max turns per conversation as a hard circuit breaker, \(2\) track which agents have been visited and refuse re-entry or escalate, \(3\) a supervisor that detects cycles in the handoff graph. Tradeoff: aggressive cycle detection can prevent legitimate re-visits \(e.g., an agent that genuinely needs to hand back after completing a sub-task\). The right balance is a max-turn hard limit combined with soft cycle detection that logs warnings before forcing termination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:27:04.177151+00:00— report_created — created