✨ feat: pariksha's generic checks run in pnpm check from its pinned release

Merged
AT
18d ago
+38-1

Slice: #297

niyam now runs veda's released repository checks, never a copy being changed (0114 spec, rule T-9; Work item #295).

What changes

  • package.json pins @veda-hq/pariksha 0.5.20 exactly, as a devDependency. It resolves from the registry with an integrity hash, and the lockfile gains only pariksha itself.
  • pnpm pariksha, which pnpm check and so CI run, calls node_modules/.bin/pariksha for five checks. All five pass on niyam today:
    • absolute-paths
    • aggregate-gate-needs
    • masked-exit-codes
    • pnpm-settings
    • shell-gates --all, which judges the working tree, since the default judges only what is staged

Narrower than the slice

  • authority-citations is left out. Its default mode judges only staged text, so in CI it would check nothing. Over the whole tree it raises 12 findings. Ten are niyam's own product wording, such as needs-owner: the owner decided on #7 in src/asks.ts and its tests. The other two cite approvals in a form the check doesn't count (on #50, in chat). The staged mode suits the pre-commit hook #296 adds, so it can join there once #296 merges.
  • duplicate-tests is left out, as the slice says: it needs the TypeScript 5 compiler API.
  • A warning on every install: pnpm prints one unmet-peer warning, because pariksha's optional typescript >=5.4 <6 peer meets niyam's TypeScript 7.0.2. The five checks here don't use it.

Checked locally: pnpm check passes.

The pin check that covers this pin comes with #296 (veda-hq/niyam#301). Whichever of the two merges second rebases its lockfile.

🤖 Generated with Claude Code


Summary by cubic

Runs veda's released repository checks from the pinned @veda-hq/pariksha 0.5.20 release as part of pnpm check, so CI never runs a copy being changed.

  • Pins @veda-hq/pariksha exactly and runs five checks: absolute-paths, aggregate-gate-needs, masked-exit-codes, pnpm-settings, shell-gates --all; all pass today.
  • Leaves out authority-citations (its staged mode checks nothing in CI, and whole-tree mode flags 12 of niyam's own product wording) and duplicate-tests (needs the TypeScript 5 compiler API).
  • pnpm prints one unmet-peer warning because pariksha's optional typescript >=5.4 <6 peer doesn't match niyam's 7.0.2; the five checks don't use it.