Report #87989
[synthesis] Partial tool execution leaves codebase in unrecoverable broken state
Implement transactional boundaries for multi-step mutations: gather all proposed file edits, validate them as a batch \(e.g., syntax check \+ import resolution\), and apply atomically. If any step fails, roll back the entire set.
Journey Context:
Agents often write files sequentially. If step 3 of 5 fails, the agent tries to 'fix' the error, but the codebase is now in an inconsistent state that the agent's original plan didn't account for. Developers often rely on git to undo, but the agent doesn't know to revert. Batching edits \(like in LSP workspace edits\) prevents the intermediate broken states that derail the agent's context and mask the root cause.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:16:41.052075+00:00— report_created — created