fix(handover): read blocker statuses through the shared reader

STEP 9 parsed blocker statuses by hand from a cwd-relative dir, so §5
could list closed blockers or drop open ones (BLK-032..034 class).
New reconcile_blk_classify (strict v2, single-word v1, never the Index)
rooted on the PACKAGE root; unreadable entries are flagged via a
mandatory SYNTH REPORT MEMORY line relayed to the user.
This commit is contained in:
bchanot committed 2026-11-11 02:28:53 +01:00
1 parent ab7cada20b
commit 93a8e19c66
4 files changed
+177 -7

No files matched your search

+12 -1
View File
@@ -1150,7 +1150,12 @@ PACKAGE:
Parse its `SYNTH REPORT`: `STATUS: BLOCKED` → surface verbatim, stop (do
not patch the PACKAGE silently); malformed/mute → retry ONCE fresh, then
escalate. `STATUS: DONE` → THEN render:
escalate. `STATUS: DONE` with no `MEMORY:` line is malformed (same
retry-once path); so is `MEMORY: no blockers file` or `MEMORY: reader
unavailable` while `<root>/.claude/memory/blockers.md` exists (a
mis-parsed root or a broken lib, never a quiet empty §5). Any `MEMORY:`
value other than `unreadable BLK: none` is printed to the user before
the render and repeated in 9.7. `STATUS: DONE` → THEN render:
```
Agent(subagent_type="handover-doc-writer")
@@ -1190,6 +1195,12 @@ Parse the returned `HANDOVER-DOC REPORT`:
markers left in NAP, deploy chapter included/skipped).
Re-run PUSH STATE READ right before printing, then add the bullet:
- Push: <state>
When the synthesize `MEMORY:` value was not `unreadable BLK: none`,
add the bullet:
- Memory: <value>
For unreadable IDs, give the remedy: `bash ~/.claude/lib/memory.sh -C
<root> status <ID> "<word>, …"` (a status word, e.g. resolved or
open), then re-run.
- `STATUS: BLOCKED` → surface the report verbatim (including which
PACKAGE field the doc-writer flagged) and stop — do not retry or
patch the PACKAGE silently. Re-run PUSH STATE READ and add the same