From 343ccc2b38a2efe684293f82f2a80718bb1fb25c Mon Sep 17 00:00:00 2001 From: bchanot Date: Sat, 21 Nov 2026 12:36:18 +0100 Subject: [PATCH] fix(doctrine): confirmation finding on a revised point is deferred, not revised; memory commit carries the TODO count --- lib/capitalize-commit.md | 11 +++++++---- lib/challenge-plan.md | 5 ++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/capitalize-commit.md b/lib/capitalize-commit.md index 34a44f8..c6215a5 100644 --- a/lib/capitalize-commit.md +++ b/lib/capitalize-commit.md @@ -58,10 +58,10 @@ never a shell argument. ## DO 1. Compose the message from the IDs just written + the flow, matching repo style - `chore(memory): — `. Examples: - - `chore(memory): BDR-034 + LRN-051 — feat dark-mode toggle` - - `chore(memory): BLK-010 resolved — bugfix profile path` - - `chore(memory): journal — hotfix copy typo` (journal-only, nothing else) + `chore(memory): — · `. Examples: + - `chore(memory): BDR-034 + LRN-051 — feat dark-mode toggle · TODO +1 / -0` + - `chore(memory): BLK-010 resolved — bugfix profile path · TODO +0 / -1` + - `chore(memory): journal — hotfix copy typo · TODO +0 / -0` (journal-only) Then, still before step 2, count the run's TODO movement as ``: `TODO +n / -m`, the open TODO items the run added and removed (closed or @@ -81,6 +81,9 @@ never a shell argument. todo="TODO +$n / -$m" else todo="TODO n/a"; fi + The message composed above ends with ` · `, as in the examples, so + each run's movement reads in `git log --oneline --grep '· TODO'`. + 2. Commit surgically via the helper, capturing the memory-commit hash it prints: mem_hash=$(bash "$HOME/.claude/lib/memory-commit.sh" commit "") diff --git a/lib/challenge-plan.md b/lib/challenge-plan.md index 2941ff1..51197b9 100644 --- a/lib/challenge-plan.md +++ b/lib/challenge-plan.md @@ -119,7 +119,10 @@ Parse each `CHALLENGE — LENS: … — VERDICT:` line and merge the FINDINGS: is tagged `[deferred ]` for the human to accept at the gate. - **Re-challenge once if the plan materially changed** — a fix can open a new flaw. Re-persist the revised `PLAN`, dispatch ONE fresh confirmation challenger, - max 1 extra pass, then the gate. + max 1 extra pass, then the gate. A BLOCKER or MAJOR that confirmation pass + still lands on a point the revision touched is not revised again: it is + tagged `[deferred ]` with the finding quoted, for the human to + accept at the gate. ## OUTPUT — into the existing human gate