BLOG ILLUSTRATION / EXECUTION STORY

Edits need regression tests

Compare a unique edit followed by locale-isolation and cache-reuse tests with an ambiguous target that causes no write. These are teaching examples of a made-up locale-cache repair.

Edits need regression tests An edit tool matches old text against the current file. A unique target permits a write, then regression tests check locale isolation and cache reuse. An ambiguous target returns a no-write error so the agent can read more context. Edits need regression tests Propose edit old → new text Match source current file Apply edit changed bytes Verify behavior isolation + reuse Reject match zero writes unique ambiguous read more context Solid: execution or result Dashed: control feedback
Figure 2. A unique edit target permits a write, then tests check locale isolation and cache reuse. Ambiguous targets cause no write in this example; other tools may partly apply edits before failing. Playback is illustrative, not measured runtime. Open full-size SVG