test(bundle): drive the sweep cron's empty-window, failed-listing and blunderbuss-freshness arms through dist/index.js #345
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 · 174 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.309
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #345"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/sweepArms.test.ts, which runs thescheduleevent withjobs: sweepthroughdist/index.jsagainst the fake GitHub for the arms ofsrc/cronJobs/sweep.tsno bundle test reached:sweepwith no open pull request updated within the window →sweep: 0 candidates updated since …, config reads + one listing page, nothing elserecentlyUpdatedPullswhenpulls.listanswers 500 → run fails withsweep: could not list the open pull requests: HttpError: boomrequestReviewersIfFreshon a repository with OWNERS files: opened before the window; draft / reviewers already requested; already reviewed (theper_page=1read happens, no request follows); and the pass-through case where reviewers are requestedFiles/functions claimed:
__tests__/bundle/sweepArms.test.ts(new) only;src/cronJobs/sweep.tslines 64, 150–160, 175. Line 75 (enqueued) is deliberately left to #322's merge-queue cluster. Disjoint from #293 (sweep.lookbacksettings) and #291 (blunderbuss viapull_request).Evidence (
main@ 3fc21f2):npm run test:coverage:e2e→sweep.ts67/76 → 75/76 statements.npx eslintclean;npx vitest run __tests__/bundle/sweepArms.test.ts→ 7 passed.Related Issue
Closes #344
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1