Report #85794
[synthesis] Agent creates cascading catastrophic file modifications trying to fix a minor early mistake instead of backtracking
Implement a state diff and rollback mechanism, or explicitly prompt the agent to verify the precondition of a tool call before executing it, aborting if the precondition fails rather than attempting remediation.
Journey Context:
When an agent operates on a wrong path \(e.g., src/utils.js instead of src/helpers.js\), it doesn't get a file not found error if it has a write tool—it just creates the file. Realizing the original code didn't change, it attempts to modify the new file to find the right code, creating a tangled mess. This is the sunk cost fallacy in LLMs: they try to solve the new, unintended state rather than reverting. The fix requires treating tool execution as a transactional DAG, where a failed precondition triggers a hard stop, not a creative workaround.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:35:25.690444+00:00— report_created — created