test(bundle): drive the repoHasOwners/defaultBranch fallback of approve and the tide gate through dist/index.js #369
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 335 lines diff across 4 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.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #369"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/defaultBranchFallback.test.ts(one new file; no change tohelpers.ts,fakeGithub.ts,runBundle.ts, source ordist/). It drives the committeddist/index.jsagainst the fake GitHub through the arm both OWNERS consumers take when no base branch is in scope, which falls tosrc/utils/owners.tsrepoHasOwners→defaultBranch:approve.ts:504—pull_requestsynchronizewhose payload carries nopull_request.base.refrepository.default_branchpresent: approve probesGET …/git/trees/master?recursive=truewith norepos.getread;approve: the base branch has no OWNERS files, exit 0repository.default_branchremoved too:GET /repos/Codertocat/Hello-World→{ default_branch: 'trunk' }, thenGET …/git/trees/trunk?recursive=true::error::carriescould not read the default branch, no branch tree is probed (owners-label'strees/baseshalisting is the only tree read)tide.ts:543—pull_requestlabeled lgtmby a human,GET …/pulls/1returning nobase.ref[bind, pulls/1, trees/master, commit status, graphql, merge],merged pr #1[bind, pulls/1, GET /repos/…, trees/trunk, commit status, graphql, merge], mergesrepos.get500: exit 1,could not read the default branch, no tree probe and noPUTEvidence (
main@ 3fc21f2, Node v26.10.0, vitest 5.0.3,vitest run --coverage --coverage.reporter=lcovonly --config vitest.e2e-coverage.config.mjs __tests__/bundle):src/utils/owners.tse2e lines 75 → 82 of 112 (DA:283,0 … DA:358,0→DA:283,6 DA:349,6 DA:350,6 DA:351,2 DA:354,4 DA:355,4 DA:358,2)approve.tsBRDA:504fallback arm 0 → 3;tide.tsBRDA:543base === undefinedarms 0 → 3npx eslintandnpx tsc --noEmitclean__tests__/utils/owners.test.ts); the two reports are stated separately per #235Cluster claimed:
owners.tsrepoHasOwners/defaultBranchviaapprove.ts:504andtide.ts:543. Disjoint from the held OWNERS PRs: #320 (probeOwners/probeBranchOwnerstruncated-tree arms — its body leaves this path out by name), #328/#331 (pullRequestOwners, issue-side fallback), #365 (parseOwnersfilters), #283 (root-OWNERS authorization), #333/#363 (approve evaluation arms,syncApprovalReview), #322/#347 (tide merge-queue and verdict arms).Related Issue
Closes #368
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88