My AI review gate couldn't record a "no"
My review format only had fields for approval. The reviewers' own notes told a different story, and killed my headline finding.
Every pull request at Antigency needs a sign-off from a model made by a different provider than the one that wrote the code. One provider’s models never approve their own work. (The previous post covers how that rule came about and what it took to run.)
Each sign-off is a structured comment on the PR: the exact commit, the reviewer’s provider, the author’s provider, the verdict. So just by running, the gate built me a dataset. 9,305 merged PRs over eight months, and about 21,000 review records from September to November, when it covered every merge.
I analysed it and found a great headline. One provider’s models were three to seven times stricter reviewers than everyone else’s, and who reviews your code matters more than who wrote it. Chi-square in the thousands. p-values with hundreds of zeros after the decimal point.
It was wrong.
Before publishing, I went back to the raw material: the review documents the reviewer agents wrote to disk before anything got posted to GitHub. They told a different story.
(Providers are P1 to P7. Work wasn’t assigned at random, and even the labels turned out to need checking, so don’t read any of this as a model benchmark.)
The format had no field for “no”
This is the comment every merge required:
REVIEW_RECORD: v1
COMMIT: <exact 40-character commit>
REVIEWER: <provider>
AUTHOR: <provider>
VERDICT: APPROVE | APPROVE_WITH_NITS
EVIDENCE: <one line>
Look at the verdict line. APPROVE, or APPROVE_WITH_NITS. That’s it.
The gate needed an approval to merge, so approvals always got posted. Refusals mostly didn’t. They went back to the authoring agent as files and hand-off notes, the agent fixed the code, the next review approved it, and that approval was all GitHub ever saw. A refusal only reached the PR when some agent or controller decided to post one, usually as a plain comment.
Same PRs, two records:
Fig. 1
What GitHub showed vs. what the reviewers actually wrote
- What GitHub shows
- What reviewers wrote
Across all PRs from September to November, GitHub showed 4.9%. Reviewers wrote down 849 refusals, and only 195 of them (23%) left any trace on the PR. In November, 3%.
The ones that did reach GitHub were clumped together. 95% fell on eight days in October, when two accounts happened to be posting refusals as comments, and three-quarters of those weren’t even in the structured format. My monthly “refusal rate” chart, which I’d been reading as reviewer behaviour, was really a chart of when refusals were being posted.
- refusals the reviewers wrote down, Sep–Nov
- 849
- that left any trace on GitHub (23%)
- 195
- reached GitHub in November
- 3%
If you run a review gate, check today whether a reviewer can record a refusal in the same structured, machine-readable form as an approval. If they can’t, your dashboard is counting approvals and calling it review.
The strict reviewer was mostly a logging artefact
The provider I’d crowned the strictest was, more than anything, the one whose agents posted their refusals. P2’s October refusal rate was 21% in its own review files and 21% on GitHub, because nearly everything it wrote got posted. Everyone else’s refusals mostly stayed on disk.
Same reviewers, three records:
Fig. 2
The “strictest” reviewer depends on which log you read
Refusal share by reviewing provider. On GitHub P2 looks strictest; in the reviewers' own files P1 and P3 refuse more.
- GitHub record (Oct)
- Reviewers' own files
On GitHub, P2 looks three to five times stricter than P1. In the reviewers’ own files, P1 and P3 refuse slightly more often than P2. Fit a model to the file record that controls for author, PR size and month, and P2’s odds of refusing come out at 0.64× P1’s. Not 3×.
The combined column, where P2 still refuses about twice as often as P1, isn’t the real ranking either. Some agents posted approvals straight to GitHub without ever writing a file, so their refusals are missing from both records.
So this data can’t rank reviewers. The ranking you get depends on which log you read. I’d been treating 21,000 records as a big sample. It was a big biased sample, and the size just made me more confident in the wrong answer.
What actually predicts a refusal: PR size
One effect showed up in every record I looked at. Bigger PRs get refused more.
- In the reviewers’ files, size was the strongest predictor by a mile: a likelihood-ratio chi-square of 247 for size, against 23 for which provider reviewed and 22 for which provider wrote the code.
- One standard deviation more (log) lines changed multiplied the odds of refusal by 2.4 in the files and 2.6 on GitHub. Two different records, almost the same number.
- On GitHub, P2’s refusal rate went from 1.7% on the smallest quarter of PRs to 30.5% on the largest (over 1,267 lines). Every reviewer had the same shape.
Fig. 3
Every reviewer refuses big PRs more often
GitHub refusal share by PR size quartile (Q1 smallest, Q4 over 1,267 lines changed). Same scale in every panel.
P1
P2
P3
P4
P5
Want fewer review cycles? Ship smaller PRs. Hunting for a softer reviewer won’t get you there.
Refusals get fixed, fast
Do agents act on a refusal, or argue their way past it? I matched every refusal to the next approval on the same PR.
- of refusals followed by new code
- 95%
- median from refusal to next approval
- 1.3 h
- PRs refused three or more times
- 126
- refusals on the most-refused PR
- 17
- 95% were followed by approval of a different commit, so the code changed. 4.5% were approved at the same commit, either overruled or re-reviewed. 0.4% never got another approval.
- Median time from refusal to the next approval: 1.3 hours. p90: about 13 hours.
- The cost lands in the tail. PRs with a refusal posted on GitHub had nearly the same median open-to-merge time as those without (4.9 h against 4.5 h), but the 90th percentile was almost double (85 h against 43 h). GitHub missed most refusals, so the real gap is probably bigger. 126 PRs were refused three or more times. One was refused 17 times.
What reviewers refuse for
I had a model classify random samples of refusals by primary reason: 300 from GitHub and 250 from the reviewers’ files.
Fig. 4
Why reviewers said no
Primary reason, from model-classified random samples: 250 refusals from the reviewers' files, 300 from GitHub.
- Reviewers' files
- GitHub
58% of the written refusals point at a concrete defect in the code.
The evidence category is the one I’d steal if I were you. A reviewer deletes the guard a PR claims to test, finds the tests still pass, and refuses. The code might be fine. The proof isn’t.
The security refusals were the ones I was happiest to see. The GitHub sample included a database read missing its tenant filter, a privileged database client newly reachable from the browser bundle, query parameters trusted without a membership check, and a credential that would have become publicly computable any time a secret was missing. Several would have let a PR walk around the review gate itself: a self-declared reviewer identity, an exception file sitting outside the signed hash, and an edited sign-off comment the gate still honoured.
The provider comparison fell apart here too. In the written record, P1’s refusals identified a code defect 63% of the time. Same as P2.
Second opinions agree half the time
- commits judged by two or more providers
- 7,114
- approved by all of them
- 94.7%
- of refusals the second provider agreed with
- 51%
- split decisions where the code changed
- 175/185
7,114 commits were judged by two or more providers, and 94.7% were approved by all of them. But in the 377 cases where one provider refused a commit that another provider also judged, the second one agreed only 51% of the time.
That looks bad until you see what happened next. In 175 of the 185 split decisions, the code changed before merge. Any refusal worked as a veto, and the agents fixed the issue instead of relitigating it. Two providers on a commit didn’t mean two votes. It meant two chances to catch something.
Check who actually did the review
In 13.7% of review documents, the provider in the file name and the reviewer declared inside the file disagree. When I traced the session logs to see which model really ran, provider labels were reliable. Model-tier labels weren’t. On one host, lanes dispatched as one provider’s larger model ran its smaller model in every one of 385 sessions. A shared review template also had a hard-coded reviewer line that some agents copied without changing.
The core rule, that no provider reviews its own code, held. Anything finer, like “the big model reviewed this”, wouldn’t have.
After merge, you can’t see the gate
Of 9,305 merged PRs, exactly 5 could be linked to a later revert. This fleet almost never reverts. It ships a follow-up fix. (The previous post’s 3 of 7,520 uses a different definition and only counts PRs carrying a review record.) In a fix-forward codebase, whatever the gate catches, it catches before merge. That’s one more reason the refusal record has to be complete.
What I’d change
- Make refusal a first-class verdict.
REQUEST_CHANGESgoes in the same structured format asAPPROVE, posted where the gate reads it. It’s a one-line schema change, and without it every number downstream is skewed. - Measure review from the reviewers’ raw output, not the gate’s log. The gate only needs the last word. Analysis needs all of them.
- Before ranking reviewers, ask what your log doesn’t record. I had p < 10⁻³⁰⁰ on what was mostly an artefact.
- Budget rework by PR size. It’s the only predictor that held up everywhere.
- Record the model the harness actually ran, not what the dispatcher intended or what the agent says it is.
- Pick a disagreement policy on purpose. Mine drifted into “any refusal is a veto”. It worked, but I’d rather have chosen it.
Caveats
One operator, one product, one repository, with non-random routing throughout. The review-file record covers 1,599 PRs, mostly from October, on three machines. Files lost to reboots or clean-ups are gone, and agents that posted straight to GitHub left no files at all. Refusal reasons come from a model classifier reading truncated text, not from human coding. None of this ranks model quality.
The part I’m most sure of is also the most embarrassing. The structured record I built to make review auditable was the biggest single source of error in my analysis, and I only caught it by going back to the raw material that record was supposed to summarise.
— Derek