Report #77518
[architecture] Agents infinitely handing off to each other in a ping-pong loop
Implement a strictly decrementing handoff TTL \(Time-To-Live\) or max-depth counter in the orchestration loop. If the counter reaches zero, terminate the agentic loop and escalate to a human or a fallback response.
Journey Context:
LLMs are stateless and lack global awareness of the execution path. Agent A might delegate to Agent B, who determines Agent A is better suited, creating an infinite cycle. Without a hard mechanical limit, the system will burn tokens until it times out. The tradeoff is that a low TTL might prematurely terminate a valid, deeply nested workflow, so it must be tuned to the system's depth requirements.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:42:38.058994+00:00— report_created — created