You Can't Judge What You Can't See
13 min
Confidence a rule from my own cases, one probe on one test file, and prior art for the parts
“Its interface or definition was chosen to reveal as little as possible about its inner workings.” — David Parnas, On the Criteria to Be Used in Decomposing Systems into Modules (1972)
The search on my internal notes site broke twice, and both times every check I had said it was fine.
First the result links lost the path prefix the site is served under. The fix added it back. Then every result went to /<prefix>/<prefix>/notes/…. Two layers had each decided they owned the prefix: the build baked it into every URL the search index stored, and the search component added it again when you clicked.
Locally, it all worked. I was judging a page that rendered and a search box that returned results, and neither could show a bug that only existed at the deployed path. So the first fix went in against the symptom I could see, and caused the second.
What held was a question about the code: which layer owns the prefix? One — the component, because the index can’t know where the site is served from. That, and a script that fails the build if a stored URL ever carries the prefix again.
I never read the agent’s build code line by line. I needed one question the output in front of me couldn’t answer, and one new output that could.
Bottom line up front
- You can stop re-reading the implementation. You can’t skip the first read. Reading the code, or writing it, is how you find out what there is to check. After that the read has a smaller job: does this change add anything my checks don’t cover?
- Stop re-reading when two things hold. The code will be replaced rather than changed by hand. And every effect that matters reaches an output you can judge. The second almost never holds for the output you start with, so you build the output.
- The starting output can’t show three things: where the code runs, what it touches beyond what it says it does, and what it left out. Each needs a check, or a read.
- Make the code you don’t read show what it decided from. A cited line, a logged file, a recorded input. Predict the result from your own understanding and compare. A mismatch means the code is wrong or you are. Find out which.
- Checking outputs covers what got reported, never what didn’t. Omissions need their own instrument.
- Hand the read to a check only where the check can decide, and only if it’s quiet enough to be believed.
When you stop caring about the code
“When can I stop reading?” really means “when can I stop caring about the code?” I’d defend three answers. Each buys less than it looks like.
It won’t change. That removes one reason to read, being able to change it later. It doesn’t remove the other: a one-off migration still has to be right on production data. And “won’t change” is a forecast that expires the day something starts depending on it.
Nobody available can improve it by hand. This is vibe coding, and it’s a real reason to stop. A read is only worth something if someone can act on it, and a hand edit by someone who can’t make it well makes a bigger mess. You judge behaviour and regenerate.
Copying code you haven’t read is older than AI. A study of 336,000 JavaScript snippets in Stack Overflow answers found every one broke at least one lint rule. 82.9% of those violations were style, but one snippet flagged for a possible error had been copied 1,261 times on GitHub. Packages do the same thing at scale, handing the reading to maintainers, and a study of npm found that 20 maintainer accounts could reach more than half the ecosystem, with unmaintained packages depending on vulnerable code years after disclosure. Not reading is survivable while somebody upstream still is.
Those two reasons make the first condition: nobody will hand-change this.
Your expertise is in the outputs. That’s how I run the review pipeline I built. I don’t read its implementation. I read its findings and check them against the source. It covers is it right?, but only for what lands somewhere I can look. That’s the second condition, and it’s the one that does the work.
Three things the output doesn’t show
I sorted three of my own cases with the rule. All three meet the first condition, since an agent changes the code, not me. Each fails the second differently.
| Case | The output I had | What it couldn’t show | What covers it now |
|---|---|---|---|
| The search links | A page that rendered, a search box that answered | Where it runs. The bug only existed at the deployed path. | A build check on every stored URL |
| A script that converts my book to British spelling | A git diff, in prose I know well | What it touches beyond its scope. Its description says it leaves code blocks alone, and says nothing about links. | Tests that feed it links, image paths, tags and URLs and check they come out unchanged |
| The review pipeline | Findings I can check against the source | What it left out. You can check a finding. You can’t check one that isn’t there. | Planted bugs it has to find |
I fed the spelling script a test file today. It rewrote link URLs, image paths and HTML class names.
favorite-color.png became favorite-colour.png.
In a diff, a broken URL looks exactly like a correct spelling fix. Nothing in the book is damaged yet; I checked. I found it by asking what the script promises, not by reading its regular expressions. Fixing it meant reading them. The fix is a few more patterns to skip; what covers it now is nine tests, each one a link, a path, a tag or a URL that has to come out byte for byte.
The last row is the oldest. In 1981 Robert Glass went through the problem reports of two large systems, and the biggest category of errors that survived into operation was “omitted logic”: code simpler than the problem it had to solve. Sixty of the 200 he examined. Missing handling has no line to read. Reading shows you the branches that exist, including the ones you’d never have thought to test; knowing the domain shows you what’s absent. I found the URL bug by knowing what Markdown contains. Both go on the list of things to check. Peer review was one of the remedies Glass himself named.
So “you don’t know what to test until you’ve done the code” isn’t an objection. It’s step one.
Make it show what it decided from
The pipeline is where not reading works, once you’re exact about what it covers. Every finding cites a line, and the pipeline throws out findings that guess from a name or a type instead of pointing at code. Each finding arrives with its evidence, and I check the evidence without knowing how the pipeline got there. The reported findings I judge. For the missed ones I rely on planted bugs it has to find, which tells me how it does on those bugs and no more.
Generalise that and it’s what you’d ask of any agent explaining itself: the code you don’t read has to show what it decided from. Then you can test your understanding against it. Read the inputs, predict the result, compare.
Which sounds like testing, and nearly is. The difference is what a mismatch gives you. A failed test says the answer was wrong. A mismatch with the inputs on the table gives you somewhere to start: the inputs you and the code may have read differently. And you don’t need the right answer written down first, only an understanding you’re prepared to have proved wrong.
Give both explanations a hearing. Either the code’s logic isn’t what you think, a bug or a decision you didn’t know about, or your understanding is off. Settle it against the source. Every mismatch is a rep, and the reps are what reading used to give you for free.
Be exact about what a source proves. A cited line proves the evidence exists, not that it drove the decision. A logged file read proves the code looked, not that it used what it saw. Both can still be checked independently: you can paste the line, open the log. An account the code gives of itself after the fact isn’t independent evidence. I’ve written about an agent citing a rule that existed in no file, and the test is the same: if you can’t check the source independently, it isn’t one.
And sources show what the code used, never what it didn’t consider. Record what it rejected and you see some of what it decided against, but not what it never looked at. That’s Glass’s row again, and why the coverage instrument stays.
None of this is new practice. Raymond’s Rule of Transparency in The Art of Unix Programming is “design for visibility to make inspection and debugging easier.” The new part is the job visibility does here: it’s what lets checking the output stand in for re-reading the code.
Hand off only what’s checkable
The next move is to give the read to a check. The check has to pass two tests.
It can actually decide the question. I’ve argued that only mechanised checks get to block. My inference goes further: a required green check on a judgment call teaches the person downstream to trust the green, so the minimum becomes the most anyone checks. Nobody has measured that gate directly, but the neighbouring evidence is solid. Parasuraman and Manzey trace automation bias to how a person’s attention gets divided once an automated aid is doing part of the job. And in a controlled study, people with an AI assistant wrote less secure code and were more likely to believe it was secure.
It’s quiet enough to be believed. A check that cries wolf stops getting read. Developers interviewed about why they don’t use static analysis named false positives as a barrier, even though every one of them thought the tools were worth using. Replace your read with a noisy check and you lose both: the read you stopped, and the check nobody looks at.
So the read stays, for one question per change: does this add a branch or an effect the checks don’t cover? Lighter than reading for correctness. Not nothing. “Read every diff you’d ship” still stands in Give Away the Writing, Keep the Reading. This is what that read is for once the checks cover what you’d otherwise read for. Where they don’t, you’re reading for correctness again.
That’s also what the best case for not reading leaves open. Aviator’s write-up of reviewing four times more AI code without reading every line builds its rules properly, mining a year of review comments into checked invariants. It also finds new decisions in coding sessions, agent disagreements and failed verification. What it doesn’t say is how a case gets found when all of those miss it and nobody is reading closely. The rules came from people who read. Something has to keep finding the next ones.
Where it stops working
The rule needs someone who can find the edge cases, which usually means someone who has written enough of this code to know where it breaks. It can’t help a developer who started with AI and never had the writing phase that used to build judgment on the side. For them, “nobody available can improve it” means themselves, and nobody upstream is reading either.
When Bacchelli and Bird studied review at Microsoft, finding defects was still the main reason people gave for it, but review turned out “less about defects than expected”: “code and change understanding is the key aspect of code reviewing.” Understanding is what a check can’t hand back. Predict-and-compare keeps some of it for people who already have it. Building it in someone who never wrote the code is a different problem, and a harder one. It’s why I wrote a book.
How sure I am:
- From experience: the search-links bug (my own commit, both failures, and the fix that held), the review pipeline’s citation rule and planted-bug check.
- Tested, n=1: the spelling script, on one test file I wrote. It rewrote URLs, image paths, class names and reference labels. Latent: a check of the book found no damaged links. Fixed since, with 14 tests, nine of them on targets that must survive unchanged. One known gap: a bare
[label]reference can’t be told apart from bracketed prose, so it isn’t protected. - Prior art: Campos et al. and Zimmermann et al. on copying and npm; Glass on omitted logic; Parasuraman and Manzey on automation bias; Perry et al. on AI-assisted confidence; Johnson et al. on false positives; Bacchelli and Bird on review as understanding; Raymond on transparency.
- My take: the two-condition rule, and the three things the starting output can’t show. The three categories came from the same three cases I sorted with them, so the table is a worked example, not a test. Also my take: that visibility is what lets checking outputs replace re-reading, and that a blocking gate on judgment lowers the bar (an inference from nearby evidence, not a measurement).
- Untested: the cold-start case. I don’t have a way to build the judgment this rule leans on in someone who never wrote the code.
Sources
- David L. Parnas, On the Criteria to Be Used in Decomposing Systems into Modules, CACM 15(12), 1972 — information hiding; the epigraph describes his second decomposition.
- Uriel Campos, Guilherme Smethurst, João Pedro Moraes, Rodrigo Bonifácio and Gustavo Pinto, Mining Rule Violations in JavaScript Code Snippets, MSR 2019 — 336k Stack Overflow snippets, none free of an ESLint violation; 82.9% of violations stylistic, 0.1% possible errors; one snippet with a possible error reused 1,261 times.
- Markus Zimmermann, Cristian-Alexandru Staicu, Cam Tenny and Michael Pradel, Small World with High Risks: A Study of Security Threats in the npm Ecosystem, USENIX Security 2019 — 20 maintainers can reach more than half the ecosystem; vulnerable dependencies persist after fixes.
- Robert L. Glass, Persistent Software Errors, IEEE Transactions on Software Engineering, 1981 — omitted logic the largest category, 60 of 200 errors across two projects; suggests peer review, desk checking and rigorous testing may be the most helpful available defences.
- Eric S. Raymond, The Art of Unix Programming (2003) — the Rule of Transparency.
- Raja Parasuraman and Dietrich H. Manzey, Complacency and Bias in Human Use of Automation: An Attentional Integration, Human Factors 52(3), 2010.
- Neil Perry, Megha Srivastava, Deepak Kumar and Dan Boneh, Do Users Write More Insecure Code with AI Assistants?, CCS 2023 (arXiv:2211.03622).
- Brittany Johnson, Yoonki Song, Emerson Murphy-Hill and Robert Bowdidge, Why Don’t Software Developers Use Static Analysis Tools to Find Bugs?, ICSE 2013 — 20 interviews; all saw benefit; false positives a barrier.
- Alberto Bacchelli and Christian Bird, Expectations, Outcomes, and Challenges of Modern Code Review, ICSE 2013.
- Ankit Jain, How we review 4x more AI code without reading every line, The New Stack, 7 November 2026 — Aviator-sponsored; the foil. Its numbers are vendor self-reports and aren’t used here as evidence.
Related: A Description Can’t Replace the Code (why the AI’s account of its change isn’t a source, and the oracle problem behind predict-and-compare); The Raw Is the Trust Boundary (making the code show what it decided from is manufacturing a raw); Can’t Self-Measure Recall (why the omissions need their own instrument); Expertise Has to Reach You (the bar for being able to act on a read); Frontend Code Has Two Shapes (a frontend version of building the output: ask for the move); Anyone Can Change It Now. Stewards Keep It Working. (who can judge a change once anyone can make one).