Skip to content

Policy completeness

Policy completeness

majordomus://rule/majordomus.policy-completeness@1active policy

Rationale

Every policy value the code reads is declared in the skeleton policy, and no reader carries its own default for one.

Required behaviour

Every policy value the code reads is declared in the skeleton policy, and no reader carries a default of its own.

Failure behaviour

A violation is a FAIL finding under the category policy, and the command that found it exits 10. Under watch the same violation is reported as drift and the command exits 11.

Verification

mj_validate_policy_defaults decides it, dispatched from doctor, watch. The behavioural case test/cases/28_no_hardcoded_values.sh proves it, and CI runs that case.

Where this comes from

canonical file
.ai/repo/rules/vendor/majordomus/rules/policy-completeness.v1.md
identity
majordomus.policy-completeness@1
also served as
MCP resource majordomus://rule/majordomus.policy-completeness@1 · majordomus entity show rule/majordomus-policy-completeness-1 · GET /api/v1/entity?uri=majordomus://rule/majordomus.policy-completeness@1
in the Cockpit
/cockpit/objects/rule/majordomus-policy-completeness-1

This page is generated from the file above by scripts/generate-site-data; editing the page changes nothing, editing the file changes every surface. The relations above are edges of docs/generated/graph.json, which the executable writes from the same index.

Searches the titles and descriptions of every page this site publishes.