test(bundle): drive the prow-commands alias canonicalization and unsupported-command arms through dist/index.js #357
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 · 290 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.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #357"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/commandCanonicalization.test.ts(new file only; importscomment,helpersFor,repo,tokenfrom./helpers,startfrom./fakeGithub,runBundlefrom./runBundle; nosrc/,dist/,helpers.tsor config change). Threeissue_commentruns of the committeddist/index.jsagainstfakeGithubreach the twoprow-commandsinput arms ofsrc/issueComment/handleIssueComment.tsno bundle suite drove:| run | arm | asserts |
|---|---|---|
|
prow-commands: /remove-help, comment/help|canonicalCommandalias arm L86 | exit 0,GET labels→POST issues/1/labels {help wanted}, then the configuration reads ||
prow-commands: /help /remove-help /HELP, comment/help| L86 + theSetdedup at L109 | exit 0, exactly one label write ||
prow-commands: /foo_bar, comment/foo_bar| unsupported-command arm L150 | exit 1,::error::TypeError: error handling issue comment: Error: could not execute /foo_bar. May not be supported - please refer to docs, zero api calls |Evidence (
main@ 3fc21f2, Node v26.10.0, vitest 5.0.3, @vitest/coverage-v8,npm run test:coverage:e2e):src/issueComment/handleIssueComment.tse2e lines 93.90 % → 96.34 %, statements 94.04 % → 96.42 %, branches 86.27 % → 90.19 %. Remaining lines 45 (/meow, held #244), 188 (held #293) and 207 (removeFixedLabels, held #300) are each already claimed.Disjoint from every open hold-gated bundle PR: #246 (
/remove-helpin the comment with/helpconfigured, built-in/lifecycle), #343 (missing issue/pull number guards), #324 (command.tsMarkdown guards), #242 (cronjobsinput). None of them puts an alias or an unsupported name in theprow-commandsinput.Verified locally:
npx vitest run __tests__/bundle/commandCanonicalization.test.ts→ 3 passed against the committeddist/index.js;npx eslint __tests__/bundle/commandCanonicalization.test.tsandnpx tsc --noEmitclean.Related Issue
Closes #356
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88