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
{{ message }}
Repository navigation
(docs): docs check misses split or merged docs without new prose #1365
Follow-up of #1353 / PR #1364, found by the cross-review at 01209caa.
scripts/check-docs.js compares a doc that has no previous version (git reports D + A, not a rename) against the whole visible body of each doc deleted in the same PR. A PR that changes app code can still pass without new prose by:
deleting one owner doc with sections A+B and adding two docs holding A and B;
deleting two docs holding A and B and adding one doc holding A+B.
Proposed rule: a doc with no previous version counts as changed only if it holds at least one visible line (front matter stripped, whitespace and control/format characters removed) that appears in none of the docs deleted by the PR. Witnesses: the two scenarios above must fail; a moved doc with one new line must pass.
Severity: low. The gate is there to catch a doc that was forgotten, not someone working around it on purpose; the no-docs waiver already exists.
Residual after #1402 (from its cross-review, low severity, not verified against a real git diff): when git's rename detection (default 50 % similarity) pairs a split result with the deleted doc, that doc is reported R and takes the whole-body path, so dropping a section still counts as a change. Pinned deliberately by the R-status test in test/check-docs.test.js and stated in .ai/contexts/fast-check.md. The no-docs waiver and review remain the backstop.
Activity
(docs): tie each doc to the code it covers and require it in PRs that…
devsuitup commentedon Nov 29, 2026
Residual after #1402 (from its cross-review, low severity, not verified against a real git diff): when git's rename detection (default 50 % similarity) pairs a split result with the deleted doc, that doc is reported R and takes the whole-body path, so dropping a section still counts as a change. Pinned deliberately by the R-status test in test/check-docs.test.js and stated in .ai/contexts/fast-check.md. The no-docs waiver and review remain the backstop.