R462 · AI-built software and its verification › AI code review

A four-stage prompt chain, and an oracle that measures silence: inside a large fleet's AI code reviewer

Read the original

code-reviewagent-harnessevalsmeasuringhuman-oversightclaim-checkingagents-at-scale

A ride-hailing company's published account of the system that reviews over 90% of its weekly diffs — the pipeline, the numbers, and why its headline comparison does not hold up as stated.

What the posts cover, and what they do not

Two engineering posts from the same company: one on the code-review system itself (August 2025), one on the cost economics of running coding agents at scale (August 2026).

Worth setting expectations first, because the framing that surfaced these claims a mechanism neither post contains. Neither post describes how a stuck, blocked or failing agent run becomes a reviewed fix. The later post lists "self-healing CI failures" as one managed-agent task type and gives no mechanism for it. It records timeouts as a metric the reviewer is benchmarked on, with no handling described, and MTTR as a quality signal with no definition and no number. Its only account of an agent going wrong is an anecdote: one spent 20 minutes inspecting service code, spawned two subagents, hit three errors, and concluded wrongly that a dataset was unqueryable. The review post, for its part, describes no failure handling at all for the review agent — no timeout value, no timeout rate, no retry, no fallback model, no escalation, no "cannot reach a verdict" state. Its only skip paths are design-time filters.

So the recovery path is unpublished. What is published, in real detail, is how a generated review comment becomes one a developer acts on. That is worth the read on its own.

The pipeline

The system's own description of its shape:

Its prompt-chaining-based architecture breaks down the code-review task into four simpler sub-tasks, and allows each sub-task—comment generation, filtering, validation, and deduplication—to evolve independently.

In order:

1. Eligibility. On submission it "first determines which files are eligible for automated review," dropping configuration files, generated code and experimental directories. For the rest it assembles a prompt with "nearby functions, class definitions, and import statements" — lexical neighbourhood, not a program graph.

2. Generation. A "pluggable assistant framework" with three assistants live: a Standard Assistant that "detects bugs, incorrect exception handling, or logic flaws"; a Best Practices Assistant enforcing conventions "by referencing a shared registry of style rules"; and an AppSec Assistant targeting "application-level security vulnerabilities." Each assistant is independently deployable, and the list is described as actively expanding.

3. Post-processing, three steps strictly in this order:

4. Delivery. Surviving comments are posted inline on the review platform. Developers rate each one Useful or Not Useful with an optional note, and comments plus metadata (assistant, category, confidence, feedback) stream through a message bus into a warehouse for dashboards.

The loop closes here, and it is the architectural point: the ratings collected in stage 4 are what set the thresholds in stage 3a and the suppression list in stage 3c. The system tunes its own output filters on developer reactions.

Operational envelope: median four minutes per commit inside CI; deployed across all six of the company's monorepos (Go, Java, Android, iOS, TypeScript, Python). The platform is not a public forge, which the post offers as a reason third-party tools did not fit — most of them require the code to be hosted on one particular public platform.

Three structural choices worth noting

A separate grading step, with asymmetric model sizing. The bake-off's winning configuration pairs a mid-size generator model with a smaller reasoning model as the grader. That asymmetry is the transferable finding: judging whether a finding is worth showing is a cheaper task than producing the finding, so the grader does not need to match the generator. The runner-up pairing differed only in the grader and scored 4.5 points lower on F1 — the grader choice alone is worth points.

Deduplication is semantic, not textual. Three assistants looking at the same diff will independently flag the same defect in different words. A string-match dedupe would miss that; this is why the merge step is a similarity filter rather than a hash.

Suppression is by category, learned from history. Rather than tuning one global confidence bar, the system maintains per-category value estimates and drops whole categories that developers have historically ignored. More honest than a single threshold, and — see below — also the source of a measurement problem.

What it cannot do, by the team's own admission

uReview today only has access to the code, and not to other artifacts like past PRs, feature flag configurations, database schemas, technical documentation, and so on, because of which it can't correctly assess overall correctness and review the system design.

This is the most load-bearing limitation in either post and it is structural, not a backlog item. Every number below is about local defects. Design review is out of scope because the inputs that would make it possible are not wired in.

Also admitted: "Readability nits, minor logging tweaks, low-impact performance optimizations, and stylistic issues consistently received poor ratings." And on the boundary with conventional tooling, refreshingly: "For simple or syntactic patterns, linters are accurate, reliable, and cheap—we should continue using them." Early failures were "noisy stylistic suggestions or missed security checks."

The numbers, and what they rest on

Coverage and volume: it "analyzes over 90% of the weekly ~65,000 diffs (equivalent of pull requests) landed"; "over 10,000 commits" processed weekly excluding configuration files.

Quality: "[e]ngineers who interact with the tool mark 75% of its comments as useful," described as "a sustained usefulness rate above 75% across all deployed generators." And the headline: "on average 65% of comments being addressed in the same changeset," against a human baseline of "only 51% of human-written comments" addressed in the same changeset.

Efficiency claim: a second human reviewer "would require 10 minutes per commit," yielding "approximately 1,500 hours saved weekly, equivalent to nearly 39 developer years annually." Cost is given only as "an order of magnitude less than what typical third-party tools charge" — no figure.

The later post adds context for the same system at a larger scale: "[m]ore than 70% of pull requests are attributed to local or cloud agents," over 3,600 agent skills with more than 30,000 skill executions per day, and weekly agentic requests up 9.4x from February to August 2026 while total AI spend "relatively stabilized since April." It says model switching on the reviewer "improved our F1 while dramatically reducing cost/PR" and puts the actual values in a figure image rather than the text.

Four problems with the headline comparison

1. The 65% and the 51% come from different instruments. The 65% is produced by an automated oracle described below. The 51% comes from "internal audits" with no stated method, sample size or definition. Two different measurements of "addressed," presented as a comparison. On the published information you cannot tell whether the gap is real, and the direction of any instrument bias is unknown.

2. The oracle measures silence, not repair. The method: re-run the reviewer on the final commit and count a comment as addressed "if none of the re-runs reproduce a semantically similar comment." So the measured quantity is the comment stopped firing — which is satisfied by a fix, and equally by the surrounding code moving, by the suppression lists having changed since, or by the generator simply not sampling that finding again. The team is explicit about the last one: "Because LLM is stochastic, a single rerun might skip a lingering issue or revive one that is already fixed, so we invoke it five times." Five samples cut the variance; they do not separate fixed from no longer mentioned. Anyone building this metric should pair it with a direct check — did the flagged line change, or did a test that reproduces the defect start passing.

3. The usefulness rate is measured after the filters that were tuned on usefulness. Thresholds and category suppression are set from developer ratings; the admitted finding is that readability and stylistic comments rate poorly; so those categories get suppressed; so the surviving population rates better. The 75% is a post-filter number on a population selected to score well, among "engineers who interact with the tool." It is a legitimate operating metric and not an accuracy measurement, and the two are easy to confuse.

4. No absolute precision or recall is published anywhere — only the 4.5-point relative gap between two model pairings. The benchmark is described ("a curated benchmark of commits with known issues... against human-labeled annotations," a "golden comments dataset") with no size, labelling protocol or annotator count. So a reader cannot tell whether 75% usefulness sits on a high-recall base or a heavily pruned one — and suppressing low-value categories improves the former while lowering the latter by construction.

An unreconciled figure

The same post says "the weekly ~65,000 diffs" in one place and "given the scale of diffs at Uber (65,000 per month)" in another, and never reconciles them. A 4.3x difference in the denominator changes what ">90% coverage," "1,500 hours saved weekly" and "39 developer years annually" mean. Treat the derived savings figures as order-of-magnitude.

Also missing

No merge gating is described: the system "posts validated comments" and runs in CI, and the posts never say it can block a merge, is a required check, or approves or merges anything. The only human-facing framing is that feedback arrives "before the commit reaches a human reviewer." A sibling component that "proposes actual code changes in response to comments, whether those comments come from humans or AI" is named once and never described — no behaviour, adoption or accuracy.

Also absent: comments per PR or total comment volume; per-assistant numbers; confidence threshold values; how many comments the filters suppress; the effect size of the similarity or category filters; latency beyond the median; rollout dates; and which grader actually runs in production versus in the evaluation.

One chronological note that affects how much to generalise: the review post is from August 2025, the cost post from August 2026. The reviewer predates the managed-agent and self-healing-CI world the later post assumes, and nothing published bridges them.

Review checklist

Connections

See R462 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.