Should an Agent Approve a Pull Request? Human-Led Agentic SDLC on GitHub

Should an Agent Approve a Pull Request? Human-Led Agentic SDLC on GitHub

TL;DR

Agents can now approve pull requests. Copilot code review approvals can count towards required approvals (GA since 28 October), and Anthropic’s Claude Approvals (beta since 23 November) approves against a policy file in the repository. Both are off until someone turns them on, and both can be limited to certain file paths.

Decide where an agent’s approval counts before someone decides for you. Let agents author and review everywhere, let their approval count only on low-risk paths, keep a person’s approval on everything sensitive with rulesets and code owners, merge by rules, and give every agent an identity you can trace. Then measure delivery before and after, not impressions.

In a hurry? Jump to the five roles, the default ruleset or path-scoped approvals, then come back for attribution.

For most of this year, the agent question in code review was “should Copilot review our pull requests?” The answer was easy: yes, it’s a useful first pass, and a person still approves. That changed over the last three months. GitHub made Copilot’s approval count towards required approvals, and Anthropic released an agent whose main job is to approve. The question I now get from engineering leaders is the one in the title, usually followed by “and what will our auditors say?”

My answer is human-led, agent-operated. Agents do most of the work, including some approvals, and people stay accountable for anything that can hurt you. This post turns that into settings. It covers the roles an agent can play, the rules that keep a person’s signature where it matters, and how to scope agent approvals to paths. Then it shows how to make agent activity attributable and how to tell whether any of it helped.

The product details below were checked against GitHub’s documentation and changelog, the Copilot CLI and GitHub Agentic Workflows release notes, and Anthropic’s announcement and documentation on 3 December 2026.

What changed

flowchart TB
    accTitle: How agents got the right to approve
    accDescr: On 1 September 2026 Copilot code review gained the ability to approve pull requests in public preview. On 28 October 2026 Copilot approvals became generally available and can count towards merge requirements when enabled. On 23 November 2026 Anthropic released Claude Ship with Claude Approvals in beta. Between 24 and 27 November 2026, Copilot CLI 1.0.115 to 1.0.117 closed several permission gaps. From 1 December 2026 GitHub usage reports include a user ID column.
    A["1 September 2026 · Copilot code review can approve
public preview"]:::past B["28 October 2026 · Copilot approvals GA
can count towards required approvals"]:::past C["23 November 2026 · Claude Ship with Claude Approvals
beta"]:::past D["24 to 27 November 2026 · Copilot CLI 1.0.115 to 1.0.117
close permission gaps"]:::past E["1 December 2026 · Usage reports add a user ID column"]:::now F["2 December 2026 · Copilot CLI 1.0.119 is the current stable release"]:::now A --> B --> C --> D --> E --> F classDef past fill:#f3effa,stroke:#1d1d1f,color:#1d1d1f classDef now fill:#d9efe5,stroke:#1e7a55,color:#0f3d2a

The approval features arrived quickly. The identity and attribution plumbing that makes them auditable is still arriving.

Copilot code review approvals, GA since 28 October

Every Copilot review now includes an assessment of whether the pull request is ready to approve, and if you allow it, Copilot can submit an approving review that counts towards your required approvals. It’s off by default, and it’s set in three places rather than in a ruleset:

  • Enterprise: “Allow Copilot to approve pull requests”, which defaults to Disabled everywhere.
  • Organisation: “Count Copilot approvals toward merge requirements”, which can be set to Enabled everywhere, Let repositories decide, Enable for selected repositories or Disabled everywhere.
  • Repository: Settings > Copilot > Code review > Auto-approval, with “Allow Copilot to approve pull requests”, “Allow Copilot approvals to count toward merge requirements” and a “File paths” list.

A Copilot approval is dismissed when new commits are pushed. These settings aren’t available through the API, so you can’t audit their current state across hundreds of repositories the way you can audit rulesets. The audit log records only changes to them. Until you’ve decided, keep the organisation setting on Disabled everywhere or Enable for selected repositories. GitHub’s 28 October changelog also put Max into public preview: several independent review agents on models from different providers, reconciled by an aggregation agent. GitHub’s docs estimate it at about US$10 a review on average, before Actions minutes.

Claude Approvals, public beta since 23 November

It’s part of Anthropic’s Claude Ship, next to Code Review (GA) and PR Steward, which keeps a pull request green but is designed not to approve or merge. Claude Approvals reads a policy file, .claude/approvals.yml, from the repository root on the default branch. Its rules match paths and set a verdict: whether Claude approves, comments or blocks, and how many people (“seats”, from 0 to 16) must approve. The strictest verdict wins. The author can fill one seat, so seats: 1 may need nobody else. It reports a check named “Claude Approvals”. Where the policy allows, it also posts an approving review as claude[bot], or as claude-approvals[bot] on pull requests that claude[bot] opened once you’ve added the Claude Approvals GitHub App. GitHub can count that review as one required approval. Anthropic describes it as a smarter CODEOWNERS and recommends observe mode before you make the check required.

It’s for Claude Team and Enterprise plans, on github.com including GitHub Enterprise Cloud, and it isn’t available with zero data retention, the HIPAA configuration, customer-managed keys, or FERPA or Access Transparency settings. It starts as soon as a connected repository has a policy file on its default branch, so anyone who can merge that file can switch it on: put the file under code owner review.

Here’s the shape of a policy, sketched from Anthropic’s documentation. Check the schema before you use it:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: 1
mode: observe
rules:
- purpose: "Documentation can merge on Claude's approval after a clean review"
paths: ["docs/**"]
advisory: [claude/code_review]
verdict:
claude: comments
seats: 1
override:
- if: "claude/code_review = pass"
verdict:
claude: approves
seats: 0
- purpose: "Workflows, infrastructure and approval rules always need two people"
paths: [".github/**", "infra/**", "**/.claude/**"]
advisory: [claude/code_review]
verdict:
claude: comments
seats: 2
- purpose: "Everything else needs a person"
paths: ["**", "!docs/**", "!.github/**", "!infra/**"]
advisory: [claude/code_review]
verdict:
claude: comments
seats: 1

In observe mode the check normally reports what it would have done without blocking anything, although model runs are still billed. Claude’s approval stands alone only on documentation, and only after its own review passes, because approves on its own starts no review. The last rule covers the other paths. Files no rule covers receive a neutral check result, so cover every changed path before you enforce a policy. The second rule asks for two seats so that someone besides the author has to approve, and every rule that contains a verdict can keep Code Review running through advisory.

Two details in Anthropic’s docs deserve attention. Some files are protected: the policy and classifier files, REVIEW.md, CODEOWNERS, .gitmodules, .gitattributes, symlinks and submodule pointers, and Claude never approves changes to .gitattributes files, symlinks or submodule pointers. Where a rule covers them, they normally need one person with write access, but that person can be the author, so add a rule of your own that needs a second person. And the docs are frank about the ways a pull request can merge with nobody but its author looking, or with nobody at all if a bot wrote it:

  • the Claude Approvals check isn’t required
  • a rule has zero or one seats
  • a rule admits bots or a machine user, and machine users count as people by default
  • reuse keeps approvals after a push
  • no rule covers a changed file
  • a classifier answer is steered by the pull request’s own text
  • auto-merge or a merge queue merges under a policy that asks for no person’s approval

On cost, there’s no base charge, but classifiers are billed, and a policy that uses Claude’s review triggers a billed Code Review even in observe mode.

Five roles, five decisions

Five cards on a production line. Author: agent or person. Reviewer: agents and people. Approver: a person on sensitive paths. Merger: the rules decide. Releaser: a person owns it

“Should an agent approve?” is really five questions. Agents can hold most of these roles. The approver and the releaser are where accountability sits.

  • Author: agents can author anywhere a person can, as long as their pull requests go through the same rules. (Copilot cloud agent is the new name for Copilot coding agent.)
  • Reviewer: agents make good first reviewers and should review everything. Their comments are advice, and it’s fine for two agents to review the same change.
  • Approver: the approval is the accountable act. Someone is saying this change is fit to merge. An agent’s approval can count where a wrong merge is cheap to spot and undo. A person approves everything else.
  • Merger: merging should follow rules, not judgement. Use required checks, required approvals and, where volume justifies it, a merge queue. GitHub’s Agent Merge watches a pull request and fixes what blocks it, but it does not replace merge requirements or turn on auto-merge.
  • Releaser: production releases need a person. Use deployment environments with required reviewers, and turn on Prevent self-review so the person who triggered a deployment can’t approve it.

GitHub already enforces part of this split for its own agent. The person who asks Copilot cloud agent to create a pull request can’t approve it. The agent can’t mark its pull requests ready for review, approve them or merge them. And GitHub Actions workflows on its pull requests wait until someone with write access selects “Approve and run workflows”, unless you’ve configured them to run automatically.

sequenceDiagram
    accTitle: One agent writes, another reviews, a code owner approves
    accDescr: A developer assigns an issue to Copilot cloud agent. The agent opens a pull request authored by Copilot with the developer as co-author, and its workflows wait for someone with write access to approve the run. Copilot code review reviews it and the agent pushes fixes, and the ruleset dismisses any earlier approvals as stale. A code owner approves the latest push. The ruleset checks that required checks have passed and approvals are current, and the merge queue merges the change. The developer who asked for the change can't approve it.
    autonumber
    actor Dev as Developer
    participant CA as Copilot cloud agent
    participant PR as Pull request
    participant CR as Copilot code review
    actor CO as Code owner
    participant RS as Ruleset and merge queue
    Dev->>CA: Assign the issue
    CA->>PR: Open, authored by Copilot, developer as co-author
    Note over PR: Workflows wait for Approve and run workflows
    CR->>PR: Review comments and a readiness assessment
    CA->>PR: Push fixes
    Note over PR: Stale approvals are dismissed
    CO->>PR: Approve the latest push
    Note over Dev: The requester can't approve this pull request
    RS->>PR: Checks pass, approvals current, merge

Two agents and two people, and only the code owner’s approval counts for the code-owned path.

The default ruleset I’d start from

For repositories where agents write code, this is the baseline I’d apply before anyone turns on agent approvals. Apply it as a ruleset on the default branch and release branches, at organisation level where you can:

  1. Require a pull request before merging, with:
    • required approvals set to 1, or 2 for high-risk repositories (with Claude Approvals, Anthropic advises keeping this at 1 and asking for extra people through seats)
    • “Dismiss stale pull request approvals when new commits are pushed”
    • “Require review from Code Owners”
    • “Require approval of the most recent reviewable push”
    • “Require conversation resolution before merging”
  2. Leave the extra approval for unattributed Copilot pull requests on. This rule, still in public preview, adds one more required approval when Copilot opens a pull request that isn’t attributed to a person, for example one started in a shared Slack or Teams channel or group thread. It’s on by default in rulesets and always applies under classic branch protection. It does nothing when zero approvals are required, so never set zero.
  3. Require status checks for tests, code scanning and, once you’ve watched it in observe mode, the Claude Approvals check. Set that check’s source to the Claude app, or GitHub will accept any check with the same name.
  4. Use code owners for sensitive paths: .github/, infrastructure, authentication code, CODEOWNERS itself, and every agent instruction and policy file. Rulesets also have a required reviewers rule that names up to 15 teams for file patterns, if you’d rather not maintain CODEOWNERS for this.
  5. Keep workflow approval for agent pull requests, so Actions don’t run on an agent’s changes until someone with write access approves the run.
  6. Merge through rules. A merge queue or auto-merge should run only after everything above passes.
  7. Protect releases with environment required reviewers and Prevent self-review. In private repositories, environment required reviewers need GitHub Enterprise.
flowchart TB
    accTitle: Does this pull request need a person, an agent or both?
    accDescr: When a pull request is opened, first check whether every changed file is on the low-risk list. If so, an agent's approval can count, through Copilot's File paths setting or a Claude Approvals rule. If not, check whether it touches a code-owned path. If it does, a code owner, a person or team with write access, must approve. If it doesn't, one person approves and agents review. In every case, if Copilot opened it without a person attributed, one extra approval is required. A new push dismisses stale approvals and the latest push needs approval from someone other than the person who pushed it. Then required checks must pass before the merge queue merges it.
    S["Pull request opened"]:::start
    Q1{"Every changed file
on the low-risk list?"}:::ask A1["An agent's approval can count
Copilot File paths or a Claude rule"]:::agent Q2{"Touches a
code-owned path?"}:::ask A2["A code owner approves
a person or team with write access"]:::person A3["One person approves
agents review"]:::person X["Opened by Copilot with no person attributed?
one extra approval"]:::rule P["New push dismisses stale approvals
latest push approved by someone else"]:::rule M["Required checks pass · merge queue"]:::start S --> Q1 Q1 -- "yes" --> A1 Q1 -- "no" --> Q2 Q2 -- "yes" --> A2 Q2 -- "no" --> A3 A1 --> X A2 --> X A3 --> X X --> P --> M classDef start fill:#f3effa,stroke:#1d1d1f,color:#1d1d1f classDef ask fill:#fbefd0,stroke:#e9b22e,color:#5a4307 classDef agent fill:#fbe0da,stroke:#e8553e,color:#6e2116 classDef person fill:#d9efe5,stroke:#1e7a55,color:#0f3d2a classDef rule fill:#ffffff,stroke:#1d1d1f,color:#1d1d1f

The path decides who signs. Agents can sign only when every file in the change is on the low-risk list. Everything else gets a person, and the attribution and stale-approval rules apply to all of them.

GitHub defines code owners as people or teams with write access to the repository. Copilot is not a CODEOWNERS principal, so keep required code owner review as a separate backstop and prove the complete ruleset with a test pull request before you rely on it.

Path-scoped agent approvals

Both vendors let you scope an agent’s approval to paths, and that’s the setting that makes agent approvals safe enough to try.

  • Copilot’s File paths list is an allow list on the repository’s Auto-approval settings: one glob per line, up to 15. A Copilot approval counts towards merge requirements only when every changed file matches. Leave it blank and it applies to every path, so if you allow Copilot approvals to count, never leave it blank.
  • Claude Approvals rules match paths with globs and ! exclusions. The strictest matching verdict wins, and protected files covered by a rule need a person with write access.
  • Rulesets and code owners are the backstop for both. A code owner rule or a required reviewers rule on a sensitive path still asks for a code owner or a named team, whatever the agent thinks. “Restrict file paths” is a different control that blocks pushes touching those paths.

Three bands. Low risk, docs: agent approval can count. Everyday code, src: agent reviews, a person approves. High risk, .github and infra: people only

Start with documentation, keep everyday code with people for now, and keep workflows, infrastructure and ownership files with people for good.

There’s one trap worth spelling out. Since July, Copilot code review reads custom instructions, agent instructions and agent skills from the pull request’s head branch, not the base branch, and it also reads REVIEW.md, CLAUDE.md and GEMINI.md. That’s handy for testing new instructions, but it means a pull request can change the instructions its own reviewer reads. If Copilot’s approval counts and your File paths list includes something like **/*.md, a change to AGENTS.md or .github/copilot-instructions.md could be approved under instructions it rewrote itself. Keep instruction files out of the File paths list, put them under code owner review, and prefer narrow globs such as docs/**. Claude Approvals takes the opposite approach: it reads its policy from the default branch and treats its policy files as protected.

A quieter version of the same trap: GitHub accepts a CODEOWNERS file in .github/, the repository root or docs/. If yours sits in docs/ and nobody owns it, a docs/** entry in Copilot’s File paths list lets an agent’s approval count on a change to the file that decides who your code owners are. Keep it in .github/ and give it an owner, which is the setup GitHub’s docs call the most secure.

Identity and attribution

An approval is only useful to an auditor if you can tell who, or what, gave it. GitHub’s attribution story for agents has improved a lot this year, but it isn’t finished.

  • Commits: Copilot cloud agent’s commits are authored by Copilot, co-authored by the person who asked, signed so GitHub shows them as Verified, and linked to the session log. Session logs and audit log events are available to admins.
  • Pull requests: pull requests started in a shared Slack or Teams channel or group thread are opened under the Copilot app identity, which is what triggers the extra-approval rule above. From a direct message, Copilot acts as you. Since 6 November, pull request descriptions from @GitHub name the person who asked. Shared automations are attributed to Copilot and need an extra review. Personal automations are attributed to the person who created them, who then can’t approve those pull requests.
  • Reviews: since 6 November the API exposes attribution fields for Copilot reviews. GitHub’s docs also say code review usage on cloud agent pull requests is attributed to the human co-author first, or billed straight to the organisation if the co-author can’t be billed. Claude’s approvals come from claude[bot] or claude-approvals[bot], which makes them easy to filter.
  • Usage: since 1 December, GitHub’s detailed usage report, AI usage report and premium request usage report, including REST exports, include a user_id column next to the username. It’s the ID of the account that generated the usage, bots included, so it survives renames and deleted accounts and joins cleanly to audit log events. The summarised report doesn’t change. Columns after it shift right, so read columns by header in any script.
  • Audit log: for Copilot, the enterprise audit log marks agent actions with actor_is_agent, links those from an agent session to an agent_session_id and names the user who started the agent. Enterprise owners can filter on actor:Copilot for the last 180 days.
  • Sessions: for enterprises on GitHub Enterprise Cloud with Enterprise Managed Users, Copilot agent sessions, including prompts, responses and tool calls, can be streamed to Microsoft Agent 365. That extends the Agent 365 view of coding agents covered in my agent sprawl post.
flowchart TB
    accTitle: Tracing an agent's change from identity to evidence
    accDescr: Copilot cloud agent produces a signed commit authored by Copilot, with the requesting person as co-author. The commit belongs to a pull request that names the requester, as a reviewer or, when started from Slack or Teams, in its description. Reviews and approvals carry the reviewer's identity, such as Copilot or claude[bot], with attribution fields in the API. Usage reports include a user ID from 1 December, and the enterprise audit log marks agent actions with actor_is_agent, an agent session ID and the user who started the agent. All of these are joined in the SIEM by user ID and pull request.
    I["Copilot cloud agent"]:::agent
    C["Commit
Copilot author, requester co-author, signed"]:::step P["Pull request
requester named"]:::step R["Review and approval
Copilot or claude[bot], API attribution fields"]:::step U["Usage report row
user_id from 1 December"]:::evidence A["Audit log and session logs
actor_is_agent, agent_session_id, user"]:::evidence S["SIEM
joined by user ID and pull request"]:::person I --> C --> P --> R R --> U --> S R --> A --> S classDef agent fill:#fbe0da,stroke:#e8553e,color:#6e2116 classDef step fill:#f3effa,stroke:#1d1d1f,color:#1d1d1f classDef evidence fill:#fbefd0,stroke:#e9b22e,color:#5a4307 classDef person fill:#d9efe5,stroke:#1e7a55,color:#0f3d2a

Every approval should lead back to a name. The chain from agent to evidence now exists end to end, as long as you collect the usage reports and audit log in one place.

The gap is everything that isn’t Copilot. Claude’s actions show up under claude[bot], claude-approvals[bot] and, for commits from Claude’s cloud sessions, the claude user account, so for those you still join on those identities and the pull request. Stream the audit log to your SIEM, keep the usage reports, and write the joins down before an auditor asks.

Hardening the agent itself

Approval rules assume the agent behaves within its permissions. Late November’s releases are a reminder to check that assumption, because several fixes closed gaps that failed open.

Copilot CLI 1.0.115

  • An empty --available-tools list now gives the model no tools. Before, it gave the model all of them, the classic fail-open default.
  • Assisted Permissions now asks for confirmation before detected SSH login-key installs, deploy-key registrations and changes to live authorisation files such as sudoers.
  • Agent Client Protocol (ACP) clients respect permissions.disableBypassPermissionsMode when turning on Autopilot or allow-all.
  • Read-only tools from third-party MCP servers now follow your permission rules.

Copilot CLI 1.0.117

  • Approving an MCP server’s tools no longer also approves built-in requests, such as shell commands or memory stores, whose permission type matches the server’s name.
  • --trust-folder used from a subdirectory no longer runs the repository root’s hooks when --add-dir names a folder in the same repository.
  • Repository settings files stay read-only in writable worktrees on macOS and Linux.

Version 1.0.119, released on 2 December, is the current stable release. I would still treat 1.0.117 as the minimum security floor because it contains the latest of the permission and trust fixes above. My harness security post explains how to enforce one.

GitHub Agentic Workflows

Version 1.4.0, a pre-release published on 23 November, makes safe-output authorisation fail closed, so an action is denied unless it’s authorised. By default it also stops the merge safe output from merging changes that touch protected files and narrows pull_request_target to same-repository pull requests, though both can be loosened. Version 1.4.5, released on 1 December, is the latest pre-release. The latest stable remains 1.2.2 from 10 November. Test the pre-release, but do not make it your production baseline yet.

GitHub MCP Server 2.3.0

Released on 24 November, version 2.3.0 added write tools that can dismiss or reopen Dependabot and code scanning alerts and resolve secret scanning alerts. Enable only the security toolsets and actions you need. Dismissing an alert is an approval by another name, so treat the token scope and alert scope as the control boundary.

Measuring it

Agent approvals are worth having only if they make delivery faster without making it worse. You can’t tell that without a baseline, so take one before you turn anything on.

  • Delivery: DORA defines five measures. They are change lead time, deployment frequency, change fail rate, failed deployment recovery time and deployment rework rate. GitHub’s Engineering System Success Playbook groups 12 metrics into four zones: quality, velocity, developer happiness and business outcomes. They include pull requests merged per developer and AI leverage, and GitHub Well-Architected uses the same 12.
  • Pull requests: Copilot usage metrics include a pull request lifecycle category, with pull request creation and merge counts, time to merge and review activity, available through dashboards, the API and exports. GitHub is explicit that these show associations, not causation.
  • Reviews: Repository insights, from 17 November, show how many Copilot review comments and high-severity comments were addressed, how many pull requests had no later human change request, and how many merged pull requests had no Copilot review. They need the Copilot usage metrics policy turned on.
  • Agent approvals specifically: track the share of merges approved only by an agent, by path, and the reverts and incidents that trace back to them. If agent-approved documentation merges start causing rework, you’ll see it before it reaches code.

My take

Human-led, agent-operated: people in charge at the centre, joined to identity (one identity per agent), rulesets (approvals that count), approvals (people sign sensitive paths), permissions (fail closed) and metrics (baseline before and after)

Five controls around one principle: agents do the work, people stay accountable for it.

Should an agent approve a pull request? Yes, on paths where a wrong merge is cheap to spot and undo, and no, not yet, everywhere else. The approval is where accountability lives, and accountability needs someone who can be asked why.

That isn’t a vote against agents. Agents writing and reviewing every change, with a person signing only what matters, is a big shift in where people spend their time, and it’s the shift most teams actually want. What I’d avoid is letting approval rights spread by default: a blank File paths list, a Claude rule with no seats on src/**, or a ruleset with zero required approvals.

Earn it path by path. Start with documentation, watch Claude Approvals in observe mode, check the reverts and incident data each month, and widen the list only when the numbers back it.

Don’t let the approver read instructions the author can change. That’s the head-branch trap above, and it’s the agent version of letting someone edit the policy they’re being checked against.

And for the auditors: separation of duties still holds if the person who asked for a change can’t approve it, a person approves every sensitive path, and every approval leads back to an identity. GitHub has given you the settings for all three, and Anthropic most of them: Claude’s !pr/authors doesn’t exclude someone who only asked Claude to open the pull request. Turning them on is still your job.

Key Takeaways

  • Copilot approvals: if they count towards merge requirements anywhere, set a File paths list. Blank means every path.
  • Rulesets: dismiss stale approvals, require code owner review, require approval of the most recent push, and keep the extra approval for unattributed Copilot pull requests on.
  • Code owners: cover workflows, infrastructure, CODEOWNERS itself, and every agent instruction and policy file, because Copilot reads instructions from the head branch.
  • Claude Approvals: start in observe mode, cover every path with a rule, ask for two seats where you need a second person, avoid rules with no seats outside low-risk paths, and require the check only after you’ve watched it.
  • Agent versions: run Copilot CLI 1.0.117 or later. The current stable release is 1.0.119. Treat GitHub Agentic Workflows’ fail-closed safe outputs as pre-release until a stable version includes them.
  • Baseline: take delivery measurements before agent approvals go live, so you can show what they changed.

References

Image Credits

  • Cover image generated by Copilot
Author

Ricky Gummadi

Posted on

2026-12-04

Updated on

2026-12-03

Licensed under

Comments

Choose your design

Only the look changes. Your posts, ads, comments and other integrations stay in place, with the same light/dark and cookie preferences.

Choose the look you prefer