/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
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-22 10:24:56 +00:00
1 parent 54723680fc
commit 9d9ba2f057
6 files changed
+154 -17

No files matched your search

+5 -2
View File
@@ -963,8 +963,11 @@ once:
Then, for the lane:
- pregate.json was recorded against this repository's base, whose profiles
apply (`base_mismatch` otherwise).
- The run profiles come from the base pregate.json was recorded against (its
`base` field), so a branch stacked on another branch clears from that
branch's profiles, and so does the CI carry inside a `--base <branch>` run.
`clear --base <branch>` naming any other branch refuses (`base_mismatch`).
A stamp-only substitution still reads `origin/HEAD`'s stamp rule, as above.
- Each profile gets its own run (a run id given twice is a usage error), and
every run verifies under its profile. The assignment is searched, so a run
valid for two profiles cannot starve the other. A lane with a profile needs
+3 -2
View File
@@ -5035,8 +5035,9 @@ as attested rather than validated.
`gstack-pregate clear --run <id|url>` refusals use this code too: the line
reads `gstack-pregate clear: receipt refused — REUSE: refused reason=<code> —
…`, and the GitHub Actions runs offered did not verify against the base
branch's `run_profiles`. Each reason code and
…`, and the GitHub Actions runs offered did not verify against the
`run_profiles` of the base `pregate.json` was recorded against (`--base`
naming another branch refuses `base_mismatch`). Each reason code and
what it checks is listed in [run evidence](pregate.md#run-evidence).
`gstack-pregate clear --remote <workflow.yml/job> --run-url <url>` on a lane