Rules
One checkable phrase at level MUST, SHOULD or MAY. A rule has an enforcer; a rule without an enforcer is a wish.
A rule is one checkable phrase: "sending anything outside to third parties only after the owner's yes". The title is short; the phrase itself goes in the "What must hold" field (requirement).
This is the native Shtukbase type Rule: the node reads requirement, status, sphere, appliesTo and enforcers, and computes by itself whether the rule holds (rule.hold). Packages add to it a number, a level, a floor mark, the enforcer's kind and mode, and a line for the agent.
- Level (
level): MUST is mandatory; SHOULD can be departed from with a written decision; MAY is permitted. - Law and safety (
floor): such a rule cannot be weakened by a waiver or by a project decision. - Enforcers (
enforcers): links to whatever watches the rule. An enforcer comes in different kinds: a check (an action withcheck: true), a sensor, a hook, a judge; there are also an automation, a skill and an instruction. Only a link, not text. While there is no enforcer,plannedEnforcersays what it will be.enforcerKindsays which kind of enforcer it is. - Mode (
mode): a new enforcer first watches (observe), then warns (warn), then blocks (enforce). - Known violations (
baseline): what is already violated and tolerated for now; this number only goes down.
A MUST with no enforcer, at the steps "structure, rights, gates, tests, judge, audit", is really a SHOULD: package norms-audit will show it. "Holds" is not a state that is set by hand: the node computes it from the enforcers.
Contour: candidate → active → paused; rejected on the side. Making a rule active or pausing it is the owner's decision.
A project's own norm that refines or replaces a package norm names it in the "Overrides" field (overrides): a number, for example AUT-R01. It can only be overridden with a stricter norm. If the own norm is weaker than a norm marked "Law and safety" (a lower level, or paused), package norms-audit will show it as a floor violation.
/norms/rules.md.Source text