feat(prune-memory): read statuses through one classifier, v1 and v2

reconcile_status_classify generalizes the BLK classifier to a prefix; STEP 1
runs it on decisions and blockers, unreadable statuses are an info-only count.
RED-9 runs the shipped block on v1 and v2 fixtures.
This commit is contained in:
bchanot committed 2026-11-12 00:11:03 +01:00
1 parent 7d35a3e26a
commit 99f10b2a26
4 files changed
+145 -37

No files matched your search

+2 -1
View File
@@ -653,7 +653,8 @@ memory_legacy_status() { # <file> <ID> [<end>] → the v1 lexical status line
| tail -1
return
fi
RE="$_MEM_LEGACY_RE" END_RE="$end" awk -v id="$2" '
# callers may widen the selector (reconcile: the decisions range)
RE="${MEM_LEGACY_RE:-$_MEM_LEGACY_RE}" END_RE="$end" awk -v id="$2" '
/^```/ { fence = !fence; next }
!fence && $0 ~ ("^#+ *" id "( |$)") && on { next }
!fence && $0 ~ ENVIRON["END_RE"] { on = 0 }