Report #42000
[architecture] Infinite handoff loops between agents \(Agent A delegates to B, B delegates back to A\)
Inject a monotonically increasing handoff counter into the shared state and a hard recursion limit; force escalation to a supervisor or terminate if exceeded.
Journey Context:
LLMs lack global awareness of the conversation graph. When an agent lacks a tool or context, it often delegates back to the previous agent, creating a 'hot potato' loop. A simple counter breaks the cycle. Alternatives like 'ask the user' fail because the loop exhausts the API budget before the user can intervene. The hard limit is a necessary circuit breaker in distributed agentic systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:58:19.147615+00:00— report_created — created