test(bundle): drive /hold cancel's no-label, failed-read, failed-removal and already-gone arms through dist/index.js #326
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 238 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.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #326"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/holdCancelArms.test.ts(new file only; importscomment,configReads,helpersFor,repo,tokenfrom./helpers) — six cases run through the committeddist/index.jsagainstfakeGithub, covering thecancelHoldarms ofsrc/labels/hold.tsthat no bundle suite reached:1.
/hold cancel,/unhold,/remove-holdon an issue whose labels are[lgtm]→ exit 0, noDELETE, requests are the config reads thenGET /issues/1(hold.ts L67–69).2.
/hold cancelwithGET /issues/1→ 500 → exit 1, error carriescould not get labels from issue, noDELETE(L60–61).3.
/hold cancelwithDELETE …/labels/do-not-merge%2Fhold→ 500 → exit 1, error carries bothcould not remove the hold labeland the causecould not remove label do-not-merge/hold(L75–76).4.
/hold cancelwithhold+do-not-merge/holdpresent,DELETE …/labels/hold→ 404, the other → 200 → exit 0, both DELETEs sent (src/utils/labeling.tsL202–203, the benign gone-label arm).Cluster:
src/labels/hold.tscancelHold+src/utils/labeling.tsremoveLabels404 arm. Disjoint from #293 (holdSweepSettings: configuredhold.label, label present) and from bundle.test.ts's/unholdcase (both labels present, writes accepted).Measured with
npm run test:coverage:e2eonmain@ 3fc21f2, before → after:src/labels/hold.ts80 % → 96 % lines, 81.81 % → 90.9 % branches;src/utils/labeling.ts73.07 % → 76.92 % lines; bundle suite 142 → 148 tests. The remaininghold.tsline (L30, missing issue number) cannot be produced through the API.Verified locally:
npx vitest run __tests__/bundle/holdCancelArms.test.ts→ 6 pass;npx eslintandnpx tsc --noEmitclean.Related Issue
Closes #325
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88