AI code review: define the verification boundary
AI code review needs a defined verification boundary: what it may read, which findings people must validate and who accepts the change. Test a bounded task against representative work, recording missed defects and total human effort. Keep existing review and release authority while deciding whether the evidence supports expansion.

The short version
- Bound the review. Approve the task and code access before processing private material.
- Verify comments and fixes. GitHub warns that review findings and suggested corrections can be wrong.
- Preserve missed problems. Compare output with independently established defects and continue assigned human review.
- Count all retained effort. Include triage, correction, re-review and configuration maintenance.
- Keep acceptance accountable. Expand only the task supported by evidence, with release authority assigned to authorized people.
Scope an AI code review pilot and approve its access
Start an AI code review pilot with a specific task in a repository whose access you can approve. Define what a useful finding must establish, which changes remain outside the trial and who can accept the work. Keep the existing human review and release authority throughout the experiment.
Consider a fictional SaaS team reviewing changes to an account settings API. It wants help spotting missing input validation and inconsistent error handling. The pilot excludes permission-policy redesign and unrelated repositories. A reviewer still checks the account ownership rule before accepting any change. These are proposed operating choices, not a customer case or measured result.
GitHub's application card says Copilot code review can miss problems, especially in large or complex changes, and recommends careful human review alongside its feedback.1 Make the trial small enough to inspect what happened. Asking whether it finds useful validation problems is more actionable than asking whether it can review the entire application.
Approve the data path before submitting private code. For Copilot code review, GitHub describes combining changes, contextual information such as the pull request title and body, and custom instructions into a prompt sent to a model.1 Ask the selected supplier which repositories and files its feature can read, which identity authorizes access, and whether submitted material is retained or used for training. Obtain the applicable retention, residency and subcontractor terms; the application card does not establish those promises.
NIST's SSDF Version 1.1 recommends least privilege for people, tools and services accessing code.2 Record the approved scope and exclusions with an accountable owner. If access cannot meet that boundary, pause this use. The broader assisted delivery approach helps place this limited trial within the team's development process.
Keep capability perceptions separate from review accuracy
Treat broad developer opinion as context for a local evaluation. It cannot tell you how accurately a review product will inspect your repository. Use the variation in reported perceptions to ask which complex tasks belong in the pilot and what evidence you will require before trusting a finding.
The 2025 Stack Overflow Developer Survey asked how well respondents' development-workflow AI tools handle complex tasks.3 Among the 33,230 people answering that question, 1,451 selected the strongest positive response and 13,153 selected either of the negative responses. Those are perceptions of AI tools broadly, not observations of code-review performance.
These calculated shares describe a global, self-selected survey population. They are neither US estimates nor defect-detection rates. Fieldwork ran from May 29 to June 23, 2025. Keep that distinction when discussing the trial with procurement or engineering leadership.
- Very well at handling complex tasks
- Good, but not great at handling complex tasks
- Neither good or bad at handling complex tasks
- Bad at handling complex tasks
- Very poor at handling complex tasks
- I don't use AI tools for complex tasks / I don't know
| Response | Respondents | Share of question respondents |
|---|---|---|
| Very well at handling complex tasks | 1,451 | 4.4% |
| Good, but not great at handling complex tasks | 8,368 | 25.2% |
| Neither good or bad at handling complex tasks | 4,679 | 14.1% |
| Bad at handling complex tasks | 7,315 | 22.0% |
| Very poor at handling complex tasks | 5,838 | 17.6% |
| I don't use AI tools for complex tasks / I don't know | 5,579 | 16.8% |
For the account API team, the practical question is whether generated comments identify a reproducible problem against the agreed API contract. A favorable opinion about AI cannot establish that. Neither can an unfavorable opinion settle whether a particular bounded task is worth testing.
Build a baseline that represents the work you intend to review
Compare assisted review with the existing process on changes whose scope, risk and review conditions you can explain. Include ordinary correct changes, difficult cases and independently established defects. Keep historical replays separate from live work, and retain differences in reviewer familiarity and change size.
For the fictional API pilot, separate input-validation changes from error-path changes. Keep authorization-sensitive work identifiable even if it is excluded from assistance. Choose the mix before looking at tool output so attractive demonstrations do not become the selection rule. Record any task category the available changes cannot represent.
Establish the expected behavior independently of the generated review. Google advises reviewers to assess design, intended functionality, edge cases and concurrency.4 Apply that discipline when deciding what belongs in the reference record: a suspected issue needs a requirement and supporting evidence, rather than another tool's agreement.
A historical replay can test whether a known problem is mentioned. It cannot recreate a reviewer encountering an unfamiliar change if the reviewer already knows the answer. Label replay cases and any deliberately seeded defects. Preserve an ordinary-work cohort where the reviewer does not begin with the reference findings.
Record active inspection, finding validation, correction and re-review in both processes. Keep queue time separate from active effort. If the actual obstacle is waiting for an unavailable owner, examine the delivery constraint before assuming another review tool is the appropriate intervention. Avoid setting a universal trial duration or sample size; choose coverage that your team can defend for the selected risk.
Validate findings and inspect what the tool missed
Give every finding a disposition supported by code or requirement evidence. Check the proposed fix separately from the comment that suggested it. To investigate misses, compare the output with independently established reference defects and continue the assigned human review.
GitHub warns that Copilot code review can raise nonexistent problems or misunderstand code, and that a suggested correction can itself be incorrect or insecure.1 A persuasive explanation therefore needs the same verification as a terse one. NIST recommends recording and triaging discovered issues and proposed remediations in the team's workflow.2
| Disposition | Evidence to retain | Action |
|---|---|---|
| Confirmed issue | Requirement and reproduction or code evidence | Correct the issue and verify the fix |
| Incorrect finding | Reason the comment does not apply | Dismiss it and record validation effort |
| Duplicate | Link to the same underlying issue | Retain provenance without counting another defect |
| Uncertain | Missing context or disputed behavior | Assign an owner and keep the decision open |
Suppose the fictional tool flags an error response that the API contract explicitly permits. The reviewer records an incorrect finding and the effort spent checking it. In another change, a reviewer reproduces missing validation, accepts the finding and tests the correction. These examples describe how to keep evidence, not how often either outcome occurs.
Keep missed reference defects in a separate record. Dividing misses by the number of generated comments would answer the wrong question. Detection against the reference set uses all reference defects as its denominator; finding precision uses adjudicated unique findings. State the denominator whenever reporting a pilot metric. Unknown defects remain unknown, so silence cannot establish that a change is safe.
Keep product judgment and release acceptance with their owners
Require the evidence appropriate to the change even when generated review looks favorable. Assign people to assess intended behavior, test validity and unresolved risk. An AI comment should enter that process as a finding to inspect, with the existing release decision remaining under authorized control.
For a multi-tenant account API, write the access requirement before reviewing its implementation. OWASP ASVS 5.0.0 calls for explicit permission to access particular data items, authorization enforcement at a trusted service layer and applicable controls against unauthorized cross-tenant effects.5 Those requirements offer concrete questions: can this caller change this account, and where is that restriction enforced?
In the fictional pilot, the reviewer should inspect evidence for an unauthorized caller and a caller from another tenant, as applicable. A comment about naming or error formatting does not answer those questions. The relevant owner decides whether the evidence meets the application's actual rule; citing ASVS alone does not establish compliance.
Google's review guidance also asks whether tests are useful and valid, including whether they would fail when the code is broken.4 Inspect what a test asserts before accepting a generated fix. A test that preserves the mistaken assumption cannot resolve the disputed behavior.
NIST recommends deciding whether executable-code testing is needed for vulnerabilities not identified by previous review, analysis or testing, then scoping and documenting that work.2 Retain those decisions and results. The generated-code hardening guide addresses the wider production decision; this pilot provides evidence about the selected review task.
Compare useful findings with total human work
Assess the complete review effort alongside confirmed issues, missed reference defects and accepted fixes. Include reading and dismissing comments, investigating uncertainty, checking corrections and maintaining the pilot. Report elapsed review time separately so a shorter queue is not mistaken for less engineering work.
A review that exposes a consequential defect may require more attention and still be useful. A quick review full of irrelevant comments may shift work onto the same senior engineer the team hoped to free. Treat both as possibilities to investigate, rather than promising either outcome in advance.
| Question | Existing review | Assisted review |
|---|---|---|
| What problems were confirmed? | Adjudicated issues from the normal process | Unique confirmed issues with finding provenance |
| What remained undetected? | Missed defects in the reference set | Missed defects in the same defined set |
| What work did people retain? | Inspection, correction and re-review | Those activities plus generated-finding triage |
| What limits the comparison? | Work mix and reviewer conditions | Those conditions plus configuration changes |
Keep access review and configuration maintenance in the operating record. Separate a changed instruction set from earlier results rather than pooling them without explanation. NIST recommends defining and tracking security-check criteria; the proposed scorecard makes the team's local criteria inspectable.2 It supplies no universal acceptable miss rate. Connect the accepted change with the product's release evidence before deciding what the pilot justifies.
Decide when to expand, change course or stop
Expand only the task and access boundary the evidence supports. Narrow or revise an inconclusive pilot when context or workflow problems prevent a fair assessment. Stop the relevant use when access is unacceptable, consequential findings cannot be validated or retained effort exceeds the benefit your team can demonstrate.
Agree these conditions before the trial. For the fictional team, a missed authorization issue could trigger a pause under its own policy, while repeated irrelevant validation comments could prompt narrower scope. Record who makes that decision and what evidence would permit a restart. These are local operating choices, not published thresholds.
Compare alternatives against the actual problem. If the acceptance requirement is disputed, resolve it with the product and security owners. If the need is repeatable evidence for an authorization rule, prioritize the appropriate test and assigned review. If the bottleneck is reviewer availability, address capacity. A pilot is a poor fit when nobody has time to adjudicate its output or the permitted code cannot represent the intended work.
Keep the completed scorecard with the scope, finding dispositions, unresolved misses and capacity required for continued operation. If implementing that evaluation needs help connecting the review workflow to existing checks, AI integration support can be scoped around the agreed task. Require the same evidence and accountable acceptance decision from that engagement.
AI code review pilot and acceptance scorecard
Use the workbook to define your project scope, record evidence and agree the next action.

Fillable PDF | 4 pages | Save a copy for your review
Download the workbook
Use the form to access the companion workbook.
Your workbook is ready.
Open the fillable PDF and save a copy for your review. The delivery status above tells you whether your email was accepted for sending.
Download the workbookThis download link is valid for 7 days.
Questions about AI code review
Can AI code review replace careful human review?
GitHub recommends using Copilot code review alongside careful human review and verifying its feedback. Its application card says the feature can miss existing problems, particularly in large or complex changes. It can also raise incorrect findings or suggest incorrect or insecure fixes. Those documented limitations give reviewers separate reasons to inspect the comment, the proposed correction and the change itself.
What information does Copilot code review send to a model?
GitHub describes combining code changes with relevant context, such as the pull request title and body, and any custom instructions to form a prompt sent to a model. That input description does not establish retention, training use, residency or contract terms. NIST separately recommends least privilege for people, tools and services that access code.
How should reviewers handle incorrect findings and suggested fixes?
GitHub advises carefully reviewing generated comments before acting on them, because Copilot code review can identify problems that do not exist or misunderstand the code. It also advises reviewing and testing generated code suggestions, which can be incorrect or insecure. NIST recommends recording and triaging discovered issues and recommended remediations within the development workflow.
What should the human code review examine?
Google recommends examining the overall design and intended functionality of a change, including its interactions with the rest of the system. Reviewers should consider edge cases, concurrency and the effect on users. Its guidance also calls for checking that tests are correct, useful and sensible, including whether they would fail when the code is broken.
Which authorization requirements are relevant to a multi-tenant API review?
OWASP ASVS 5.0.0 requires explicit permission for access to particular data items. It calls for enforcing authorization in a trusted service layer, rather than relying on controls an untrusted consumer could manipulate. For multi-tenant applications, it also calls for controls against operations affecting tenants the consumer has no permission to interact with. These requirements do not prove that automated review establishes compliance.
Sources
- GitHub, Application card: GitHub Copilot Agents.
- NIST, Secure Software Development Framework (SSDF) Version 1.1: Recommendations for Mitigating the Risk of Software Vulnerabilities.
- Stack Overflow, AI | 2025 Stack Overflow Developer Survey.
- Google, What to look for in a code review.
- OWASP Foundation, OWASP Application Security Verification Standard, version 5.0.0.
