Skip to main content
New aislop v0.13.1 patch — calibrates hidden-fallback detection and fixes regex comment-masker false positives. Read the changelog →
← Blog
Engineering · 4 min read

AI Code Review Metrics That Expose Noisy Tools

Comment count rewards activity. A useful review program measures verified findings, missed risk, and the human attention spent getting to a decision.

An AI reviewer leaves twelve comments. Eight are resolved. The dashboard reports success.

But six resolved comments were formatting preferences, two were incorrect and took an hour to disprove, and the reviewer missed the authorization regression that delayed release. The activity metrics improved while the review system became worse.

Measure the work and risk removed, not the words the bot produced.

1. Verified precision

Sample findings and have qualified reviewers label each as correct and consequential, correct but trivial, duplicate, incorrect, or unverifiable. Precision is the share of surfaced findings that are genuinely useful under your definition.

Segment by severity and category. One security finding can be worth more than twenty naming suggestions, while a high false-positive rate in “critical” findings destroys trust quickly.

2. Coverage against known issues

Precision ignores what the reviewer missed. Build a replay set of historical pull requests with human-identified defects, incident causes, and clean controls. Record which consequential issues each tool surfaces.

This is not universal recall because the full set of real issues is unknowable. It is an operational proxy grounded in failures your organization actually cares about.

3. Resolution quality

Track whether a finding caused a correct pre-merge change, was dismissed with evidence, remained unresolved, or led to a regression. Do not count a committed suggestion automatically as a good outcome. Sample the resulting code.

GitHub reported that its own teams resolved 67.3% of GitHub Code Quality findings before merge. That is useful product evidence for that environment, not a target every tool or team should copy. Your denominator, rule mix, and severity policy determine what resolution means.

4. Investigation and dismissal cost

Wrong findings are not free. Record the minutes required to read, reproduce, discuss, and dismiss them. Include time spent correcting the reviewer's mistaken model of the repository.

A tool with lower raw precision may still help if false findings are obviously cheap and true findings prevent expensive incidents. A plausible security claim that takes two engineers half a day to disprove has a different cost profile.

5. Duplicate and trivial finding rate

Count findings already produced by the compiler, linter, tests, security scanner, another bot, or the same reviewer on a nearby line. Also label correct suggestions that do not change risk or comprehension enough to justify interruption.

This metric reveals layering problems. If an AI reviewer spends most of its output restating deterministic tools, change its prompt or move those checks earlier.

6. Time to useful signal

Measure from push to the first verified consequential finding, not to the first automated comment. A fast summary does not help if important feedback arrives after human review has finished.

Separate local, CI, and pull-request latency. Repeatable findings should surface while the coding agent or author still has context. Deep contextual review can take longer if it produces value the fast path cannot.

7. Human review time and cycle time

Compare median and tail time from ready-for-review to informed approval, while controlling for pull-request size and risk. Survey reviewers about cognitive load, but pair perception with observed time and outcomes.

A tool can shorten cycle time by encouraging premature approval. That is why this metric must sit beside escaped defects and incident data.

8. Escaped defects and near misses

Tag production defects, rollbacks, security findings, and serious post-merge corrections to the pull requests that introduced them. Ask whether the reviewer had enough evidence to catch the issue, whether it produced a weak warning, or whether the failure was outside its intended scope.

Volumes will be low and lagging. Use qualitative case review rather than pretending a monthly defect rate alone identifies causation.

9. Cost per verified useful finding

Add license, token or usage charges, CI compute, setup, maintenance, and human triage. Divide by sampled verified consequential findings, not total comments. Also estimate value: avoided rework, shorter review, or reduced incident exposure.

This makes very different products comparable. A deterministic local rule and a deep multi-agent review do not have the same cost or expected finding class.

A minimal scorecard

MetricWhy it existsReview cadence
Verified precision by severityExposes noise and miscalibrationMonthly sample
Known-issue coverageExposes silence on real failuresEach model or major config change
Investigation minutesPrices false positives in human attentionContinuous sample
Review time and escaped defectsBalances speed with safetyQuarterly trend
Cost per useful findingTests economic valueMonthly

Use the metrics to redesign the stack

Move repeated objective findings into deterministic gates. Configure the AI reviewer to focus on contextual correctness and security. Raise its confidence threshold if investigation cost is high. Run deep review only on risk-sensitive or unusually large changes if universal review does not pay for itself.

aislop is designed for the first move: stable generated-code patterns with local feedback and reproducible CI results. Measure it by rule precision, regressions prevented, and review comments removed—not by scan count alone.

npx aislop@latest scan --changes

Sources

Frequently asked questions

How should teams measure AI code review quality?

Track verified precision, coverage against known consequential issues, duplicate and trivial finding rates, developer dismissal and investigation time, resolution before merge, review latency, escaped defects, and cost per verified useful finding. Compare total human review time before and after rollout.

Is comment acceptance rate a good AI review metric?

It is useful but incomplete. Developers may accept trivial suggestions, ignore correct findings, or apply a change without agreeing with the diagnosis. Pair resolution data with sampled expert labeling, severity, investigation time, and escaped defects.

What is the most important AI review metric?

Net review work is the decision metric: did the tool reduce the human time and risk required to reach an informed merge? No single proxy captures it, so use a small balanced scorecard and regular sampling.