Repository navigation
v1.92.17.0 fix(review): pass takes DIFF_BASE from the origin merge base (GST-716) - #3780
Merged
Merged
Conversation
…GST-716, failing first) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…plan and targeted check do (GST-716) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…st-of-test ratchet) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
This was referenced Nov 1, 2026
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gstack-review-dispatch passnow takes the readers' diff base from the merge base withorigin/<base>, and falls back to<base>only when there is no origin ref. That is the basegstack-review-planscores and the base the targeted reader's render check already demanded. Both call sites now share onemergeBaseWithhelper.Why
GST-716 (GSTA-226): when the local
<base>branch laggedorigin/<base>, the plan sized the review on the origin diff, but every brief named the stale local merge base. Readers then reviewed upstream commits the branch only inherited. GSTA-226 paid about 12,400 credits for readers going through 78 upstream files. The /ship run for this PR hit the same bug on the installed gstack. Its first pass got 76 files instead of 3, because this checkout's localmainis 4eff47c andorigin/mainis 3f79d81.Proof, failing first.
test/review-dispatch-origin-base.test.tsbuilds a clone whose localmainlagsorigin/main. On main it fails, because the manifest'sdiff_baseis the local merge base and not the origin one. With the fix it passes, and every rendered brief names the origin merge base.Blast radius
bin/gstack-review-dispatchonly. When local<base>matchesorigin/<base>the two merge bases are the same, so nothing changes.--diff-baseand the scoped fix-range base still take precedence. It adds no network calls, environment reads, permission changes, workflow edits or dependencies.Approvals
None needed. This is an audited bug fix under the fix-lane exemption, assigned by GStack Minder (GSTA-36), who said to build it on main after #3766 merged. GStack Minder also granted a third Step 14.5 docs-audit launch, because the second one failed at launch on an install-verdict path.
Pre-Landing Review
Pre-Landing Review: 4 issues — 0 fixed, 3 deferred, 1 noted
Gate edits: none detected
Deferred findings
The cross-family outside voice raised three blocking findings, all in code this PR doesn't change. It could see them because pass 1 ran on the old dispatcher and read the stale range. None is reproduced. GStack Minder routed them to GSTA-213 as GST-738 and kept them off the public tracker, because two of them describe ways to get past the secrets scan.
lib/pregate/checks/secrets.ts:75: the whole-file eligibility check trusts unverified working-copy context.lib/redact-patterns.ts:732: the string lexer ends a triple-quoted f-string at an interpolated delimiter.lib/review-pass.ts:89: a scoped Red Team ignores an explicit--diff-baseoverride.Review notes
bin/gstack-review-dispatch:172: this /ship's pass 1 ran on the installed pre-fix dispatcher, so its readers got the stale local merge base. The range was a superset, so nothing was missed. The adversarial reader checked the 3-file diff directly.bin/gstack-review-dispatchliterally. The fix-check came back with no findings.Documentation
Status: current. The docs already match the change, so nothing was edited.
Scope: the diff from base 3f79d81 to HEAD f84db7a (bin/gstack-review-dispatch, test/review-dispatch-origin-base.test.ts, changelog.d/gst-716-dispatch-origin-base.md). Nothing was staged, unstaged or untracked.
gstack-review-dispatch passnow takes the readers' diff base from the merge base withorigin/<base>, falling back to<base>. No public surface changed.Documentation health:
git merge-base origin/<base> HEAD)Coverage debt: none. No new commands, flags or environment variables. Diagram drift: none.