Files
ECC/scripts/ci
legeZZZ 528eab1e49 fix: strip code blocks/spans before anchor and metadata sweeps
Address review feedback on PR #2679: collectEnforcedAnchors had no fence
awareness, so a spec merely SHOWING the anchor or delta syntax inside a
fenced code block or inline code span was collected and validated as if
the spec declared it — silent over-constraint (a target file could fail
freshness for a spec that never enforced it) or grammar errors on an
otherwise-fine file.

Both validators now strip fenced code blocks (``` / ~~~) and inline code
spans (`...`) before any comment/anchor/marker sweep; fenced blocks are
replaced with an equal number of blank lines so line-oriented parsing is
unaffected. The documented contract gains one line: code is illustrative,
never declarative.

Adds fixtures proving: fenced/tilde-fenced/inline example anchors are
ignored, fenced unknown-key and ADDED markers are ignored, a fenced anchor
does NOT satisfy an Invariant, and freshness only enforces the real anchor.
2026-09-26 10:36:55 +08:00
..