A snapshot: read at commit 707a04c7ce8 on 2026-10-18T00:06:01Z by majordomus 0.29.0. Nothing on this page is read again. See it live
majordomus.enforcement-wiring@1
Enforcement wiring
What it is
- URI
majordomus://rule/majordomus.enforcement-wiring@1- Kind
rule- Identity
majordomus.enforcement-wiring@1- Path
.ai/repo/rules/vendor/majordomus/rules/enforcement-wiring.v1.md- Provenance
- declared
- Media type
text/markdown- As a capability
- rule.majordomus.enforcement-wiring@1
Front matter
{
"id": "majordomus.enforcement-wiring",
"version": 1,
"kind": "rule",
"title": "Enforcement wiring",
"description": "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.",
"statement": "Every enforcement the policy declares is invoked by the hook it names, from a file the dispatcher executes, without a swallowed exit code.",
"status": "active",
"class": "blocking",
"depends_on": [
"majordomus.define-done-first@1"
],
"tags": [
"wiring"
],
"x-majordomus": {
"validator": "wiring",
"category": "wiring",
"enforced_by": [
"doctor"
],
"exit_code": 10,
"claims": [
"wiring-reconciliation",
"dispatcher-wiring"
],
"tests": [
"test/cases/14_wiring_dispatcher.sh"
]
}
}Content
---
id: majordomus.enforcement-wiring
version: 1
kind: rule
title: Enforcement wiring
description: 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.
statement: Every enforcement the policy declares is invoked by the hook it names, from a file the dispatcher executes, without a swallowed exit code.
status: active
class: blocking
depends_on: [majordomus.define-done-first@1]
tags: [wiring]
x-majordomus:
validator: wiring
category: wiring
enforced_by: [doctor]
exit_code: 10
claims: [wiring-reconciliation, dispatcher-wiring]
tests: [test/cases/14_wiring_dispatcher.sh]
---
# Rationale
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.
# Required behaviour
Every enforcement the policy declares is invoked by the hook it names, from a file the dispatcher executes, without a swallowed exit code.
# Failure behaviour
A violation is a `FAIL` finding under the category `wiring`, 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_wiring` decides it, dispatched from `doctor`. The behavioural case `test/cases/14_wiring_dispatcher.sh` proves it, and CI runs that case.