fix(memory): index fails closed on an unreadable registry

memory_index skipped a non-regular blockers.md and dropped the awk rc, so the digest printed a false '- open: none'. With a kind it now returns 2; without, it skips the bad registry with a stderr line. The digest prints unknown on a malformed row.
This commit is contained in:
bchanot committed 2026-11-15 19:35:15 +01:00
1 parent 2315a0b33a
commit 87aecc1212
5 files changed
+144 -13

No files matched your search

+2
View File
@@ -123,6 +123,8 @@ bash "$HOME/.claude/lib/memory.sh" -C "${ROOT:?}" index decision
Only BDRs whose current word is `accepted`, `implemented` or `proposed`
feed §6.1; `superseded` and `deprecated` ones are left out. A decision
whose word is empty is counted as unreadable, not dropped silently.
If `index decision` exits non-zero, write `MEMORY: decisions reader
unavailable` instead of an empty §6.1.
A `ROOT_UNSAFE` print (the first line of the root holds a control
character) or a pre-paste refusal (see above) → `STATUS: BLOCKED` naming