# Changelog

## Score

- CAI 60 → 53 (-6.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

## Lenses

- Code Health 60 → 44 (-15.6)
- Architecture 87 → 95 (+7.4)
- Maturity 50 → 51 (+0.8)
- Readiness 69 → 68 (-0.7)
- Security 84 → 68 (-16.2)

## Resolved (76)

- Duplicated block (10 lines × 2) (Sources/Evaluator.swift)
- Duplicated block (10 lines × 2) (Sources/HtmlTreeBuilderState.swift)
- Duplicated block (10–11 lines × 2) (Tools/SwiftSoupProfile/main.swift)
- Duplicated block (10–13 lines × 2) (Tools/SwiftSoupProfile/main.swift)
- Duplicated block (11 lines × 4) (Sources/CharacterReader.swift)
- Duplicated block (13 lines × 2) (Sources/Entities.swift)
- Duplicated block (13 lines × 3) (Sources/StringBuilder.swift)
- Duplicated block (14 lines × 2) (Sources/HtmlTreeBuilderState.swift)
- Duplicated block (14 lines × 3) (Sources/StringBuilder.swift)
- Duplicated block (15 lines × 2) (Sources/StringUtil.swift)
- Duplicated block (16 lines × 2) (Sources/HtmlTreeBuilder.swift)
- Duplicated block (18 lines × 2) (Sources/StringUtil.swift)
- Duplicated block (5 lines × 2) (Sources/Element.swift)
- Duplicated block (5 lines × 2) (Tools/benchmark_exclusion.swift)
- Duplicated block (5 lines × 4) (Tools/compare_exclusion.py)
- Duplicated block (6 lines × 3) (Sources/HtmlTreeBuilderState.swift)
- Duplicated block (7 lines × 3) (Tools/SwiftSoupProfile/main.swift)
- Duplicated block (9 lines × 2) (Tools/SwiftSoupProfile/main.swift)
- Duplicated block (9–10 lines × 3) (Sources/HtmlTreeBuilderState.swift)
- Edited copy of a member (22 corresponding lines) (Sources/HtmlTreeBuilder.swift)
- …and 56 more

## New (119)

- Duplicated block (10 lines × 2) (Sources/Evaluator.swift)
- Duplicated block (10 lines × 2) (Sources/HtmlTreeBuilderState.swift)
- Duplicated block (10–11 lines × 2) (Tools/SwiftSoupProfile/main.swift)
- Duplicated block (10–13 lines × 2) (Tools/SwiftSoupProfile/main.swift)
- Duplicated block (11 lines × 4) (Sources/CharacterReader.swift)
- Duplicated block (11–14 lines × 2) (Sources/Element.swift)
- Duplicated block (13 lines × 2) (Sources/Entities.swift)
- Duplicated block (13 lines × 2) (Sources/HtmlTreeBuilderState.swift)
- Duplicated block (13 lines × 3) (Sources/StringBuilder.swift)
- Duplicated block (14 lines × 3) (Sources/StringBuilder.swift)
- Duplicated block (15 lines × 2) (Sources/StringUtil.swift)
- Duplicated block (18 lines × 2) (Sources/StringUtil.swift)
- Duplicated block (5 lines × 2) (Tools/benchmark_exclusion.swift)
- Duplicated block (6 lines × 3) (Sources/HtmlTreeBuilderState.swift)
- Duplicated block (7 lines × 3) (Tools/SwiftSoupProfile/main.swift)
- Duplicated block (9 lines × 2) (Tools/SwiftSoupProfile/main.swift)
- Duplicated block (9–10 lines × 3) (Sources/HtmlTreeBuilderState.swift)
- Edited copies of one member (3 members, 10+ corresponding lines) (Sources/DocumentType.swift)
- Edited copies of one member (3 members, 10+ corresponding lines) (Sources/Element.swift)
- Edited copies of one member (3 members, 12+ corresponding lines) (Sources/Elements.swift)
- …and 99 more

## Changes since last survey

- 18 commits — 17 feature/other, 1 fixes

## By area

- Tests/SwiftSoupTests — 6 commits
- Sources/Elements.swift — 5 commits
- (root) — 3 commits
- Sources/Element.swift — 2 commits
- (repo) — 1 commit
- Sources/HtmlTreeBuilder.swift — 1 commit

## Notable commits

- fix: Respect live parser scope boundaries and strengthen regression coverage
- change: Bound snapshot preflight and detach invalidated caches before callbacks
- change: Keep paragraph scope tracking current when closing elements
- change: Limit scope-cache maintenance to trusted construction
- change: Merge pull request #475 from lake-of-fire/codex/review-pr473-474-20261110
- change: Optimize small Elements removals
- change: Preserve callback mutations and detached removal indexes
- change: Preserve existing parser hot-loop code generation
- change: Preserve mutation versions when batching sibling slices
- change: Preserve parser and removal behavior in batched optimizations
- change: Preserve removal callbacks from bridged Foundation storage
- change: Preserve removal callbacks from custom ancestors
- change: Preserve removal order when selector snapshots release subtrees
- change: Preserve selection order when batching sibling removals
- change: Release rejected removal plans before custom callbacks
- change: Remove selected elements per parent in Elements.remove
- change: Scan sibling runs without per-element range updates
- change: Simplify removal batching while preserving callback order
