From 9d9ba2f057c37e87a221023071df6c7f59e09ce2 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Sun, 22 Nov 2026 02:24:56 -0800 Subject: [PATCH] /ship can clear its test gate from CI on a branch stacked on another branch (GST-3381) (#4689) When a branch is stacked on another branch, /ship can now clear its test gate from a green CI run instead of refusing with `base_mismatch`. Teams that ship stacked branches were stuck: the record named the stacked base, but the check read run profiles from the default branch. Nothing to do: branches based on main behave exactly as before. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/adversarial-native#3 reader=adversarial-native --- bin/gstack-pregate | 14 +- .../pregate-clear-reads-record-base.md | 4 + docs/pregate.md | 7 +- docs/troubleshooting.md | 5 +- lib/pregate/index.ts | 16 +-- test/pregate-clear-stacked-base.test.ts | 125 ++++++++++++++++++ 6 files changed, 154 insertions(+), 17 deletions(-) create mode 100644 changelog.d/pregate-clear-reads-record-base.md create mode 100644 test/pregate-clear-stacked-base.test.ts diff --git a/bin/gstack-pregate b/bin/gstack-pregate index 1ec77e829..bd7d0ff80 100755 --- a/bin/gstack-pregate +++ b/bin/gstack-pregate @@ -6,7 +6,7 @@ * [--allow-repo-commands] [--policy-from base|head] [--out ] * [--timeout ] [--stall-timeout ] [--remote --spend-cap ] [--run ] [--from-run ] [--no-ci-carry] [--explain] [--json] * gstack-pregate verify [--out ] [--json] publication check: current tree, every registered check, no fail/incomplete, obligations cleared - * gstack-pregate clear --remote --run-url | --run [--run …] [--allow-repo-commands] | --bundle-lane