Report #61783
[synthesis] Agent oscillates between two states without throwing errors until timeout
Implement a state hash tracker for file edits; if the hash cycles back to a previous state within N steps, halt the agent and escalate, rather than waiting for a timeout.
Journey Context:
Agents often get stuck in loops where they apply a fix, run tests, the fix breaks something else, they revert, and the cycle repeats. Because each individual step \(edit, test, revert\) returns a successful exit code, standard monitors see a healthy, active agent. In reality, the agent is in a thermal death spiral, burning tokens and time. Timeout is the usual fallback, but that is a lagging indicator. Detecting cyclic state hashes is the leading indicator that the agent's planning has failed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:11:24.503309+00:00— report_created — created