From 549613e13ee6df9214f792ca7e0dc8dbaf1f533b Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 2 Nov 2026 23:51:28 +0000 Subject: [PATCH] feat(pregate): owner-granted flaky exception for named cases in a red run (GST-1096) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- bin/gstack-pregate | 32 +- bin/gstack-ship-receipt | 5 +- changelog.d/gsta-258-b-flaky-exception.md | 9 + docs/pregate.md | 79 +++++ lib/headless-artifacts.ts | 8 + lib/pregate/flaky-exception.ts | 390 ++++++++++++++++++++++ lib/pregate/index.ts | 45 ++- lib/pregate/run-check.ts | 4 +- lib/run-evidence.ts | 43 +++ lib/ship-queue.ts | 5 + lib/ship-receipt.ts | 2 +- test/pregate-flaky-exception.test.ts | 284 ++++++++++++++++ 12 files changed, 885 insertions(+), 21 deletions(-) create mode 100644 changelog.d/gsta-258-b-flaky-exception.md create mode 100644 lib/pregate/flaky-exception.ts create mode 100644 test/pregate-flaky-exception.test.ts diff --git a/bin/gstack-pregate b/bin/gstack-pregate index 3e31ae8ff..04e755938 100755 --- a/bin/gstack-pregate +++ b/bin/gstack-pregate @@ -7,6 +7,7 @@ * [--timeout ] [--stall-timeout ] [--remote --spend-cap ] [--run ] [--from-run ] [--explain] [--json] * gstack-pregate verify [--out ] [--json] publication check: current tree, no fail/incomplete, obligations cleared * gstack-pregate clear --remote --run-url | --run [--run …] [--allow-repo-commands] | --bundle-lane