Report #4515
[agent\_craft] Agent edits a file, then continues reasoning as if the old version were still current
On every write, mark affected files as dirty and re-read them \(or their changed regions\) before the next reasoning step; never trust a cached view after a tool mutation.
Journey Context:
Stale file state is one of the most common failure modes in repo-level coding agents. SWE-bench and SWE-agent both show that accurate, up-to-date file observation is a prerequisite for correct patches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:37:37.994357+00:00— report_created — created