R290 Rest a rule only on mechanisms that already run

On by default

Make what a rule requires, and the condition under which it applies, rest only on checks, counts, records and other mechanisms that already run, never on one that is still to be built.

Reason

A requirement that rests on a mechanism nothing runs can be neither met nor decided: no agent can tell whether its work complies, and no reviewer can tell either (Art. VII §5). Where the mechanism is worth having, build it first and write the rule that rests on it after; otherwise leave the condition out.

Verification

A rule rests on a mechanism when what it requires, or the condition under which it applies, needs that mechanism to be met or decided: a check or a script it says to run, a count, a record or a format it measures by or has agents fill in, a switch or a setting it relies on. For example, a rule that lets a trial rule become active after a number of uses rests on a record of uses; where nothing marks a use as one, that record does not run.

An act the rule asks agents to do themselves rests on no mechanism when what the act works on is there to be read when it is done, as the processes left after a cleanup are; when it works on a history or a record that nothing keeps, or on a format that nothing reads, it rests on that. Building a mechanism is not resting on it when building it is the whole requirement, as in a rule that has commit hooks scan for credentials; a rule that has agents fill in a format that nothing reads, or feed a gate that nothing runs, rests on that format or gate. A condition that asks only whether a mechanism exists, as in “where the repository has a screenshot script”, rests on none.

A mechanism runs when, as the change takes effect, an agent can run it or read what it keeps: a command that is installed, a CI job that runs, a record that something writes. Where it must run depends on which source the rule belongs to. For a rule of a repository’s own source, it must run in that repository. For a rule of a public source, it must be one that source ships itself, such as a check built into its tool, or, for a rule under a tool’s domain (rule 102), one of that tool. A value the rule leaves to the layers below as a parameter (rule 101) is the jurisdiction’s to provide and is not a mechanism of the rule.

Violated when a change adds or rewrites a rule so that what it requires, or the condition under which it applies, rests on a mechanism that does not run, where this verification says it must, as the change takes effect.

Provisions of the constitution it cites

Relations

Parent
R96 Writing Rules
Requires
none
Conflicts with
none

Metadata

ID
290
Revision
2
Kind
rule
Status
trial
Slug
rest-on-running-mechanisms
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh