Linters know rules. Type checkers know types. Test runners know the cases somebody wrote down. None of them knows what the code was supposed to mean, and a surprising number of expensive failures live exactly in that gap.
Why bother with a human reader once the pipeline is green? I wanted real answers, not invented illustrations, so I went through public incident reports, advisories and mailing-list archives and picked five where, going by the public record, the problem was not something an automated rule could have stated in advance.
What do I mean by "no tool could flag it"?
A narrow thing. A tool checks code against a rule someone wrote earlier. If the rule can't be stated without knowing the author's intent, the tool has nothing to run.
That line moves, and it's worth admitting. clang-tidy's bugprone-unused-return-value check lists std::remove and std::unique by default, because dropping their return value loses the information about which elements to keep. A pattern that once needed a human reader became a rule. My bet is that most rules start life as someone's review comment.
1. What if a warning has a reason behind it?
In May 2006 a Debian maintainer asked the OpenSSL developers' list about Valgrind and Purify warnings: the random number generator mixed in memory that was never initialised. His proposal was to comment out the two lines responsible. The reply, as Russ Cox quotes it, was "If it helps with debugging, I'm in favor of removing them."
The patch removed a call that fed data into the entropy pool. Debian's key generation then had only 32,767 possible keys per type and size, and nobody noticed for almost two years.
Here a tool did speak, which makes this the odd one out. It said the memory was uninitialised, which was true. What it couldn't say was whether that line was load-bearing. Cox's point is that a mailing-list exchange isn't a review. A reviewer looking at the patch as a diff, he argues, would likely have stopped at the one question that matters: what does this line do when it's working?
2. What happens when a feature trusts a string?
Log4j's JNDI lookup arrived through LOG4J2-313: a feature request filed on 17 July 2013, with a patch attached, resolved the next day, shipped in 2.0-beta9. A convenience for routing logs by web application.
Eight years later the same machinery was CVE-2021-44228, CVSS 10.0, remote code execution through the LDAP JNDI parser. Apache's affected range starts at that same 2.0-beta9. The first fix, 2.15.0, didn't disable attacker-controlled lookups in all situations. Version 2.16.0 turned JNDI off by default.
A linter has no rule against a lookup plugin. The question was about data flow, and it's older than Java: applications log untrusted input all day, so who controls the string this lookup resolves? Would a type checker ever ask that? That's a design question, and it fits on one line of a pull request.
3. What if a flow is built for the wrong user?
GitLab 16.1.0 added the ability to reset a password through a secondary email address. CVE-2023-7028, patched on 11 January 2024 in 16.7.2, rated 10.0: the verification of that address was faulty, so reset emails could go to unverified addresses and take over accounts with no user interaction. Affected releases ran from 16.1 up to 16.7.1.
Tests for a reset flow pass when the person resetting owns the address, because the flow was built around that person. The reviewer's job is to imagine the other one, and ask a question no rule contains: can the recipient of this message be someone who isn't the account holder? A missing-authorization bug is the same blind spot for scanners: no scanner flagged CWE-862 in a small Python run.
4. Can a requirement expire on another rocket?
The Ariane 5 inquiry board traced the loss of flight 501 to a conversion of horizontal bias from a 64-bit float to a 16-bit signed integer, which overflowed. Some of the risky conversions had been protected. This one hadn't, on the argument that it had a large safety margin. That reasoning, the board wrote, was faulty.
The deeper cause sits upstream. The alignment function that ran this code was a requirement carried over from earlier Ariane models for countdown holds. Ariane 5 didn't need it; it was kept for commonality. Nobody had tested the software against the Ariane 5 trajectory, and the board found that the limitations of the inertial reference software hadn't been fully analysed in the reviews.
The bare conversion is something a compiler warning might flag today. The stale assumption behind it is not. The question: what is this code's operating range, and who checked it against this vehicle?
5. What happens to a deletion with no undo?
In April 2022 Atlassian deleted 883 sites belonging to 775 customers. A maintenance script was given the IDs of whole cloud sites where it should have received the IDs of one app, and the API didn't distinguish the two. Restores took up to 14 days for affected customers. Backups existed, so the data came back; it just took that long.
The script ran. The API accepted its input. Atlassian's own listed remedy is universal soft deletes with multiple layers of protection. A reviewer, or whoever reads a runbook the way a reviewer reads a diff, asks the oldest question in operations: how do I undo this, and what happens if the list is wrong?
Each of these defects was correct code answering a question nobody had asked yet.
Do reviewers actually ask these questions?
Often not, and that's the uncomfortable half. Paul, Turzo and Bosu studied 890 Chromium OS code reviews, 516 that identified a security defect and 374 that missed one. In all 53 reviews involving a dangerous C function, the defect was identified, a problem visible in a few lines. Improper access control went the other way: 8 identified, 58 missed, or 87.88 percent. The authors' summary is that defects needing a larger context, such as resource lifetime or authentication management, are the ones that slip through.
Yu and colleagues read about 21,000 review comments from OpenStack and Qt and found 614 that discussed security. About 3 percent. When reviewers did raise something, developers usually took the fix.
So the evidence is awkward. Review is the only gate positioned to ask these questions, and in practice it often doesn't, because nothing prompts it. The studies also don't show that a review would have stopped any of my five incidents. That's my inference, and only Cox's Debian argument comes near stating it.
What would I put in front of the reviewer?
Not a tool. A short list, attached to the change types where each question applies:
- New input path or lookup: who controls this string, and what does it trigger?
- Anything sent to a user: can the recipient be someone else?
- Code or a limit inherited from elsewhere: what range was it validated for, and does this system match?
- Anything that deletes, migrates or overwrites: what is the undo, and what if the input list is wrong?
- A patch that silences a warning: what was that code doing when it worked?
This doesn't replace the cheap half of review, which models now do well enough; the benchmark numbers on AI reviewers show how far they still are from this half. It also sits one step above the gates I ranked in the twelve-gate list. And the answers belong somewhere durable, because the review thread holds the why long after the diff is merged.
Where does this argument fail?
Two places. Tools keep taking ground: the clang-tidy check above is a pattern that used to need a reader, and soft-delete frameworks make question five a default rather than a habit. Some of the five will be lintable in ten years.
The other is survivorship. These incidents are famous because they went wrong, and I can't count the reviews where the same question was asked and answered quietly. If it's asked in every review that matters, you'd never read about it. Is a question that costs thirty seconds worth asking when you can't prove it ever paid off?