Add a local check for undefined names in plain JavaScript files #25
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 187 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.313
Real PR Conversation Timeline
1 comments
"Review active on #25"
general
weight: 0.35
claude[bot]
Why
Last night's backend crash was a name used without being imported. In the app, TypeScript files are covered by
tsc, but plain.js/.jsxfiles are not typechecked, so the same bug could slip through there.Change
npm run lint:undefwith its own config (.eslintrc.undef.json), run with--no-eslintrcso onlyno-undefandreact/jsx-no-undefcan fail it.__DEV__,global,process,require, …). No browser env, sostatus,name,event,location,windowetc. are not treated as defined.tests/.eslintConfig: node env for the root config files only (fixes two__dirnamefalse alarms in the metro config).Proof
npm run lint:undefpasses (25 files).status,name,event,location,Buffer,__filename,windowin asrc/file, plus an undefined JSX component, fails with all 8 named (removed after).npm run lint: errors 52 → 50, warnings unchanged.tscoutput unchanged (main already has 77 type errors;changes-roomhas 0).Runs locally; not wired into CI by decision.
🤖 Generated with Claude Code