You ask a coding assistant to fix a crash when an order has no shipping address. Forty seconds later you have a patch: a null check in calculateShipping, a fallback to zero, a new unit test and a confident paragraph explaining it all. The test passes. The diff is tidy. It's also in the wrong place. Your API already rejects orders without an address at the boundary, so the real bug is the one internal job that skips that validation. The new fallback hides it, and now some orders ship for free.
The assistant did its job well. It drafted fast and the code is fine on its own terms. What it didn't have is the map: where validation lives in this system, which layer owns which rule, and why "just default to zero" is a bad idea here. That part is still yours.
The map lives in people
Peter Naur made this argument back in 1985 in "Programming as Theory Building." He wrote that programming should be seen as the activity by which programmers "form or achieve a certain kind of insight, a theory, of the matters at hand," with documentation as "an auxiliary, secondary product" (Naur, 1985).
His first example still lands. One team builds a compiler. A second team extends it, with full documentation, annotated source and personal advice from the first team. When the original authors review the second team's design, they find patches that ignore the structure already in place and "effectively destroyed its power and simplicity." The original team could spot those cases instantly and suggest simple fixes inside the existing structure. Naur's conclusion: the program text and its documentation weren't enough to carry the most important design ideas.
Swap "second team" for "assistant that just read the repo" and the story fits uncomfortably well. The map isn't only the architecture diagram. It's the business rules, how the system behaves at runtime, the migration history, what customers have come to expect, the runbooks, the invariants nobody wrote down, and the ugly edge cases nobody would invent from a clean prompt. It also holds the reasons why a shortcut that looks simple isn't safe in this particular codebase.
Fast drafts, slow landings
The best-known data point here is METR's early-2025 study. Sixteen experienced open-source developers worked on 246 real issues in large repositories they had contributed to for years (the repos averaged over 22k stars and over a million lines of code). With AI tools allowed, tasks took 19% longer. The developers expected a 24% speedup beforehand and still believed they'd been sped up by 20% afterward. METR suggested AI may be less helpful in settings with "very high quality standards, or with many implicit requirements" (METR, July 2025).
Two honest caveats. The study was small, and METR says it doesn't represent most software work. And in February 2026 METR said its follow-up data was unreliable, mostly because many developers no longer wanted to work without AI at all, and that developers are probably more sped up now than in early 2025, though their evidence for how much is weak (METR, February 2026). So don't quote the 19% as today's number.
The part that ages well is the phrase "many implicit requirements." That's the map. A draft can arrive in seconds and still cost an afternoon if someone has to work out where it actually belongs, or worse, if nobody does and it merges anyway.
Hand the model the parts of the map it can't read
Keeping the map doesn't mean keeping the assistant in the dark. It means you decide what it sees. Modern coding agents are good at reading the repo, and Anthropic's Claude Code docs say so directly: Claude will usually find your file layout, conventions and test framework faster than you could explain them. Their advice is to "only write down what Claude can't find by reading the repo," with examples like a deploy process that lives in someone's head (Claude Code best practices, checked November 2026).
So skip the tour of the folder structure and hand over the parts that only live in people's heads:
- The rule and where it's enforced: "Address validation happens at the API boundary. Internal jobs must call
validateOrdertoo." - The failing evidence: the real error, the request ID, the test that reproduces it.
- The boundary: "Billing must not import from shipping."
- The history: "We tried caching this in 2025 and rolled it back because of stale prices."
Then ask for more than a patch. Ask it to list the assumptions it made (there's a whole post on asking AI to name its assumptions), to point to existing code that already does something similar, and to compare two placements before writing either.
Give it a check to run as well. The same Claude Code page puts it bluntly: if the agent has nothing that tells it whether the work is actually done, "that makes you the test suite." A failing test that captures the real behavior is a piece of the map the model can use without you in the loop.
Review for where it lands
AI-written code usually looks fine. Clean names, sensible structure, a test next to it. So "does this look good?" stops being a useful review question. Ask whether it lands in the right place:
| Looks good | Lands right |
|---|---|
| The code is readable. | It sits in the layer that owns this rule. |
| There's a test. | The test protects the behavior users depend on. |
| The helper is well written. | We didn't already have one. Search before you approve. |
| Edge cases are handled. | The handling doesn't hide an error another part of the system needs to see. |
| It works. | We can roll it back, and we know what would make us want to. |
A patch can pass every test and still make the system harder to understand: one more shortcut, one more duplicate helper, one more policy check leaking into the wrong layer. Each one is small. Together they're how a codebase drifts. Naur's compiler went the same way: after about ten years of changes by programmers without the original team's guidance, its original structure was still visible but "made entirely ineffective by amorphous additions of many different kinds."
Leave a trace for the next person
Naur's other warning is that the theory lives with the team. When the people go, the program text alone isn't enough. AI-assisted work makes that gap a bit wider, because the prompt that shaped the change disappears when the chat closes.
A small habit closes most of it: end every AI-assisted change with a short, human-owned note in the PR description.
Grounded in: orders/validate.ts, jobs/reprice.ts, incident 2026-10-02
Rule kept: orders without an address never reach pricing
Checked by hand: reprice job on staging with 3 address-less orders
Roll back if: shipping totals of 0 appear in the daily report
Four lines. The next reader knows which files mattered, which rule the change protects, what someone actually checked and when to undo it. None of it depends on a prompt they'll never see.
Try this week
- Before your next AI-assisted change, write down the one rule the change must not break, and paste it into the prompt.
- Ask the assistant where similar code already exists before it writes anything new.
- In review, ask "is this the right layer?" before "is this clean?"
- Add the four-line trace to one PR and see whether your reviewer reads it.
- Pick one rule that only lives in someone's head and write it into your project's agent instructions file.
Let AI draft code, options, checklists and first-pass tests. It's good at that, and the blank page is expensive. Just keep the map close enough that every generated line has a place it belongs. If you want the other half of this, on picking which drafts to hand over in the first place, Letting AI Draft the Boring First Pass covers it.