Skip to content

Policy reference

This page is generated from Arbiter’s code at build time, so it always matches the version shown at the bottom. “Required” says what the policy format requires. Arbiter refuses a policy only for the rules listed at the end of this page, so write every required field even where no rule checks it. The policy-author manual explains how to use these fields.

policies/<org>/<repo>/policy.yaml in your policy repository.

Field Type Required What it does
version string yes The policy format version, as a string: “1.0”.
delivery_mode ‘sidecar’ no Leave unset. “sidecar” selects the older evidence path for partner CI.
provenance ProvenanceConfig yes The provenance section (below).
protected_paths ProtectedPathRule[] yes The protected paths (below).
evidence_requirements EvidenceRequirement[] yes The evidence requirements (below).
always_required_checks RequiredCheck[] no Optional. Checks that must pass on every pull request, whatever it changes: each a GitHub check or a trusted scan (below). They need no approval and never stand in for one. Two entries cannot be the same check.
check_definitions CheckDefinitions no Optional. Changes to how checks run (below).
escalation_conditions EscalationCondition[] no The escalations (below). Missing means none; write it, even as an empty list, so a reviewer sees the choice.
failure_defaults object no Holds one field, below.
failure_defaults.protected_path_unavailable_input Decision no Write DENY. Arbiter does not read this field at this version. Arbiter / policy-review lists a change to it, and flags a change away from DENY.
terraform_iam TerraformIamPolicy no Optional. Turns on the Terraform IAM check (below). Missing means the check is off.
workflow_analysis WorkflowAnalysisPolicy no Optional. Turns on the workflow analysis (below). Missing means it is off.
dependency_analysis DependencyAnalysisPolicy no Optional. Turns on the dependency analysis (below). Missing means it is off.
github_settings GithubSettingsPolicy no Optional. Names for the setup-check command’s W4 (below). Evaluation ignores it.
agent_pull_requests AgentPullRequestsPolicy no Optional. The approvals an AI agent’s pull request needs (below).
approver_accounts ApproverAccount[] no Required when the policy has an approval rule. The accounts whose approvals count (below).
policy_repository PolicyRepositoryPolicy no Optional. The policy repository’s minimum approval count (below).

Whether an AI provenance file is required, and what it must contain.

Field Type Required What it does
required boolean yes true to require the provenance file on protected changes. Start with false.
required_fields string[] yes The fields the provenance file must contain.
artifact_path string yes Where the provenance file is, for example .ai/provenance.json. It must end in .json, in any case (LOAD-042); a name such as main.tf.json or x.tfvars.json ends in .json, so it is allowed.

The paths Arbiter governs. Anything not listed is allowed without extra evidence.

Field Type Required What it does
pattern string yes A path pattern: ** for any depth, * within one folder. Dot-files and dot-folders need their own pattern.
label string yes The name people see in check messages and comments.
risk_class string yes A class used by escalations, for example standard or high.

What a change to a matching path needs.

Field Type Required What it does
path_pattern string yes The paths this requirement applies to.
required_artifacts EvidenceArtifactRef[] no Signed evidence files (below). Not approvals or test results, which come from GitHub.
expected_issuer string no Required with required_artifacts: the key id the signed evidence must claim.
max_age_seconds number no Required with required_artifacts: how old the evidence may be, in seconds.
schema_id string no Required with required_artifacts: the evidence schema.
trusted_key_ref string no Required with required_artifacts: the keyring of trusted keys (keyring.json).
required_approvals TeamApprovalRule no Approvals from a named team (an approval rule).
required_checks RequiredCheck[] no Check runs that must pass. Needs required_approvals too.

Used by required_approvals, check_definitions.approvers and an escalation’s cleared_by.

Field Type Required What it does
team string yes The team, as <org>/<team-slug>, in the same organization.
min_approvals number yes How many approvals that count are needed: a whole number, at least 1.

A signed evidence file a requirement needs.

Field Type Required What it does
type string yes The evidence type. Not approval or test_report: those come from GitHub.
path string yes Where the signed evidence file is in the repository. It must end in .json, in any case (LOAD-042); a name such as main.tf.json or x.tfvars.json ends in .json, so it is allowed.

A GitHub check run that must pass on the latest commit.

Field Type Required What it does
name string yes The check run’s name. Not “Arbiter / authorize”.
app_id number yes The GitHub App that posts the check. GitHub Actions is 15368. Another App’s check with the same name never counts.
workflow string no Required for GitHub Actions checks: the workflow file under .github/workflows/, ending in .yml or .yaml.
trusted_workflow not allowed no Not allowed on a GitHub check: it makes the entry a trusted scan.
trusted_workflow_sha not allowed no Not allowed on a GitHub check: it makes the entry a trusted scan.

A check whose result counts only from your pinned trusted workflow, which pull requests cannot change.

Field Type Required What it does
name string yes The check’s name, as your trusted workflow reports it (for example gitleaks).
trusted_workflow string yes The trusted workflow, as <owner>/<repo>/.github/workflows/<file>.yml, with no @ref.
trusted_workflow_sha string yes The trusted repository’s commit, as the full 40-character lowercase hex sha. Only a result from that commit counts.
app_id not allowed no Not allowed on a trusted scan.
workflow not allowed no Not allowed on a trusted scan.

Who must also approve while a pull request changes how checks run.

Field Type Required What it does
paths string[] no Adds to the default check-definition paths, which always apply: .github/workflows/, .github/actions/, **/action.yml and **/action.yaml.
approvers TeamApprovalRule no The team that must also approve while a pull request changes a check definition.

Changes held, rather than denied, until a named team approves.

Field Type Required What it does
trigger string yes A short name for the escalation.
description string no What people see when the change is held.
condition object yes When it applies, for example { risk_class: “high”, when: “human_approval_required” }.
condition.risk_class string no The change is held when it touches a protected path with this risk_class.
condition.when string no A label for people, for example human_approval_required. Arbiter does not match on it.
condition.type string no input_unavailable marks an escalation for a missing input. Such a condition never matches a change: Arbiter handles missing inputs itself.
category EscalationCategory yes One of the escalation categories (below).
cleared_by TeamApprovalRule no Only on category policy_declared_human_approval_required: the team whose approval clears the hold.

Optional: the Terraform IAM check. Off unless the policy has this section. Arbiter reads the Terraform files paths covers, at the head and the merge base, and allows a change only when it can prove the change adds none of four patterns: an action wildcard (* or s3:*), a resource wildcard, an admin policy, or a wider trust. Anything else is held for the named team, and the kinds in deny are denied. Other grants pass it: a new specific action (for example iam:PassRole), a partial wildcard (iam:Put*), a mix of actions, or a grant moved from one named resource to another.

Field Type Required What it does
paths string[] no Which Terraform files are read: path patterns, default every file. Every .tf file in a folder they reach is read with it.
policy_file_paths string[] yes Required. A changed file these patterns match reaches every module call Arbiter can’t read (a registry or Git module). [“**”], the whole repository, is the recommended setting.
hold object yes Holds one field, below.
hold.cleared_by TeamApprovalRule yes The team whose approval clears a held finding (an approval rule).
deny TerraformIamKind[] no Optional. Finding kinds (below) that deny; no approval clears them. For example [admin_policy].

Optional: the workflow analysis. Off unless the policy has this section. When a pull request changes a workflow file (directly in .github/workflows/) or an action file (action.yml or action.yaml), Arbiter reads that file at the head and the merge base and names what the change adds: a trigger not proven safe, a widened permission, an action not pinned to a full commit SHA, or an untrusted value in a script. A finding is held for the named team; the kinds in deny are denied, and with any kind in deny a file Arbiter can’t parse is denied too. It keeps file paths, line numbers and what it found, never what the files say. Tested by automated tests only in this release.

Field Type Required What it does
hold object yes Holds one field, below.
hold.cleared_by TeamApprovalRule yes The team whose approval clears a held finding (an approval rule).
deny WorkflowAnalysisKind[] no Optional. Finding kinds (below) that deny; no approval clears them. Listing any kind also denies a file Arbiter can’t parse, and one the base branch changed since the merge base (base_moved). For example [untrusted_input].
pin_exempt_owners string[] no Optional. Owners whose actions need no SHA pin, compared in any case. Default [“actions”, “github”]; [] pins every action.

Optional: the dependency analysis. Off unless the policy has this section. When a pull request changes a dependency file paths covers (package.json, npm lockfiles, requirements and constraints files, and go.mod), Arbiter reads it at the head and the merge base and names what the change adds: a new package, one that looks like a popular package, a lockfile changed without its manifest, or a package from a new source. go.sum and the registry settings files (.npmrc, .yarnrc, .yarnrc.yml, pip.conf and pip.ini) are named, never fetched: a go.sum change without go.mod is lockfile_only, and any change to a registry settings file is source_changed. A finding is held for the named team; the kinds in deny are denied, and with any kind in deny a file Arbiter can’t parse is denied too. It keeps file paths, line numbers and what it found, and for a likely typosquat the popular package it resembles, never what the files say. Tested by automated tests only in this release.

Field Type Required What it does
paths string[] no Optional. Which dependency files are read: path patterns. Default: package.json, package-lock.json, npm-shrinkwrap.json, requirements*.txt, constraints*.txt, requirements/**/*.txt, go.mod, go.sum, .npmrc, .yarnrc, .yarnrc.yml, pip.conf and pip.ini, anywhere. A file they match that Arbiter does not read (for example yarn.lock) is not_analysed. Any change to paths is flagged in policy review.
allowed_registries string[] no Optional. Registry hostnames allowed besides each ecosystem’s defaults.
hold object yes Holds one field, below.
hold.cleared_by TeamApprovalRule yes The team whose approval clears a held finding (an approval rule).
deny DependencyAnalysisKind[] no Optional. Finding kinds that deny; no approval clears them.

Optional: how many different approvers an AI agent’s pull request needs, and which accounts are agents. A pull request is an agent’s when its author, or any commit’s author or committer, is a GitHub App bot not listed in not_agents, or an account listed in agent_authors. Then each approval rule that applies counts only when min_approvals different members of its team have approved: 2 if the section or the field is missing, or the rule’s own number if that is higher. A path the policy asks no approval for is unchanged. A malformed section stops the whole policy loading (LOAD-049).

Field Type Required What it does
min_approvals number no Optional. How many different approvers an agent’s pull request needs from each team the policy asks to approve: a whole number from 1 to 10, default 2. Lowering it is flagged in policy review.
agent_authors Array<string | number> no Optional. Machine-user accounts agents run as, besides every GitHub App bot: 0 to 100 GitHub logins (ignoring case) or numeric account ids, none repeated. An id still matches after the account is renamed. Removing one is flagged in policy review.
not_agents Array<string | number> no Optional. GitHub App bots that are not agents (for example dependabot[bot]): 0 to 100 logins or account ids, none repeated. Adding one is flagged in policy review.

Required in every policy with an approval rule: the accounts whose approvals count. An approval counts only from a listed account, matched by its numeric id, that is also a member of the rule’s team; approvals from other accounts are recorded in the decision as unlisted_approvals and do not count. The list has 2 to 200 entries, one per person. A missing or malformed list stops the whole policy loading (LOAD-050). Find an account’s id with gh api users/<login> --jq .id.

Field Type Required What it does
person string yes A label for the person: 1 to 64 letters, digits, dots, underscores or hyphens, with single spaces between words, not repeated (ignoring case). Shown only by setup-check, never in decisions or comments.
id number yes The GitHub account’s numeric id, a whole number from 1 up, not repeated. Approvals are matched by this id, so a renamed account still counts.
login string no Optional. The account’s login, for readers; not repeated (ignoring case) and not a bot. setup-check reports it when it is no longer the account’s current login.

Optional. Sets the smallest number of approvals that the branch rules of your policy repository may ask for. While GitHub asks for fewer, Arbiter denies every evaluation, and every change to a policy file is accepted only once that many writers, none of whom authored or pushed it, have approved it. When several policy files set a value, the largest one wins; a file without the section counts as 1. Lowering the largest value takes as many approvals as the old value. This field is separate from agent_pull_requests.min_approvals, which concerns pull requests to governed repositories. An invalid value stops the policy from loading (LOAD-051).

Field Type Required What it does
min_approvals number no Optional. A whole number from 1 to 10; 1 when the section is absent. Policy review marks a lower value, and lowering the largest value takes as many approvals as the old value.

Optional: more secret names for the setup-check command to treat as long-lived cloud keys (check W4, Administrator manual A9c). Only setup-check reads it; it changes no decision. A malformed section stops the whole policy loading (LOAD-044).

Field Type Required What it does
long_lived_key_names string[] yes Secret names W4 treats as long-lived cloud keys, besides its built-in list, matched exactly, ignoring case: 1 to 50 GitHub secret names (letters, digits and , not starting with a digit or GITHUB, at most 100 characters), none repeated. Removing a name is flagged in policy review.

Every evaluation ends in one of:

  • ALLOW
  • DENY
  • ESCALATE

Set per repository in rollout-mode.yaml. Missing or unreadable means enforce.

  • visibility-only
  • advisory
  • enforce
Category Meaning
missing_authoritative_input An input Arbiter needs is missing.
policy_declared_ambiguous_classification The policy marks the change as ambiguous.
policy_declared_high_risk_class The policy marks the change as high risk.
policy_declared_human_approval_required The policy requires a named team’s approval. The only category that may have cleared_by.

What terraform_iam can find. Every kind is held for hold.cleared_by unless deny lists it.

Kind Meaning
action_wildcard An Allow statement grants every action, or every action of a service, or uses NotAction.
resource_wildcard An Allow statement grants every resource, or uses NotResource.
admin_policy An AWS admin policy is attached, or one statement grants every action on every resource.
trust_widened A trust policy gains a principal, uses NotPrincipal, or loses or changes a condition.
not_proven The change reaches an IAM block Arbiter can’t read exactly; the reason code says why.
not_checked An IAM-related change the patterns don’t read: a resource policy, a removed Deny or condition, a permissions boundary, an IAM field on another resource, or a branch behind its base.
unparsed A Terraform or loaded data file has a syntax error.

What workflow_analysis can find. Every kind is held for hold.cleared_by unless deny lists it.

Kind Meaning
privileged_trigger The changed workflow runs on a trigger not on the safe list (pull_request, push, schedule, workflow_dispatch). Raised whenever such a file changes.
permissions_widened A job gains a write permission it did not have; a job with no permissions block counts as having every permission.
unpinned_action The change adds an action not pinned to a full 40-character commit SHA (or a Docker image without a sha256 digest), from an owner not in pin_exempt_owners.
untrusted_input The change adds an expression in a script that reads a value an outsider can set, such as a pull request title.
base_moved The base branch changed this file since the pull request’s merge base; update the branch so the check reads the file you will merge. Held, or denied when the section’s deny lists any kind.
unparsed Arbiter could not read the file or part of it. Held, or denied when the section’s deny lists any kind.

What dependency_analysis can find. Every kind is held for hold.cleared_by unless deny lists it.

Kind Meaning
new_package A package name the file did not have at the merge base: a direct dependency, an alias’s target, an override, or any lockfile entry.
likely_typosquat A new package name one typo, a look-alike character, an added or dropped affix, or (npm) a scope away from a name on Arbiter’s popular list; the message names the listed package.
lockfile_only An npm lockfile changed while the package.json in its folder did not, or go.sum while go.mod did not.
source_changed A package from somewhere other than the default registry or allowed_registries: a path, git, a URL, an unlisted host, a new integrity for the same version, a go.mod replace, or any change to a registry settings file.
not_analysed A file paths matches that Arbiter does not read (for example yarn.lock), or an npm lockfile whose lockfileVersion is not 2 or 3. Held whenever it changes.
unparsed Arbiter could not read the file or part of it. Held, or denied when the section’s deny lists any kind.

Why a not_proven finding’s IAM block can’t be read exactly.

Reason Meaning
var A variable.
local A local value.
module_output A module’s output.
data A data source other than a policy document.
function A function call, templatefile included.
file_path A file path not built only from path.module and literal text, or one that leaves the folder.
file_type A path.module file that is not JSON or YAML.
ref_settable A reference to a value the file can set, in a statement field, or an arn Arbiter can’t show is computed.
remote_module A module Arbiter can’t read: a registry, Git or HTTP source, or a local path through a link or submodule.
remote_state terraform_remote_state.
dynamic A dynamic block.
each each.key or each.value without a literal for_each.
count_index count.index.
self self.
workspace terraform.workspace.
cycle Policy documents that reference each other.
external_policy A policy ARN or name whose statements Arbiter can’t read (not an AWS admin policy or a listed narrow one).
module_unread A local module outside paths.
unparsed A covered file in the same folder that did not parse.
template A string with ${…} or %{…}.
conditional A conditional (a ? b : c).
for_expr A for expression.
index An index or a splat (x[0], x[*]).
provider_ref provider = aws.<alias>.
expr Any other expression.
ref_open A reference to another IAM block that is open.

Each decision carries one reason code.

Reason code Meaning
POLICY_UNAVAILABLE Arbiter could not read the policy for this repository.
POLICY_MUTATION_IN_PR The change edits the policy file it is evaluated against.
ESCALATION_REQUIRED The change is held until a named team approves.
PROVENANCE_INVALID The AI provenance file is missing or invalid.
EVIDENCE_MISSING An approval, check or evidence file the policy needs is not there.
EVIDENCE_INVALID Evidence is there but does not count, for example a failed check.
CONDITIONS_SATISFIED Everything the policy needs is there.
NO_PROTECTED_PATHS The change touches nothing protected.
DEFAULT_DENY An unexpected state; Arbiter denies.
TERRAFORM_UNREADABLE The policy has terraform_iam and Arbiter could not read the Terraform files (over a cap, out of GitHub requests, a file it can’t parse safely, or on the GitHub Action, which has no Terraform reader).
TERRAFORM_IAM_DENIED The Terraform change has a finding of a kind the policy’s terraform_iam.deny lists.
CHANGE_ANALYSIS_UNREADABLE The policy has workflow_analysis or dependency_analysis and Arbiter could not read the changed files (over a cap, out of GitHub requests, the base branch unreadable, a file past a parse bound, or on the GitHub Action, which has no reader).
CHANGE_ANALYSIS_DENIED The change has a workflow or dependency finding of a kind the section’s deny lists, or a file Arbiter can’t parse in a section whose deny lists any kind.
EVALUATION_FAILED Arbiter could not finish evaluating.

Arbiter refuses a policy that breaks any of these rules, and Arbiter / policy-review fails on it. Each rule has an ID that does not change.

ID Rule
LOAD-001 The policy file must exist and be readable.
LOAD-002 The policy file must be valid YAML.
LOAD-003 The policy file must contain a YAML object, not a single value or an empty document.
LOAD-004 A policy must have a version, written as a string.
LOAD-005 A policy must have a provenance section.
LOAD-006 A policy must have a protected_paths list.
LOAD-007 A policy must have an evidence_requirements list.
LOAD-008 An approval rule (required_approvals, check_definitions.approvers or an escalation’s cleared_by) must be an object.
LOAD-009 An approval rule’s team must be written as <org>/<team-slug>.
LOAD-010 An approval rule’s min_approvals must be a whole number of at least 1.
LOAD-011 required_checks must be a non-empty list.
LOAD-012 Each required check must be an object.
LOAD-013 Each required check needs a non-empty name, and the name cannot be “Arbiter / authorize”.
LOAD-014 Each required check’s app_id must be a positive whole number.
LOAD-015 A required check’s workflow, if given, must be a file under .github/workflows/ ending in .yml or .yaml.
LOAD-016 A required check from GitHub Actions (app_id 15368) must name its workflow.
LOAD-017 check_definitions, if present, must be an object.
LOAD-018 check_definitions.paths, if present, must be a list of non-empty strings.
LOAD-019 An escalation condition may have cleared_by only when its category is policy_declared_human_approval_required.
LOAD-020 Each evidence requirement must be an object.
LOAD-021 Each evidence requirement must have a non-empty path_pattern.
LOAD-022 An evidence requirement’s required_artifacts, if present, must be a list.
LOAD-023 Each evidence requirement must declare required_artifacts, required_approvals or required_checks.
LOAD-024 An evidence requirement with required_checks must also have required_approvals.
LOAD-025 An evidence requirement cannot use schema_id evidence/test-report/v1 or evidence/hipaa-review/v1; approvals and test results come from required_approvals and required_checks.
LOAD-026 Each required artifact must have a string type and a string path.
LOAD-027 A required artifact cannot have type approval or test_report; approvals and test results come from required_approvals and required_checks.
LOAD-028 An evidence requirement with required artifacts must set expected_issuer.
LOAD-029 An evidence requirement with required artifacts must set max_age_seconds to a positive number.
LOAD-030 An evidence requirement with required artifacts must set schema_id.
LOAD-031 An evidence requirement’s schema_id must be a known evidence schema.
LOAD-032 An evidence requirement with required artifacts must set trusted_key_ref.
LOAD-033 A trusted check’s trusted_workflow must be <owner>/<repo>/.github/workflows/<file>.yml (or .yaml), with no @ref.
LOAD-034 A trusted check’s trusted_workflow_sha must be the full 40-character lowercase hex commit.
LOAD-035 A trusted check takes no app_id or workflow.
LOAD-036 Two always_required_checks entries cannot be the same check: the same name, App and workflow, or the same name and trusted workflow.
LOAD-037 A terraform_iam section must be an object with hold.cleared_by.
LOAD-038 terraform_iam.deny must be a list of the seven kinds: action_wildcard, resource_wildcard, admin_policy, trust_widened, not_proven, not_checked, unparsed.
LOAD-039 terraform_iam.hold.cleared_by must name a team “<org>/<team-slug>” with min_approvals of at least 1.
LOAD-040 terraform_iam.paths and terraform_iam.policy_file_paths must be lists of non-empty strings.
LOAD-041 terraform_iam takes only paths, policy_file_paths, hold and deny, and hold takes only cleared_by.
LOAD-042 provenance.artifact_path and every evidence required_artifacts path must name a .json file (in any case).
LOAD-043 A terraform_iam section must set policy_file_paths; [“**”], the whole repository, is the recommended setting.
LOAD-044 A github_settings section takes only long_lived_key_names: a list of 1 to 50 GitHub secret names (letters, digits and , not starting with a digit or GITHUB, at most 100 characters), with no name repeated, ignoring case.
LOAD-045 workflow_analysis and dependency_analysis must each be an object with only its own settings (workflow_analysis: hold, deny, pin_exempt_owners; dependency_analysis: hold, deny, paths, allowed_registries), and hold takes only cleared_by.
LOAD-046 workflow_analysis and dependency_analysis must each set a valid hold.cleared_by team rule.
LOAD-047 A workflow_analysis or dependency_analysis deny list may name only that section’s kinds.
LOAD-048 dependency_analysis.paths must be a list of non-empty strings, workflow_analysis.pin_exempt_owners a list of GitHub owner names, and dependency_analysis.allowed_registries a list of hostnames.
LOAD-049 agent_pull_requests takes only min_approvals (a whole number from 1 to 10), agent_authors and not_agents (each a list of 0 to 100 GitHub logins or positive account ids, none repeated, logins ignoring case).
LOAD-050 A policy with an approval rule needs approver_accounts: a list of 2 to 200 entries, each with only person (1 to 64 ASCII letters, digits, dots, underscores or hyphens, with single spaces between words; unique ignoring case), id (a positive account id; unique) and an optional login (a GitHub login, not a [bot]; unique ignoring case).
LOAD-051 A policy_repository section takes only min_approvals, a whole number from 1 to 10.

Built from Arbiter 0.1.3 at commit 05d1dcb.