test(bundle): drive run()'s top-level setFailed catch through dist/index.js with a body-less issue_comment payload #361
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.59) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 199 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.317
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #361"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/runTopLevelCatch.test.ts(one new file, no changes to existing tests orsrc/).src/run.ts:40—core.setFailed(...)inrun()'s top-levelcatch— had unit coverage (__tests__/run.test.ts:108-125) but 0 e2e hits: every handler swallows its own rejections, so nothing in the bundle suite throws out torun().handleIssueCommentmatches the comment body against each configured command before any per-command.catch, andsplitLinescallsbody.replaceunguarded, so anissue_commentpayload with nocommentobject or anullbody reaches the catch throughdist/index.js.The two cases pin the current contract: exit 1, exactly one
::error::line (Cannot read properties of undefined|null (reading 'replace')), no API requests.Evidence on
main@ 3fc21f2:npm run test:coverage:e2e→run.ts88.88 % lines (line 40 uncovered)run.ts100 % lines; the one remaining branch is the non-ErrorString(error)arm, which the bundle cannot produce andrun.test.ts:119already covers.npx eslint __tests__/bundle/runTopLevelCatch.test.tsclean; bundle suite 6 files / 144 tests pass.Cluster claimed:
src/run.tstop-level catch viahandleIssueComment's unguarded body match. Disjoint from #343 (missing issue/pull number guards, body present), #324/#357 (commandLinesfences, alias canonicalization).Related Issue
Closes #360
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88