cd /news/ai-agents/how-to-roll-out-claude-approvals-saf… · home › topics › ai-agents › article
[ARTICLE · art-175371] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

How to Roll Out Claude Approvals Safely: A Policy File Walkthrough

Anthropic launched Claude Ship in beta on November 23, 2026, a set of three GitHub pull request agents that review, fix and approve code changes, with the Claude Approvals agent able to post approving reviews on its own based on a repository policy file at .claude/approvals.yml. A walkthrough of the launch documentation warns that the policy file functions as a security control, since a careless policy can let a pull request merge without human review, and recommends relying on GitHub branch protection and keeping the Claude GitHub App off bypass lists. Anthropic reports that on its Claude Code team merged pull requests "more than doubled" from June to September while the share reverted "fell by more than 40%", figures the company describes as internal rather than an independent benchmark.

recommendation

Keep the Claude GitHub App off branch-protection bypass lists and require human reviews, since Approvals' policy file and command checks can be bypassed by rewording a command.

more in playbook: Working with AI coding agents
by read10 min views1 publishedNov 24, 2026

On November 23, 2026, Anthropic launched Claude Ship in beta. It is a set of three agents for GitHub pull requests. One reviews the change, one fixes it, and one decides whether it is ready to merge.

As TechCrunch noted, AI coding tools already offered code review. The new part is the third agent. Claude Approvals reads a policy file kept in the repository and can post an approving review on its own, which delegates approval authority to an AI agent.

That makes the policy file a security control. A careless policy can let a pull request merge when no person other than its author has looked at it. Anthropic's documentation lists the ways this can happen, so you can design around each one.

This guide covers the policy file, those failure cases, the GitHub settings that matter, and a rollout order. It is built from Anthropic's launch post and the Claude Ship documentation as of November 24, 2026, not from a live test. Treat the YAML below as a starting draft. Approvals checks a policy file for errors in its pull request, so the tool will tell you if something is wrong.

The Claude Ship docs describe three agents:

There is also a new /ship command in the Claude Code CLI. Per the /ship docs, it opens the pull request, reviews it, and keeps working on failing checks and comments. The developer still merges.

Some limits to know before you plan anything:

Anthropic's launch post says that on the Claude Code team, merged pull requests "more than doubled" from June to September while the share reverted "fell by more than 40%". Those are Anthropic's own figures from a team where Claude's review was "one layer of a broader process", not an independent benchmark.

Before touching the policy file, look at who is allowed to do what.

PR Steward is "designed not to approve or merge pull requests". The PR Steward access page is more specific. In an Anthropic-hosted session, Anthropic's service refuses these requests from Steward:

Merging, turning on auto-merge, and force-pushing are left to your GitHub branch rules. For those, two checks run on Claude's commands: permission rules that match the command text, and auto mode's model-based check. The docs say plainly that "a command that's written another way can pass both".

So the real wall between the agent that writes fixes and the code that merges is GitHub branch protection. Require reviews with branch rules, and keep the Claude GitHub App off every bypass list. In a classic branch protection rule, that is the "Allow specified actors to bypass required pull requests" list.

A policy lives at .claude/approvals.yml in the repository root. Approvals only reads policy files from the default branch, so a policy change in an open pull request is checked for errors but does not apply until it merges.

This is the starter policy from the setup guide that keeps two people on each change:

version: 1
mode: observe
rules:
  - purpose: "A change takes two people."
    paths: ["**"]
    verdict: { claude: comments, seats: 2 }
    advisory: [claude/code_review]
  - purpose: "A change to the review rules takes two people."
    paths: ["**/.claude/**"]
    nested: inherit
    verdict: { claude: comments, seats: 2 }

Here is what each key does, per the policy file reference:

mode: observe`` mode line is enforced by default.paths``** matches any number of folders. A pattern starting with "!" takes files out of that rule.verdict.claude`` approves, comments, or blocks. Only verdict.seats`` override``if condition is true. The first true override wins.advisory`` claude/code_review, without letting it decide anything. Two rules about combining matter a lot:

seats: 2 usually means the author plus one more person, and seats: 1 can mean nobody else. One side effect: once a policy file is on the default branch, automatic Code Reviews normally stop for files whose rules do not name claude/code_review. That is why the starter keeps it under advisory.

The Approvals and GitHub rules page has a section called "Merges without human review". It lists cases where a pull request can merge with only its author looking, or with nobody if a bot wrote it. Here they are, with a fix for each.

1. The check is not required. The Claude Approvals check only blocks a merge where GitHub requires it. Fix: add it as a required status check on the default branch and on every other branch you want gated.

2. seats: 0 or seats: 1. With seats: 1, the author fills the seat. With seats: 0, a bot's pull request can merge with nobody looking. Fix: exclude authors explicitly with from: [humans, "!pr/authors"].

3. A from list that admits bots. If a seat's from includes bots, everyone, or bot:claude, and every applying rule says approves, Approvals counts that seat as filled before Claude approves. The check can then pass with no person. Fix: use humans for seats on anything that matters.

4. Machine users. A user account driven by a script or agent counts as a person. Fix: exclude its login, for example [humans, "!pr/authors", "!acme-ci"].

5. reuse keeping seats after a push. reuse lets earlier approvals survive a new push. The docs warn that people who held the author's seat at earlier commits can keep counting, so two of them "can fill seats: 2 with nobody approving". Fix: leave reuse out at first, or exclude authors.

6. Files no rule covers. If no rule covers any changed file, normally no check appears. Where GitHub requires the check, it ends neutral with the title "Nothing ran, not blocking: no file is covered", and GitHub counts that as passing. Fix: keep a root rule on ["**"] with no if.

7. Conditions that read a classifier. A classifier such as claude/code_review reads text the pull request's author wrote, and "that text can try to steer the classifier's answer". If an if or override lowers the required seats when a classifier says pass, a steered answer lowers the bar. Fix: on paths that matter, use a rule that reads no classifier.

Two GitHub-side notes sit next to this list. A direct push to the default branch gets no check, so require pull requests there. And Claude's approving review can satisfy a GitHub rule that requires one approval.

One more trap: claude: approves "starts no review" by itself, so Claude can approve a change nothing has reviewed. Gate it with an override on claude/code_review = pass.

The docs include a rule that asks for one person who is not an author on every path. The policy below builds on it. It adds two-person review for a sensitive directory and for the files that control review, and lets Claude approve only documentation. The paths services/payments/** and docs/** are placeholders.

version: 1
mode: observe
rules:
  - purpose: "Every change outside docs needs one person who isn't an author."
    paths: ["**", "!docs/**"]
    nested: inherit
    verdict:
      claude: comments
      seats: [{ count: 1, from: [humans, "!pr/authors"] }]
    advisory: [claude/code_review]

  - purpose: "Payments code needs two people who aren't authors."
    paths: ["services/payments/**"]
    nested: inherit
    verdict:
      claude: comments
      seats: [{ count: 2, from: [humans, "!pr/authors"] }]

  - purpose: "Files that control review and CI need two people who aren't authors."
    paths: ["**/.claude/**", ".github/**", "CLAUDE.md", "AGENTS.md", ".mcp.json"]
    nested: inherit
    verdict:
      claude: comments
      seats: [{ count: 2, from: [humans, "!pr/authors"] }]

  - purpose: "Docs need one person who isn't an author, unless Claude's review passes."
    paths: ["docs/**"]
    verdict:
      claude: comments
      seats: [{ count: 1, from: [humans, "!pr/authors"] }]
    override:
      - { if: "claude/code_review = pass", verdict: { claude: approves, seats: 1 } }

Why it is shaped this way:

.** Because the strictest verdict wins, a root rule saying comments would stop Claude from ever approving a docs change. The docs rule still covers those files.pass, the override lowers the rule to .claude/classifiers/, REVIEW.md, CODEOWNERS, .gitmodules, and .gitattributesas "protected files". The docs say not to rely on other files being protected and name.github/, CLAUDE.md, AGENTS.md, and .mcp.json as examples to cover yourself.nested: inherit` One practical check: the setup guide lists two people with write access as a prerequisite before you enforce. With one, some changes can never pass.

The policy only reports. GitHub decides what merges. The setup and GitHub rules pages point to these settings:

1236702. seats. GitHub does not count an author who fills a seat, so a higher GitHub number can leave pull requests stuck after the check passes. The Claude Ship docs say to turn on one agent at a time, in one repository, in this order.

@claude steward), so it only works where someone asks. The docs note that PR Steward "has no spend limit of its own until you set one", so set one.@claude approvals rerun on each open pull request still showing an observe-mode title. Keep those pull requests out of the merge queue until then..claude/. With the starter policy, the title should read "Waiting on human review from any person (1/2)", and GitHub should list the check as required. Stricter seats show a different count. Observe mode is not free. Code Reviews and classifier runs that a policy starts are billed in observe mode too. A policy with claude/code_review inside an if can start a billed review at each push. Set spend limits for Code Review and for classifier runs under Organization settings, Usage.

Turning it off has an order too. Stop requiring the check in GitHub, then turn off Approvals, and only then Code Review, because a policy can start billed reviews where Code Review is off. Uninstall the Claude GitHub App last, or a required check can block merges.

Anthropic describes Approvals as working "like a smarter CODEOWNERS file". The difference, in short:

pr/diff_lines, pr/files_changed, and pr/base, plus classifier answers. It can also let Claude approve. To name owners in a policy, the docs suggest people lists in seats, such as a GitHub team like acme/payments. A condition cannot read CI results, so CI stays its own required check.

The Hacker News thread had 63 points at the time of writing. Three comments are worth reading before a rollout.

One developer liked the provider split. They said a lot of code authoring on their side happens with OpenAI's models, and that "using a different provider's models to do the code review part seems like a pretty good separation of responsibilities."

Another was skeptical of the product itself, calling it a tool that "centralizes policy enforcement for teams with low-trust" and arguing that capable teams will build their own model-agnostic pipelines to avoid vendor lock-in.

A third reported a practical snag: the new built-in /ship command overwrote their team's own /ship skill. The /ship docs describe how an organization can turn off /ship and /steward through managed settings. If your team has a custom skill with that name, check before you update Claude Code.

Claude Ship's agents can find problems and fix them. Whether code merges without a person still comes down to your policy file and your GitHub branch rules.

Start in observe mode on one repository. Exclude authors from seats on anything that matters, and keep a root rule with no if so every file is covered. Keep classifier-based shortcuts for low-risk paths. Require the check with the Claude app as its source, and keep the app off every bypass list.

Which paths in a codebase you work on would you be comfortable letting an AI approve, and which ones would always need a second person?

── more in #ai-agents 4 stories · sorted by recency
── more on @anthropic 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-roll-out-clau…] indexed:0 read:10min 2026-11-24 · —