test(bundle): drive the missing issue/pull number guards of every command handler and onPrLgtm through dist/index.js #343
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 259 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.333
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #343"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/missingNumberGuards.test.ts(27 tests), driving throughdist/index.jsthe one arm every command handler shares and no bundle fixture had ever reached: thegithub context payload missing issue numberguard (pull numberincc.ts/uncc.ts,pr numberinonPrLgtm.ts) thrown before the first API call.Claimed ground — exactly these 18 statements, all at 0 end-to-end hits on
main@ 3fc21f2 and still at 0 after overlaying every open hold-gated bundle PR (#242–#341):src/issueComment/{assign.ts:29, unassign.ts:25, cc.ts:26, uncc.ts:25, approve.ts:44, retitle.ts:26, close.ts:24, lock.ts:33, reopen.ts:21, milestone.ts:28, meow.ts:35, trigger.ts:207 (prepare)},src/labels/{remove.ts:25, hold.ts:30, lgtm.ts:39, fixed.ts:70, prefixed.ts:146},src/pullReq/onPrLgtm.ts:19./assign /unassign /cc /uncc /approve /retitle /remove /hold /lgtm /close /lock /reopen /milestone /meow /retest /help /kind: anissue_commentpayload withissue.numberdeleted exits 1 andcore.setFailedcarrieserror handling issue comment: Error: github context payload missing issue|pull number: [object Object]./assign /cc /retitle /close /lock /reopen /milestone /meow /retest): the fake GitHub receives no request.jobs: lgtmon apull_requestsynchronizepayload withpull_request.numberdeleted fails witherror handling pull request: Error: github context payload missing pr number.Measured with
npm run test:coverage:e2eonmain@ 3fc21f2:src/77.9 % → 79.16 % lines; all 18 listed statements go from 0 to ≥1 hits. The file passes against both the committeddist/index.js(npx vitest run __tests__/bundle/missingNumberGuards.test.ts) and the source-mapped coverage bundle;eslintandtsc --noEmitclean. Nosrc/,dist/or workflow changes.Related Issue
Closes #342
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1