Commit 0644c1d
committed
fix(gates): regenerate the hand-written docs ledger, and stop the coverage gate skipping v17
Two consequences of the v17 split that CI found and the local run had not.
1. `scripts/docs-audit/handwritten-docs.json` is GENERATED output — the audit
scope, derived as `content/docs/**/*.mdx` minus the generated references, with
hand-editing rejected outright. The split moved six pages under it, so
`check:docs-audit-scope` went red naming both directions of the drift: one
listed path gone, six real pages unlisted. Regenerated with the gate's own
`--write`; the diff is exactly those six for that one, nothing else moved.
Left unfixed this is not cosmetic: a FULL audit would have called itself full
while silently skipping every v17 page, and an agent pointed at the dead path
would report "0 fixes" — indistinguishable in the summary from a page that was
read and found accurate.
2. `check-release-section-coverage` looked only for a flat `v<major>.mdx`, so
after the split it printed "(v17: … skipped)" and then reported "2 GA major(s)
in scope (v16, v17); every one has a heading on its major's release page".
It was asserting nothing about v17 while naming it as covered.
The skip is explicitly justified in the source by the two sibling gates going
red on the same fact — and this PR taught both of them the folder layout, so
that justification had gone. It now reads either layout, the folder as one
corpus, because "some heading names this minor" is a property of the major's
prose wherever it is written; the split moved `## What's new in 17.1.0` from
line 3475 of one file to line 5 of another, which is not a coverage change.
Proven to measure rather than merely stop printing "skipped": with every
heading naming the 17.4 series mutated away, the gate reports the finding
against `content/docs/releases/v17/` and exits 0 advisory / 1 --strict. Its
50-case self-test is unchanged and still passes.
No gate is weakened and no baseline or exception list is added: one generated
artifact regenerated by its own generator, and one lookup taught the second
layout its two siblings already accept.
check:docs-audit-scope, doc-anchors, doc-authoring, docs-redirects,
docs-single-h1, release-notes, release-page-status, release-index-currency-sync,
role-word, quick-reference-counts, corpus-claim-drift, published-readme-links,
org-identifier and docs-image-tag all pass; lychee reports 2152 links, 0 errors.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016M1gHPfToXY4sUdzsD2CHa1 parent e3c2866 commit 0644c1d
2 files changed
Lines changed: 46 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
379 | 414 | | |
380 | 415 | | |
381 | 416 | | |
| |||
1210 | 1245 | | |
1211 | 1246 | | |
1212 | 1247 | | |
1213 | | - | |
1214 | | - | |
| 1248 | + | |
| 1249 | + | |
1215 | 1250 | | |
1216 | 1251 | | |
1217 | | - | |
| 1252 | + | |
1218 | 1253 | | |
1219 | 1254 | | |
1220 | | - | |
| 1255 | + | |
1221 | 1256 | | |
1222 | 1257 | | |
1223 | 1258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
195 | 200 | | |
196 | 201 | | |
197 | 202 | | |
| |||
0 commit comments