Missing evidence should narrow an AI code review

Use task-specific evidence requirements to decide when an AI reviewer must abstain, who resolves missing context, and what a limited rollout permits.

OpenThunder Editorial · 2026-11-15

An AI code reviewer should abstain from a review claim when the evidence needed to assess that claim is missing. That should trigger human review of the unresolved question, not necessarily stop every narrower check the tool can support.

Imagine a team changing an endpoint so workspace administrators can export billing records. Its proposed AI reviewer receives the diff and passing unit-test results, but not the authorization requirements or the middleware that establishes workspace membership.

The reviewer can identify that the new branch checks an administrator flag. It cannot establish that the flag authorizes access to the requested workspace’s records. Approving the authorization change would exceed its evidence.

Missing evidence should narrow authority, not disappear into a confidence score.

The research raises an evidence question, not a tool ranking

The abstract of Comparative Analysis of Agent Evaluation Frameworks reports a controlled comparison of three evaluation approaches using frozen execution traces from two analytics agents. The authors report that trace-based evaluation achieved the best precision-recall balance on their known-risk cases, while text-only evaluation matched its recall but produced more false alarms.

The same arXiv abstract reports no overlap between failures discovered through functional testing and security red-teaming. The authors frame information availability and complementary evaluation methods as important to evaluation quality.

These are the authors’ reported findings in a controlled analytics-agent setting, not independently replicated evidence of coding-tool performance. They do not establish which reviewer an engineering team should buy or how reliably it will assess authorization changes.

For engineering leaders, the useful adoption question is narrower: does the reviewer receive the evidence required for the responsibility being delegated? Evaluate that before treating a favorable review as release evidence.

Match each review claim to its required evidence

For the billing-export example, assume the proposed behavior is that administrators can export records only for workspaces they administer. The reviewer has the diff and a test report showing that an administrator succeeds and a non-administrator is denied. It lacks the written access policy and the relevant authentication and query paths.

Use the following evidence-to-claim table as a review policy template. The requirements are specific to this example, not a universal minimum for every repository.

Review claim Evidence required Available in this example? Permitted conclusion
The changed branch contains an administrator check Diff with enough surrounding code to interpret the condition Yes Describe the check and flag visible defects within that scope
The change implements the intended access policy Authorization requirements defining actor, action, resource, and workspace boundary, plus implementation context No: requirements are missing Abstain from authorization-correctness approval
Another relevant entry point cannot bypass the check Relevant call paths, including routes, middleware, and data-access enforcement No: the diff does not show them Mark bypass assessment unresolved
The reported test cases passed for this revision Test results tied to the reviewed revision and identifiable cases Yes, by assumption Report that those cases passed, without claiming complete coverage
Cross-workspace access is denied Workspace-isolation requirements, relevant enforcement paths, and targeted test evidence No Require a human-owned security assessment before release approval

The distinction is between observing code and validating its meaning. An administrator check is visible syntax; deciding whether it enforces the right boundary requires a policy and implementation context.

Passing tests support the cases they exercise, not an unstated access policy.

A human reviewer receiving an escalation still needs to obtain the missing requirements or inspect the relevant paths. Human approval should not be a way to waive an unanswered question without recording the reason.

Give “not assessed” a status of its own

A useful AI review policy needs at least three outcomes for each assigned check:

Do not translate the third status into the second. A summary such as “no security issues found” is misleading if the reviewer could not inspect the authorization boundary.

Abstention is a review result, not a clean bill of health.

Require the status per responsibility rather than once per pull request. In the example, the reviewer can complete a local code inspection while abstaining from workspace-isolation assessment. This preserves useful work without converting partial coverage into broad approval.

Self-reported confidence should not override a missing evidence prerequisite. Confidence cannot supply an absent access policy.

Assign scope, security delegation, and unresolved work separately

The following division of responsibility keeps tool adoption distinct from release approval:

Owner Required decision Boundary
Engineering lead Define the reviewer’s assigned checks, evidence prerequisites, and rollout scope Cannot treat unassessed checks as completed work
Security owner Approve which security-review responsibilities may be delegated and under what evidence conditions Approval applies only to the documented scope
Human reviewer Resolve escalated checks by obtaining evidence, reviewing the change, or requesting changes Must document unresolved limitations rather than merely acknowledge the tool’s output

Keep functional and security review separate even when one tool contributes to both. For this example, “an administrator can export a file” is a functional check. “An administrator cannot export another workspace’s records” is a security check. Success on the first leaves the second unanswered.

I would permit a reviewer with diff-only access to provide bounded observations and advisory findings. I would not let it approve authorization correctness when policy or enforcement context is unavailable. That boundary follows from the task, not from a general judgment that the tool is good or bad.

Choose the rollout by what it actually permits

A tool evaluation should end with an explicit authority decision, not simply “approved.”

Decision When it fits What it permits
Limited approval Evidence supports a narrow, useful set of checks, and unsupported checks are clearly marked Use for named responsibilities only; unresolved checks retain human ownership
Additional evaluation A desired responsibility lacks evidence about tool behavior or available context Evaluate representative review cases before delegating that responsibility
Rejection for the proposed role Required evidence cannot be made available, or unresolved checks cannot be kept out of approval decisions No delegation of that role; narrower advisory use requires a separate decision

For the billing-export example, choose limited approval for local diff observations and summarizing revision-linked test results. Do not delegate authorization approval. The human reviewer must resolve the intended access policy and workspace-enforcement path before approving that aspect of the change.

The engineering lead records the limited scope. The security owner withholds approval for delegated authorization review pending additional evaluation with the necessary context. This approves a useful contribution without approving a broader responsibility the evidence cannot support.

Try the boundary on one change today

Take five minutes with one recent access-control change. Write down four proposed review claims, then mark the evidence needed for each as present or missing. Give every missing item an owner and state whether it blocks that claim, release approval, or neither.

This works because it turns a vague expectation of “review the code” into inspectable responsibilities. It does not measure the reviewer’s accuracy; that requires evaluation against cases with established expected findings. It does reveal where your proposed approval policy asks the tool to conclude more than it can assess.

For a next step, see what OpenThunder verifies and compare its stated scope with the claims your team needs reviewed.