Image: Unsplash, used under the Unsplash License.
If the person who opened a pull request can't tell you why a line changed, the pull request isn't ready. That holds however clean the diff looks and however green the checks are. It's the whole policy in one sentence; the rest of this page is the checklist that enforces it, a policy you can paste into your handbook, and one GitHub setting worth checking this week.
The sentence got its best airing in May, as a joke. A post on r/ClaudeAI titled "Reviewing AI-generated pull requests in 2026" showed a mock rejection letter for pull request #4471. The reviewer had read a 4,000-line diff, admired "Claude's commitment to refactoring code that was working fine yesterday", asked why one change was made and got back "the AI thought it would be cleaner." The letter signs off: "I look forward to reverting your commits soon." It collected about 3,800 upvotes. Commenters pointed out that the image carries the logo of Limestone Digital, an AI company, and that the poster's account was ten days old, so treat the post as an ad. The replies are the useful part. "This needs to happen in businesses. Ai should be used appropriately," wrote u/florodude. Another commenter described a Deloitte managing director who "wants his teams to merge slop by letting Claude review PRs" (u/Long-Possibility-951). And the counterpoint, from someone who has worked in banking software: "Claude's code is usually better than most of the banking software code i've seen in the last 25 years" (u/yopla).
https://www.reddit.com/r/ClaudeAI/comments/1teuh5w/reviewing_aigenerated_pull_requests_in_2026/
Both camps can be right. The code may well be good; the problem is a merge nobody vouched for.
Who needs this
Any team where some pull requests are mostly written by Copilot, Claude Code, Cursor or an autonomous agent. The review gap is real and measured. A study posted in May 2026 for the EASE 2026 conference looked at 33,596 agent-authored pull requests on GitHub from the AIDev dataset: 61% had no recorded review at all, and 84% either had none or were reviewed only by other agents. In repositories where humans opened pull requests too, the agents' work got some review about as often as people's did, but a human-only review was still about three times rarer for it.
Screenshot: Table 1, Duma et al., "These Aren't the Reviews You're Looking For", arXiv.
If your repositories look like that, this policy is for you. If every pull request already gets a careful human review, you need only the disclosure rule and the GitHub setting below.
Can AI decide which pull requests need human review?
It can suggest; it shouldn't decide. On GitHub the decision is a rule in the repository: which paths need which reviewers, and how many approvals. An AI reviewer can comment and, if you allow it, approve. The rule decides whether that approval is enough. NIST's Secure Software Development Framework puts the same choice with you: whether code is reviewed by a person, analysed by tools or both is "defined by the organization" (SP 800-218, PW.7.1), and every issue found gets recorded and triaged (PW.7.2).
| Decision | Who makes it | GitHub setting (docs read November 3, 2026) |
|---|---|---|
| Who must look at changes to a path | A file in the repo | CODEOWNERS: owners are requested automatically; "Require review from Code Owners" makes it blocking, and one owner's approval is enough |
| How many people from which team | The ruleset | Required reviewers: up to 15 teams per rule, each with its own approval count, triggered by files or directories |
| Whether an approval survives new commits | The ruleset | "Dismiss stale pull request approvals when new commits are pushed", "Require approval of the most recent reviewable push" |
| Whether Copilot's review counts | You, at repository, org and enterprise level | Off by default: "Copilot's reviews do not count toward required approvals" (GitHub Docs) |
| Extra approval when Copilot opened the PR itself | The ruleset, on by default (preview) | "Require an additional approval for unattributed Copilot pull requests": one required approval becomes two from people with write access |
| Whether tests and scans must pass | The ruleset | "Require status checks to pass before merging", "Require code scanning results", "Require secret scanning alerts are resolved" |
One detail applies to pull requests Copilot opens on its own: if you clear the extra-approval setting for them and the ruleset also requires an approval from someone other than the last pusher, GitHub says "at least one approval must cover the last push and come from someone other than Copilot." In that case Copilot can't be the only approval for its own push.
Our routing for a small team: list auth/, payments/, infra/ and database migrations in CODEOWNERS with a named human team, let an AI reviewer comment everywhere, and let it approve only on docs/** and test/fixtures/**. The decision then lives in a file you can diff and review, not in a model's judgment that changes when the model does.
The 9-point AI pull request review checklist
Run it on any pull request flagged as AI-assisted. The first three are pass/fail; the other six are where AI code tends to fail.
- Accountability is clear. A named human is the approver and knows they own the merge.
- AI help is disclosed. A checkbox in the PR template, or a commit trailer in the style the Linux kernel uses (
Assisted-by: <tool>), so the reviewer knows what to look for. - The author can explain it. Ask one "why" question about a non-obvious line. If the answer is "the AI did it", send it back.
- Packages and APIs exist. Look up every new dependency and unfamiliar call in the real registry or docs. A study of 16 code-generating models and 576,000 samples found the average share of hallucinated packages was at least 5.2% for commercial models and 21.7% for open-source ones, and a made-up package name is one an attacker can register.
- The logic is right on the edges. Trace one real input by hand, including the empty, null and largest cases.
- Tests check intent. A test that asserts whatever the code currently returns proves nothing. Ask whether it would fail if the logic were wrong.
- Security checks work. Treat anything touching authentication, authorization, data access or outbound calls as unreviewed until a human has traced it.
- No secrets, no pasted licensed code. Scan for keys and for large blocks that look copied from elsewhere.
- Scope matches the ticket. Unrequested refactors of working code (the #4471 problem) get split out or dropped.
Where AI-generated code slips through
| Failure mode | Why it slips through | What to do |
|---|---|---|
| Package or API that doesn't exist | The name looks plausible | Check the registry and the official docs |
| Plausible but wrong logic | It reads fluently | Trace a real input, test the boundaries |
| Security check that doesn't hold | The line is there, so it looks handled | Review security code as if unreviewed |
| Tests that only pass | Assertions copy the code, not the requirement | Break the logic and see if a test fails |
| Scope creep | "Helpful" refactors ride along | Split unrelated changes out |
| Comment says one thing, code does another | Reviewers read the comment | Trust the code |
Image: Unsplash, used under the Unsplash License.
Check this GitHub setting: Copilot approvals
On September 1, 2026, GitHub let Copilot code review approve pull requests. It's off by default and in public preview on the Pro, Pro+, Max, Business and Enterprise plans. Once an admin turns it on, a Copilot approval counts toward the repository's required-approvals rule, the same way a teammate's does. A new commit dismisses it, as it would a human's.
Screenshot: "Copilot code review can now approve pull requests", GitHub Changelog, September 1, 2026.
Admins control it at three levels: enterprise, organization and repository, and a repository admin can choose which file paths Copilot may approve. GitHub's own documentation still says Copilot "is not guaranteed to spot all problems" and tells you to "supplement Copilot's feedback with a human review".
We'd keep it off for any path that touches auth, payments, data access or infrastructure. If you want the speed, allow it only on low-risk paths such as docs and test fixtures, and write the list into the policy so nobody widens it quietly. Whatever you choose, look today: an org-wide "on" means one bot approval can now merge into a branch that requires one approval.
Update, November 6, 2026: if your AI reviewer runs as a GitHub Actions workflow on pull_request_target in a public repository, GitHub blocks that trigger by default from December 2, with two-hour test blocks on November 9 and 16. Which review bots that hits, and what to switch each one to.
Claude Approvals: seven ways a pull request merges with no second person
On November 23, 2026, Anthropic launched Claude Ship, which can "review pull requests, fix them, and approve the ones that a team's policy allows." The approving part, Claude Approvals, is in public beta on Team and Enterprise plans for GitHub repositories. Its rules live in a repository file, .claude/approvals.yml. Anthropic's docs list these gaps and a few more, and we've paired each with the setting, in GitHub or in the policy file, that closes it.
| How a merge gets through with no second person | What closes it |
|---|---|
| The Claude Approvals check isn't required in GitHub (Approvals docs) | Make it a required status check |
The policy says seats: 1, and the author fills the seat; seats: 0 lets a bot's pull request merge |
Have the rule ask for one person who isn't the author: from: [humans, "!pr/authors"] |
| Claude's approving review "can meet a GitHub branch rule that requires one approval" (GitHub rules guide) | On risky paths, set claude: comments so Claude posts no approving review, or require Code Owners review there |
| A machine user, an account a script or agent drives, can count as a person | Exclude each machine user by login, as in [humans, "!pr/authors", "!acme-ci"] |
| Auto-merge or a merge queue runs on a policy with no human seat | Require the check, and ask for one person who isn't the author on every path |
| A push straight to the default branch gets no check | Require pull requests on the default branch |
| Claude's approval of an earlier commit can still count in GitHub after a new push | Turn on "Dismiss stale pull request approvals when new commits are pushed" |
A policy condition also "can't read CI results," so CI stays its own required check, and text the author wrote "can try to steer" a classifier's answer about risk. Anthropic recommends starting in observe-only mode, and so do we: compare what it would have approved with what your reviewers caught before you let it approve anything.
The copy-paste policy
The Linux kernel already wrote the core rule for patches made with AI tools. AI agents must not add the Signed-off-by tag, because only a human can certify the Developer Certificate of Origin, and the human submitter is responsible for "reviewing all AI-generated code" and "taking full responsibility for the contribution". The template below applies the same idea to a company repository.
Screenshot: "AI Coding Assistants", Linux kernel documentation (docs.kernel.org).
Adapt the bracketed fields. One page is enough for a small team.
[Company Name] AI-Assisted Code Review Policy
Accountability. The engineer who approves and merges a pull request owns its outcome, whether a person or an AI tool wrote the code. AI tools can't be the accountable approver.
Disclosure. Authors mark a pull request as AI-assisted when an AI tool wrote a substantial part of it, using [the PR template checkbox / an Assisted-by: commit trailer].
Explainability. Authors must be able to explain any code they submit. Code the author can't explain isn't ready to merge.
Review standard. AI-assisted pull requests are reviewed against the 9-point checklist. Changes to authentication, authorization, data access, payments or external services always get a human review.
Tests. AI-assisted changes include tests of intended behavior. The reviewer confirms a test would fail if the logic were wrong.
Automated review. AI review tools may comment as a first pass. Copilot approvals, Claude Approvals and any other bot approval that counts toward required reviews are [off / allowed only on these paths: docs/**, test/fixtures/**]. Where Claude Approvals runs, its check is required, every path has a rule asking for one person who isn't the author, and machine users are excluded by login. Changes to this list need [role]'s sign-off.
Size. Pull requests over [N] changed lines are split before review unless [role] agrees otherwise.
How to adapt it
Make the cheap pull requests cheap and spend people on the risky ones. Cap size, because an assistant writes a huge diff as easily as a small one, and only the small one gets read properly. Have the author run the checklist before asking for review. Sort by what the code touches, not by who wrote it: a README edit doesn't need the scrutiny an auth change does. Let AI reviewers flag style and missing tests so the human can spend the time on logic and security.
If you have one engineer, the policy shrinks to the disclosure trailer and a rule that you re-read AI-written diffs a day later before merging. If you run several orgs on GitHub Enterprise, set Copilot approvals at the enterprise level so a single org can't switch them on alone.
What it doesn't cover
Which coding tools you allow and what data they see: that's the AI coding tools governance policy. Agents that run unattended and open pull requests overnight need their own permissions and logging rules: see governing unattended AI coding agents. Licence compliance beyond a basic scan, and the budget side, which the cost control guide covers.
We didn't test Copilot approvals ourselves; the setting description above is GitHub's changelog and documentation on the day we checked, and it may change while it's in preview.
Checklist (copy/paste)
- Policy says the approving human owns every merge
- PR template or commit trailer for AI disclosure
- Authors must be able to explain submitted code
- 9-point review checklist adopted for AI-assisted PRs
- Copilot approvals checked at enterprise, org and repository level; off or limited to listed paths
- Claude Approvals, if used: check required, one non-author person on every path, machine users excluded by login, stale approvals dismissed
- Security-touching changes always get a human review
- New dependencies looked up in the real registry
- PR size cap set
Correction, October 15, 2026: An earlier version said the r/ClaudeAI thread was popular "because every team is hitting the same wall"; it's a joke image post that commenters flagged as an ad, described above as it is. It also said arXiv banned papers with unchecked AI errors in May 2026; arXiv's rule bars authors for a year, and we removed the comparison. The new version adds GitHub's September 1 change to Copilot approvals.
Related Reading
- Vercel agent-desktop: What an AI Agent Can Read
- GitHub Blocks pull_request_target Dec 2: AI Review Bots
- Governing unattended AI coding agents (background and overnight)
- AI coding tools governance policy (Copilot, Cursor)
- AI coding tool governance and cost control
- AI spend governance: token budget controls
- AI support chatbot account takeover risk 2026
- TypeScript AI agent security incident response playbook
- AI acceptable use policy template
- AI governance guide for small teams
- Anthropic recursive self-improvement: AI governance implications
- Amazon KiroRank and tokenmaxxing: measuring AI adoption
