← Back to Pull requests

fix: remove a stray node_modules the node workspace sync used to keep (a1036) #101

Open
unknown opened this pull request with 126 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 22, 2026 20:14 UTC
Author

node_sync kept every node_modules in the synced tree, but npm ci resets only each listed package's own, so a node_modules planted elsewhere by an earlier run survived both sync and install, and Node's module resolution walks up into it.

node_sync(tree, packages) now removes every node_modules that is not directly under a listed package. Symlinked directories keep 8067e3a's behaviour: never walked into or rmdir'd, and a node_modules reachable only through a link is untouched.

Test: node_sync_modules plants node_modules at the root, under a listed package, and nested inside one, plus a wanted link to an outside directory that holds a node_modules. Only the listed package's survives and the link target is intact. It fails against the old node_sync.

Also annotates runners in scripts/convert_repo.py, which sdlc push's mypy refused on main.

Closes #100
Ashigaru-Item: a1036

🤖 Generated with Claude Code

https://claude.ai/code/session_01R7Y1jeqWyD1kaUDpcBw3TN

Diff: 126 lines (+94 / -32) across 1 files Reviewer: github-actions[bot] Review duration: 8m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 126 lines diff across 1 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.290
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #101"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 46.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 37.0% (MEDIUM) · Higher = larger blast radius
37.0%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 46.7% · Lower = rushed or shallow review
46.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 19.7% · Safe to merge
19.7%