ealeng

Episode 11 of 12 · The whole pipeline

Review metrics for a team: which ones notice when review stops?

Speed, quality and load metrics for code review, computed on three public repos that use AI reviewers (5,570 pull requests over 26 weeks), then tested on a simulated team where half the reviewers start approving everything in two minutes. Within two weeks, time to merge, review rounds and silent approvals notice, and the first two look like good news. Reverts and traced bugs barely notice in 13 weeks (8% and 4% of teams, close to their false alarms), while the bugs that get past review nearly double. Two weeks of a real repo's data also 'notice' a change that didn't happen 12–21% of the time. Pair every speed metric with one that keeps it honest, and seed known bugs. The repos' reviewers are people; the team and all its reviewers are simulated.

Lab 10 · Review Metrics for a Team18 min read
Video transcript5:28

0:00Cold open

0:01

Here’s a simulated team, sixty pull requests a week. In week thirteen, half its reviewers start approving everything in two minutes.

0:09

Within two weeks, the dashboard says the team got better. Merges are faster. Fewer rounds of review.

0:16

Reverts, and bugs found later, barely register. Not in thirteen weeks.

0:22

Meanwhile, the bugs that got past review nearly doubled.

0:27

So which review metrics should a team actually watch?

0:31Intro

0:32

Hands-on AI code review. Part eleven.

0:35

Today: review metrics on real repos, and which of them a team can fool without meaning to.

0:42Three kinds of metric

0:44

I’m Valentina, a tech lead. Every metric here comes from a pull request’s history: when it was opened, commented on, approved, merged.

0:53

Speed: time to first review, time to merge, and how many rounds of review.

0:58

Quality: did the AI’s comments change the code, was the pull request reverted within a week, did a bug turn up later.

1:06

Load: how much each reviewer carries, and how much of it an AI wrote.

1:11

And one more: a silent approval, where a person approved and no person said anything. Fine on a tiny change. Worrying if it’s most of them.

1:2101 · Three real repos

1:22

First, real data. Three public open-source projects that use AI reviewers: five and a half thousand pull requests. Most of the merged ones have an AI review thread.

1:34

The fastest repo merges half its pull requests within five hours, and eighty-six percent are approved without a word from a person. Either they’re easy, or no person is talking. The metric can’t say which.

1:48

About half the AI’s review threads end with the code under them changed. That’s the closest the history gets to “acted on”, and it overcounts.

1:58

And reverts: seven, in more than four thousand merged pull requests. Far too rare to judge review by.

2:0602 · The noise floor

2:07

Even speed is noisy. One repo’s weekly median time to merge ran from under two hours to over a hundred, on its own.

2:16

Notice here means the new weeks differ from the old ones by more than their usual swing. With nothing changed at all, two weeks of data notice a change twelve to twenty-one percent of the time. A vendor’s “two weeks after rollout” chart can easily be noise.

2:33

And if merges really got twenty percent faster, it would show after a quarter only nine to thirty-five percent of the time.

2:4103 · Which metrics notice?

2:43

Back to the rubber-stamping team. Two hundred simulated teams switch at week thirteen, and two hundred never switch. Which metrics notice?

2:54

Time to merge, within two weeks, in eighty-five percent of teams. Review rounds, in all of them. Both look like improvements.

3:02

Silent approvals notice just as fast. That one describes the problem directly.

3:08

And reverts and traced bugs? They do rise, but after thirteen weeks they barely notice: reverts in eight percent of teams, traced bugs in four, close to their false alarms. An extra half bug a week is too few, and found too late, to show.

3:2503 · Which metrics notice?

3:26

Here’s the simulation itself, run live.

3:30

One quality metric moves a little: AI comments acted on, noticed by about half the teams after a quarter.

3:37

And the line no dashboard shows: escaped bugs, from about half a bug a week to one.

3:4404 · A paired dashboard

3:45

So this is the dashboard I’d want, built from the same data. Each speed metric, on the left, sits next to a metric that keeps it honest, on the right.

3:55

Here’s the simulated team. The dashed line is week thirteen. Time to merge drops at the switch. The reverts beside it spike a few more times after the line, but with at most one revert a week, you can’t tell that from luck.

4:10

Further down, silent approvals jump at the same line. That pair is the warning.

4:1604 · What to watch instead

4:17

Never watch a speed metric alone. Time to merge next to reverts. Time to first review next to silent approvals. Review rounds next to AI comments acted on.

4:28

And since bugs are too rare to wait for, plant some. Re-review a few merged pull requests properly, or seed known bugs, the way this whole series did. A seeded bug is a quality metric you don’t have to wait for.

4:43The series

4:45

That’s eleven parts. One test set of planted bugs, and one question each time: what does this really catch?

4:52

CI missed a one-line bug. A cheap AI reviewer faded on big pull requests. A proof showed behaviour, not wrongness. Free tools caught a thin slice. A summary vouched for a bug. Reading the AI first made the rushed reviewer lean.

5:09

Most results came with a noise floor, and every reviewer we scored was an AI. One part left: the capstone puts every piece into one pipeline, for one team.

5:20Summary

5:21

Measure what review catches, not just how fast it goes.Valentina: Thanks for watching!

Key takeaways

  • ✓Review metrics come in three kinds, all from a PR's history: speed (time to first review, time to merge, review rounds), quality (AI comments acted on, reverts within 7 days, bugs traced back to a PR) and load (PRs and lines per reviewer-week, AI-written share). Add one process metric: a silent approval, where a person approved and no person said anything.
  • ✓The history records events, not attention. It can't say what a reviewer read or which merged PR had a bug, so every quality metric is a proxy. 'Acted on' (the code under an AI thread changed) overcounts; 'resolved' is useless here (98–99%, because the AI reviewers resolve their own threads).
  • ✓Reverts are too rare to judge review by: 7 in 4,213 merged PRs across three real repos. With 1 to 3 reverts per group, the question 'do PRs whose AI comments were acted on get reverted less?' has no answer; the intervals overlap almost entirely.
  • ✓Weekly metrics swing on their own. One repo's weekly median time to merge ran from 1.6 to 104.1 hours. With nothing changed, two weeks of data notice a change 12–21% of the time, and a real 20% speed-up shows after a quarter only 9–35% of the time.
  • ✓When half a simulated team starts rubber-stamping, the speed metrics notice first and look like good news: time to merge in 85% of teams within two weeks, review rounds in all of them. Silent approvals notice just as fast, and they describe the problem directly.
  • ✓The quality metrics that would show the harm barely notice: after 13 weeks, reverts in 8% of teams and traced bugs in 4%, close to their false alarms (3%, 4%), while escaped bugs went from about 0.5 to 1.0 a week (1.8×). Behaviour is visible now; consequences show late, if at all.
  • ✓Never watch a speed metric alone: time to merge next to reverts, time to first review next to silent approvals, review rounds next to AI comments acted on. And since bugs are too rare to wait for, seed some: a planted bug is a quality metric you don't have to wait for.

What should a team watch to know whether code review is working? Most dashboards show speed: how long a pull request (PR) waits for review, how long until it merges. This chapter computes a set of review metrics on three real open-source repos that use AI reviewers, measures how much they swing on their own, and then makes a simulated team stop reviewing. Half its reviewers start approving everything in two minutes. Within two weeks the dashboard says the team got better: faster merges, fewer review rounds. Meanwhile the bugs that get past review nearly double, and the metrics that should show that barely move in 13 weeks.

The source is Lab 10 of the code-review labs, "Review Metrics for a Team", recorded in October 2026: scripts 01_fetch.py (three repos' last 26 weeks of PRs, through GitHub's API), 02_metrics.py (speed, quality and load on that data), 03_noise.py (how many weeks before a change stands out), 04_rubber_stamp.py (the simulated team) and 05_dashboard.py (a page that pairs metrics). It makes no model calls. Two kinds of data, and it matters which is which:

  • The three repos are real: formbricks/formbricks, infisical/infisical and triggerdotdev/trigger.dev, public projects with AI reviewers. Their reviewers are people, and the lab reports only per-repo aggregates.
  • The rubber-stamping team is simulated. Its PRs, planted bugs and AI finds are real results from earlier chapters, and every reviewer in it is an AI stand-in: Chapter 3's standard stand-in plays the AI reviewer and the careful stand-in plays a diligent person. Its waiting times and habits are assumptions.

How the PRs are named. The simulated team reviews PRs from the test set of Chapter 1, whose ids look like c20-d1. The first part is the change: c20 is one feature, adding a per-sync batch size. (c changes come from the app's own history, n changes were written for the test set.) The second part is the version: -clean is the correct PR, and -d1, -d2 are copies of it with one planted bug each. This chapter never needs a single id: the team is measured week by week, and the real repos' PRs only in aggregate.

Three kinds of metric

Every metric here comes from a PR's history: when it was opened, commented on, approved, merged.

Kind Metrics What it says
Speed time to first review, time to merge, review rounds how long a PR waits, and how many times it goes back
Quality AI comments acted on, reverted within 7 days, bugs traced back to a PR whether review changed the code, and whether what merged held
Load PRs and changed lines per reviewer-week, AI-written share how much each reviewer carries, and how much of it an AI wrote

Plus one process metric, a silent approval: a person approved, and no person commented, asked for changes or opened a thread. AI review threads don't count either way. A small, obvious PR deserves a silent approval. A team where most approvals are silent may not be reading.

A few definitions the lab needed:

  • A reviewer is a person other than the PR's author. GitHub marks apps as bots. A bot named like a known AI reviewer (CodeRabbit, Greptile, Claude, …) is an AI reviewer; other bots (dependency updates, CI) are ignored, and PRs they open are left out.
  • Time to first review is the hours from opening to the first review, comment or thread by a reviewer. Review rounds are review submissions by people.
  • AI-written means an agent's account opened the PR, or its description carries an agent's signature ("Generated with Claude Code", a Devin link). It's a lower bound: most AI-assisted code carries no mark.
  • Acted on is a proxy. GitHub marks a review thread outdated when the lines under it change. That's the closest the API gets to "this comment led to a change", and it overcounts: any later edit to those lines counts, whether or not it answered the comment.

What the history can't see matters as much. It records events, not attention: not what a reviewer read, for how long, or whether a merged PR had a bug. Every quality metric is a proxy, and the most direct one, a revert, is rare.

Three real repos

The lab fetched every PR created in the 26 weeks before 26 October 2026 from three repos, picked from a probe of 17 for AI reviewer activity:

Repo AI reviewer PRs opened Merged Merged PRs with an AI thread AI-written (marked) Reverted within 7 days
formbricks CodeRabbit 1,769 1,578 50% 6% 0
infisical Greptile, Claude 2,467 1,762 72% 12% 6
trigger.dev CodeRabbit; some PRs written by Devin 1,334 873 71% 6% 1

That's 5,570 PRs opened and 4,213 merged. AI review is the norm here, half to three quarters of merged PRs, but that's how the repos were chosen; it says nothing about open source in general.

Speed (medians, with a 95% interval from resampling PRs):

Repo Median lines Time to first review Time to merge Merged within a day Review rounds Silent approvals Merged with no human review
formbricks 190 6.0 h (4.7–9.2) 20.7 h (19.0–22.1) 56% 1.5 60% 3%
infisical 148 14.5 h (12.2–16.0) 19.9 h (18.2–21.3) 56% 1.6 52% 12%
trigger.dev 137 1.7 h (1.4–2.1) 4.6 h (3.5–5.5) 76% 1.1 86% 8%

For scale, Google's study of its own review (Sadowski et al., 2018) reports a median under four hours for the whole review of a change, on mostly small changes. trigger.dev is near that. It also has 86% silent approvals: either its PRs are easy, or no person is talking (71% of its merged PRs carry an AI thread, so the AI may be doing the talking). The metric can't say which. That's why it's paired with others, not judged alone.

Quality and load:

Repo AI threads Code changed under them (outdated) Resolved Reverted within 7 days Lines per reviewer-week
formbricks 2,509 48% (46–50%) 98% 0 (0.0%, 0–0.2%) 10,961
infisical 4,251 53% (52–55%) 99% 6 (0.3%, 0.2–0.7%) 7,853
trigger.dev 3,640 39% (37–40%) 99% 1 (0.1%, 0–0.6%) 6,955
  • About half of AI threads end with the code under them changed. That's the closest the history gets to "acted on", and an upper bound on it.
  • Resolved is useless as a proxy: 98–99% everywhere, because the AI reviewers resolve their own threads. It measures the bot, not the author.
  • Reverts are 7 in 4,213 merged PRs. These teams fix forward far more than they revert, so the revert rate is a weak quality signal.
  • Load: a reviewer-week carries 7,000–11,000 changed lines. At the often-quoted 500 lines an hour (Chapter 3), that's 14–22 hours of reading a week, which no reviewer spends. AI review and silent approvals are what make that arithmetic work.

Can the history at least say whether acting on AI comments prevents reverts? The lab split merged PRs by what happened to their AI threads:

Merged PRs (all three repos) n Median lines Reverted within 7 days
no AI thread 1,530 47 1 (0.1%, 0.0–0.4%)
AI threads, under half outdated 1,353 284 3 (0.2%, 0.1–0.6%)
AI threads, half or more outdated 1,316 356 2 (0.2%, 0.0–0.6%)

No. With 1 to 3 reverts per group, the intervals overlap almost entirely. And the groups differ before any comment is made: PRs with AI threads are 6–8× larger. The question is fair; this much history can't answer it.

The noise floor

Even speed is noisy. The lab took each repo's weekly median time to merge, over the last 22 weeks of the window (it skips a 4-week warm-up, see the caveats):

Repo Usable weeks Weekly median, range Week-to-week spread (sd ÷ mean)
formbricks 22 3.6–57.5 h 53%
infisical 22 12.2–41.2 h 36%
trigger.dev 18 1.6–104.1 h 184%

So how many weeks before a change stands out? The lab uses one deliberately simple rule for "this metric moved", here and in the simulation below. A metric notices a change when the mean of the weeks since it differs from the mean of the weeks before by more than 2 standard errors. To test the rule, it shuffles each repo's own weeks into 13 "before" and a few "after", makes the after-weeks' merges 20% or 50% faster (or leaves them alone), and counts how often the rule fires, over 1,000 runs. It works on the log of each week's median, because a few weeks are ten times the rest and on the raw scale those weeks decide everything. With no change at all, every notice is a false alarm. Pick a repo and a change:

Try it · The noise floorLab 10 · real weekly time to merge · 1,000 runs per cell

Take a repo’s own weeks, call 13 of them “before” and the next few “after”, and shrink the after-weeks’ merge times by a made-up effect. A metric notices when the after-weeks differ from the before-weeks by more than 2 standard errors (on the log of each week’s median). With no effect at all, every notice is a false alarm.

Repo
Change
Weekly median, range
12.2–41.2 h
Week-to-week spread
36%
Overall median time to merge
19.9 h

Chance the rule notices: no change (false alarm), infisical/infisical

after 2 weeks21%
after 4 weeks10%
after 8 weeks7%
after 13 weeks5%

With nothing changed, two weeks of data notice a change 21% of the time here (12–21% across the three repos). A "two weeks after rollout" chart can easily be noise. After 13 weeks they fall to 5–6%.

  • With nothing changed, two weeks of data notice a change 12–21% of the time. A vendor's "two weeks after rollout" chart can easily be noise.
  • A real 20% speed-up shows after a quarter only 9–35% of the time.
  • Halving merge time shows within a month only where weeks are steady (infisical, 91% after 4 weeks). Where a few weeks are ten times the rest (trigger.dev), it shows only 40% of the time after a quarter.

A team starts rubber-stamping

Now the experiment no real repo can run. A simulated team reviews 60 PRs a week for 26 weeks, drawn from the test set with 10% carrying a planted bug. Each PR passes Chapter 6's cut-down gate (it exposes 19 of the 173 planted bugs for free), gets Chapter 3's standard stand-in as its AI reviewer, and a reviewer: the careful stand-in, playing a diligent person. From week 13, half the reviewers approve everything in two minutes. They find nothing and say nothing.

The assumptions are named constants in the lab's simteam.py: a reviewer picks a PR up after about 4 hours on average; an author fixes a requested change in about 6; an author acts on an AI comment that points at the real bug 90% of the time, on other AI comments 30% (15% when the reviewer is stamping); and an escaped bug is reverted within a week 60%, 30% or 10% of the time by severity, else traced back to its PR 2–8 weeks later 40% of the time, else never.

Each week, the lab looks at the dashboard as it stands that day (reverts show a week late, traced bugs weeks late) and applies the same 2-standard-error rule to each metric. 200 simulated teams switch; 200 more never switch, which gives each metric's false-alarm rate. Which metrics notice?

Metric Kind Moves Noticed after 2 weeks 4 8 13 False alarm (no switch, 13 weeks)
time to merge speed down 85% 97% 100% 100% 8%
review rounds speed down 100% 100% 100% 100% 4%
silent approvals process up 100% 100% 100% 100% 5%
AI comments acted on quality down 37% 36% 48% 55% 9%
time to first review speed – 18% 9% 10% 6% 4%
reverted within 7 days quality up 7% 6% 6% 8% 3%
bugs traced back to the PR quality up 5% 6% 4% 4% 4%

The truth no dashboard shows: escaped bugs (planted bugs no check or reviewer caught) went from 0.009 to 0.016 per PR, 1.8×, about 0.5 → 1.0 a week. Step through the weeks:

Try it · Which metrics notice?Lab 10 · 200 simulated teams + 200 that never switch

A simulated team reviews 60 PRs a week from the test set, 10% with a planted bug. From week 13, half its reviewers approve everything in two minutes. Every reviewer is an AI stand-in. Each bar is the share of teams in which the metric noticed the switch; the tick is how often it “noticed” in teams that never switched.

Weeks since the switch
Time to mergespeed, goes down85%
Review roundsspeed, goes down100%
Silent approvalsprocess, goes up100%
AI comments acted onquality, goes down37%
Time to first reviewspeed, doesn't move18%
Reverted within 7 daysquality, goes up7%
Bugs traced back to the PRquality, goes up5%
■ speed■ process■ quality▏ false alarm, 13 weeks, no switch
Escaped bugs a week, before → after
0.5 → 1.0
Escaped per PR
0.009 → 0.016 (1.8×)

Two weeks in: time to merge, review rounds and silent approvals have already noticed, and the first two look like good news. Reverts and traced bugs sit at their false-alarm rates.

  • The speed metrics notice at once, and look like good news. Merges get faster and rounds fewer. A dashboard of speed alone would show a team improving.
  • Silent approvals notice just as fast, and they describe the problem directly.
  • Reverts and traced bugs barely notice. They do rise, but after 13 weeks they notice in 8% and 4% of teams, close to their false alarms. An extra half bug a week, reverted sometimes, found weeks later or never, is too few and too late to show at this volume.
  • AI comments acted on moves a little: about half the teams notice it after a quarter. Authors still fix some AI comments with no reviewer pushing.
  • Time to first review doesn't move, by design: stampers wait as long to pick a PR up. Its 18% at two weeks is the two-week false alarm from the noise floor. (The lab's output labels its direction "down", from the few runs where it fired.)

A paired dashboard

So which dashboard would have warned? The lab's last script builds one page where each speed metric sits next to a metric that keeps it honest:

Speed metric Paired with Because
time to merge reverted within 7 days merging faster is good only if fewer merges bounce back
time to first review silent approvals a fast first review that says nothing is a stamp
review rounds AI comments acted on fewer rounds is good only if comments still land
PRs per reviewer-week AI-written share load that grows with agent output needs watching

Here is one simulated team from that page, week by week. Move the slider to see the dashboard as it stood that many weeks after the switch. The tag on each chart is the same 2-standard-error rule, applied to this one team:

Try it · A paired dashboardLab 10 · one simulated team · the dashed line is week 13

The team on the lab’s dashboard, week by week, as the dashboard stands some weeks after half its reviewers start rubber-stamping. Each speed metric (left) sits next to a metric that keeps it honest (right). Reverts and traced bugs appear late: a revert within a week, a traced bug 2–8 weeks after the merge. The tag on each chart is the lab’s 2-standard-error rule on this one team.

Pair
Time to merge, median hoursmoved down
3.6
wk 0wk 13wk 25
Reverted within 7 days (PRs that week)within the noise
0 of 60
wk 0wk 13wk 25

Merging faster is good only if fewer merges bounce back.

Time to merge drops at the dashed line. The reverts beside it spike a few more times after the line, but with at most one revert a week, that can't be told from luck: the rule never calls it. Silent approvals jump at the same line. That pair is the warning.

For this one team the rule calls review rounds and silent approvals in the first week after the switch, time to merge after 4 weeks and AI comments acted on after 5 (the lab's 200-team table above is what to generalize from). Open the line no dashboard shows: this team's escaped bugs went from 7 in the 13 weeks before to 14 in the 13 after, and even that true line doesn't clear the rule. Bugs are too rare to watch for directly at this volume.

Also in the lab

From the lab's README and checklist answers (its own run, October 2026), beyond the video:

  • Which partner is best? The one that moves soonest when review degrades: here, silent approvals. A process metric can be gamed too (a one-word comment avoids a silent approval), but a pair makes gaming one visible in the other.
  • Silent approvals by size. Silent on a 20-line PR is normal; silent on an 800-line PR approved minutes after opening is the pattern to look at. A jump in the silent share, from 50% to 80% in a month, is a warning on its own.
  • Not per person. Per-person review metrics get gamed fastest and hurt trust. Team-level trends do the job.
  • More bugs, faster notice. With bugs in 30% of PRs instead of 10% (PREVALENCE = 0.3 in simteam.py), reverts would notice sooner: a team shipping more bugs learns faster that review stopped, the hard way.
  • Comparing revert rates needs volume. Telling 0.2% from 0.1% takes tens of thousands of merged PRs per group.
  • Better than before and after: roll a new tool out to half the teams or repos and compare at the same time, so the weekly swings hit both groups.
  • What went wrong while building it. The first repo (cal.com, now cal.diy) had 70 merges in 858 PRs and was replaced. The revert matcher first found 2 reverts, looking only for titles starting with "Revert"; teams also write "fix: revert …", "Reverts #8365" and "git revert of #4260", and the wider match found 7. The first bot filter missed CodeRabbit, whose login (coderabbitai) doesn't contain "bot". The noise test first said more weeks made a 50% change harder to see, until it moved to log medians. And the first and last weeks of the window were biased (cut-short merge times at the start, only old PRs merging late at the end), hence the 4-week warm-up.

What to do

  • Never watch a speed metric alone. Time to merge next to reverts, time to first review next to silent approvals, review rounds next to AI comments acted on.
  • When a speed metric improves, look at its partner first. Faster with silent approvals flat is good news; faster with silent approvals rising is the rubber-stamp pattern.
  • Don't read two weeks. Wait a quarter, compare on a log scale against the weeks before, and know your repo's own weekly swing.
  • Treat "acted on" as an upper bound, and don't use "resolved" when an AI reviewer resolves its own threads.
  • Seed known bugs, or re-review a few merged PRs properly, say a random 5%. A planted bug is a quality metric you don't have to wait for.
  • Keep reverts and traced bugs as a slow monthly line, not a weekly verdict.

Caveats

  • The team is a model, not data. Its PRs, planted bugs and AI finds are real; its waiting times, its authors' habits and how escaped bugs surface are assumptions, every one a named constant.
  • Every reviewer in the simulation is an AI stand-in. "A diligent person" is the careful stand-in, and a rubber-stamper is a rule: approve in two minutes, find nothing.
  • The real repos' reviewers are people, but the history only shows what they did, not what they read. Their quality metrics are proxies.
  • Three repos chosen for AI review activity, one 26-week window. Other weeks of the same repos would differ.
  • AI-written is a lower bound (6–12% marked). Most AI-assisted code carries no signature.
  • One detection rule. A deliberately simple 2-standard-error test; the point is how often it fires with and without a real change, not a better test.

The checklist

  1. Define your metrics in the three kinds, plus silent approvals, and write down what each can't see.
  2. Measure your weekly swing before you trust any before-and-after.
  3. Pair every speed metric with a quality or process metric that would move the other way if review got worse.
  4. Check how rare your quality events are: count reverts per merged PR before you plan to judge anything by them.
  5. Read changes over a quarter, against a false-alarm rate, not over two weeks.
  6. Seed known bugs now and then, and count how many review catches.
  7. Keep it at team level, and leave per-person numbers off the dashboard.

The series so far

That's eleven parts, one test set of planted bugs, and one question each time: what does this really catch? CI missed a one-line bug (Chapter 2). A cheap AI reviewer faded on big PRs (Chapter 3). A proof showed behaviour, not wrongness (Chapter 5). Free tools caught a thin slice (Chapter 6). A summary vouched for a bug (Chapter 7). Reading the AI first made the rushed reviewer lean on it (Chapter 10). Most results came with a noise floor, and every reviewer we scored was an AI.

Practice: review metrics in code

Write the pieces the lab's metrics rest on: the silent-approval check, the revert matcher (with the ways real teams write a revert), the Wilson interval that shows how little a handful of reverts can say, the lab's 2-standard-error rule, and a helper that finds the first week a metric notices. The tests use the lab's recorded numbers: infisical's 6 reverts in 1,762 merged PRs (0.2–0.7%), and the simulated team from the dashboard, where review rounds and silent approvals notice in week 1, time to merge in week 4, and the escaped-bug line never.

Try it · Practice in PythonRuns in your browser · ⌘/Ctrl + Enter to run
metrics_practice.py71 lines

Quiz

Try it · Check your understanding0 of 6 answered
  1. 1.In the simulation, half the team starts approving everything in two minutes. Which metric describes that problem directly, and noticed it in every team within two weeks?

  2. 2.Three real repos had 7 reverts in 4,213 merged PRs. What can revert rate tell you here?

  3. 3.Your team adopts an AI reviewer, and the next two weeks' median time to merge is 30% lower. What does the lab suggest?

  4. 4.How does the lab measure 'AI comment acted on', and what's wrong with it?

  5. 5.Escaped bugs nearly doubled after the switch. Why did reverts and traced bugs barely notice in 13 weeks?

  6. 6.Rubber-stamping is invisible to reverts for months. What does the lab suggest instead?

Check your understanding

Try each question before opening its answer.

What are the three kinds of review metric, and what is a silent approval?

Speed (time to first review, time to merge, review rounds), quality (AI comments acted on, reverts within 7 days, bugs traced back to a PR) and load (PRs and lines per reviewer-week, AI-written share). A silent approval is a person approving with no person saying anything; AI threads don't count. Fine on a tiny PR, worrying if it's most of them.

What can't a PR's history tell you, and what does that do to quality metrics?

It records events, not attention: not what a reviewer read or for how long, and not which merged PRs had a bug. So every quality metric is a proxy. The ones that arrive soon are weak (acted on overcounts); the strong ones arrive late or rarely (7 reverts in 4,213 merged PRs).

86% of trigger.dev's approvals are silent. Is that a problem?

Not by itself. Its PRs merge fast (4.6 hours median) and 71% carry an AI thread, so the AI may be doing the talking, or the PRs are easy. It becomes a warning when it moves: a silent share that jumps in a month, while speed metrics improve at the same moment.

Why did time to merge and review rounds notice rubber-stamping at once, while reverts barely did?

A reviewer who stops reading changes every PR right away: fewer change requests, faster merges. An escaped bug is rare (about half a bug a week extra), arrives one at a time, and surfaces late if at all: a revert within a week sometimes, a traced bug 2–8 weeks later or never. After 13 weeks, reverts noticed in 8% of teams and traced bugs in 4%, near their false alarms.

A reviewer-week carries 7,000–11,000 changed lines. What does that say about how review is done?

That nobody reads it all: at 500 lines an hour it would be 14–22 hours of reading a week. Something gives: tests skimmed, AI review trusted, approvals given without reading. It's the problem this whole series starts from: AI writes code faster than people read it.

What would you put on a team's review dashboard, and what would you leave off?

On: pairs and trends over a quarter (time to merge with reverts, time to first review with silent approvals, review rounds with AI comments acted on, load with the AI-written share), and seeded bugs now and then. Off: anything per person, week-to-week comparisons without their noise, and any speed metric alone.

Next up: Chapter 12, the review pipeline: the capstone puts every piece into one pipeline for one team, and compares it with simpler setups on the same PRs.

Learning something useful?

New labs, articles, and videos on evaluating and testing AI systems come out regularly. Follow along so you don't miss the next one.