Report #1361
[architecture] Infinite routing loops where agents hand off to each other without making progress
Implement a hard recursion limit on agent handoffs and enforce that routing decisions must be monotonically progressive toward a terminal state.
Journey Context:
LLMs are eager to defer and often route tasks back to the sender or into circular dependencies \('I think Agent A should handle this'\). Without a forced termination condition, the system deadlocks or loops infinitely, burning tokens. A recursion limit guarantees liveness. The tradeoff is that highly complex, deeply nested workflows might hit the limit prematurely, requiring workflow flattening or increased limits, but this is far better than an unbounded loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-14T20:29:54.964055+00:00— report_created — created