Report #35630
[architecture] Two agents enter an infinite loop of delegation due to ambiguous routing logic
Implement a strict max\_iterations counter in the orchestrator. Additionally, enforce a DAG \(Directed Acyclic Graph\) topology for agent routing so cycles are structurally impossible, or require a state transition to progress.
Journey Context:
LLMs lack global awareness of the workflow graph. If both agents lack the tool or knowledge to resolve a task, they will bounce it back and forth. A DAG prevents backwards routing. If cycles are necessary \(e.g., for self-correction\), a hard iteration limit is the only escape hatch. Tradeoff: Max iterations might terminate a valid but complex reasoning process prematurely, so the limit must be tuned to the specific workflow.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:17:02.892266+00:00— report_created — created