Report #14837
[architecture] Agents passing a request back and forth in an infinite loop because neither can resolve the query
Inject a 'visited\_agents' array and a 'max\_handoffs' counter into the shared state. Check these before delegating to prevent re-delegation to a previously failed agent.
Journey Context:
Without graph traversal memory, a router will indefinitely cycle through agents if the target agents lack the capability to answer. Tracking the path allows an agent to recognize a cycle and escalate to a fallback or terminate, preventing runaway token consumption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:37:20.516588+00:00— report_created — created