← Back to Pull requests

chore: restore upstream ancestry lost to squash-merge #16

Closed
unknown closed this pull request without merging on Aug 05, 2026 01:15 UTC
View on GitHub
unknown unknown commented on Aug 03, 2026 17:44 UTC
Author

master is 61 commits behind istio/ztunnel and can't be synced normally. #13
brought the fork up to istio/ztunnel@0b09310 but was squash-merged, so the
48 upstream commits it carried collapsed into 53e597f. Git still computes the
merge base at 8fda410 (2026-03-03) and treats those commits as absent even
though their content is in the tree, so merging upstream/master replays them
and conflicts on code nobody changed.

This PR repairs the history only. It is a single -s ours merge of 0b09310,
recording it as a second parent so git knows what the squash already put in the
tree. It changes zero files. The merge base moves 8fda410 → 0b09310 and
the behind-count drops 61 → 13. Actually pulling those 13 commits is a separate
PR that follows this one.

-s ours records a merge but keeps our tree verbatim and discards the other
side's content — normally a footgun, since git then considers those commits
merged and will never replay them. It is correct here because the squash already
copied upstream's files in and only dropped the ancestry: git diff 0b09310
53e597f
is +4,618/-122 and every hunk is fork-owned (CI workflows, CODEOWNERS,
the spiffe/spire-api deps, proto/cri-api.proto, src/container_runtime.rs,
src/identity/spireclient.rs, the CompositeId refactor in
src/identity/manager.rs). No upstream content is missing, so recording the
ancestry drops nothing.

The 49 commits shown are the 48 restored upstream commits plus this merge; the
Files changed tab is empty, which is the intended result.

Testing

$ git diff --stat 53e597f 6c839a4      # the merge changes nothing

$ git merge-base upstream/master HEAD  # was 8fda410 (2026-03-03)
0b0931043740c64abfa06e4e6624cedec0171969

$ git rev-list HEAD..upstream/master --count   # was 61
13

Merging

Merge with "Create a merge commit", not "Squash and merge". Squashing a
zero-file-change PR produces an empty commit with no second parent: it would
appear to merge while accomplishing nothing, leaving the merge base stuck with
no visible symptom. The same applies to every future sync PR — squashing #13 is
what caused this.

Diff: 269 lines (+201 / -68) across 3 files Reviewer: MikeZappa87 Review duration: 1891m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 269 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.335
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.4% (MEDIUM) · Higher = larger blast radius
39.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.6% · Safe to merge
15.6%
Repository