Policy Authoring
Activate when the user asks to codify scan thresholds or team-wide rule overrides.
See merge order for precedence and digest.
Steps
- Start from
ackit.yml; add a policy layer withschemaVersion: 1andextends(local repo-relative files ornpm:<pkg>/<file>for already-installed packages only — resolution is offline by construction, remote fetch is refused withPOL-OFFLINE-BLOCKED). - Scope overrides with
org/repo/pathScopes; lock security-relevant rules withlocked: trueso downstream layers cannot weaken them (POL-LOCKED-CONFLICT; deny is sticky across layers). Suppressions requirereasonand supportexpiresAt. - Verify with
ackit policy check(chain plus digest plus autonomy plus review plus problems) andackit config check(schema validation). Risk tiers (tier0 allowthroughtier4 deny) enforce ONLY at ACKit-owned boundaries (task complete --force,checkpoint export,verification record): explicitdenyrefuses withPOLICY-TIER-DENIED(exit 4); explicitaskin a non-interactive context denies. Optionalreview:(requireddimensions plusblockingSeverity) gatesPASS-family verdicts viaVERDICT_BLOCKING.
Notes
- Remote URL auto-fetch is forbidden; dependencies must be pre-installed.
- Deterministic merge: defaults <
ackit.yml< policy extends chain (declaration order) < CLI flags; arrays replace, objects merge; digest is sha256 over sorted-key JSON. - Repositories without
autonomy:/review:see zero behavior change.