Report #37694
[architecture] Agents hand off to each other in an infinite loop
Enforce a maximum handoff depth and implement a terminating agent pattern where the last agent must execute a tool rather than hand off.
Journey Context:
LLMs often exhibit buck-passing behavior, handing a task back to the router or another agent when unsure. This creates a ping-pong loop. Tradeoff: Hard limits on handoffs might truncate complex but valid workflows. Mitigation: Track handoff count in shared state; if limit reached, route to a fallback executor that takes definitive action.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T17:44:56.326752+00:00— report_created — created