fix(doctrine): confirmation finding on a revised point is deferred, not revised; memory commit carries the TODO count

This commit is contained in:
bchanot committed 2026-11-21 12:36:18 +01:00
1 parent 1d21b759a0
commit 343ccc2b38
2 files changed
+11 -5

No files matched your search

+7 -4
View File
@@ -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): <IDs> — <flow> <short>`. 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): <IDs> — <flow> <short> · <todo>`. 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>`:
`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 ` · <todo>`, 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 "<message>")
+4 -1
View File
@@ -119,7 +119,10 @@ Parse each `CHALLENGE — LENS: … — VERDICT:` line and merge the FINDINGS:
is tagged `[deferred <date>]` 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 <date>]` with the finding quoted, for the human to
accept at the gate.
## OUTPUT — into the existing human gate