An AI Review Comment Needs a Receipt

"This violates the architecture."

That sounds like a useful review comment until you try to act on it. The developer is left reconstructing whether the reviewer read the current repository instructions, an old document in the issue tracker, a team policy, a service catalog, or simply guessed.

A human reviewer can be vague too. The difference is that we usually know who wrote the comment, can ask what they saw, and can use their history with the codebase to interpret the answer. An AI reviewer may have assembled its judgment from repository files, connected tools, model policy, and hidden system instructions. When that working context disappears behind polished prose, the comment is hard to trust and annoyingly expensive to check.

More context alone won't fix this. Code review agents need a context contract, and consequential comments need a receipt.

A review comment can now leave fingerprints

GitHub's recent Copilot code review changes offer a useful glimpse of this idea. Teams can put review instructions into agent skills under .github/skills, and read-only MCP tools can supply external material such as issue data, documentation, or service-catalog records. When skill or MCP context influences a comment, the comment identifies that influence.

The attribution matters because a reviewer no longer has to treat the comment as a sealed model opinion. There is at least a trail back to the material that shaped it.

That trail does not prove the comment is right. A repository skill can be stale. An MCP source can return an irrelevant record. A model can read the correct rule and apply it badly. Read-only access limits side effects; it does not make interpretation reliable.

Still, attribution changes the review conversation. Instead of arguing with a confident sentence, the developer can inspect its basis. The agent's judgment becomes a claim that can be checked.

More context can produce more confusion

Connecting every source that might help is tempting: architecture documents, issue trackers, observability data, product requirements, internal wikis, service catalogs, design-system guidance, and years of postmortems. If missing context causes weak reviews, a larger context window looks like the obvious cure.

The trouble is that context has maintenance cost. Old rules do not become harmless just because they fit in the window. Two sources can describe different generations of the same system. A broad search can retrieve a nearby policy that does not apply to this repository. The agent may then produce a detailed comment whose confidence rises with the amount of material it misunderstood.

A better context contract is deliberately small. It names the repository rules that are authoritative, the external sources the reviewer may consult, and the owner responsible for keeping each one current. It also records scope. A payments policy should not quietly govern an image-processing package because both mention uploads.

Consider a review agent checking a change to an image workflow such as Resize Image for Instagram. The maintained contract can state that source images stay in the browser, Fit mode preserves the full image inside the selected frame, and exports use defined Instagram dimensions. If a patch introduces a server upload or changes 4:5 output away from 1080 x 1350, the review comment should cite the applicable invariant. It should not infer the product contract from whichever canvas helper happened to be open.

The same discipline matters for generated interfaces. A team may seed a review skill with a bounded collection of Generative UI resources covering SDKs, renderer patterns, MCP-compatible UI tools, and technical references. The comment should identify which entry or pattern affected its finding. "Generative UI best practice" is not a basis. A named, maintained reference is.

Those collections help through curation, not volume. Context becomes useful when a reviewer can recover why a source was present and decide whether it belongs there.

Context and authority are different controls

Several controls are arriving at once, which makes them easy to blur together.

Repository skills govern instructions. They tell the reviewer which local conventions and domain rules to apply.

MCP tools govern access to external context. In GitHub's code review integration, those tool calls are read-only. That is a sensible boundary for review because reading an issue or service record should not quietly turn into changing it.

Team-targeted model policy governs availability. GitHub's public preview lets an enterprise make models available to selected teams rather than treating the whole organization as one policy surface. This can explain why two teams have different model choices. It does not, by itself, prove which model produced a particular comment.

Identity and capability govern accountability. Vercel describes its agent as having its own identity, starting read-only, proposing a plan, and receiving short-lived capability for approved work. The system records who requested, approved, and executed a change. Those controls matter when a review finding becomes an action, but they do not establish that the original finding was correct.

These are separate questions:

  • Which instructions applied?
  • Which external information was read?
  • Which models were permitted?
  • Who requested and approved the work?
  • What was the agent allowed to change?

A single "AI enabled" setting cannot answer them. Neither can a generic attribution badge. The review record has to preserve the boundaries that mattered for this run.

What a review receipt should contain

A receipt should be compact enough to read beside the diff. Turning every comment into a raw tool log would hide the judgment under implementation noise.

For a consequential finding, I would start with five fields:

  • Basis: the repository rule, skill, or external record that applies, including a useful version or freshness marker when available.
  • Finding: the specific behavior in the patch that conflicts with that basis.
  • Consequence: what can break, leak, regress, or become harder to maintain.
  • Suggested change: the smallest correction that addresses the finding without pretending there is only one valid design.
  • Uncertainty: the missing evidence or assumption that could change the conclusion.

A comment might look like this:

Basis: the repository's current image-handling rule requires browser-local processing. Finding: this patch sends the source file to a server endpoint before resize. Consequence: it changes the documented privacy boundary. Suggested change: keep resize and export in browser APIs, or update the product contract through an explicit design decision. Uncertainty: I did not verify whether a separately approved architecture change exists.

That format gives the reviewer something to inspect. They can open the rule, check the line in the patch, and decide whether the missing architecture decision exists. If the agent chose the wrong source, the mistake is visible early.

Receipts also make bad context easier to repair. When several comments cite an obsolete skill, the team can update one governed artifact instead of correcting the agent in every pull request. When a source keeps producing irrelevant findings, the team can narrow its scope or remove it. Attribution turns review quality into something the surrounding system can improve.

Keep review read-only until action is explicit

A review agent and a change agent may share a model, but they should not inherit the same authority.

Review is an information task. It needs broad enough read access to understand the patch and narrow enough context to avoid accidental policy drift. Applying a fix is an execution task. It may require writing files, running commands, opening a deployment, or touching an external system.

Keeping those phases separate gives the human a useful pause. First inspect the receipt. Then approve a plan and grant the capability needed for the correction. Short-lived authority tied to an approved task is much easier to reason about than a reviewer that can act whenever its own comment sounds convincing.

This separation will feel slower on tiny changes. Sometimes it is. But the cost is visible and proportional, while a review agent with ambient write authority creates a much larger question: whether a mistaken interpretation can become a real change before anyone sees its basis.

Confidence is a presentation choice; inspectability is a property

AI review prose is getting better. It can sound patient, precise, and certain even when the path behind the sentence is messy. Tone helps people read a comment, but it says almost nothing about whether the comment deserves trust.

I would rather receive a slightly awkward finding with a current rule, a named source, and an honest uncertainty than a perfect paragraph whose basis I have to reconstruct. The first comment can join a technical discussion. The second asks me to perform an investigation before I can even begin reviewing the review.

My standard is simple: a human ought to be able to recover the basis of an important AI review comment quickly. Show which instructions applied, which context mattered, where authority stopped, and what remains uncertain.

Trust comes from leaving enough evidence for the team to check whether the reviewer understood the architecture, not from making the comment sound certain.

Source notes

Comments

Popular posts from this blog

The Agent Shift Is Showing Up in Workflows, Not Prompts

The Invisible Wall of Vibe Coding: The Rise of Control Debt

Code Review Is Becoming a Routing Problem