Some checks failed
ci/woodpecker/pr/ci Pipeline failed
rev0 (PR #868, Gitea comment #18505) caught a real data-relocation bug: the marker scan locked start_idx to the FIRST START but overwrote end_idx on EVERY END, so a board with two BOARD-ROLL zones collapsed into one first-START..last-END span. That span engulfed the curated `##` content and the intermediate START/END markers between the two zones, silently relocating pinned lines into the LEDGER — the exact failure this tool exists to prevent. Fix (conservative, matches the "no markers = exit 3" posture): count START and END markers; if either appears more than once, refuse with exit 3 and change nothing. Single-zone behavior is unchanged. Adds regression group 8: two zones with a curated CANARY section between them, cap 80 → asserts exit 3, LIVE unchanged, and the canary never leaks into the LEDGER. shellcheck -S warning clean; 8/8 groups pass. Refs #868