---
title: "Enforced by"
url: /patterns/enforced-by
description: "A decision counts when something checks it. An unchecked rule is a known gap, not coverage."
---

## §0 · statement

# Enforced by

A decision counts when something checks it. An unchecked rule is a known gap, not coverage.

## §1 · why

### Why it works

An 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.

## §2 · example

### 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`);
}
```

## §3 · breaks

### Where it breaks

A check can be named and still be weak. "Enforced by: code review" passes the script and checks little. Name a mechanism a machine runs.

## §4 · cases

Used in: [Case 5](/cases/agent-first-foundation), [Case 6](/cases/governance-for-two). This site's own register: [Decisions](/decisions).
