ShtukbaseStandard
NS-R07/norms/rules/norms-core/NS-R07.md

A norm must have an enforcer

MUSTblockscheckactive
Every rule has enforcers (paths to the enforcers) filled or, while there is no enforcer, plannedEnforcer; a rule with mode: enforce has a non-empty enforcers field and every path in it exists in the project.
Why: A norm without an enforcer lives only in the agent memory. A "blocks" without an enforcer in the project is a record that stops nothing.
Page fields (16)
ruleIdNS-R07
requirementEvery rule has enforcers (paths to the enforcers) filled or, while there is no enforcer, plannedEnforcer; a rule with mode: enforce has a non-empty enforcers field and every path in it exists in the project.
levelMUST
floorfalse
statusactive
spherenorms
appliesTo/norms/rules
enforcers.shtukbase/packages/norms-core/checks/enforcers.ts
enforcerKindgate
modeenforce
followsFromNS-P03
becauseA norm without an enforcer lives only in the agent memory. A "blocks" without an enforcer in the project is a record that stops nothing.
baseline0
reviewBy2027-05-28
packnorms-core
railYou add a rule: name the enforcer (enforcers or plannedEnforcer). mode: enforce only with an enforcer that exists in the project.

An enforcer is whatever watches a norm without the agent's memory. An enforcer comes in different kinds: a check (an action with check: true), a sensor, a hook, a judge. A check is only one of the kinds.

A norm must have an enforcer. The path to it from the project root is written in enforcers. While there is no enforcer, plannedEnforcer says what it will be. By NS-R02 such a rule works as a SHOULD. A rule in the "blocks" mode (mode: enforce) without an enforcer in the project is a violation: it promises to stop work, but there is nothing to stop it with.

Holes: no enforcer is named; mode: enforce with an empty enforcers; a path from enforcers is not found in the project. Rejected rules are not checked.

How to fix. Add the enforcer's path to enforcers or a description to plannedEnforcer. If there is no enforcer, move the rule to mode: observe.

Run. From the project root, the package action: bun .shtukbase/packages/norms-core/checks/enforcers.ts. A violation is one line per record and exit code 1; no violations, code 0.

The enforcer of this norm is the enforcers check of the norms-core package. The rule was added when the package was assembled on 28.11.2026, from the table "What the Basic packages lack" (the check "a rule has an enforcer"); the old package std-norm-system did not have it.

An enforcer may live outside the project, in the tool itself: then the path is written with the prefix shtuk: (for example, shtuk:apps/shtuk/src/resolve.ts). The check does not look for such a path in the project and counts it as present. This is how the norms of the core package are written.

The package Norms puts this page at /norms/rules/norms-core/NS-R07.md.Source text