Repository navigation
(docs): record when each doc was last verified and list the stalest (#1354) - #1398
Merged
Merged
Conversation
…st (#1354) Coverage docs may carry verified: <sha> <date>; check-docs validates its shape without resolving the SHA. scripts/doc-staleness.js ranks docs by the commits that touched their covered files since that stamp, unstamped docs first. The 18 contexts rewritten under #1355 are stamped at their merge commits; the others stay unstamped. The weekly audit is documented in .ai/agent-practices.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1354
Summary
verified: <sha> <YYYY-MM-DD>in front matter.scripts/check-docs.jsvalidates its shape without resolving the SHA (CI checkouts may be shallow); every other key is still rejected, and moving a stamp never counts as a body change for the PR gate.scripts/doc-staleness.jslists coverage docs by the number of commits that touched their covered files since the stamp. Unstamped docs and unresolvable SHAs rank first with an unknown count, never 0.--json,--limit N,--repo-root. Advisory: exit 0 when docs are stale..ai/contextsfiles rewritten under (docs): cut .ai/contexts down to current behaviour and invariants #1355, at their merge commits. The other 44 coverage docs stay unstamped..ai/agent-practices.md"Doc verification audit": the weekly procedure (stalest 3, inventory, one issue per wrong statement, stamp-moving PR, cross-review)..ai/contexts/fast-check.mddocuments the stamp and the report; itscovers:now usesscripts/*doc*.js.Tests
test/check-docs.test.js: valid stamp, bad shapes, unknown key still rejected, stamp-only change is not a body change. RED before the change: 18 assertion failures (front matter must contain only covers).test/doc-staleness.test.js: real temporary git repo (covered/uncovered commits, stamped, unstamped, unknown SHA, glob cover).Developer tooling only: no user-visible change.