Skip to content
Toolkit

ADR-0089 — A control is unenforced until a named serving path reads it

Status: Accepted · Date: 2026-08-29 · Track: 007-enforcement, phase 00 · Follows ADR-0072, ADR-0075, ADR-0083.

The finding

Five controls in this tree are authored, stored, and — for four of them — billed, and then ignored by the code that serves the request: links.display_rules has a working matcher whose only caller filters blocks; settings.password is a bcrypt digest nothing compares against; splash_page falls through to a 302; pixels_ids is read by nothing that serves; is_verified is set without a lookup.

Every one of them is an absence — no call, no branch, no lookup. An absence does not appear in a diff review, which is how all five survived to an assessment rather than to a build failure. Track 004 met the same shape one layer in (feature_flags, and twenty-five boolean plan keys the server read none of) and closed it the same way: not by finding the defect, but by making the tree state a claim the build can falsify.

The trap phase 00 must avoid is the one 004 named: a scoreboard minted after the work measures nothing. A point that gets its row and its reader in one commit is unfalsifiable — the row is written by whoever believes it is true.

The decision

An enforcement point is unenforced until a named serving path reads it, and the row saying otherwise names the reader and the identifiers it must mention.

  1. scripts/enforcement-ledger.json holds one row per control: what authors it, where it is stored, the serving path that must read it, the capability that bills it, and enforced, which starts false on every row — the capability registry's default deny, one layer out.
  2. A row flips in the commit that adds the reader, never in the commit that adds the row, and a flip carries reader: { file, anchors }. The anchors are plain substrings the reader file must contain, so deleting the enforcement fails check:enforcement in the commit that deletes it, even when every test still passes because no test covered it.
  3. The count is committed beside the rows and recomputed by the gate, so the scoreboard is a fact in the tree rather than a sentence in a status file.
  4. Every registered capability is classified exactly once: served, and then owed by at least one row, or writePathOnly with the reason that makes it true. A newly minted capability fails the build until someone answers which — which is the question this track exists to ask, asked automatically.

The ledger references the capability vocabulary and never declares one (ADR-0030): a row naming a key packages/capabilities/capabilities.json does not define is a failure, not a new definition.

Why anchors and not tests

A test proves behaviour on the input it was given. This gate proves the reader exists at all, which is the property that was missing five times over. The phase's own bar stays the live E2E asserting a database read; the ledger is the floor under it, and the floor is what survives a refactor that quietly drops a call.

The cost is honest: an anchor is a string, and a rename that keeps the behaviour will fail the gate until the row is updated. That is the intended trade — the failure is loud, local, and fixed by editing one line in a file whose entire purpose is to be read.

Consequences

  • Phases 01–04 each land two things: the reader, and the row flip with its anchors. Neither counts alone.
  • check:enforcement joins npm run verify. Baseline at this commit: 0 of 8 enforced — 3 rows for phase 01, 3 for phase 02, 1 for 03, 1 for 04 — watched failing on four deliberately broken inputs (evidence .station/jobs/007-enforcement/evidence/phase-00-gate-watched-failing-2026-08-29.md).
  • A control sold but not served can now only ship past a reviewer who edited the ledger to say it was fine.

Source: docs/decisions/0089-a-control-is-unenforced-until-a-named-serving-path-reads-it.md

Library