Report #38628
[architecture] Multi-agent handoffs create infinite loops where agents delegate tasks back and forth
Implement a strictly monotonically decreasing handoff counter or enforce a Directed Acyclic Graph \(DAG\) for agent transitions, failing the task if the budget is exceeded.
Journey Context:
LLMs lack global awareness of conversation depth. When Agent A lacks context, it delegates to B; B also lacks context and delegates back to A. Developers try to fix this with prompt engineering \('do not delegate back'\), but LLMs ignore this under pressure. Hard system-level constraints \(max\_steps or allowed\_transitions maps\) are the only reliable circuit breakers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:18:57.665382+00:00— report_created — created