What the runner checks on a change
On a repo with a policy, the runner judges a change itself and records what it saw as evidence. It sets one status on the pull request’s head commit for each group of gates, and branch protection on the forge requires all four.
agents/gatescovers the static gates, the box’s commands and the seen-failing check.agents/reviewcovers the reviewers.agents/verdictcovers the verifier.agents/suitecovers the full suite.
A gate ends as pass, fail or needs the owner. A fail sends the change back to the agent with the findings. Needs the owner passes only once the repo’s owner approves it at the protected gate. Run a change through a repo policy shows where these sit in a run.
Static gates
Section titled “Static gates”The verify stage pushes the task branch, then reads the diff from the branch’s merge base with main, with the policy that set-policy stored and main’s copies of the lint and compiler config. These gates run in this order.
pushesfails and stops the run if the run’s machine tried to push to any branch but the task branch.protectedneeds the owner when the change touches a path inprotectedPaths.check_editsneeds the owner when an existing check, or a file the checks rely on, changed. A change to checks alone must also say why in the build log.planfails when code was written without a plan a person approved, when a Done means item names no check, or names a check the change does not add or edit, when a Keep item names no feature in the feature map, or when the plan breaks the prose rules.playbookfails when a file falls outside the picked playbook. Adocschange may touch Markdown only. Adependencychange may touch manifests, lockfiles and the build log only.opaquefails when a file is hidden from the gates, such as a binary that is not an image, or a file too large to read.sizefails when the change is overmaxChangedLines. Lockfiles and plans do not count.migrationsfails when a migration already on main is edited, when a new migration comes without a change to the data model document, or when it sorts before the latest migration on main.docsfails when a new source file has no entry in the parts document, or the change adds nothing to the build log.secretsfails when a.envfile is in the diff, or an added line matches a secret pattern.dependenciesfails when a dependency version is not exact, or the build log does not say why it changed. A dependency change that passes needs the owner.suppressionsfails on a new lint or type suppression, a skipped oronlytest, and on assertions removed from a check when product code changed in the same change.languagesfails on a new file in a language other than TypeScript, outsideallowedFiles.assertions,shellandwarningsfail on a new type assertion other thanas const, a newexecorshell: true, and a newTODO,FIXMEorXXX. They read added lines only.cssfails when an added color is not a design token, or an accent touches a border, outline, shadow or stroke, or a gradient is added.prosefails on an em dash, a banned word or a title-case heading in added lines.uifails when the change touches a UI path and no Playwright check covers every engine and width the policy names. A check counts when it calls a kit the policy lists, and main’s copy of the kit covers them all.
The box’s commands and seen failing
Section titled “The box’s commands and seen failing”After the static gates pass, the box runs the policy’s box.commands on the change. It runs them with the files in box.overlay taken from main, so a change cannot loosen the lint or compiler config it is judged by. The runner checks that the box ran exactly the commands it was asked to run, in order, and treats any other result as no evidence.
Every changed check that carries the policy’s boxMarker runs twice. On main’s code it must fail, and on the change it must pass. A check that cannot load on main counts as failing there.
Review
Section titled “Review”The reviewers and the verifier run on the author’s machine, so a process holding that machine’s token could post their reports. Their passes are advice, and the owner’s approval of the merge is the check a person makes.
Each reviewer is an agent on a model other than the author’s and other than the other reviewers’. It reads the diff in a session of its own, without the author’s session or any team-record tools. It reports clean or blocking, with findings that each name the rule they break from the policy’s rubric.
A blocking finding sends the change back to the author, up to the policy’s rounds. The owner decides instead when the reviewers still block at the last round. The owner also decides on any finding about security, auth, billing, data, migrations or concurrency, whatever the author makes of it. A finding the owner overruled stays overruled for the rest of the run.
Verdict
Section titled “Verdict”A fresh agent that did not write the change checks the plan’s Done means and Keep items with the repo’s verification skill and feature map, both as main has them. It reports a verdict from the ladder in The repo policy. The runner reads the commands the verifier ran from the record. A passing verdict from a verifier that ran nothing is recorded as verifier-blocked.
The confirm stage never records live-ui-verified. A verifier that claims it is recorded as verifier-blocked. A change that touches a UI path therefore needs the owner to accept a weaker verdict.
A verdict at or above the floor passes. verifier-failed sends the change back. A verdict below the floor asks the owner to accept it, send the change back, or stop. An accepted verdict is recorded with the owner’s name.
After the owner approves running it, the check host runs the policy’s suite.commands on the change merged into the current main. The run waits at the approve_suite gate first, because the suite runs the change’s code. The result is passes or fails.
The merge_change action merges only when every one of these holds.
- No gate on the head commit failed, and the owner approved each that needed them.
- The static gates and the box’s commands judged this exact commit.
- A review stage passed this commit. A pipeline with no review stage cannot merge.
- A verdict meets the floor, or the owner accepted a weaker one.
- The suite passed on this commit, and the owner approved the merge after it passed.
- The pull request’s head is the commit the gates judged.
- The change merges into main without a conflict.
If main moved since the suite ran, the outcome is stale and the pipeline runs the suite again. The runner then records on the pull request what it checked, approves as the owner’s forge user, and merges at the judged commit.