From 87387385bc8ab2b32607adeb721fcf76c2837934 Mon Sep 17 00:00:00 2001 From: garrytan Date: Thu, 29 Oct 2026 04:18:41 +0000 Subject: [PATCH] pregate: clear the remote gate with verified Actions runs on the same tree (clear --run) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- bin/gstack-pregate | 41 ++++++- docs/pregate.md | 84 +++++++++++++ lib/pregate/config.ts | 18 ++- lib/pregate/index.ts | 81 ++++++++++-- lib/run-evidence.ts | 210 ++++++++++++++++++++++++++++++++ test/pregate-clear-runs.test.ts | 132 ++++++++++++++++++++ test/run-evidence.test.ts | 139 +++++++++++++++++++++ 7 files changed, 684 insertions(+), 21 deletions(-) create mode 100644 lib/run-evidence.ts create mode 100644 test/pregate-clear-runs.test.ts create mode 100644 test/run-evidence.test.ts diff --git a/bin/gstack-pregate b/bin/gstack-pregate index 8613150ed..18faaa02d 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 ] [--explain] [--json] * gstack-pregate verify [--out ] [--json] publication check: current tree, no fail/incomplete, obligations cleared - * gstack-pregate clear --remote --run-url | --bundle-lane