Close standards-corpus coverage gaps in one batched release
- MUST treat a member declared by one standard and absent from the standard that has to cover it as a gap in the corpus, not as a defect in the consumer that hit it.
- MUST define, for every pair of independently versioned standards that must stay in step, a machine-checkable coverage invariant: each member of the declaring standard resolves to an entry in the covering standard, or to a recorded exception.
- MUST run that invariant at a gate on every change to either standard, so neither side can ship a member the other lacks.
- MUST separate a completeness constraint from a compatibility constraint. Completeness says every member is covered and a missing row is a failure; compatibility or evidence says each row carries its proof and a missing row is a deliberate, recorded negative. The two MUST NOT share a table, file or schema that can express only one of them.
- MUST record every gap in a ledger — member, declaring standard, covering standard, where it was found — and MUST check the ledger before opening a new gap for the same member. The ledger MUST live as data in the repository that owns the declaring standard, at a path the rule 3 gate reads: the gate fails on a gap the invariant finds that has no ledger row, and on a ledger row for a gap the invariant no longer finds, so the row is closed rather than left stale. A consumer that finds a gap reports it to that repository (an issue or a pull request adding the row); a ledger kept in a consumer’s repository, a wiki or a spreadsheet does not satisfy this rule, because no gate reads it.
- MUST express an exception as explicit data naming the member, the reason and an owner, never as a silent omission.
Shipping the gaps once they are found is a release concern; see BP-0072.
When to apply
Section titled “When to apply”Any corpus of normative standards or reference data consumed outside its own repository, where two parts version independently: a device-class registry and its user-facing reference, a protocol field list and its client library, a schema and its code bindings, a taxonomy and the documentation written from it.
Procedure
Section titled “Procedure”- List the standards that must stay in step, and confirm which versions independently of which.
- Write the invariant as data or code: members from the declaring standard, entries from the covering standard, exceptions from the exception list. Its failures are the gap list.
- Record each gap in the ledger in the declaring standard’s repository, at the path the gate reads. Do not fix the first gap found before the invariant has named the rest.
- Run the invariant at the gate, reading the ledger; close the ledger rows it clears.
Examples
Section titled “Examples”A test-bench SDK ships two independently versioned standards: a device standard that declares 12 device classes, and a UI class reference that covers 8. Four classes — an embedded controller, a spectrum analyser, a switch matrix and a VNA — have no UI reference at all. Nothing forced the two standards to stay in step, so a plugin author discovered the silence at the point of use.
With the invariant in rule 2, the gate names all four on its first run. What it then costs to ship them is BP-0072.
The same corpus also carries a compatibility table whose own note asks for a citation per row and describes missing rows as deliberate honest negatives. That table cannot report coverage holes: a missing row there means “no evidence needed”, not “not covered”. The coverage invariant belongs in its own place, for that reason.
Anti-patterns
Section titled “Anti-patterns”- Reusing a “missing rows are deliberate” note to explain a coverage hole.
- A consumer silently skipping the members the reference does not cover.
- Coverage tracked in a document no gate reads.
- A gap ledger kept in the consumer’s repository, worktree or wiki, where the declaring standard’s gate cannot see it.
- A member with no counterpart vanishing from the count instead of appearing as an exception.
Checklist
Section titled “Checklist”- Every pair of standards that must stay in step has a coverage invariant
- The invariant runs at a gate and fails on a member either side lacks
- Completeness and compatibility constraints live in separate tables
- Each gap has a ledger row in the declaring standard’s repository, read by the gate
- Exceptions are explicit, with a reason and an owner
References
Section titled “References”- W3C SKOS Reference — mapping and correspondences between concept schemes
- Semantic Versioning 2.0.0 — independently versioned artefacts and dependency pinning
- Architectural fitness function — an automated check that fails when a required structural property breaks
- Design by Contract — Bertrand Meyer — invariants as checkable assertions