Commit 040bb60
committed
ci(governance): R5 — hard gate against doc canonical-reference drift
Encodes the defer-to-canonical convention introduced by #169 / #170
as a hard CI gate so the cleanup doesn't quietly come undone.
What the rule does
------------------
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 patterns the #169/#170 cleanup had to chase across
five mutually-disagreeing surfaces:
"<N> prover backends?", "<N>-prover core",
"<N> core (backends?|provers?)",
"<N> (backends?|provers?) (operational|advertised|implemented|available|across|total)",
"<N> ProverKind variants?",
"<N> backend implementation files?",
"<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` and the like — the shape that drifted
across three files before #169/#170. Avoids generic
`version =` in code blocks because the leading `Version`
keyword is anchored at line start.
Self-tested
-----------
- Negative test (synthetic drift) fires both R5a and R5b.
- Positive test (current main + this PR's README.adoc:256 fix) is
clean: 0 hits on both R5a and R5b.
Side fix
--------
README.adoc:256 still carried `provers/ # 102 prover backend
implementation files (ProverBackend trait)` in the architecture tree
diagram — missed by #169 because the regex sweep there was prose-only.
Replaced with a pointer to docs/PROVER_COUNT.md, matching the
convention.
What's out of scope (deliberate)
--------------------------------
- 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/when
promoted.
- Cargo.toml / Cargo.lock semver pins. Those ARE the canonical
version 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 to standards. Natural
follow-up: once the pattern proves out here, promote into
hyperpolymath/standards's 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.
Refs #169, refs #170.1 parent 92d06ce commit 040bb60
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