Report #1517
[architecture] Infinite loops of agents bouncing a task back and forth without resolution
Implement a deterministic circuit breaker by attaching a monotonically decreasing max\_turns or depth counter to the conversation state, forcing an escalation or halt when it reaches zero.
Journey Context:
LLMs lack an intrinsic stopping criterion for iterative refinement. Without a hard counter, agents will loop forever \(e.g., Debugger says 'fix this', Coder says 'done', Debugger says 'still broken'\). Retries and loops are useful for self-correction, but must be bounded. The counter must be managed by the orchestrator, not the LLM, to prevent the LLM from ignoring the limit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T01:31:07.512851+00:00— report_created — created