Skip to content

(docs): tie each doc to the code it covers and require it in PRs that change that code (#1353) - #1364

Merged
devsuitup merged 6 commits into
mainfrom
feat/1353-doc-covers
Nov 29, 2026
Merged

devsuitup merged 6 commits into
mainfrom
feat/1353-doc-covers

Conversation

@devsuitup

Copy link
Copy Markdown
Owner

Closes #1353.

Each doc now says which code it describes, and a PR that changes that code must update one of those docs.

Change

  • Front matter. Every .ai/contexts/*.md and every user doc that describes code declares covers:, a list of repository paths or globs, in YAML front matter: 77 docs in all.
  • scripts/check-docs.js checks the metadata. It validates covers: (YAML, known keys, globs that match tracked files).
  • The PR rule. A PR that changes a covered file must also change a doc that covers it, or carry no-docs with a non-empty no docs: <reason> line. App files covered by no doc keep the old "any doc" rule.
  • Advisory report. It lists the app files no doc covers: 6 today.
  • Doc reference check. scripts/check-doc-refs.js skips the front matter; line numbers in the body are unchanged.
  • Review checklist. .ai/agent-practices.md gains "the docs touched describe what this PR changes".

Docs

  • User: docs/changelog.md (docs rule).
  • Agent: .ai/contexts/fast-check.md, .ai/contexts/build-release.md, .ai/agent-practices.md, and the front matter itself.

Changelog

no-changelog: tooling users do not see.

Tests

  • test/check-docs.test.js is extended. The suites Codex ran give 85 passing tests.
  • Red first; 2 mutations caught.

Not run: the CI docs job, which now installs locked dependencies with --ignore-scripts for js-yaml.

… change that code (#1353)

Docs declare covers: globs in front matter; check-docs requires a PR that
changes a covered file to change a doc that covers it, or to carry no-docs
with a reason, and reports app files no doc covers.
@devsuitup devsuitup added the no-changelog The PR changes nothing a user sees; the CHANGELOG.md check is waived label Nov 29, 2026
@devsuitup
devsuitup merged commit 6c382cb into main Nov 29, 2026
14 checks passed
@devsuitup
devsuitup deleted the feat/1353-doc-covers branch November 29, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog The PR changes nothing a user sees; the CHANGELOG.md check is waived

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(docs): tie each doc to the code it covers and require it in PRs that change that code

1 participant