All built-in Policies
Every constructor a configuration entry's use names, by area, each with a page of its defaults and options.
An entry { use, id, options, failMode?, timeoutMillis? } builds a Policy with the constructor use names. Each Policy's page gives the defaults that hold for an entry with no options (failMode and timeoutMillis override the fail mode and timeout), its options, and a configuration that writes every option with a comment above it.
| Policy | Area | On by default |
|---|---|---|
self-protection | Protection | yes, as self-protection |
hook-bypass | Protection | yes, as hook-bypass |
command-policy | Commands | no: an entry turns it on |
branch-name | Git and forge | no: an entry turns it on |
push-target | Git and forge | no: an entry turns it on |
stash-safety | Git and forge | no: an entry turns it on |
commit-subject | Git and forge | no: an entry turns it on |
merge-method | Git and forge | no: an entry turns it on |
readonly-agents | Git and forge | no: an entry turns it on |
branch-switch | Git and forge | no: an entry turns it on |
forge-guard | Git and forge | no: an entry turns it on |
protected-paths | Paths and new files | no: an entry turns it on |
generated-paths | Paths and new files | no: an entry turns it on |
allowed-paths | Paths and new files | no: an entry turns it on |
new-file | Paths and new files | no: an entry turns it on |
format-on-edit | Formatting | no: an entry turns it on |
stop-command | Stop checks and hand-off | no: an entry turns it on |
work-saved | Stop checks and hand-off | no: an entry turns it on |
pull-request | Stop checks and hand-off | no: an entry turns it on |
references | Stop checks and hand-off | no: an entry turns it on |
status-sync | Stop checks and hand-off | no: an entry turns it on |
tracker-fields | Stop checks and hand-off | no: an entry turns it on |
codegraph | Session start | no: an entry turns it on |
workspace-links | Session start | no: an entry turns it on |
worktree-health | Session start | no: an entry turns it on |
keep-awake | Keep awake | no: an entry turns it on |
toolchain | Toolchain and rules | no: an entry turns it on |
rules | Toolchain and rules | no: an entry turns it on |
external | External | no: an entry turns it on |
Protocol
The messages external Policies and adapters exchange with the kit, with an example of each field, generated from the JSON Schemas harness-kit protocol schema prints.
self-protection
The built-in Policy self-protection, against the agent switching its own guardrails off: its defaults, its options and a configuration that writes it.