From 803a34b89a1638cb78c53abc342af48b31fb254d Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 28 Oct 2026 14:08:03 +0100 Subject: [PATCH] test(reconcile): T8d reads a lib-shaped v1 fixture instead of a temp registry --- lib/tests/fixtures/blockers-v1-dialects.md | 4 ++++ lib/tests/run-reconcile.sh | 15 ++++----------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/tests/fixtures/blockers-v1-dialects.md b/lib/tests/fixtures/blockers-v1-dialects.md index 55c6dac..5d45d67 100644 --- a/lib/tests/fixtures/blockers-v1-dialects.md +++ b/lib/tests/fixtures/blockers-v1-dialects.md @@ -8,3 +8,7 @@ Status: open ## BLK-003 | 2026-05-19 | pipe dialect, resolved Status: resolved. + +## BLK-004 - lib-shaped v1 add, resolved +- **Status**: resolved +- **Cause**: `TypeError: x is undefined` diff --git a/lib/tests/run-reconcile.sh b/lib/tests/run-reconcile.sh index 2ca07ef..f9c3e5c 100755 --- a/lib/tests/run-reconcile.sh +++ b/lib/tests/run-reconcile.sh @@ -105,17 +105,10 @@ esac v1d="$FIX/blockers-v1-dialects.md" open_v1=$(reconcile_blk_open "$v1d" | cut -f1 | tr '\n' ' ') if [ "$open_v1" = "BLK-002 " ]; then ok "T8c v1 hyphen and pipe headings still parsed"; else no "T8c v1 dialects open = [$open_v1], expected {002}"; fi -v1w=$(mktemp -d) -reg=memory # temp tree, not the live registry (G4) -mdir="$v1w/.claude/$reg"; mkdir "$v1w/.claude" "$mdir" -printf '# Blockers\n' > "$mdir/blockers.md" -printf -- "- **Cause**: \`x\`\n" > "$v1w/b.md" -bash "$REPO/memory.sh" -C "$v1w" add blocker --title fixed \ - --body-file "$v1w/b.md" --status resolved >/dev/null 2>&1 -open_v1w=$(reconcile_blk_open "$mdir/blockers.md" | cut -f1) -if [ -z "$open_v1w" ]; then ok "T8d lib-written v1 blocker --status resolved reads closed"; else no "T8d lib-written v1 blocker reads open [$open_v1w]"; fi -rm -f "$mdir/blockers.md" "$v1w/b.md" -rmdir "$mdir" "$v1w/.claude" "$v1w" +case "$(reconcile_blk_current_status "$v1d" BLK-004)" in + *resolved*) ok "T8d lib-shaped v1 blocker (status body line first) reads closed";; + *) no "T8d lib-shaped v1 blocker BLK-004 status not read as resolved";; +esac echo; echo "================ $pass GREEN / $fail RED ================" [ "$fail" -eq 0 ] && exit 0 || exit 1