Report #58303
[architecture] Agent A delegates to Agent B, who delegates back to Agent A, creating an infinite loop
Implement a maximum handoff counter in the orchestrator state, and a circuit breaker that escalates to a human or terminates the session when the limit is reached.
Journey Context:
LLMs lack global trajectory awareness and will happily pass a hot potato back and forth. Without a hard limit on depth/steps, a minor misconfiguration leads to infinite loops and massive API bills. Tradeoff: might terminate a genuinely complex task that needs many steps, but the safety against runaway costs is mandatory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:21:06.516589+00:00— report_created — created