The repo policy
A policy is a JSON file that server/admin.ts set-policy stores and attaches to a repo. The server parses it with the schema in shared/policy.ts before anything reads it, and refuses a file that does not match. The Agents repo’s own policy, ops/policies/agents.json, is a complete example.
Limits no policy can loosen
Section titled “Limits no policy can loosen”A policy may add checks and tighten these. It may not loosen them.
maxChangedLinesmay not exceed 1,200.verdict.codemay not be weaker thanunit-test-verified,verdict.docsthantype-check-only, andverdict.uithanlive-ui-verified.
The static gates, the seen-failing check, review, the verdict, the suite and the owner’s merge are not settings, so no policy can drop them.
Fields
Section titled “Fields”sandboxisboxorany. Withbox, coding agents for the repo run only in a box.maxRunMinutescaps the minutes a run spends working. Waiting on a person does not count.maxSpendUsdcaps a run’s spend. It lowers a pipeline’s own cap and never raises it.protectedPathslists the globs whose changes stop at the owner’s gate. It needs at least one entry.maxChangedLinesis the size limit of one change. Lines inlockfilesandplansdo not count.lockfileslists the globs of lockfiles.sourceDirslists the globs where a new source file needs an entry in the parts document.allowedFileslists the globs of files that may be in a language other than TypeScript.appendOnlylists files that every change adds to at the same spot. When two changes conflict in one, the runner joins both sides’ lines. It defaults to none.planslists the globs of plan files, which the size gate skips. It defaults to none.docsnamesdataModel, the document a migration must change,parts, the document that lists the source files,buildLog, andmigrations, the folder of migrations.buildLogis a file every change adds to, or{ "folder": "<path>" }for a folder where each change adds a file of its own.checkssetspattern, the glob of check files,related, the files the checks rely on,boxMarker, the line that marks a check a box can run,argv, the command that runs one with{file}for its path, andtimeoutSec.boxsetsoverlay, the files the box takes from main, andcommands, what the box runs on the change. Each command has anamein lowercase letters, digits and dashes, anargvlist, and atimeoutSec. It is never a shell string.suitesetscommands, in the same form, which the check host runs on the change merged into main, andevidence, the path in the checkout whereagentsctlwritesevidence.json.uiisnullfor a repo with no UI rule. Otherwise it setspaths, the globs of UI files,engines, fromchromium,firefoxandwebkit,widths, fromdesktopandphone, andkits, files that drive every engine and width and the function a check calls to use them.lint.csssetsfiles,tokens, the stylesheet whose:rootdefines the design tokens, andneutral, the tokens that are neutral. Every other token counts as an accent.lint.prosesetsbanned, the banned words,properNouns, the capitalized words a heading may keep, andexempt, the globs the prose gate skips.dependencies.manifestslists the files that declare dependencies.reviewsetsreviewers, how many reviewers on distinct models,rounds, how many rounds before the owner decides, andrubric, the document whose bold rule names a finding must cite.verdictsets the weakest passing verdict forcode,docsanduichanges.livenesssetsminutes, how long an agent may go without a tool call or a finished turn, andreplacements, how many fresh sessions replace it in one stage before a person decides.capssetsrepoDailyUsd,outsiderDailyUsd,runsPerHourandconcurrent.playbookslists the playbooks the router may pick, fromchange,bug,docsanddependency. It needs at least one.principleslists{ name, text }pairs that every coding agent on the repo reads with its instructions.verificationnamesskillandfeatures, the verification skill and the feature map a verifier uses, or isnull.
Verdicts
Section titled “Verdicts”A verdict comes from an agent that did not write the change. From strongest to weakest:
live-ui-verifiedmeans the verifier drove the changed view and saw it work.unit-test-verifiedmeans the change’s checks ran and passed.type-check-onlymeans only the typecheck applies.verifier-blockedmeans the proof could not run. The runner records it as a failed gate and asks the owner to accept it, send the change back or stop.verifier-failedmeans an item of the plan does not hold.
The first three pass. A change’s floor is the policy’s verdict.ui when it touches a UI path, verdict.docs when it changes only Markdown, and verdict.code otherwise.