Case study · Reviewer benchmark

Code Review Benchmark

150 real code changes with 6 to 8 realistic bugs planted in each, plus clean changes that catch an AI reviewer inventing problems. Every task has an answer key and a sample review.

  • Python
  • TypeScript
  • Go
  • JavaScript
  • Java
Results at a glance
Tested against GPT-6 Astra as the reviewer
review tasks
150
realistic bugs in each change, at least one high severity
6–8
kinds of task: seeded, clean and existing bugs
3
languages (Python, TypeScript, Go, JavaScript, Java)
5
Client
An AI lab, through an AI data platform
Our role
Writer & reviewer
Focus
Python (about 44), TypeScript (about 37), Go (about 31), JavaScript (about 23), Java (about 15)
01
The client

An AI lab, through an AI data platform

We built this work for an AI lab, through the data platform it uses to source expert tasks. Our engineers took part in every stage, from designing and writing tasks to reviewing them and making sure they hold up against the strongest models. The lab wanted to know whether an AI code reviewer can be trusted: whether it finds the real bugs, rates them correctly and stays quiet when there is nothing to report.

We work under NDA, so the client, the platform and the project's internal name are not shown. The numbers and the sample below are published with that in mind.

02
What we built

A benchmark for AI code reviewers

AI code reviewers now comment on pull requests at many companies. This benchmark tests whether an AI can review a code change like a senior engineer, find the real bugs, say how serious each one is and not report problems that aren’t there.

  • Real changes that build and run

    Pull requests from open source projects in Python, TypeScript, Go, JavaScript and Java, set up in containers.

  • Planted bugs across seven kinds

    Broken contracts, local logic errors, changes not carried through, spec and test gaps, design problems, security issues and style.

  • Clean changes

    Some tasks have no bugs at all, to catch a reviewer that reports problems that aren’t there.

  • An answer key and a sample review

    Each bug with its location and severity.

An AI reviewer is only useful if you can trust it. The clean changes show whether it invents problems, which matters as much as catching the real ones.
Why it matters
03
How we validated it

Every task had to pass these checks

  1. Every bug reproduced

    Each answer key entry was reproduced in a container, so every bug is real and observable.

  2. Severity checked by a second reviewer

    A second reviewer confirmed how serious each bug is.

  3. Grader control checks

    We confirmed the grader rewards a good review and penalises false or missing reports.

  4. Sample review checked

    Our own sample review was checked against the answer key before delivery.

  5. Unlisted findings reproduced

    When a model reported a bug that wasn’t in the key, a reviewer reproduced it before it was scored either way.

How the tasks were tested

Reviewer model
GPT-6 Astra.
AI judge
An AI judge compared each review with the answer key.
Attempts per task
Several independent review runs per task.
Independent sessions
Yes. Each run was a separate session in its own sandbox, which was cleaned up after the run.
Pass bar
A task was accepted only if strong reviewers rarely produced a complete, accurate review.
04
The numbers

Three kinds of task

150
review tasks
6–8
realistic bugs in each change, at least one high severity
5
languages (Python, TypeScript, Go, JavaScript, Java)

Approximate number of tasks

Seeded
Bugs added to a clean, real code change.
about 115
Clean
No bugs at all, to catch the AI making things up.
about 20
Existing bugs
Real bugs that were already in the change.
about 15
  • Two findings missing from our key came up in 6 of 8 runs each. Both were real bugs, and we added them to the key.
  • Bug types by share: broken contracts 20%, local logic 17%, changes not carried through 16%, spec and test gaps 14%, design 13%, security 11%, style 9%.
05
Sample task

Review this pull request

A simplified example for illustration. It is not a task from the client’s set.

review-request.md
Review the following pull request. Report each real bug you find, where it is and how serious it is. If the change has no real problems, say so.
Setup
A real open source pull request with the repository, the PR description and the diff. 6 to 8 bugs are planted across files and bug types, at least one of them high severity. Clean variants have none.
Why models get it wrong
A good reviewer has to find the real problems, rate them correctly and stay quiet when the code is fine, all at once.
How it is graded
  • Findings are compared with the answer key.
  • False reports count against the reviewer.
  • Unlisted findings are reproduced by a person before they count either way.
06
What we learned

What the project taught us

  1. 01
    Trust needs clean controls

    Clean changes show whether a reviewer invents problems, which matters as much as catching real ones.

  2. 02
    Severity is the hard part

    Finding a bug is only half the job; rating how serious it is takes careful calibration.

  3. 03
    Sometimes the model is right

    Two unlisted findings came up in 6 of 8 runs each. Both were real bugs, so we added them to the key.

Work with us

Need a code review benchmark your lab can rely on?

We plant realistic bugs in real changes, reproduce every one and calibrate severity, with clean controls that catch false alarms.

Talk to our teamSee all AI training work