doc-drift/detector #9

Open
iswa wants to merge 2 commits from doc-drift/detector into master

2 Commits

Author SHA1 Message Date
508ba06e69 Fix grep portability bug and document doc-drift script in CLAUDE.md
- Use grep -rE (ERE) instead of BRE \| alternation for BSD/macOS compat
- Add doc-drift section to CLAUDE.md Testing section with usage and purpose

Nightshift-Task: doc-drift
Nightshift-Ref: https://github.com/marcus/nightshift
2026-03-20 02:28:19 -04:00
5ca15118f8 Add doc-drift detector script
Scans CLAUDE.md and PRD.md for verifiable code references — backtick
file paths, API route patterns (METHOD /api/...), and bare *.jsx
component names — then cross-checks each against the filesystem and
server/src/routes/ source tree.

Prints a per-reference PASS/FAIL table with source doc and line number.
Exits non-zero on any drift so it can gate CI.

Run with: node scripts/doc-drift.js

Nightshift-Task: doc-drift
Nightshift-Ref: https://github.com/marcus/nightshift
2026-03-20 02:25:22 -04:00