pub struct Features {
pub git_hooks: bool,
}Expand description
[features] — repo-level switches for whole enforcement planes,
committed in the manifest so every surface (init, doctor, the
pre-commit floor, CI) reads one truth. The manifest is a protected
path, so the switch is human-owned by construction. Absent table =
every feature enabled: only a positively parsed false turns a
plane off, mirroring the N13 principle (act on positive probes,
never on ambiguity).
Fields§
§git_hooks: boolThe git-plane floor as one switch: the lefthook pre-commit
block, the native .git/hooks shim, and the staged check they
both run. false = init refuses to install either surface,
doctor stops checking them, and check --staged passes with a
stderr notice. Deliberately NOT covered: agent-side write gating
(hook, stdin check) — the flag turns off commit protection,
never write-time contract enforcement.