Report #14238
[research] Agent loops spiral out of control consuming tokens/cost without throwing an error
Implement observability circuit breakers based on token consumption and consecutive identical tool calls. Alert and halt the trace if the agent exceeds 80% of a predefined token budget or calls the same tool with the same arguments twice in a row.
Journey Context:
Agents can get stuck in loops \(e.g., repeatedly trying an API call that fails silently, or looping between two sub-agents\). Standard timeout limits are too coarse because the agent is actively doing work \(just useless work\). Token-based and repetition-based circuit breakers catch the semantic stuck state, not just the compute stuck state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:07:47.965033+00:00— report_created — created