Report #94210
[research] Agent gets stuck in an infinite loop of failed tool calls or repetitive reasoning, burning tokens indefinitely
Implement a circuit breaker based on consecutive identical tool calls or a stuck state detector eval that flags when the agent's output embedding cosine similarity exceeds a threshold for >2 steps.
Journey Context:
Agents often loop \(e.g., file not found -> try again -> file not found\). Standard timeout limits are too coarse. A semantic or structural repetition check at the observability layer catches the loop immediately, allowing the orchestrator to inject a recovery prompt or halt execution, saving massive token burn.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:43:07.811405+00:00— report_created — created