From 473b1518cfbea193da0434bc4c424f6a6989106b Mon Sep 17 00:00:00 2001 From: aiongg <67543387+aiongg@users.noreply.github.com> Date: Fri, 6 Nov 2026 02:53:47 +0000 Subject: [PATCH 1/2] An item has at most one open single-item decision: newer Merge?/Close? questions set aside older ones, and an open scope question holds them --- docs/pipeline.md | 2 ++ src/act/index.ts | 3 ++- src/core/decide-item.ts | 2 +- src/core/decide.ts | 4 ++-- src/core/facts.ts | 5 ++-- src/core/plan.ts | 2 ++ src/merge/index.ts | 3 ++- src/merge/withdraw.ts | 44 +++++++++++++++++++++++++++++++++++ src/mirror.ts | 4 +++- src/preapproval/index.ts | 3 ++- src/review/candidates.ts | 11 +++++++++ test/decision-cleanup.test.ts | 16 ++++++++++++- 12 files changed, 89 insertions(+), 10 deletions(-) diff --git a/docs/pipeline.md b/docs/pipeline.md index 04bfbcbd..bb1c7eec 100644 --- a/docs/pipeline.md +++ b/docs/pipeline.md @@ -164,6 +164,8 @@ Model: Opus. Daily limit 100. **Closed items.** After every sync, open scope, close, merge and single-item duplicate decisions of items that are closed or merged in the mirror, and open duplicate-group decisions with fewer than two open members, are answered `withdrawn` by the pipeline with the reason as the note ("the pull request was closed on GitHub", "the pull request was merged", "the duplicate group has one open item left") and audited as `decision-withdrawn`; the item's timeline shows it. The first run after deploy clears the existing ones. A single-item question is renamed (`~replaced-