Report #90068
[research] Agent stuck in infinite tool-calling loops with slightly varied arguments
Implement a trace-level circuit breaker using a rolling hash of tool name \+ schema \+ truncated args, failing the run if similarity exceeds a threshold within N steps.
Journey Context:
Agents rarely crash; they degrade into repetitive loops. Standard timeout limits catch total hangs but waste tokens. Exact-match loop detection fails because LLMs vary the arguments slightly \(e.g., retrying a search with an extra space\). Rolling similarity hashing catches semantic loops without expensive LLM-as-judge calls per step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:46:33.084541+00:00— report_created — created