test(bundle): drive the authorization section's schema rejections and the cross-tier users union through dist/index.js #381
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.57) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.57 · 159 lines diff across 1 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.304
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.057
Real PR Conversation Timeline
1 comments
"Review active on #381"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/authorizationSchemaArms.test.ts, which runs/triage acceptedthroughdist/index.jsand reaches theauthorizationarms ofsrc/utils/config.tsthat only unit tests touched:normalizeAuthorization: not a mapping (666), unknown key (671), policy outside the set, review outside the set,usersnot a list (686)normalizeLogins: a list entry that is not a GitHub login (704)mergeAuthorization: the repository tier repeating an organization-tier login in different case is deduped and the login is admitted with no membership call (753)Each rejection asserts status 1, an error containing
could not get labels from yaml: Codertocat/Hello-World:.github/prow.yaml: authorization.…, and no label write.Measured with
npm run test:coverage:e2eonmain@ aa6a0f8:config.ts73.96 % → 76.85 % lines; all five lines now hit. New file only — disjoint from #339 (configSchemaArms.test.ts, noauthorizationrows) and #378 (authorizationPolicyArms.test.ts,auth.tspolicy arms). 7 tests pass against the committeddist/index.js; eslint clean.Related Issue
Closes #380
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1