You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs/ is read by no CI step, and all 27 known doc findings live there
Measured 2026-08-15. scripts/docs-drift.mjs's docFiles() collects platform-docs/, not docs/; servedHtmlFiles() skips any directory named docs. No gate reads docs/ at all.
The consequence is measured, not theoretical: an audit of 21 files under docs/ found 27 findings across 9 docs, while pnpm docs:drift passes all 13 checks. Nine of the 21 are clean — including two verified exact to the byte — so this is not "docs rot", it is "docs rot invisibly".
This is the #555 class one directory over, and the third instance of the same defect today: a guard whose population silently excludes the thing it exists to catch (see #600, #603).
One concrete drift to fix in the same commit, as the proof case: docs/mcp-instance-runtime.md states a tool count that disagrees with MCP_TOOL_COUNT and a /health figure of 41 against the live 136.
Acceptance criteria
docFiles() covers docs/**/*.md, with a requireInputs floor per ADR 0002 — the collector must fail when it gathers implausibly little, since "found nothing" and "found nothing wrong" print the same tick.
docs/mcp-instance-runtime.md's count drift is fixed, and the guard is demonstrated red on it first.
Historical documents must not be forced to state current numbers. An ADR describing a June decision is correct as history; establish how the guard distinguishes them, or scope it to files that make present-tense claims.
Verified vs inferred
Verified: both collector behaviours; that docs:drift passes with the drift present; the 21/27/9 audit counts.
Inferred: that extending the collector is sufficient. AC4's historical-document question may make it harder than a path change — settle that before implementing.
docs/is read by no CI step, and all 27 known doc findings live thereMeasured 2026-08-15.
scripts/docs-drift.mjs'sdocFiles()collectsplatform-docs/, notdocs/;servedHtmlFiles()skips any directory nameddocs. No gate readsdocs/at all.The consequence is measured, not theoretical: an audit of 21 files under
docs/found 27 findings across 9 docs, whilepnpm docs:driftpasses all 13 checks. Nine of the 21 are clean — including two verified exact to the byte — so this is not "docs rot", it is "docs rot invisibly".This is the #555 class one directory over, and the third instance of the same defect today: a guard whose population silently excludes the thing it exists to catch (see #600, #603).
One concrete drift to fix in the same commit, as the proof case:
docs/mcp-instance-runtime.mdstates a tool count that disagrees withMCP_TOOL_COUNTand a/healthfigure of 41 against the live 136.Acceptance criteria
docFiles()coversdocs/**/*.md, with arequireInputsfloor per ADR 0002 — the collector must fail when it gathers implausibly little, since "found nothing" and "found nothing wrong" print the same tick.docs/mcp-instance-runtime.md's count drift is fixed, and the guard is demonstrated red on it first.Verified vs inferred
docs:driftpasses with the drift present; the 21/27/9 audit counts.