You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Round-3 review of the foreign-regions feature:
- config: dedup foreign-region marker pairs by their *trimmed* markers,
matching the scanner's whole-line-after-TrimSpace comparison. A raw
`==` let two pairs that differ only in surrounding whitespace (e.g.
"<!-- x -->" vs " <!-- x -->") both survive, re-introducing the
double MDS073 / double-protection the round-2 dedup targeted.
- docs: correct foreign-regions.md — a duplicate `start` still pairs
the first `start` with the next `end`, so that span *is* protected;
the old "protects no bytes for it" blanket was wrong for that case.
- tests: lock the duplicate-start behavior with range/span assertions on
both scan paths (Scan and Restore), and add a whitespace-variant dedup
test.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EwKxDxhjkTQPPkBrNhsrNG
0 commit comments