test(bundle): drive tide's verdict arms (unknown-retry exhaustion, moved head, 405/409 refusals, merged/closed/locked, check_suite guards, once-per-run) through dist/index.js #347
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 304 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.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #347"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/tideVerdictArms.test.ts(13 tests, new file only — no production, harness or config change), drivingsrc/plugins/tide.ts's verdict arms throughdist/index.jsagainst the fake GitHub:fetchMergeability: mergeability stillunknownafter the 1 s / 2 s / 4 s retries →skipping pr #1: not mergeable (unknown)(lines 99, 108–111)head moved during evaluation(208)pr #1 was merged concurrently, exit 0 (219)base branch moved/head moved(223, both regex arms)could not merge pr #1: …, run fails (439)blockedReason: a pull request GitHub reports asalready merged,closed,locked, skipped before its binding or mergeability is read (399, 402, 405)tideOnCommenton a closed pull request after/hold(496–497)tideOnCheckSuitewithout a head sha (520) and naming no pull request with the listing finding none (564–565)evaluateMergeonce:schedulewithjobs: 'sweep lgtm'merges the shared pull request once and the other job skips it asalready evaluated in this run(175)check_suitewithpull_requests: [{ number: 1 }]is the vehicle for the merge-path arms: tide is its only handler, so every recorded request is tide's and the sequences are asserted exactly (including the onePOST /graphqldequeue check a gate skip makes on an event, sincetide.merge_queuedefaults toauto).Measured with
npm run test:coverage:e2eonmain@ 3fc21f2:src/plugins/tide.ts158/195 → 173/195 lines from__tests__/bundlealone.npx vitest run __tests__/bundle/tideVerdictArms.test.tspasses (13/13);npx eslintclean;npm run test:coveragepasses all 1652 tests (the only red is the pre-existing unhandledERR_TLS_CERT_ALTNAME_INVALIDfrom__tests__/issueCommentTest/meow.test.ts, tracked in #294 and fixed by #287).Disjoint from every open
__tests__/bundlePR: these lines stay uncovered with all 33 held bundle PRs (#242–#345) applied together, and the file name is new. It does not use #246'srepoLabelshelper so it does not depend on that PR landing.Related Issue
Closes #346
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1