Skip to Content
harness-kit

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.

PolicyAreaOn by default
self-protectionProtectionyes, as self-protection
hook-bypassProtectionyes, as hook-bypass
command-policyCommandsno: an entry turns it on
branch-nameGit and forgeno: an entry turns it on
push-targetGit and forgeno: an entry turns it on
stash-safetyGit and forgeno: an entry turns it on
commit-subjectGit and forgeno: an entry turns it on
merge-methodGit and forgeno: an entry turns it on
readonly-agentsGit and forgeno: an entry turns it on
branch-switchGit and forgeno: an entry turns it on
forge-guardGit and forgeno: an entry turns it on
protected-pathsPaths and new filesno: an entry turns it on
generated-pathsPaths and new filesno: an entry turns it on
allowed-pathsPaths and new filesno: an entry turns it on
new-filePaths and new filesno: an entry turns it on
format-on-editFormattingno: an entry turns it on
stop-commandStop checks and hand-offno: an entry turns it on
work-savedStop checks and hand-offno: an entry turns it on
pull-requestStop checks and hand-offno: an entry turns it on
referencesStop checks and hand-offno: an entry turns it on
status-syncStop checks and hand-offno: an entry turns it on
tracker-fieldsStop checks and hand-offno: an entry turns it on
codegraphSession startno: an entry turns it on
workspace-linksSession startno: an entry turns it on
worktree-healthSession startno: an entry turns it on
keep-awakeKeep awakeno: an entry turns it on
toolchainToolchain and rulesno: an entry turns it on
rulesToolchain and rulesno: an entry turns it on
externalExternalno: an entry turns it on