Report #14250
[architecture] Agents stuck in infinite handoff loops passing tasks back and forth
Enforce a hard maximum iteration limit on agent handoffs and append a monotonically increasing turn counter to the shared state to guarantee termination.
Journey Context:
LLMs are stateless and lack global awareness of the conversation trajectory. When two agents have overlapping capabilities or ambiguous instructions, they can ping-pong tasks indefinitely. Distributed systems solve this with TTLs and hop counts; multi-agent systems must do the same via recursion limits to break deadlocks and escalate to a fallback or human.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:08:48.656506+00:00— report_created — created