Skip to content

Every CI Gate Returns a Number. Review Returns Something You Must Answer

Lint, coverage, mutation and audit gates end in an exit code. Review ends in a paragraph someone has to weigh and answer, so design that part.

· · 10 min read
Two colleagues leaning over a laptop and a monitor full of code in a shared office

Run a pull request through a modern pipeline and watch what each gate hands back. The linter returns a count. The coverage tool returns a percentage. The mutation tester returns a score, the audit returns a list of advisories, and every one of them ends in an exit code the CI runner can read without a human in the loop.

Code review is the odd one out. Its output is a paragraph of prose written by a person, and nothing in your pipeline can parse it. I'd argue that's not a defect to be engineered away. It's the reason review belongs on a site about long-lived code.

What does every other gate hand back?

I read the documentation of one gate at each level (code quality, bugs and tests, security) from the kind of list I ranked in the twelve-gate essay, to see how each one reports. The answer is boringly uniform.

Level Gate What it returns How it becomes pass or fail
L1 code quality ESLint errors and warnings exit 1 on any error, or on more warnings than --max-warnings allows
L2 bugs and tests coverage.py a coverage percentage exit status 2 under fail_under
L2 bugs and tests StrykerJS a mutation score exit 1 below thresholds.break, which defaults to null, meaning never
L3 security npm audit advisories by severity non-zero exit at or above --audit-level

Look at the right-hand column. In every row a human made one decision, once, in a config file, and the machine applies it forever after. That's the whole appeal. It's also the weakness, because the decision can be quietly moved. Raise the warning ceiling, lower the fail_under figure, leave the Stryker break threshold at its default of never. Teams that suppress lint rules or chase a coverage figure an assistant can inflate are gaming a number, and a number can be gamed because a number is all the gate asked for.

What does review hand back instead?

A claim with a reason attached. Not "line 42 violates rule R", but "this retry loop swallows the timeout, so a slow upstream and a dead one look identical to every caller". Google's public review guide is blunt that design work belongs to this category: aspects of software design are almost never a pure style issue or just a personal preference, so they get weighed against engineering principles rather than checked against a list.

That is the sentence this site exists for. "It works, but in three years it will hurt" has no exit code. It can only be said by someone who has read the diff, and it can only be handled by someone who reads the sentence back.

Here's the structural part, and it's why review doesn't sit on one level like the gates above. One reviewer, one pull request, and the comments can land on any layer. The examples below are invented for illustration, not quotes from a real thread.

Level A comment only a person would write
L1 "The ignore comment on line 18 has no reason, and the rule it hides exists because of an outage."
L2 "This test still passes if the function returns null. What is it asserting?"
L3 "The ID comes from the request and reaches the query unescaped on this path, even though the other callers sanitise it."

A linter can see the first as a suppression, a coverage report can see the second as a covered line, and a dependency audit can't see the third at all, because it lives in your code and not in a dependency. A fourth case is a new dependency name a model made up, which only shows to someone reading the lockfile diff once a hallucinated import has been registered. Review is the only gate that reads all of these in one pass, which is also why it's the only one that can't be assigned to a single stage and forgotten.

Open notebook with handwritten notes weighing two opposing lines of reasoning against each other
Photo by Fiona Murray-deGraaff on Unsplash

Why can't you turn that into a threshold?

Platforms have tried, and the attempts are instructive. I read GitHub's documentation on protected branches and review submission to see what the "review gate" actually checks.

It checks a count. The setting is a required number of approving reviews. A review can be submitted as Comment, Approve or Request changes, and the documentation says Request changes is informational unless branch protection rules exist. There's also an option that blocks merging until every comment is resolved, and that sounds like it enforces "the argument was answered". Then you read who can resolve a conversation: whoever opened the pull request, or anyone with write access. So the person being argued with can mark the argument closed.

None of that is a criticism of GitHub. The tool can't know whether the sentence was understood, so it measures the nearest thing it can see, which is a click. A threshold for an argument is a threshold on the clicks.

Google's own research shows how rarely the full machinery fires. In the ICSE-SEIP 2018 case study, the authors report that the majority of changes are small, have one reviewer, and carry no comments beyond the authorization to commit. Over 80 percent involve at most one round of the author resolving comments. So most of the time review is an approval and nothing else. The argument is the exception, and the exception is where the value sits, which makes it worth handling carefully.

A gate that returns a number gets configured once and forgotten. A gate that returns an argument has to be answered every single time.

SHARE Post on X Bluesky

What should you design instead?

Three things, one per verb: write, answer, record. I'll take them in order, and I'll say where I'm giving an opinion and not a finding. I found no study that measures whether any of these conventions reduces defects.

Write it so the author knows what's being asked

The cheapest fix is labelling intent. Google's guide recommends marking comments, with Nit for a minor point, Optional or Consider for a suggestion, and FYI for information that needs no action. Conventional Comments turns the same idea into a format: a label, optional decorations in parentheses such as blocking or non-blocking, a subject, and a discussion. The spec's stated aim is comments that are easy to read and easy to search.

The decoration does the work a threshold would have done. A comment marked non-blocking can't stall a merge, and one marked blocking says out loud that it can. Without the mark, the author has to guess, and guessing is how a Friday afternoon turns into either an ignored warning or a three-day standoff. Anthropic's Claude Code team puts a hard stop on the loop instead, a three-round cap.

My own rule on top of that, and this one is a position you can disagree with: a blocking comment should carry either an alternative or a concrete failure. "I don't like this" is a veto. "This drops the timeout, here's the version that returns the last error" is an argument. Google's guidance keeps the fix with the developer in general, since they're closer to the code, but allows direct guidance when needed. GitHub's suggestion blocks make the alternative cheap to write, because the author can commit the proposed edit as it stands.

Answer it, and let the answer be a change or a reason

The Linux kernel documentation is the clearest statement of the loop I found. A Reviewed-by tag is the reviewer saying that their concerns were communicated back and that they're satisfied with the submitter's response. The same document tells contributors they must respond to review comments, and that ignoring reviewers is a good way to get ignored in return.

So "resolved" has two honest meanings: the code changed, or the author gave a reason the reviewer accepted. Google's author guide adds a useful twist. If a reviewer didn't understand something, fix the code or add a comment instead of explaining in the review tool, because a reply in the tool doesn't help future readers of the code. When the two sides still disagree, the guide's order is consensus first, then the standard: technical facts and data overrule opinions and personal preferences.

Fountain pen lying on a ruled sheet filled with rows of handwritten red characters
Photo by jason hu on Unsplash

Record the ones that changed the design

Most threads shouldn't be kept. The few where a reviewer's objection reshaped the code should leave a trace that survives the platform, and the trace already has a shape. The MADR template for decision records requires three sections: the context and problem, the considered options, and the decision outcome. Read a good design thread and you'll find those same three parts, scattered across ten replies.

I covered how badly that trace travels in the essay on review comments and platform imports, so the short version is enough here. Put one sentence in the squash commit or a short record, and the reason moves with the repository instead of staying in a hosted database.

A comment you could paste into a team doc

Same invented flavour as before, in the Conventional Comments format:

issue (blocking): retry loop swallows the final timeout

Callers can't tell a slow upstream from a dead one. Once billing
depends on this, that's a silent double charge, not a log line.
Alternative: return the last error after the final attempt and
keep the backoff as it is.

And an answer that closes it, which can be as short as "Changed in the next commit, returns the last error" or "Disagree: the billing job is idempotent, see the linked test, so I'd call this non-blocking." Either one ends the thread with something a future reader can use. A bare "done" ends it with a click.

Where does this argument fail?

Three places.

First, review is mostly silent. If the Google numbers describe your team too, most pull requests will never produce an argument, and building conventions for the rare thread can look like ceremony. I'd still build them for the rare thread, because that thread is where the three-year warning gets said or swallowed.

Second, a model can write arguments now, and it writes them fluently. That doesn't remove the duty to answer. It raises the volume, and each comment still costs a human a decision, which is the cost I looked at in the essay on AI review.

Third, none of this is measured. The sources above are style guides, a template and one large case study of how Google reviews happen. They describe practice, and I have no evidence that labels or decision records reduce defects. Treat them as a design starting point you test against your own threads.

Which of your last ten review comments would you have been able to answer with a click? And which of them deserved more than one?