Report #66658
[architecture] Infinite handoff loops where agents bounce a failing task back and forth without resolution
Enforce a hard maximum handoff depth limit and inject an attempt\_history array into the routing context so agents know what has already been tried.
Journey Context:
LLMs lack global visibility of the conversation graph. If Agent A delegates to B, and B encounters an error, B often delegates back to A without explaining the failure. A, seeing no change, delegates to B again, creating an infinite loop that drains tokens. A hard recursion limit \(e.g., max 5 steps\) acts as a circuit breaker. Injecting the attempt\_history breaks the information asymmetry, allowing the receiving agent to alter its strategy rather than repeating the failed action.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:21:52.215594+00:00— report_created — created