test(bundle): drive loadOwnersTree's failure arms (owners.ts L164/L197/L229) through dist/index.js #383
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 254 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.332
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #383"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/ownersTreeLoadArms.test.ts(new file only; nothing else touched): three/approveruns by an approver on a pull request through the committeddist/index.jsagainstfakeGithub, reaching the failure arms of the complete-tree OWNERS loaderloadOwnersTreeinsrc/utils/owners.tsthat no bundle test drives today:GET …/git/trees/basesha?recursive=true→ 500: exit 1,::error::includeserror loading OWNERS files at basesha(L197); nogit/blobsread, no writeGET …/git/blobs/<sha of OWNERS>→ 500: exit 1, same message (L229); no writeGET …/git/blobs/<sha of OWNERS>→ 200{ sha, size }withoutcontent: exit 1,invalid OWNERS file returned from GitHub API for OWNERS(L164); no writeEach case checks the recorded call order with the existing
expectCommandThenConfighelper: the OWNERS reads, then the post-command sweep's config reads, then tide's ownpulls/1read, base-branch probe and merge-queue dequeue — and asserts noPOST …/issues/…, noPUT, and nocontents/OWNERSprobe.Evidence (
main@ aa6a0f8, Node v26.10.0,npm run test:coverage:e2e):src/utils/owners.tse2e 66.96 → 69.64 % lines (75 → 78 of 112), branches 68.65 → 70.14 %; L164/L197/L229 go from 0 hits to reached. Bundle suite 23 files / 218 tests green;npx eslintandnpx tsc --noEmitclean.Files/functions claimed:
__tests__/bundle/ownersTreeLoadArms.test.tsonly;loadOwnersTree/decodefailure arms. Disjoint from the open hold-gated PRs: #320 (ownersProbeArms.test.ts, truncated-treeprobeOwners/probeBranchOwners, L261), #331 (rootOwnersFallback.test.ts, issue-sideauth.ts:494), #328 (pullRequestOwners), #365 (parseOwnersfilters), #283 (ownersAuth.test.ts) — verified by merging all 31 held heads ontomainand re-measuring: the three lines were still at 0 hits.Related Issue
Closes #382
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1