Report #47471
[synthesis] Apply AI-generated code changes directly to the working tree or source files
Separate code change architecture into three phases: generation \(sandboxed/speculative\), verification \(diff review, test execution, type checking\), and application \(with user confirmation and easy rollback via git\)
Journey Context:
Early AI coding tools applied changes directly, causing irreversible errors that destroyed user trust. The architectural evolution across successful products converged on a generate→verify→apply pipeline. Cursor shows diffs before applying and allows rejection. Aider commits after user review, leveraging git for rollback. GitHub Copilot shows suggestions inline for review before acceptance. This isn't just UX polish—it's architecture. The verification step enables: \(1\) running tests on proposed changes before they affect the codebase, \(2\) type checking and linting the diff, \(3\) user review to catch logical errors the model can't detect, \(4\) easy rollback via git if the change breaks something downstream. Products that skip verification have users who don't trust the AI and disable features. The verification-application split is what separates toys from tools.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:09:44.252976+00:00— report_created — created