Skip to content

(docs): docs check misses split or merged docs without new prose #1365

Done

Description

@devsuitup

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.

Activity

  1. devsuitup commented on Nov 29, 2026

    @devsuitup
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions