š fix(pariksha): DOC-DRIFT-01 reads a frontmatter value in a CRLF file
DOC-DRIFT-01 now reads a frontmatter value in a CRLF file. A value ends at the line's end or at its carriage return. Every other line reads as before.
Why
findPathProblems in packages/pariksha/src/doc-paths.ts read a value with /^\s*(?:-\s|[\w-]+:\s)(.+)$/. JavaScript's . does not match \r, so on a line that ends in one, (.+)$ never reached the end and the line matched nothing. scanMarkdown still finds the block, because it trims the --- lines, so only the values went unread. #616 (slice #473) found this and pinned the silence in a test.
What changes
- The pattern drops its
$..+is greedy, so it reads to the line's end, or stops at the\r. doc-paths.test.ts: the test that pinned the silence splits in two.just text - docs/absent-1.mdstill names nothing.- A CRLF block reports
docs/absent-2.md(keyed) anddocs/absent-3.md(listed beside a trackeddocs/guide.md), each on its own line.
Checked
-
Main's pattern,
(.+)$, put back by hand: the CRLF test fails (killed). -
pnpm exec agnipariksha --lane pariksha --files packages/pariksha/src/doc-paths.ts --no-reuse:pariksha: 450 killed of 450 in 1 file(s) (450 Killed; 0 timeout(s) retried) - pass -
pnpm --dir packages/pariksha test: 4654 of 4654 pass, coverage thresholds included;doc-paths.tsis at 100% lines, branches and functions.
Cubic: this pull request merges unreviewed: Cubic's monthly allowance ran out (reviews resume on 9 December 2026), and Alok chose to keep merging. Every other check still has to pass, Mutation included.
Slice: #633
š¤ Generated with Claude Code
Summary by cubic
DOC-DRIFT-01 now reads frontmatter values in CRLF files, where paths previously went unchecked. The old (.+)$ pattern matched nothing on lines ending in \r, since . does not match \r; dropping the $ lets .+ read to the line's end or stop at the carriage return.
- The test that pinned the old silence splits in two: a no-value line stays silent, and a CRLF block now reports its untracked paths.