From a2aea43fdff2496a23891cbb72cfc2e33b6de5a1 Mon Sep 17 00:00:00 2001 From: garrytan Date: Sat, 31 Oct 2026 22:43:39 +0000 Subject: [PATCH] fix(autoplan): open Critical and High findings reach the gate as apply items (GBRA-223 claim 3) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- autoplan/DRIVER.md | 2 +- docs/unattended.md | 8 +++- lib/autoplan-confirm.ts | 6 ++- lib/autoplan-gate.ts | 26 +++++++++--- lib/gate-list.ts | 14 +++++-- scripts/resolvers/autoplan-driver.ts | 2 +- test/autoplan-answer-invalidation.test.ts | 30 +++++++------- test/autoplan-capy-e2e.test.ts | 18 ++++---- test/autoplan-gate-cost.test.ts | 4 +- test/autoplan-gate-judgment.test.ts | 50 +++++++++++++++++++---- test/autoplan-run-recovery.test.ts | 3 +- test/helpers/autoplan-run-fixture.ts | 10 +++++ 12 files changed, 128 insertions(+), 45 deletions(-) diff --git a/autoplan/DRIVER.md b/autoplan/DRIVER.md index 6bbdc824a..b8ed9b8c2 100644 --- a/autoplan/DRIVER.md +++ b/autoplan/DRIVER.md @@ -111,7 +111,7 @@ A reply binds to the `gate_rev` you read (`--gate-rev`). Bare `yes`/`no` is unpa - `rec`: every item takes its recommendation, plan changes included (each prints APPLY:); `all` and `do it` are aliases. - `as-is`: keep every direction; no plan change. -- `d3b uc1a`: one