Enforcement wiring
Every enforcement the policy declares is invoked by the hook it names, from a file the dispatcher will actually execute, without swallowing the exit code.
blockingA violation stops the command with exit 10.
The chain
A rule is enforced only when every link below holds. majordomus doctor resolves each one from the source on every run; this page shows what it resolved.
- 1 Declared majordomus.enforcement-wiring
- 2 Validator mj_validate_wiring
- 3 Runs under doctor
- 4 On violation exit 10
- 5 Proved by test/cases/14_wiring_dispatcher.sh
- 6 Run by CI .github/workflows/validate.yml
Where it runs
What it lets us promise
- guaranteedEvery enforcement the policy declares is reconciled against what actually runs
- guaranteedWiring is found in a hook or in any subhook of the directory that hook dispatches to
Read it here
majordomus doctrine show majordomus.enforcement-wiring
majordomus check --rule majordomus.enforcement-wiring