Policy as a test: turn project decisions into CI checks
A decision written into a brief holds only while someone remembers it. I turn the exact parts of a project decision, such as retired words, routes and counts, into checks that fail the build, and leave the rest to a reviewer.

Policy as a test means writing a project decision as an automated check that fails the build when someone breaks it. The check runs on every change and, written well, names the decision it protects and says what to do instead. It enforces patterns, so it suits exact strings, files and counts better than intent or tone.
Written decisions decay
Every project accumulates decisions that are not code: what this thing is, what it will not claim, which words are off-limits, which routes no longer exist. They get written into a brief or a context file, and for a while that is enough.
Then the work goes on. More sessions start, context windows roll over, and new people and agents arrive with the brief but without the argument behind it. A rule in prose only ever drifts one way, towards being forgotten by whoever is editing at the time.
Give the decision a failure mode
Written as an assertion that turns a violation into a red build, a rule stops depending on memory.
The translation is usually mechanical. “We no longer describe ourselves that way” becomes: this vocabulary must not appear in published output. “That section was retired” becomes: no route may link to it and no feed may list it. The judgement goes into choosing the strings, and the check that enforces them is kept plain on purpose.
Agents make this necessary
One person can hold a direction in their head for months, but dozens of independent sessions have no shared memory to hold it in. Each session starts fresh, reads what it is given and acts confidently on it. That includes putting back something that was removed on purpose before the session began.
An automated check is the only instruction that reaches every session without being re-read. It also still applies to a session that never loaded the brief.
Know what the check cannot see
This method has a sharp edge. A gate enforces patterns, and a decision is usually broader than any pattern you can write. A check that forbids a list of words will pass content that says the same thing in other words, and a passing gate looks like approval.
I have seen this happen. A guard built to keep one category of language out of published pages passed pages that carried the same meaning without the banned vocabulary. The gate worked as written. It was narrower than the rule it represented, and its green result stood in for a judgement nobody had made.
| Rule type | Enforceable? | Where it lives |
|---|---|---|
| Exact strings, routes, files | Yes | An automated gate. |
| Structural facts and counts | Yes | An automated gate. |
| Intent, tone, framing | Partly | A gate for the obvious cases; a reviewer for the rest. |
Write the gate as documentation
The check will be read by someone who does not know the history, at the moment it has just blocked them. Make it explain itself by naming the decision, stating what is forbidden and saying what to do instead.
ASSERT the retired vocabulary is absent from published output
BECAUSE the project stopped making that kind of claim
INSTEAD describe the work in the current terms
NOTE this gate matches strings, not intent — a clean pass
is not a judgement that the meaning is acceptable
Of the four lines, I put the most weight on NOTE. It tells whoever sees a clean pass that the gate matched strings and made no judgement about meaning.
Pair the gate with a judgement
The setup has two layers. An automated check makes the mechanical mistakes impossible. A written expectation says that a person, or an adversarial reviewer, still reads for the cases the check cannot express. Neither layer replaces the other.
Write down which rules the check enforces and which are left to a reviewer, because this method fails once people believe the gate covers more than it does. More on checking outcomes: when “success” is still broken.
Use this
← Previous: Quiet monitor pattern: alert only on meaningful change
Want this inside your team’s workflow? The Verified AI Operations Sprint tests one workflow in ten working days. See the sprint →
