✨ feat(pariksha): bp-rules, pr-title, own-provenance and baseline-ratchet (W-59.2)
Slice: #196
Owner: Claude session for athya-hq/athya_mono#3760 (W-59.2), working as AthyaBot.
What lands: four of athya_mono's repo checks become pariksha's, each reading its data from the consuming repo's .pariksha.json, so no Athya data ships in pariksha:
| Command / module | Replaces (athya_mono) | Settings (checks.<name>) | Exit |
|---|---|---|---|
pariksha bp-rules <mode> (--inventory, --gaps, --due [--within n] [--today d], --next-id P, --corpus-fingerprint, --check-wiring [--ids a,b], --regenerate-index, --check-index) | .claude/scripts/bp-rules.ts, bp-rules-cli.ts | rules, index, idPrefix (all required) | 0 clean; 1 a check failed or rules left unplaced; 2 usage, settings, or a failed read |
PR_TITLE=… [PR_NUMBER=…] [HEAD_REF=…] pariksha pr-title | scripts/validations/config/check-pr-title.ts | shape (gitmoji, types, summaryMax), skipHeadPrefixes, guide (all optional; none is commitlint alone) | 0 passed or skipped; 1 refused; 2 no title, bad settings, no commitlint |
pariksha own-provenance | scripts/validations/security/own-provenance.ts | scope, repository, workflow (required); lockfile, trustedRoot (optional) | 0 all signed; 1 any failure, as the original; 2 no or bad settings |
@veda-hq/pariksha/baseline-ratchet (module) | scripts/validations/testing/baseline-ratchet.ts | none | throws on a git failure |
@commitlint/load,@commitlint/lintand the three@sigstore/*packages are optional peers, imported only when their check runs (Proposal B on athya-hq/athya_mono#3620): every other command needs none of them.- The build now emits declarations.
@veda-hq/pariksha/baseline-ratchetanddist/shell-command.jsimport typed, checked with the packed tarball in a strict nodenext consumer with lib checks on, so athya_mono'spariksha-shell-command.d.tscan go. The other modules'.d.tskeep.tsimport specifiers and are not a supported API. - bp-rules takes
--name valueonly, as every pariksha check does: the original's--next-id=MOBform is a usage error now (no caller in athya_mono uses it). - Sigstore's public-good trusted root (sha256
6494e21e…0b66, the same file as veda'sscripts/sigstore-trusted-root.json) ships inbaselines/. own-provenancekeeps the original'sown-provenance:prefix and exit codes, since athya-rules' pre-push switches to it as is. "veda's release" now reads<owner/repo>'s release.- bp-rules writes stdout raw (new
Io.write), so--regenerate-index > fileround-trips byte for byte; on athya's real corpus every mode's output matches the original's.
Run by hand: the built own-provenance on athya_mono's real lockfile against the live registry passes its 7 @veda-hq packages and refuses all 7 under a planted fork repository; the built pr-title and bp-rules --check-index (on athya_mono's real corpus) give the original's answers.
Ledger: every original test case, the test that replaces it, and the planted mistake it refuses, in the comment below. The cases that test athya_mono's own wiring (its commit-msg hook, PR Title workflow, Mergify config, committed corpus and lockfile) stay there.
Not in this pull request: the version bump. The release goes through the 0114 coordinator's slot, in its own pull request as #338 did.
Approval: the split of W-59, Proposal C on athya-hq/athya_mono#3620, and Proposal B there for the optional peers, both 👍 by Alok; Alok's 👍 on #196's Proposal.
🤖 Generated with Claude Code