build(repo): add git hooks and content scan, fix release npm version #232
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 307 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #232"
general
weight: 0.35
ljharb
Follow-up to #231, which removed the fleet pack. This PR adds four changes main doesn't have yet. Each commit can be reviewed on its own.
Changes
1. Fix the npm version in the release workflows (
fix(ci))devEnginesrequires npm>=12.2.0withonFail: error. Node 26.12.1 bundles npm 11.20.0, which errors withEBADDEVENGINESwhen run in the checkout. I reproduced that error withnpm viewandnpm pack.npm publishmakes the same check, so:publish-npm.ymlwould fail at its final step. It now installsnpm@12.2.0next to pnpm.release-github.ymlwould fail atnpm view. It now runsnpm viewoutside the checkout.2. Git hooks and a tracked-file content scan (
feat(repo))pnpm installpointscore.hooksPathat.git-hooks/. Thepreparescript skips this in CI.pre-commitscans the staged copy of each file for secrets, personal home paths and private repository names. It fails if it can't read a staged file.commit-msgrequires a Conventional Commit subject and rejects AI attribution lines.pre-pushrunspnpm run repo:type.pnpm run checknow also runs the manifest version check andpnpm run repo:scan. CI's check job runspnpm run checkinstead ofpnpm run repo:check, so the scan gates pull requests.test/repo/unit/repo-scan.test.mtscovers the scanner and the pre-commit hook, including a secret that is staged and then edited or deleted on disk.3. Drop unused dev dependencies (
build(deps))This removes 33 dev dependencies that no script, test, config or workflow uses. Removing them leaves the
brace-expansionandminimatchpatches unused, and pnpm rejects unused patches, so those are removed too.4. Update stale config comments (
chore(repo)).editorconfigand.npmrchad comments pointing at deleted fleet files and generators. Only comments change; the settings are identical.Testing
On a fresh copy of the branch with Node 26.12.1 and pnpm 12.14.0:
pnpm install --frozen-lockfilepassed and setcore.hooksPath.pnpm run checkpassed, including the scan of 173 tracked files.pnpm testpassed: 60 files, 537 tests.ubuntu-26.04runner-label warning that main also has.