Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Claude Approvals policy file reference changedapprovals-policy

Nearest release: v2.1.335, published under an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 2 Dec 2026 22:51 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 23:07 UTC.

Upstream edited
Recorded here
Lines+15added
Lines−15removed
From line 64 where the diff opens
First seen 23 Nov 2026 this site's first read of the page
Recorded edits5to this page, all time

The whole hunk

from line 64, old and new numbered
/
lines
from line 64
6464 
6565To give a directory its own rules beside the root policy file, add a `.claude/approvals.yml` inside it, such as `services/billing/.claude/approvals.yml`.
6666 
67For each changed file, Approvals walks up from that file's directory. The first enforcing policy file that covers the changed file, and in which a rule with a `verdict` [applies](#how-rules-combine-into-one-verdict), decides for it. A `nested: inherit` rule in a policy file higher up counts as one of the deciding policy file's rules.
67For each changed file, Approvals walks up from that file's directory. The deciding policy file is the first enforcing one that covers the changed file and in which a rule with a `verdict` key [applies](#how-rules-combine-into-one-verdict) to that file. A `nested: inherit` rule in a policy file higher up counts as one of the deciding policy file's rules.
6868 
6969* **The nearest policy file decides**: it can ask for less than the root policy file. Above it, only rules marked `nested: inherit` still count.
7070* **`paths` start at the directory**: in `services/billing/.claude/approvals.yml`, write `api/**` to match the files under `services/billing/api/`
from line 96
9696 
9797## Rule keys
9898 
99Give each rule a `purpose`, `paths`, and at least one of `verdict`, `advisory`, `findings`, and `reuse`. If `reuse` is the only one of the four that a rule has, the value of `reuse` has to be `false` or name a classifier. A rule with no `verdict` asks nobody and [covers](#how-rules-combine-into-one-verdict) no file.
99To add a rule to your policy file, give the rule the `purpose` and `paths` keys, and at least one of the `verdict`, `advisory`, and `findings` keys.
100100 
101101You can write these keys on a rule:
102102 
from line 111
111111| [`reuse`](#reuse) | Condition or map | Keep nothing | What still counts after a push that changes the diff |
112112| [`findings`](#findings) | Map | No list | Who may close a classifier's finding |
113113| [`use`](#locals-and-use) | List of `"@name"` | | Locals whose keys are copied into the rule |
114| `mode` | `enforce`, `observe` | The file's | A rule that observes neither [applies nor covers](#how-rules-combine-into-one-verdict) a file |
114| `mode` | `enforce`, `observe` | The file's | Only an enforced rule [applies to or covers](#how-rules-combine-into-one-verdict) a file |
115115| `nested` | `overwrite`, `inherit` | The file's | `inherit` keeps the rule in force under the policy files below |
116116| `run` | `sequential`, `parallel` | The file's | Whether the rule's own classifiers start in turn or together |
117117 
from line 156
156156 
157157| Field | Values | Description |
158158| :- | :- | :- |
159| `claude` | `approves`, `comments`, `blocks` | `approves`: Claude can post an approving review once the **Claude Approvals** check passes, if [every rule that applies says so and every changed file is covered](#how-rules-combine-into-one-verdict). The field starts no review, so where the rule reads no classifier, Claude can approve a change that no review has read. `comments`: Claude doesn't approve. `blocks`: the check fails, whoever approves |
160| `seats` | `0` to `16`, or a list of up to eight sets | How many [people](#how-people’s-approvals-are-counted) have to approve. A number `N` is short for `[{ count: N, from: humans }]`. Refused beside `blocks` |
159| `claude` | `approves`, `comments`, `blocks` | `approves`: Claude can post an approving review once the **Claude Approvals** check passes, if [every rule that applies says so and every changed file is covered](#how-rules-combine-into-one-verdict). `comments`: Claude withholds its approval. `blocks`: the check fails |
160| `seats` | `0` to `16`, or a list of up to eight sets | How many [accounts](#how-people’s-approvals-are-counted) the rule requires. The author [can be one of them](#whether-a-pull-request’s-author-counts). A number `N` is short for `[{ count: N, from: humans }]`. Refused with `claude: blocks` |
161161| `max_age` | A whole number and `s`, `m`, `h`, or `d`, from `1m` to `83d` | How long an evaluation's results count. After that, the check fails with the title **Results are older than the policy allows** |
162162 
163163Give each set in `seats` a `count`, from `1` to `16`, and a `from`, which is a [people list](#people-lists). Every set has to be filled, and one person can fill a seat in several sets.
from line 178
178178| `pr/authors`, `pr/opened_by` | The accounts that the fact holds |
179179| `"!pr/authors"` | Takes accounts away. Quote it, with single quotes in a condition, and put it beside an item with no `!` |
180180 
181If a set's `from` admits Claude, for example through `bots`, `everyone`, or `bot:claude`, and every rule that applies says `approves`, Approvals counts a seat in that set as filled before Claude approves. The **Claude Approvals** check can then pass with no person's approval.
181If a set's `from` list includes Claude, for example through `bots`, `everyone`, or `bot:claude`, and every applicable verdict says `approves`, Approvals can count Claude toward that set. The **Claude Approvals** check can then pass without human review.
182182 
183183### `override`
184184 
from line 230
230230 
231231* **Every rule that matches the files**: write `reuse` on each of them
232232* **When `claude/diff` gives no answer**: a condition that reads it keeps nothing
233* **After a dismissal or a force-push**: the example keeps no approval that GitHub dismissed, and normally none given before a force-push. `reuse` can keep them under a `seats` condition that reads `claude/diff` and no other classifier, such as `"claude/diff <= same_intent"`.
234* **Earlier authors count too**: where `reuse` keeps `seats`, people who held the [author's seat](#whether-a-pull-request’s-author-counts) at an earlier commit can continue to count. Two of them can fill `seats: 2` with nobody approving. To prevent that, exclude authors from the set with `"!pr/authors"`.
235* **Files that a push left alone**: in a policy file that writes `reuse`, an approval can outlast a push to other files only. Those can be files that no rule covers, or whose rules couldn't count that person. An approval that GitHub dismissed normally doesn't
233* **After a dismissal or a force-push**: if the rules on the changed files use the example, an approval stops counting when GitHub dismisses it at a push. It also stops counting after a force-push that changes the diff and replaces the approved commit, as a rebase, amend, or squash does. You can keep those approvals with a `seats` condition whose only classifier is `claude/diff`, such as `"claude/diff <= same_intent"`.
234* **Earlier authors count too**: if your `reuse` key keeps approvals, people who [counted without approving](#whether-a-pull-request’s-author-counts) at an earlier commit can continue to count. Two such authors can meet `seats: 2` without anyone approving. To prevent that, exclude authors in the rule's verdict and overrides, as in `seats: [{ count: 2, from: [humans, "!pr/authors"] }]`.
235* **Pushes to other files**: once a policy file has a `reuse` key, a person's approval can still count after a push that changes only files where it couldn't count. Files that no rule covers are one example.
236236 
237237### `findings`
238238 
from line 240
240240 
241241Until a rule's `findings` lists who may close findings, a person's resolve alone doesn't lower `.severity`. A classifier needs no list to close its own finding, as Code Review can when a later review finds it fixed.
242242 
243This example lets the `acme/leads` team, less the pull request's authors, close Code Review's findings:
243This example lets the `acme/leads` team close Code Review's findings, excluding the pull request's authors:
244244 
245245```yaml theme={null}
246246# in .claude/approvals.yml, on a rule with no if, beside verdict
from line 255
255255| :- | :- |
256256| A [people list](#people-lists) | One list for every classifier's findings. `resolution: humans` lets people with write access close them, the author included |
257257| A map of classifier names to lists | A list for each classifier |
258| A list of sets, each `{ if, from }` | Each `if` can read `finding/severity`, as in `{ if: "finding/severity >= high", from: acme/leads }`. Where each `if` reads `finding/severity` alone, the first set whose `if` is true decides. End with a set that has no `if` |
259| `nobody` | No person's resolve alone closes a finding. A classifier can close its own findings |
258| A list of sets, each `{ if, from }` | Each set's `if` condition can read `finding/severity`, as in `{ if: "finding/severity >= high", from: acme/leads }`. When your conditions read only `finding/severity`, the first set whose condition is true decides. End with a set that omits the `if` key |
259| `nobody` | A person's resolve alone leaves the finding open. A classifier can close its own findings |
260260 
261261To let people close findings, put a list on a rule that has no `if` and covers the finding's file. Put that rule in the [policy file that decides](#policy-files-in-subdirectories) for the file. For a resolve alone to count, every list that applies to that file has to admit the person who resolves.
262262 
from line 292
292292Check what a local can hold and where you can use it:
293293 
294294* **What a local holds**: text, a number, `true` or `false`, a list, or one map
295* **Where `"@name"` can stand**: for the whole of `paths`, a people list, `seats`, `verdict`, or `override`, and for one item of `paths`, a people list, or `seats`. Inside a condition it takes no quotes of its own, as in `"pr/files_changed > @many"`.
296* **What `use` copies**: `verdict`, `override`, `if`, `paths`, `reuse`, `advisory`, and `findings`. What the rule writes itself wins: key by key inside `verdict`, `findings`, and a `reuse` map, and whole for any other key.
295* **Where `"@name"` can stand**: for the whole of `paths`, a people list, `seats`, `verdict`, or `override`, and for one item of `paths`, a people list, or `seats`. Inside a condition, write it unquoted, as in `"pr/files_changed > @many"`.
296* **What the `use` key copies**: the `verdict`, `override`, `if`, `paths`, `reuse`, `advisory`, and `findings` keys. Values you set on the rule replace the copied ones: key by key inside `verdict`, `findings`, and a `reuse` map, and as a whole for any other key.
297297 
298298## How rules combine into one verdict
299299 
from line 314
314314 
315315| Case | What happens |
316316| :- | :- |
317| No rule covers a changed file | Nobody is asked to review that file. A [protected file](#protected-files) can still need a person. Claude doesn't approve the pull request |
317| No rule covers a changed file | Approvals sets requirements for the covered files only, but can still require one person for a [protected file](#protected-files) |
318318| No rule covers any changed file | Normally no check appears. If GitHub requires the check on the default branch, it normally ends neutral, with the title **Nothing ran, not blocking: no file is covered**. GitHub counts that as passing |
319319| Rules cover a changed file, and none applies | The check fails, with a title that starts **No rule applies to** |
320320| A file moves between a path that rules cover and one that they don't | Claude comments that Approvals did not run. If GitHub requires the check, you need permission to bypass that requirement to merge |
Feedback