Commit d7ce814
authored
ci(governance): R5 — hard gate against doc canonical-reference drift (#171)
## Summary
Encodes the defer-to-canonical convention introduced by #169 / #170 as a
hard CI gate so the cleanup doesn't quietly come undone.
Two sub-checks against a fixed list of **14 load-bearing top-level
docs** (README.{md,adoc}, EXPLAINME.adoc, CLAUDE.md,
CONTRIBUTING.{md,adoc}, QUICKSTART-*.adoc, RSR_COMPLIANCE.adoc,
SECURITY.md, MAINTAINERS.adoc, AUTHORS.md, CODE_OF_CONDUCT.md):
- **R5a — bare prover counts outside `docs/PROVER_COUNT.md`**. Matches
the alternation set the #169/#170 cleanup had to chase across five
mutually-disagreeing surfaces (`<N> prover backends?`, `<N>-prover
core`, `<N> ProverKind variants?`, `<N>/<M> (backends?|provers?)`, …).
Each alternation is anchored with `(^|[[:space:]])` so neighbours like
`Tier-1`, `v1.2.3`, `port 8081` don't false-positive.
- **R5b — pinned version strings outside `CHANGELOG.md` /
`Cargo.toml`**. Matches `Version: 1.2.3`, `**Version**: 1.2.3`,
`_Version_= v1.2.3` — the shape that drifted across three files before
#170. Anchored at line start so generic `version =` inside code blocks
doesn't trigger.
## Side fix included
`README.adoc:256` still carried `provers/ # 102 prover backend
implementation files (ProverBackend trait)` in the architecture-tree
diagram — missed by #169 because its sweep was prose-only. Replaced with
a pointer to `docs/PROVER_COUNT.md`, matching the rest of the
convention.
## Self-tested
- **Negative test** (synthetic drift `"128 prover backends and Tier-1
prover backends", "Version: 1.5.0", "144 ProverKind variants", "9/12
provers"`): all four drift shapes correctly trigger R5a/R5b; `Tier-1
prover backends` / `v1.2.3` / `port 8081` do **not** false-positive.
- **Positive test** (current main + this PR's README.adoc:256 fix): **0
hits** across all 14 docs on both R5a and R5b.
## What's deliberately out of scope
- Sub-tree historical docs (`docs/handover/`, `docs/decisions/`,
`docs/releases/`, `docs/reports/`, audits). Owner-managed snapshots, not
canonical narrative.
- Sub-crate READMEs (`crates/*/README.md`). Belong to their own cadence;
will route through the same convention if promoted.
- `Cargo.toml` / `Cargo.lock` semver pins. Those *are* the canonical
source — the rule explicitly exempts them.
- LICENSE / SPDX sweep. Owner-managed (per
`feedback_echidna_license_docs_mpl_intentional`).
## Promotion path
Lives in a separate workflow file (not appended to `governance.yml`) so
a fail closes one rule, not the wrapper-call into `standards`. Natural
follow-up: once the pattern proves out here, promote into
`hyperpolymath/standards/governance-reusable.yml` as an estate-wide R5;
the four other repos in the canonical-reference cohort (proven, ephapax,
affinescript, typed-wasm) would benefit immediately.
## Test plan
- [x] YAML safe_load OK
- [x] Self-test R5a + R5b on current docs → 0 hits
- [x] Negative test on synthetic drift → fires correctly
- [ ] CI on this PR
Refs #169, refs #170.1 parent 92d06ce commit d7ce814
2 files changed
Lines changed: 152 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
0 commit comments