test(bundle): drive the approve plugin's evaluation arms through dist/index.js #333
All Vouch review confidence checks passed
Residual risk 0.16 = 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 · 263 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.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #333"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/approveEvaluationArms.test.ts(new file only;bundle.test.tsandhelpers.ts, which #246 edits, are untouched), driving the arms ofsrc/plugins/approve.tsthat the bundle suite never reached throughdist/index.jsagainstfakeGithub.ts:approveOnPullRequestskipping an unsupported action (closed);approveOnReviewskipping the mirrored approval review itself (reviewMarkerin the payload); apull_request_reviewpayload without a pull request failing the runevaluateApprovalleaving the pull request alone when the branch tip read for the evaluation has no OWNERS files although the probe didupdateComment,listCommentsandlistReviewsfailures (label synced first for the edit; nothing written for the reads)approve.lgtm_acts_as_approve(/lgtmadds,/remove-lgtmwithdraws) and the default where/lgtmis ignored;approve.require_self_approval(the author's/approveignored and the author excluded from the suggestion; theissue_commentrefusal insrc/issueComment/approve.ts)15 tests, ~5 s against the committed
dist/index.js.Evidence (
main@ 3fc21f2)| suite |
plugins/approve.tslines | branches ||---|---|---|
| unit (
npx vitest run --coverage) | 193/193 | — || e2e before (
npm run test:coverage:e2e) | 164/193 (84.97 %) | 126/168 || e2e with this PR | 191/193 (98.96 %) | 156/168 |
The two lines left are
effectiveKind's exhaustive-switchdefault(236) and theif (!hasOwners)statement (505) whose body is already reached.src/e2e lines overall: 77.9 % → 79.16 %.Local runs;
test.ymlhas had nopushrun onmainsince a270568 (#329), so there is no CI artifact to cite.Related Issue
Closes #332
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1