Skip to content
Max Narditdata & ai systems
← Articles
12 mindev

Claude Approvals in Claude Ship: what .claude/approvals.yml lets merge without a second person, and the setup order that avoids surprises

In a Claude Approvals policy the pull request's author can fill a seat without approving, an agent's machine account counts as a person, and Claude's approval can be the one GitHub requires. Put those together with auto-merge and a change can land with nobody but its author involved. The fix is one rule, observed before it is enforced, and GitHub's approval count changed last.

Contents

Claude Ship went into beta on November 23 for Team and Enterprise organizations with repositories on GitHub. It bundles three agents: Code Review, which is generally available, plus PR Steward and Claude Approvals, which are new. Steward fixes pull requests and is designed not to approve them. Approvals is the one that can approve, and what it approves is decided by a YAML file you commit.

That file is the part to read slowly. The docs are careful and say most of what follows somewhere, but they say it across a dozen pages. Read together, they describe a setup where a person runs /ship, Claude reviews and approves, auto-merge does the rest, and no second human ever opens the diff. The docs’ own fix, a rule that requires a non-author, closes most of it and then hands the last gap to whoever prompted the agent. Everything below comes from the docs and Anthropic’s announcement. I have not run the managed service; the two policies shown were parsed as YAML, nothing more.

What is in Claude Ship: Code Review, PR Steward and Claude Approvals?

Three GitHub agents that share the Claude GitHub App and bill your organization’s usage credits by tokens, separately from the plan’s included usage. Code Review posts findings and never pushes. PR Steward pushes commits to fix failing checks, merge conflicts and review comments. Claude Approvals adds a check, Claude Approvals, that reports who still has to approve, and it can post Claude’s own approving review.

Steward and Approvals are in public beta. None of the three is available to organizations with Zero Data Retention, the HIPAA configuration or customer-managed encryption keys, and FERPA or Access Transparency settings keep Approvals out too. Approvals works on github.com, including GitHub Enterprise Cloud.

Separate from all three is /ship in Claude Code (2.1.330 or later), which runs in your own session and counts as regular Claude Code usage. It can commit, push and open the pull request, runs a local /code-review, then watches the PR for up to seven days, fixing what comes back. You merge.

The announcement calls Approvals “a smarter CODEOWNERS file.” That is a fair description of the policy file and an incomplete one of what it does, because CODEOWNERS never approves anything itself.

How does Claude Approvals decide who has to approve a pull request?

From a policy file, .claude/approvals.yml, read from the default branch. Each rule names paths and a verdict: what Claude may do (approves, comments or blocks) and how many seats must be filled. Every enforced rule whose paths match, and whose if (if it has one) is true, applies. Among those verdicts the strictest wins: blocks beats comments, which beats approves, and every rule’s seats have to be filled. Claude posts an approval only if every rule that applies says approves and every changed file is covered.

A rule can carry override entries. Approvals reads them top-down and the first one that is true replaces the fields it writes. Conditions read classifiers: claude/code_review answers pass when a managed Code Review finished with no Important finding open and fail when one is still open. A review that has not finished, or gave no result, is neither, and the rule’s own verdict holds. You can also write your own classifiers in natural language under .claude/classifiers/.

Two properties stop the obvious abuse. The rules come from the default branch, so while a pull request edits the policy, Approvals can check the edited file for errors and applies none of its rules. And policy files are protected files, which normally need at least one person with write access, who can be the author. One unknown key makes Approvals refuse the whole file, so copy examples exactly.

Who fills a seat in a Claude Approvals policy?

More accounts than you would guess. The policy reference says the author “can fill one seat without approving,” and that, outside forks and outside contributors, “the author alone can meet seats: 1.” So seats: 2 can be the author plus one more person, not two reviewers. The seat belongs to whoever opened the pull request at its first commit, and after a later push normally to the person who both wrote and pushed the latest commit.

The default people list, humans, is “every person, authors included,” and the reference adds that “a machine user, which is a user account that a script or an agent drives, counts as a person.” Bots and GitHub Apps fill a seat only in a set that admits them. The claude account that Claude’s cloud sessions commit as is not a person. But an agent running under its own user account is, and it can even be the one person a protected file needs.

One more line matters if you run agents: “an agent’s commits under another account don’t make a person an author.” If your agent opens a pull request under a machine account and you never commit or push to it, you are not its author. A rule that demands a non-author reviewer can then be satisfied by you, the person who told the agent to write the change, as long as you have write access and approve.

When can a pull request merge under Claude Approvals with nobody but its author?

When the policy lets Claude approve, GitHub requires one approval, and auto-merge or a merge queue is on. The docs say it outright: “If you use GitHub auto-merge or a merge queue with a policy that doesn’t require a person’s approval, a change can merge without anyone acting.”

Walk the first starter policy the setup page offers, “Let Claude approve when Code Review passes”:

yaml
# .claude/approvals.yml
version: 1
mode: observe
rules:
  - purpose: "A change takes two people. When Claude's review passes, one is enough and Claude approves."
    paths: ["**"]
    verdict: { claude: comments, seats: 2 }
    override:
      - { if: "claude/code_review = pass", verdict: { claude: approves, seats: 1 } }
  - purpose: "A change to the review rules takes two people."
    paths: ["**/.claude/**"]
    nested: inherit
    verdict: { claude: comments, seats: 2 }

Remove mode: observe to enforce it, as the setup page tells you to once observe mode looks right. Now take a pull request that changes only src/billing/invoice.ts, opened with /ship by a developer with write access. The watch “uses your gh and git sign-ins, so its work on GitHub appears under your name”: the developer wrote and pushed every commit, so they hold the author’s seat. The managed Code Review finishes with no Important finding, the override fires, seats: 1 is met by the author without approving, and Claude can post its approving review. Per the GitHub-rules page, “Claude’s approving review can meet a GitHub branch rule that requires one approval.” If CI is green, no CODEOWNERS review is required on that path, and auto-merge is on for that pull request, GitHub merges it. That chain is my reading of the pages quoted here; I have not watched it happen.

Change one file under .claude/ in the same PR and the chain breaks: the second rule keeps comments and two seats there. The setup page describes the starter honestly: a pull request that passes Claude’s review “usually needs no approval from another person, except for changes under .claude/.” The surprise is only for a team that read “two people” in the first purpose line and stopped there.

Two details make = pass softer than it looks. The GitHub-rules page warns that “a pull request’s author’s text can steer a classifier’s answer,” and that a steered answer read in an if “can lower what the pull request needs.” And if you add a findings list that lets people close Code Review findings, the reference is blunt: “people can lower .severity and pass a failed review with nothing fixed.”

How do you make Claude Approvals require a second person?

Use the docs’ own non-author rule as the floor, keep machine accounts out of it by login, and observe it before you enforce it. Here is a complete file built on it (acme-agent stands for your agent’s login), still in observe mode:

yaml
# .claude/approvals.yml
version: 1
mode: observe
rules:
  - purpose: "A change takes one person who isn't an author."
    paths: ["**"]
    nested: inherit
    verdict:
      claude: comments
      seats: [{ count: 1, from: [humans, "!pr/authors", "!acme-agent"] }]
    advisory: [claude/code_review]
  - purpose: "A change to the review rules takes two people."
    paths: ["**/.claude/**"]
    nested: inherit
    verdict: { claude: comments, seats: 2 }

The first rule has no if and no override, so it applies to every file, and its claude: comments means Claude never approves anywhere: the strictest verdict wins. advisory keeps Code Review running, following your Code Review settings, without letting its answer decide anything. nested: inherit makes a rule apply under policy files in subdirectories too. The "!acme-agent" item is my addition, in the form the GitHub-rules page shows for a CI account ([humans, "!acme-ci"]); it removes only that login, and any other machine user is still in humans. One cost of this rule: on a fork’s pull request “no approval counts toward this seat,” so external contributions wait until you handle them separately. If some paths can go to Claude alone (generated docs, say), take them out of the first rule with a "!" item and give them their own rule. A pull request that also touches any other file still gets no Claude approval.

This rule settles who is eligible. It doesn’t make the person who ran the agent read the diff before approving; that stays a team norm. I made the same point about the per-command prompts that people approve on reflex, and it holds for an approval seat.

What does PR Steward do, and what stops it from merging?

Steward pushes commits; branch protection is what stops merges, so it goes in first. The setup guide says to add these GitHub rules “before you turn on PR Steward”: require a pull request with at least one approval on the default branch, dismiss stale approvals on new commits (or require approval of the latest push), keep the Claude GitHub App off the ruleset’s bypass list, and protect any other branch Steward shouldn’t push to.

Anthropic’s hosted service refuses some of Steward’s requests outright: approving a pull request, changing branch protection, rulesets or statuses, writing check runs, deleting a branch, pushing tags. Merging, turning on auto-merge and force-pushing are left to GitHub’s branch rules, behind two checks on the command text (permission rules, then auto mode’s check for commands no rule matches), and the security page says “a command that’s written another way can pass both.” In a self-hosted environment, an approval made directly with a credential the session can read is one Anthropic’s service can’t refuse, and GitHub can count it.

The /ship watch on your own machine has its own limits. While Claude acts without a message from you, Claude Code blocks gh and git commands that merge, approve, turn on auto-merge or force-push. Those limits are off while Claude answers a message you type in the terminal, and the docs add that in auto mode, Claude may then be allowed to merge. If auto-merge is already on for the pull request, a fix the watch pushes can be what lets GitHub merge it.

Steward’s spending has two knobs: a monthly limit for the service and a per-repository spend cap that applies to each pull request. The cap is soft: “Spend can pass the cap before it stops,” and a restart, or a new cloud session after about a week on one PR, gets the full cap again. The Steward setup guide gives no numeric cap on review-and-fix rounds. In the Code Review piece I argued for a written three-round cap on review-and-fix loops, because an agent author fixes every nit it is shown. The same loop is possible here: each push can start another review, and each Important finding another fix. The pages I read don’t say whether Steward follows a cap written in CLAUDE.md, so the spend cap is the only stop I can point to.

Does adding .claude/approvals.yml change Claude Code Review?

Yes, in both directions. Once a policy file is on the default branch, in observe mode or enforced, automatic Code Reviews normally stop where no matching rule names claude/code_review. A policy written only to try out seats can quietly switch off the reviews you already had.

The other direction costs money. A rule that reads claude/code_review in an if “can start a billed Code Review when a pull request opens and at each push,” even where your Code Review settings ask for fewer reviews. Listing it only under advisory makes reviews follow your Code Review settings.

What does Claude Ship cost, and is observe mode free?

Observe mode is billed. The three managed agents are token-billed through usage credits. Approvals has no base charge, but the Code Reviews it starts and its classifier runs are charged, in observe mode too. A custom classifier run with no budget stops at an estimated $10 or 600 seconds, and the docs warn the bill can be higher than the cap.

There are three separate limits to set under Organization settings > Usage: Code Review, PR Steward and the Approvals classifier runs. None is set for you in the order recommended below. If Code Review was on before your policy, its row “has no limit until you set one,” and the Steward row appears only after Steward is first turned on. At Code Review’s limit, a check that needs Claude’s review can stop passing.

One line from the Claude Ship page is easy to miss: if you turn off usage credits, “an agent that’s on keeps running and billing your organization.” To stop the billing, turn the agents off. Eligible Enterprise organizations can claim at least $10,000 in Claude Ship credits by January 15, 2027, usable for 30 days after the claim.

In what order should you turn on Claude Ship?

One agent at a time, in one repository: Code Review, then PR Steward on Manual (@claude steward), then Approvals in observe mode. You need the Claude GitHub App installed and linked, repository admin access to require a check, a paid GitHub plan for a private repository, and two people with write access. The full sequence:

  1. Turn on Code Review and set its spend limit.
  2. Add the PR Steward branch rules above, then turn Steward on, on Manual, and set its monthly limit and per-repository cap.
  3. Add the policy you intend to enforce, with mode: observe, in a pull request of its own from a branch in the repository. Merge once Claude comments that it found the policy file in this change valid.
  4. Open ordinary, non-draft pull requests into the default branch. Their Claude Approvals check titles start with (observe mode) and normally end neutral, which GitHub counts as passing. Compare the titles with what your reviewers decide, and look for pull requests where the title needs no person while a reviewer asked for changes.
  5. Delete mode: observe and merge. Five minutes later, comment @claude approvals rerun on each open pull request whose title starts with (observe mode) or Observe mode ended. Keep those out of the merge queue until rerun.
  6. Require Claude Approvals as a status check on the default branch, with its source set to the Claude app (app ID 1236702 in integration_id or app_id via the API). With “any source,” GitHub accepts a check by that name from anything. Require pull requests there too: “A push directly to the default branch gets no check.”
  7. Confirm it blocks: open a pull request that changes a file under .claude/ and check that GitHub lists the check as required and waits for a person.
  8. Only now change GitHub’s required approval count. The docs advise no more than one where the check is required, with extra people in seats, because GitHub doesn’t count an author who fills a seat and a higher number can leave pull requests blocked after the check passes.

Turning it off runs the other way, and the order matters because a policy can start billed reviews where Code Review is off. Make sure stale approvals are dismissed, stop requiring the check, turn Approvals off, and dismiss Claude’s approving reviews on open pull requests. For Steward, remove the claude-pr-steward-watching label from open pull requests first, or it keeps working on them for a while after it is switched off. Then Code Review. Suspend or uninstall the Claude GitHub App last: done first, required checks stop arriving and GitHub can keep counting Claude’s leftover approvals. Turning off Claude Ship leaves the local /ship and /steward commands on; those are switched off separately, in managed settings.

Is Claude Approvals worth turning on for a small team?

Not before there are two people with write access. The setup page offers two starter policies and says so for both. With one person, the Claude-approves starter can’t pass on a change under .claude/ or where Claude’s review fails or gives no result; the other starter, which keeps two people on each change, can’t pass on anything. A solo maintainer gets a check that either blocks everything or, with the Claude-approves starter, adds an approval from the same system that reviewed the change.

For a team, Approvals moves the approval rules out of people’s heads and into a file a check enforces. Read the seat rules before you enforce it. Start with claude: comments everywhere, require a non-author, exclude agent accounts by login, and let Claude approve only on the narrow paths where you would have waved the change through anyway. A seat counts accounts, not who read the diff. The author fills one without approving and a machine account fills one as a person; those two you can close in the policy file. The person who prompted an agent and then approves its pull request you can’t, so that one goes in writing as a team rule, next to the policy.

01 / Discussion

No comment section here — all discussions happen on X.

Max Nardit@mnardit

02 / More articles