test(bundle): drive createCommentOnce's already-carries-marker arm (comments.ts 59-60) through dist/index.js #379
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 185 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.313
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #379"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/commentOnce.test.ts, driving the dedupe arm ofsrc/utils/comments.tscreateCommentOnce()(lines 59–60) through the shipped bundle via both production callers:src/plugins/lgtmBinding.tsstripStaleLgtm()—pull_request labeled lgtmby a bot, with agithub-actions[bot]comment already carrying<!-- prow-github-actions/lgtm-stale: <sha7> -->: the label is still stripped,::debug::#1 already carries <marker>is logged, noPOST …/issues/1/commentssrc/plugins/tide.tsexplainForkWorkflows()— schedule lgtm job on a fork pr refused with 403 over workflow files, with the<!-- prow-github-actions/fork-workflows: <sha7> -->comment already present: the pr is still skipped, no re-posttype: User) quoting the marker, a bot marker for a different head, and a body-less bot comment do not count — the explanation is postedEvidence:
npm run test:coverage:e2e→comments.ts70 % → 100 % lines.npx vitest run __tests__/bundle/commentOnce.test.ts: 6/6 pass. No change tohelpers.ts,fakeGithub.tsor production code.Disjoint from every open held
test(bundle)PR: none routes a pre-existing marked comment (#318 covers the read failure of the stale comment; #347's dedupe isevaluateMerge's per-run set).Related Issue
Closes #348
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1