Report #24708
[architecture] Agents passing control back and forth indefinitely due to ambiguous exit conditions in cyclic topologies
Enforce a strict max-handoff counter with a fallback to a supervisor, or design the agent topology as a Directed Acyclic Graph \(DAG\) to guarantee termination.
Journey Context:
Cyclic agent systems seem powerful for self-correction but easily devolve into infinite loops where agents bounce tasks back and forth. DAGs guarantee termination by design. If cycles are necessary for retries, hard limits are mandatory. Tradeoff: loss of unlimited iterative refinement vs. guaranteed termination and cost containment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:52:43.008848+00:00— report_created — created