§0statement
← All patterns

Enforced by

A decisionA written choice of the team, with an id, a reason and the check that enforces it. On this site, a row of the register. counts when something checks it. An unchecked rule is a known gap, not coverage.

§1why

Why it works

An agentAn AI program that writes and changes code, for example Claude Code or Cursor. On this site, "agent" means a coding agent. reads every rule with the same weight. A rule with a check behind it fails the build when the agent breaks it; a rule without one fails silently. The column makes the difference visible, so the gaps become a backlog instead of a surprise.

§2example

Copy this

markdown
| Id | Rule | Why | Rejected | Enforced by |
|---|---|---|---|---|
| D-07 | Components read tokens only | Brand is a parameter | Per-brand variants | lint: no-raw-values |
| D-08 | Dialogs use ConfirmDestructive | One audited dialog | Ad hoc dialogs | test: dialog-usage |
| D-09 | Status is not hue alone | Some readers miss hue | Red/green by hue | not enforced (gap) |
js
// check:decisions: fail the build on an empty "Enforced by" cell
for (const d of register) {
  if (!d.enforcedBy?.trim()) throw new Error(`${d.id}: Enforced by is empty`);
}
§3breaks

Where it breaks

A check can be named and still be weak. "Enforced byThe field of a decision that names the check that proves it, or says "not enforced (gap)".: code review" passes the script and checks little. Name a mechanism a machine runs.

§4cases

Used in: Case 5, Case 6. This site's own register: Decisions.