Key takeaways
- ✓Automation bias is trusting a tool's output and checking less. It doesn't matter on the bugs the AI finds (its comment is already there); it bites on the ones it misses, where the AI either said nothing (10 of 35 here) or talked about something else (25). Every reviewer here is an AI model standing in for a person.
- ✓A model can read the same PR three ways, with no AI comments, with them, and with a decoy, and forget in between. That makes every comparison paired, bug by bug. A person can't do that; the price is that a model's bias isn't a person's.
- ✓Check every effect against the noise floor first. Two identical runs with nothing changed flip 21% of bugs. The careful reviewer found 21 and 18 alone and 16 with the AI's comments: on that alone, you can't call it bias.
- ✓A sharper look: of 14 bugs the careful reviewer found in both runs alone, it missed 6 after reading the AI's comments, where a third identical run missed 2 of 24 on Chapter 3's sample. That points toward bias, but those bugs are harder, so it doesn't prove it.
- ✓The rushed reviewer leaned hard: 5 found against 10 and 15 alone; against its second run, 11 lost and 1 gained (p 0.01). Where the AI was silent it found 0 of 10 (3 alone), and it wrote far fewer bug comments of its own.
- ✓A confident decoy comment didn't pull either reviewer off bugs the AI had found (rushed 99 of 133 with and without it; careful 19, then 20 of 20). Because they were told not to repeat posted comments, whether they believed it can't be measured this way.
- ✓Measure the pair, not the parts: AI plus the careful reviewer found 154 of 173 measured, against 152 alone and 159 assumed independent. For the rushed reviewer the AI still adds 17 points. One idea to test: review first, then read the AI's comments.
When an AI reviews a pull request (PR) first, does the human who reads it next get better, or do they start missing exactly what the AI missed? That's automation bias: trusting a tool's output and checking less. This chapter measures it. Two simulated reviewers read the same PRs with and without the AI review's comments, and the lab counts, bug by bug, what they find. The answer is mixed, and the way to reach it is the lesson: check every effect against how much a result moves when nothing changes.
The source is Lab 09 of the code-review labs, "Automation Bias", recorded in November 2026: scripts 01_decoys.py (what the AI said on the bugs it missed, and a decoy comment for every PR), 02_review.py (every PR read up to three ways), 03_bias.py (the noise floor, the paired comparisons, decoys, effort) and 04_team.py (what AI and reviewer find together). It's part 10 of the "Hands-on AI code review" video series. Every reviewer here is an AI model, not a person. The AI review is Chapter 3's standard stand-in (an LLM given a reviewer's brief), run 1. The "careful reviewer" is Chapter 3's careful stand-in (gpt-5.4-mini at high effort, 88% of the 173 bugs alone); the "rushed reviewer" is its cheapest one, the quick budget (gpt-5.4-nano at low effort, 66% alone). The PRs are Chapter 1's testbed: 250 PRs of Harbor, a made-up data-sync app, 173 with one planted bug and 77 clean.
How the PRs are named. Each pull request has an id like c08-d1. The first part is the change: c08 is one fix, making daily schedules come due again after a day. (c changes come from Harbor's own history, n changes were written for the test set; a few are bundles of several fixes, like api-release, an API release with query fixes, validation and a faster sync list.) The second part is the version: -clean is the correct PR, and -d1, -d2 are copies of it with one planted bug each.
Where automation bias bites
In code review, automation bias sounds like "the bot looked at it, and I checked its comments". On the bugs the AI finds, that's harmless: its comment is already on the PR, and the team catches the bug whatever the reviewer does. It bites on the bugs the AI misses. There, only the reviewer can catch the bug.
The AI review found 138 of the 173 planted bugs and missed 35. What did it say on those 35?
| PRs where the AI review | PRs | posted no comment | bug comments a PR |
|---|---|---|---|
| found the bug | 138 | 0 (0%) | 1.17 |
| missed the bug | 35 | 10 (29%) | 0.74 |
| clean PRs | 77 | 40 (52%) | 0.55 |
On 10 of its misses, the AI said nothing at all. On the other 25, it talked about something else. Both are messages a reviewer can lean on: silence says "looks fine", another topic says "this is what matters".
One PR, three ways
Each reviewer read the same PR under up to three conditions:
| Condition | Above the diff |
|---|---|
| none | nothing: Chapter 3's text, byte for byte |
AI's comments (the lab calls it shown) |
the AI review's comments as it posted them, or "posted no comments", ending with: "These are on the PR already, so you don't need to repeat them." |
| decoy | the AI's comments minus any that found the bug, plus one confident bug comment, written by a model, about something harmless elsewhere |
The decoy is the worst case on purpose: every buggy PR becomes a miss that points away from the bug. A model (gpt-5.4-mini) writes it, told where the planted bug is so it can stay away; code then checks that it did (another file, or 15 lines or more from every planted and known bug, at a line the reviewer can see) and asks again if not, up to three tries. 244 of the 250 PRs got one. Six small PRs got none, because every visible line was within 15 lines of the bug; one of those (n16-d1, logging one JSON line per finished run, where the duration field the dashboards need is missing) is a bug the AI missed, so decoy comparisons on the 35 use 34. Whether a decoy is wrong isn't checked: it could by chance describe a real bug nobody planted.
Here's a decoy next to the bug it hides. c08-d1 is the daily-schedule fix with a planted bug: elapsed days are counted as 60 minutes instead of 1440, so daily syncs still never come due. The AI posted nothing on it. The decoy says the new timedelta import "is unused, which will trip the repository's import lint and block this change from merging". Specific, sure of itself, and beside the point.
Why a model and not a person? A person who has read a PR remembers it, so their second read isn't fresh. A model call has no memory. So the same reviewer can read the same PR all three ways, and every comparison is paired: same PR, same reviewer, only the block above the diff changes. That's what lets 35 bugs say anything. The price: a model's automation bias isn't a person's.
The noise floor
First, how much does a result move when nothing changes? Each reviewer read the same text twice with no AI comments. This is an A/A test: the same condition on both sides.
| Reviewer | Buggy PRs | Run 1 | Run 2 | Found → missed | Missed → found | Flipped |
|---|---|---|---|---|---|---|
| careful | 57 | 41 (72%) | 39 (68%) | 7 | 5 | 21% |
| rushed (quick) | 173 | 114 (66%) | 121 (70%) | 15 | 22 | 21% |
With nothing changed, 21% of bugs flip: found in one run, missed in the other. That's the yardstick. A condition only matters if it moves more bugs than this, and in one direction.
The 35 bugs the AI missed
| What the reviewer saw | careful | rushed (quick) |
|---|---|---|
| no AI comments, run 1 | 21/35, 60% (44–74%) | 10/35, 29% (16–45%) |
| no AI comments, run 2 | 18/35, 51% (36–67%) | 15/35, 43% (28–59%) |
| the AI's comments | 16/35, 46% (30–62%) | 5/35, 14% (6–29%) |
| the AI's comments + a decoy | 15/34, 44% (29–61%) | 7/34, 21% (10–37%) |
The ranges are 95% Wilson intervals (Chapter 2). Because the reviews are paired, the lab also counts, bug by bug, how many were found in one condition and missed in the other, and runs a sign test on those: if the condition did nothing, lost and gained bugs should be about even, and p is how likely a split this lopsided would be by chance.
| Careful, paired on the 35 | Lost | Gained | Change in recall | Sign test p |
|---|---|---|---|---|
| AI's comments vs none, run 1 | 9 | 4 | −14 pts (−32 to +3) | 0.27 |
| AI's comments vs none, run 2 | 8 | 6 | −6 pts (−27 to +16) | 0.79 |
| A/A: run 2 vs run 1 | 7 | 4 | −9 pts (−28 to +10) | 0.55 |
The careful reviewer's drop is about the size of its own noise. From 21 and 18 alone to 16 with the comments: −14 points against one run, −6 against the other, and the two runs alone already differ by 9. On that alone, you can't call it bias.
A sharper look. Take the bugs the careful reviewer found in both runs alone: those are the ones it reliably finds. There are 14. After reading the AI's comments, it missed 6 of them (5 with the decoy). Is that a lot? Anything picked for being found twice tends to slip a little on the next run, so the lab needs a control: on Chapter 3's 40-PR sample, of 24 bugs careful found in two runs alone, a third identical run missed 2. Six of 14 is far above 2 of 24. But these 14 are harder bugs (the AI missed them), and a hard bug found twice is still less stable than an easy one, so part of that gap is difficulty. It points toward bias; it doesn't prove it.
Explore the 35 bug by bug, for either reviewer, and see what the AI posted on each:
The AI review found 138 of the 173 planted bugs and missed 35. On those, only the second reviewer can catch the bug. Each reviewer read every one of the 35 PRs alone (twice), with the AI’s comments, and with a decoy. A filled dot is a find. Click a row to see the bug and what the AI said.
Noise first: two identical runs alone flip 21% of bugs. Paired on these 35, the AI’s comments vs run 1 alone: 9 lost, 4 gained (p 0.27); vs run 2: 8 lost, 6 gained (p 0.79). Run 2 vs run 1, nothing changed: 7 lost, 4 gained.
| PR | AI said | Alone, run 1 | Alone, run 2 | AI's comments | Decoy |
|---|---|---|---|---|---|
| API fixes from the bug bashapi-cleanup-d1 | something else | ||||
| API release: query fixes, validation, durations and a faster sync listapi-release-d2 | something else | ||||
| Make daily schedules due again after a dayc08-d1 | nothing | ||||
| Catch duplicate destination fields in the sync formc10-d1 | something else | ||||
| Add a search argument to the syncs queryc11-d3 | nothing | ||||
| Add durationSeconds to SyncRunc21-d1 | nothing | ||||
| Add machine-readable error codes to failed runsc23-d2 | something else | ||||
| Add machine-readable error codes to failed runsc23-d3 | something else | ||||
| Add an optional description to syncsc24-d2 | nothing | ||||
| Read the minimum schedule from HARBOR_MIN_SCHEDULE_MINUTESc25-d2 | nothing | ||||
| Inject the transport into destination clientsc27-d1 | nothing | ||||
| Fail runs that crash instead of leaving them RUNNINGc35-d3 | nothing | ||||
| Load the sync list with a fixed number of queriesc36-d1 | nothing | ||||
| Add a renameSync mutationn01-d1 | something else | ||||
| Add deleteDestination, refused while syncs use itn02-d2 | something else | ||||
| Filter run history by start timen08-d1 | something else | ||||
| Add updateSync for editing name, mode, mappings and schedulen09-d2 | something else | ||||
| Honour Retry-After on 429 responsesn11-d3 | something else | ||||
| Stop a run after HARBOR_MAX_RUN_SECONDSn13-d2 | something else | ||||
| Add a run-loop commandn14-d1 | something else | ||||
| Log one JSON line per finished runn16-d1 | something else | – | |||
| Skip records that haven't changed since the last runn19-d3 | something else | ||||
| Add a sync detail page with recent-run statsn29-d2 | something else | ||||
| Add a sync detail page with recent-run statsn29-d3 | something else | ||||
| Colour status badges by outcomen30-d2 | something else | ||||
| Let teams pause a sync with a reasonn31-d4 | something else | ||||
| Count rows skipped for a missing key separately from failuresn32-d3 | nothing | ||||
| Add default values to field mappingsn33-d1 | something else | ||||
| Give webhook destinations their own URLn34-d1 | something else | ||||
| Give webhook destinations their own URLn34-d3 | something else | ||||
| Disable syncs that fail five times in a rown35-d3 | nothing | ||||
| Disable syncs that fail five times in a rown35-d4 | something else | ||||
| Email a sync's owner when it starts failingn37-d1 | something else | ||||
| Email a sync's owner when it starts failingn37-d2 | something else | ||||
| Worker release: delivery, scheduling, signing and safety fixesworker-release-d1 | something else |
Make daily schedules due again after a day · c08-d1
The planted bug: Elapsed days are counted as 60 minutes instead of 1440, so daily syncs still never come due; the test's two daily cases were deleted.
What the AI posted: no comments at all.
The decoy: worker/harbor_worker/schedule.py:5 The added `timedelta` import is unused, which will trip the repository's import lint and block this change from merging. Remove it or the module will fail CI before the new logic is even exercised.
The rushed reviewer leans harder
The rushed reviewer found 5 of the 35 after the AI's comments, against 10 and 15 alone. Paired against run 1 alone: 7 lost, 2 gained (p 0.18). Against run 2: 11 lost, 1 gained (p 0.01). The second is more than the noise explains. Of the 9 bugs it found in both runs alone, it missed 6 with the comments, where its third identical run on Chapter 3's sample missed 4 of 16.
Split by what the AI said:
| The AI review was | Bugs | careful: alone → with comments | rushed: alone → with comments |
|---|---|---|---|
| silent (no comments) | 10 | 6 → 6 | 3 → 0 |
| commenting on something else | 25 | 15 → 10 | 7 → 5 |
Even where the AI posted nothing at all, the rushed reviewer found none of the 10, against 3 alone. Ten bugs are too few to be sure, and the careful reviewer didn't move there. When the AI talked about something else, the careful reviewer dropped from 15 to 10 of 25.
And it wrote less. Output tokens include the model's reasoning, the nearest thing it has to time spent reading:
| Reviewer | Condition | Output tokens a PR | Bug comments a PR |
|---|---|---|---|
| careful | none | 9,595 | 1.18 |
| careful | AI's comments | 10,910 | 0.97 |
| rushed (quick) | none | 470 | 0.92 |
| rushed (quick) | AI's comments | 421 | 0.42 |
The careful reviewer thought more with the AI's comments (it reasons about them) and wrote a little less. The rushed one wrote far fewer bug comments. Part of that is the instruction not to repeat posted comments, so look at the PRs the AI missed, where there was nothing worth repeating: there, the rushed reviewer wrote about 0.37 bug comments a PR with the AI's comments, against about 1.15 in its second run alone. It leaned on the AI's review.
Does a decoy fool them?
Does a confident wrong comment pull a reviewer off the bug? Take the bugs the AI did find, remove its finding, and add a decoy elsewhere:
| Reviewer | Bugs | No AI comments | Decoy | Lost | Gained |
|---|---|---|---|---|---|
| careful (a sample) | 20 | 19/20 | 20/20 | 0 | 1 |
| rushed (quick) | 133 | 99/133 | 99/133 | 18 | 18 |
Barely. A wrong pointer didn't pull these reviewers off bugs they'd otherwise find. Did they believe the decoy? The lab counted bug comments at the decoy's place: careful flagged it on 3 of 54 buggy PRs without the decoy and 0 with it; rushed on 7 of 167 and 6 of 167. But they were told posted comments needn't be repeated, so silence could mean "agreed" as easily as "ignored". This design can't tell.
AI plus reviewer
So what do the AI review and a reviewer find together? Chapter 12's pipeline first assumed independence: the reviewer catches what they'd catch alone, whatever the AI said, so the team finds every bug either one finds. With reviews done after reading the AI's comments, the lab measures it instead. The two only differ on the 35 bugs the AI missed: independent is the AI's 138 plus what the reviewer finds of the 35 alone; measured is 138 plus what it finds of them with the comments.
| Reviewer | Alone | AI + reviewer, assumed independent | AI + reviewer, measured together |
|---|---|---|---|
| careful | 152/173, 88% (82–92%) | 159/173, 92% (87–95%) | 154/173, 89% (83–93%) |
| rushed (quick) | 114/173, 66% (59–73%) | 148/173, 86% (80–90%) | 143/173, 83% (76–88%) |
For the careful reviewer, the AI's gain mostly goes away: assumed independent, it adds 7 bugs; measured, 2. Measured minus independent is −3 points (−7 to +1, resampling whole changes), so the true gap may be zero, but it leans one way. The AI finds bugs the careful reviewer would have found anyway, and the reviewer finds fewer of the rest. For the rushed reviewer, the AI still adds a lot: +17 points (+9 to +25) over the reviewer alone, even measured. A weaker reviewer has less to lose.
Assuming independence, the reviewer catches what they’d catch alone, whatever the AI said. Measured, the reviewer reads the AI’s comments first. The two differ only on the 35 bugs the AI missed.
run 1, no AI comments
138 the AI found + 21 of the 35 the reviewer finds alone
138 the AI found + 16 of the 35 the reviewer finds after reading the AI's comments
Assumed independent, the AI adds 7 bugs to the careful reviewer; measured, 2. Measured minus independent: −3 pts (−7 to +1), so it may be zero. The AI finds bugs this reviewer would have found anyway, and the reviewer finds fewer of the rest.
Also in the lab
From the lab's README and checklist answers (its own run, November 2026), beyond the video:
- False alarms went down, not up. On clean PRs, the share with a wrong bug comment fell with the AI's comments: careful 14 → 12 of 20, rushed 30 → 25 of 77 (22 of 77 with a decoy). Fewer comments overall, wrong ones included.
- Spending. Running careful on all 250 under every condition would cost about $20 more and buy precision on the 138 bugs where the team catches the bug anyway. So the rushed reviewer (0.11–0.12¢ a review) reads all 250 every way; the careful one (4.4–5.0¢) reads the 35 every way, plus samples of 20. The whole lab cost $9.12 under a $10 spending cap the code enforces.
- The capstone uses these reviews. With the person reading the AI's comments first, the README reports, AI plus one person lets through 1.04 defects per 100 PRs, the same as people reviewing everything, and 5 of 38 high-severity defects against 2. Its recommendation: the person reads the diff before the AI's comments. Chapter 12 covers the pipeline.
- Ideas the lab didn't run: a fourth condition where the reviewer reviews first and then sees the AI's comments; one added line telling the reviewer the AI misses about 1 in 5 bugs; more runs of careful on the 35 (about $6.50) to see if the drop survives; and the same three conditions with people, splitting PRs across conditions instead of re-reading.
What to do
- Measure the pair, not the parts. Don't add up the AI's recall and the reviewer's recall as if they were independent; measure them together, the way the team works.
- Look at the bugs the AI missed. That's where leaning costs anything.
- Run an A/A test before believing a difference. Report both baseline runs and the gap between them, not one run against one run.
- Use paired comparisons where you can: same PRs, only the condition changes.
- Try "review first, then read the AI". Hide or collapse bot comments until the human review is in; that keeps the two catches independent. It's an idea to test, not a result here.
- Expect the rushed or tired reviewer to lean most, and design the process for them.
Caveats
- The reviewers are AI models. Careful is gpt-5.4-mini at high effort, rushed is gpt-5.4-nano at low effort. This says how a model reviewer reacts to AI comments, not what people do.
- The careful reviewer's drop is about the size of the noise. The found-twice count points toward bias, but its control is on easier bugs.
- 35 bugs is small. Only a large effect shows, and the silent group is 10 bugs.
- The "don't repeat them" note confounds two things: fewer bug comments, and not flagging the decoy. Neither can be read purely as trusting the AI.
- The decoy is checked for distance, not wrongness. One could, by chance, describe a real problem nobody planted.
- One run of each AI-comment condition. More runs would tighten every number.
The checklist
- Split the bugs by whether the AI found them; the misses are the ones that matter.
- Write down what the AI said on each miss: nothing, or something else.
- Run the reviewer twice with no AI comments to measure the noise floor.
- Run the same PRs with the AI's comments, paired, and count lost and gained bugs.
- Count the bugs found in both runs alone and missed with the comments, next to a control.
- Measure team recall together, and compare it with the independence assumption.
- Say what you can't conclude: who the reviewers were, and how big the noise was.
Practice: counting automation bias
Write the paired comparison (bugs lost and gained between two conditions), its sign test, the "found twice alone, missed with the AI's comments" count, the split by what the AI posted, and team recall assumed independent vs measured. The tests use both reviewers' recorded results on the 35 bugs the AI missed and expect the lab's numbers: 9 lost and 4 gained (p 0.27) for careful, 11 and 1 (p 0.01) for rushed against its second run, 6 of 14 and 6 of 9 found twice then missed, 3 → 0 of 10 where the AI was silent, and 159 vs 154 together.
Quiz
1.Why does automation bias matter on the bugs the AI review missed, and not on the ones it found?
2.Two runs of the careful reviewer with no AI comments found 21 and 18 of the 35 bugs; with the AI's comments it found 16. What's the honest reading?
3.The careful reviewer missed 6 of the 14 bugs it had found in both runs alone, after reading the AI's comments. What does that number need, and what's still open?
4.On bugs the AI review did find, the lab removed its finding and added a confident decoy comment elsewhere. What happened?
5.Assuming independence, AI plus the careful reviewer would find 159 of 173 bugs. Measured with the reviewer reading the AI's comments first, they found 154; the reviewer alone found 152. What does that say?
6.What can't this lab tell you?
Check your understanding
Try each question before opening its answer.
Why does the lab only look at the 35 bugs the AI missed when it asks whether the reviewer got worse?
On the 138 bugs the AI found, its comment is on the PR whatever the reviewer does, so the team catches them either way. Only on the 35 misses does the reviewer have to catch the bug alone, so that's where leaning on the AI costs anything.
Why can a model reviewer read the same PR three ways when a person can't, and what's the cost?
A model call has no memory, so the same reviewer can read a PR with no AI comments, with them and with a decoy, and every comparison is paired bug by bug. A person would remember the first read. The cost is that a model's automation bias isn't a person's: the lab measures how a model reacts.
The careful reviewer found 21 and 18 alone and 16 with the AI's comments. Why isn't that proof of bias?
Two identical runs already differ by 3 bugs, 9 points, and flip 21% of bugs. The drop with the comments (−14 points against run 1, −6 against run 2) is about that size, and both intervals include zero.
Of 14 bugs the careful reviewer found twice alone, it missed 6 with the AI's comments. What control does that need, and what doesn't the control fix?
How often a third identical run misses a twice-found bug: 2 of 24 on Chapter 3's sample. It doesn't fix difficulty: the 14 are bugs the AI missed, harder than the sample's, and a hard bug found twice is less stable. So it points toward bias without proving it.
What did the rushed reviewer do differently with the AI's comments?
It found 5 of the 35 against 10 and 15 alone (11 lost, 1 gained against its second run, p 0.01), found none of the 10 bugs where the AI was silent (3 alone), and on the PRs the AI missed wrote about 0.37 bug comments a PR instead of about 1.15. It leaned on the AI's review.
A decoy barely moved anything. Does that mean wrong AI comments are harmless?
No. It means a single confident wrong comment didn't pull these reviewers off bugs the AI had found. And because they were told not to repeat posted comments, the lab can't tell whether they believed the decoy. The drop on the AI's misses happened with its real comments.
What is the independence assumption, and how far off was it?
That a reviewer finds what they'd find alone whatever the AI said, so AI plus reviewer catch everything either catches. For the careful reviewer it predicts 159 of 173; measured with the comments read first, 154, against 152 alone. Of the AI's 7-bug gain, 2 remain (−3 points, −7 to +1).
Next up: Chapter 11, review metrics: if a team's reviewers started leaning for real, which of its review metrics would notice?