Repository navigation
v1.4.0 — two stages, and the audit protocol mechanized
The set is written in two stages
new writes the registry and doc 01 — the decision surface. implement writes docs 02 and 03 — the build — once the plan is confirmed.
Measured across four real sets, docs 02+03 are 71%, 76%, 79% and 83% of the prose, and they are the only part invalidated wholesale when the plan moves: doc 01 gets edited, doc 02 gets rewritten. A plan gets bounced two to four times before anyone commits to it. Deferring them removes that repeated cost and keeps ~75% of the set out of existence during the window where decisions still change — which is the window where prose goes stale. One cancelled decision left 14 stale promises across a set already written out in full, including a step telling an operator to create a monitor that had been cancelled.
implement refuses to run — refuses, not warns — until review is dispositioned in _log.md, the user has confirmed (the draft → reviewed flip is the record), and every changes[] entry carries a kind:. new --with-build is the escape hatch for a decision already made.
scripts/audit.py
The protocol's 17 checks were good. The problem was that an agent runs the checks it remembers, and in a long session it remembers a few. A rough version of this script, run against three sets that had each already passed a "clean" hand audit against the same protocol, found 12, 11 and 7 findings — broken anchors, a corrupted top-level key, orphan ids. None subtle.
Twelve new checks (18-29), each from a failure that happened: anchors that resolve · registry shape vs template · declared paths exist · registry ids ↔ prose, both directions · phase numbering · changes[] lifecycle · evidence.cmd runnable verbatim · declared dependencies · acceptance state · dead-dependency cascade · tracking vs reality · provider behavior observed rather than described.
On the real sets it caught the case that had never been detected: status: shipped with a root_cause and a contributing defect still on basis: asserted.
It never executes evidence.cmd. A registry is a data file that travels between repos and agents; running commands out of one because it claims they are safe is what an auditor must not do. That check is listed under REQUIRES A HUMAN PASS, with the ones needing judgment, so a skipped check is visible rather than silent.
Registry vocabulary
changes[].kind (planned/deferred/moved_out/pending) and .where · acceptance[].status with verified_on: · defects[].outcome/owned_by/note_ownership · decisions: as a real top-level key, with cited_in: · evidence.how: provider-behavior, whose value must be an observed HTTP response rather than a description of the config.
Tests
python3 tests/test_audit.py — 40 assertions, 17 fixtures. Each fixture reproduces the real failure its check exists for and declares the false positives that must stay unreported.
Backward compatible
A docs[] entry with no stage: reads as draft; an acceptance[] item that is a plain string reads as status: written. Sets written before this audit exactly as they did.