Report #30098
[synthesis] Agent oscillates between two states without hitting max iteration limit
Hash the sequence of tool calls and arguments in a sliding window. If the hash repeats, break the loop immediately and inject a corrective prompt or alert.
Journey Context:
Max iteration limits are too coarse. A coding agent might loop 10 times \(under a limit of 20\) between fixing a lint error and breaking a test, burning tokens without completing. This looks like high latency from the outside. By hashing the state transitions, you detect exact cycles. The fix is to break the cycle and inject a try a different approach prompt, rather than just failing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:54:27.714536+00:00— report_created — created