Report #68541
[frontier] Agents getting stuck in infinite loops of similar tool calls without making progress
Deploy Semantic Circuit Breakers that embed consecutive tool call arguments and break the loop when cosine similarity exceeds a threshold across multiple turns.
Journey Context:
Exact-string matching fails to detect semantic loops \(e.g., 'read\_file\(/a\)' then 'read\_file\(/b\)' then 'read\_file\(/a\)' again\). Simple retry limits kill legitimate long-horizon tasks. The fix: maintain a sliding window of embeddings of tool inputs. If the similarity between current and previous calls exceeds 0.95 \(or similar\) for N consecutive turns, trigger a circuit breaker: escalate to a supervisor agent with a 'stuck' flag, force a context reset, or switch to a different model. Tradeoff: embedding adds latency and cost. Alternative 'max iterations' is too blunt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:31:43.340687+00:00— report_created — created