test(bundle): drive tide's merge-queue skip and enqueue-refusal arms through dist/index.js #322
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 · 312 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.344
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #322"
general
weight: 0.35
jeefy
Test Improvement
Files:
__tests__/bundle/mergeQueueArms.test.ts(new, bundle e2e; importsconfigReads,helpersFor,ownersProbe,queueRead,repo,tokenfrom./helpers). Cluster: tide's merge-queue path —src/plugins/tide.tsevaluateInQueueskip and enqueue-refusal arms,src/utils/mergeQueue.tsclassify/errorMessageand thepullRequest: nullstate-query arm — driven throughdist/index.js.Ten
pull_request labeled lgtmruns on a queue-enabled base branch againstfakeGithub:1. pr already in the queue with an entry →
skipping pr #1: in the merge queue (position 2, AWAITING_CHECKS), no enqueue mutation, noPUT2. pr in the queue without an entry →
skipping pr #1: in the merge queue3.
mergeable_state: dirty→skipping pr #1: not mergeable (dirty), no enqueue4. first read
unknown, re-read after the 1 s backoff at a different head →skipping pr #1: head moved during evaluation, no enqueue5–7.
enqueueErrormessages classifiedhead_moved/already_queued/not_ready→ each skipped, exit 08. an unclassified GraphQL refusal →
::error::could not enqueue pr #1: …, exit 1, noPUT9. HTTP 500 on the mutation (no GraphQL
errorsarray) → the transport'sServer Erroris reported, exit 110. state query answering
repository.pullRequest: null→ falls back to the directPUT …/mergewithout the "falling back" warningEach case asserts the exact request sequence (
bind, pullRead, ownersProbe, bindingRead, graphql[, graphql | pullRead | merge]).Evidence (
main@ 3fc21f2, Node v26.10.0, vitest 5.0.3,npm run test:coverage:e2e):src/plugins/tide.tse2e lines 81.02 → 86.15 % (303–304, 308, 313, 316, 335, 337, 339, 346–347 now hit);src/utils/mergeQueue.ts84.09 → 97.72 % (only line 67, the test-onlyresetMergeQueueWarnings, remains). Bundle suite 6 files / 152 tests green;eslintandtsc --noEmitclean. Unit coverage unchanged (nosrc/change).Disjoint from the open hold-gated PRs: #289 (
mergeGateLabels.test.ts, themissing_labelsgate andlabelMatch.ts), #293 (holdSweepSettings.test.ts), #310 (pullReqJobsArms.test.ts), #318 (lgtmBindingArms.test.ts) and the rest — none drivesevaluateInQueue's skip arms or an enqueue refusal other thanforbidden, whichbundle.test.tsalready covers.Related Issue
Closes #321
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88