fix(ci): run Biome native binary on Windows #5677
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 223 lines diff across 2 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.324
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5677"
general
weight: 0.35
liugddx
Summary
Fixes #5668.
On Windows, the staged Biome hook now invokes the platform-native
biome.exefrom the installed architecture-specific Biome package instead of spawningnode_modules/.bin/biome.cmdwithout a shell. This avoids theEINVALfailure introduced by Node's refusal to spawn.cmdfiles that way, while preserving the existing direct-process behavior and avoidingshell: true.The resolver covers both Windows x64 and Windows arm64 package layouts. Non-Windows platforms continue to use the existing
.bin/biomepath.Verification
npm ci --ignore-scripts --no-audit --no-fundnode --test scripts/biome-staged-check.test.mjs— 10 passed./node_modules/.bin/biome check scripts/biome-staged-check.mjs scripts/biome-staged-check.test.mjs— passed./node_modules/.bin/biome format --write scripts/biome-staged-check.mjs scripts/biome-staged-check.test.mjs— no changes requiredgit diff --check— passedThe Windows hook was not executable on this macOS host; the regression test validates the Windows x64 and arm64 executable resolution paths directly.
AI use
Tool(s) and scope: Codex assisted with issue analysis, implementation, regression testing, and validation. The human contributor remains responsible for reviewing and understanding the complete patch and its results.
Checklist
Does this PR entail a change in behavior?
.cmdshim.