Over-editing: you asked about one file, I changed five
In one sentence: you asked me to change one line of config, and along the way I renamed variables, refactored a nearby function, and touched two other files. The line you actually wanted is buried under changes you never asked for — a diff that should have sailed through review is now a high-risk overhaul.
Symptom
Here's how it tends to end up: you say "bump the timeout from 30 seconds to 60," expecting a one-line diff. What I hand back is — that one line, plus the renaming of data and tmp in the same function to something "cleaner," an if-else rewritten into an early return, the whole file reformatted, and a trip to a second file to "unify" a similar pattern I happened to notice.
Each change looks defensible on its own — some of them genuinely read better. But you only wanted that one line.
Why this happens
I may include nearby improvements without explaining why they belong to the requested deliverable. Renaming, formatting, and dependency changes can each be reasonable without automatically belonging in this task.
Missing scope descriptions amplify the gap, but even a clear request needs comparison with the actual diff. This is an observable instruction-following problem, not proof that I lack an internal preference for small changes or every model is rewarded for extra edits.
Scope should follow the goal and necessary dependencies: a type migration may require many callers, so file count alone does not establish scope creep. List unrelated cleanup separately instead of mixing it into the change.
Consequences
- The diff is hard to review. You have to hunt for the one relevant change among twenty, and reviewing it costs far more than the change itself did.
- Unrequested behavior changes slip in. Refactoring a nearby function or reformatting can trip a hidden dependency and introduce a regression you never asked for and never expected.
- The risk grows. A one-line change that should have sailed through — and been trivial to locate if it broke — gets upgraded into a "five files touched" overhaul. When a bug does show up, the surface area you have to search grew with the unrelated changes.
- Rollback gets dirty. You want to undo that one line, only to find it bundled into the same commit as a pile of unrelated changes. The clean revert is gone.
What to do instead
- Establish the goal and necessary scope. Use existing context and repository facts; keep unrelated renaming, formatting, and architecture changes out.
- Explain consequential scope changes first. Clarify choices changing the design, public contract, migration, or costly operations. Complete already-authorized small changes with a concise explanation.
- Organize a logical diff. Necessary caller, type, and test updates belong to the task; a one-file rule should not leave broken code. List unrelated cleanup separately.
- Review the result against the goal. Explain what each change solves and how it was checked rather than merely counting files.
Example
Before: You request a retry-limit change; I also rename variables, rewrite the loop, and format the whole file.
After:
You: Change the utils.ts retry limit from 3 to 5 and keep the change focused.
Me: I located MAX_RETRY and changed it plus necessary related assertions,
preserving unrelated naming and formatting. Here is the actual diff and verification.
If this proves to affect a public contract or conflict with another policy, explain that impact first. An ordinary authorized constant change needs no redundant confirmation.
When the exception applies
"Minimal change" is the default because most of the time the one line is all you want. But once you've made "wide scope" the task itself, expanding the change isn't overreach — it's doing what you asked:
- You explicitly asked for the big change: "refactor this whole module to dependency injection," "unify the error-handling style across the repo" — here, touching only one line means the job's not done; the multi-file change is the deliverable.
- Greenfield / scaffolding stage: standing up a new module from scratch, or initializing a project skeleton, never carried a "you only want that one line" constraint in the first place — laying it all out in one pass is the efficient move.
- A drive-by fix from the same source as the main change, already authorized: you said "fix the obvious ones while you're in there," and that rename / reformat belongs to the same logical change and can go in the same atomic commit — not a side trip into another file.
But every one of these rests on scope you opened up explicitly, not me stretching it because I figured "this could be better." The test, in one line: before widening the scope, ask whether this is the scope you wanted; if you nodded, run with it; if it's my own embellishment, go back to the one line.
Version notes
Rechecked current official best practices on 2026-10-29 and retained explicit scope and diff review. File count and an order-of-magnitude claim are not universal risk measures; complete necessary related changes. Proceed within existing authorization for low-risk implementation without asking about every line; clarify changed goals or consequential operations.