From f514308305781464e4902c7d9306468faddf13b8 Mon Sep 17 00:00:00 2001 From: bastien Date: Wed, 6 May 2026 18:31:03 +0200 Subject: [PATCH] =?UTF-8?q?optimize(code-clean):=20empty-approval=20branch?= =?UTF-8?q?=20=E2=80=94=20record=20audit=20+=20skip=20Phase=202=20cleanly?= =?UTF-8?q?=20(d3=20target)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/code-cleaner.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/agents/code-cleaner.md b/agents/code-cleaner.md index c6e4331..29c07fd 100644 --- a/agents/code-cleaner.md +++ b/agents/code-cleaner.md @@ -110,6 +110,25 @@ Present the report. Ask the user: If the user says "all" or "go ahead" → approve everything. If the user cherry-picks → execute only approved items. +#### Empty-approval branch + +If the user denies every item, replies "skip", "none", "don't fix anything", or +declines to approve any item: + +1. Print: + ``` + CODE-CLEAN — NO-OP + APPROVED: 0 items + ACTION : audit only — no files modified + ``` +2. Skip Phase 2 entirely. Do NOT run STEP 4–7. +3. Still write the audit report to `.claude/audits/CODE-CLEAN.md` so the + findings are recorded for next session. +4. Still write `.claude/audits/BUGS-FOUND.md` if STEP 3 detected real bugs + (those are signal regardless of cleanup approval). +5. Exit cleanly with summary `"Audit recorded. No changes applied."` — do not + warn or escalate. The user's "no" is a valid outcome. + --- ## PHASE 2 — EXECUTION (after approval)