test(bundle): drive parseProwConfig's empty-document arm (config.ts:373) through dist/index.js #395
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 214 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.321
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #395"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/emptyConfigDocument.test.ts, driving the empty-document arm ofparseProwConfig(src/utils/config.ts:373,return {}when the loaded yaml isundefined/null) throughdist/index.js.For each of a blank
.github/prow.yamland a bare---document:/lifecycle stale→ exit 0,lifecycle: using built-in labels frozen,stale,rotten, exactly onePOST /issues/1/labelswithlifecycle/stale, and the configuration reads stop at.github/prow.yaml(the empty file is a found source, sono prow configuration foundis never raised)/kind cleanup→ exit 1,kind: yaml malformed, expected 'kind' top level key, nono prow configuration found, no label writeEvidence on
main@ aa6a0f8:npm run test:coverage:e2eonorigin/main+ the heads of all 35 open hold-gated bundle PRs (#283 … #392) leftconfig.ts:373at 0 hits; with this file it gets 4. Unit coverage already reached the arm via__tests__/utils/config.test.ts:420-426.Files / functions claimed:
__tests__/bundle/emptyConfigDocument.test.ts(new) only;parseProwConfigempty-document arm. Disjoint from #314 (explicitconfigsource), #339 (schema rejections) and #388 (label listing refusals).A comment-only file belongs in the same table but currently throws
YAMLException: expected a document, but the input is emptythrough the bundle — that is a production defect in thetrim()guard, filed as #393 for a maintainer; the test names it and leaves that row out until it is fixed.Related Issue
Closes #394
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88