From 17afb6831b1dee72b004a4b36055e31a0ea5ab05 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Sun, 22 Nov 2026 06:34:48 -0800 Subject: [PATCH] /ship reruns the test gate when its record was taken against a different base branch (GST-3493) (#4706) /ship no longer accepts a test-gate record taken against a different base branch: it reruns the gate against the base it ships to. Why: a record cleared while a pull request was stacked on another branch still verified after the pull request was retargeted at main with the same code, though it used the other branch's policy and CI run profiles. Nothing to do. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#2 reader=testing Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/outside-voice#2 reader=outside-voice --- bin/gstack-pregate | 11 +- bin/gstack-ship-receipt | 8 +- .../pregate-verify-checks-record-base.md | 1 + docs/pregate.md | 3 +- docs/troubleshooting.md | 12 +- lib/pregate/index.ts | 5 +- lib/ship-queue.ts | 2 +- lib/ship-release.ts | 2 +- test/pregate-verify-base.test.ts | 127 ++++++++++++++++++ test/ship-queue-ready-pr-base.test.ts | 17 ++- test/ship-release.test.ts | 16 +++ 11 files changed, 187 insertions(+), 17 deletions(-) create mode 100644 changelog.d/pregate-verify-checks-record-base.md create mode 100644 test/pregate-verify-base.test.ts diff --git a/bin/gstack-pregate b/bin/gstack-pregate index bd7d0ff800..c937f5d6bb 100755 --- a/bin/gstack-pregate +++ b/bin/gstack-pregate @@ -5,7 +5,7 @@ * gstack-pregate [run] [--stage preflight|tests|guards|all] [--only ] [--base ] * [--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 verify [--base ] [--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