# Changelog

## Score

- CAI 55 → 58 (+3.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

## Lenses

- Code Health 59 → 55 (-3.7)
- Architecture 96 → 96 (+0.7)
- Maturity 87 → 67 (-19.3)
- Readiness 42 → 48 (+6.4)
- Security 74 → 83 (+9.1)
- Domain Modelling 100 → 100 (+0.0)
- Accessibility 59 → 70 (+11.6)
- Performance 81 → 91 (+10.6)

## Resolved (95)

- ArtifactCapture.captureWindow (cognitive 18) (Tools/BidiHarness/BidiHarness/ArtifactCapture.swift)
- ArtifactCapture.captureWindow (cyclomatic 17) (Tools/BidiHarness/BidiHarness/ArtifactCapture.swift)
- Attribute.toSgr (cognitive 27) (Sources/SwiftTerm/CharData.swift)
- Attribute.toSgr (cyclomatic 16) (Sources/SwiftTerm/CharData.swift)
- ByteRunScanner.firstC0OrByte (cognitive 17) (Sources/SwiftTerm/ByteRunScanner.swift)
- CircularBufferLineList.shiftUpAndRecycle (cognitive 18) (Sources/SwiftTerm/CircularList.swift)
- ClassTooLong: HarnessViewController (Tools/BidiHarness/BidiHarness/HarnessViewController.swift)
- Duplicated block (10 lines × 2) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- Duplicated block (10 lines × 2) (Sources/SwiftTerm/Apple/SnapshotTextBuilder.swift)
- Duplicated block (10 lines × 2) (Sources/SwiftTerm/Mac/MacTerminalView.swift)
- Duplicated block (10 lines × 3) (Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift)
- Duplicated block (10–13 lines × 4) (Sources/SwiftTerm/CharSets.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/CharData.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/Mac/MacTerminalView.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/SelectionService.swift)
- Duplicated block (12 lines × 2) (Docs/prototypes/futex-ticket-lock/main.swift)
- Duplicated block (12–14 lines × 2) (Sources/SwiftTerm/SearchEngine.swift)
- Duplicated block (13 lines × 2) (Sources/SwiftTerm/Buffer.swift)
- …and 75 more

## New (211)

- Attribute.sgrParameters (cognitive 16) (Sources/SwiftTerm/CharData.swift)
- Attribute.sgrParameters (cyclomatic 21) (Sources/SwiftTerm/CharData.swift)
- Buffer.insertCharacter (cyclomatic 18) (Sources/SwiftTerm/Buffer.swift)
- Buffer.insertScalarRun (cyclomatic 18) (Sources/SwiftTerm/Buffer.swift)
- CircularBufferLineList.shiftUpAndRecycleLines (cognitive 18) (Sources/SwiftTerm/CircularList.swift)
- ClassTooLong: TerminalKeyboardRouter (Sources/SwiftTerm/Mac/MacKeyboardRouter.swift)
- CoreGraphicsPaintHost.drawRunAttributes (cognitive 37) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- CoreGraphicsPaintHost.drawRunAttributes (cyclomatic 23) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- CoreGraphicsPaintHost.drawTerminalContents (cognitive 240) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- CoreGraphicsPaintHost.drawTerminalContents (cyclomatic 101) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- Duplicated block (10 lines × 2) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- Duplicated block (10 lines × 2) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- Duplicated block (10 lines × 2) (Sources/SwiftTerm/Mac/MacCaretView.swift)
- Duplicated block (10–11 lines × 2) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/Apple/AppleTerminalView.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/SelectionService.swift)
- Duplicated block (11 lines × 2) (Sources/SwiftTerm/Terminal.swift)
- Duplicated block (11 lines × 3) (Sources/SwiftTerm/Apple/Metal/MetalTerminalRenderer.swift)
- Duplicated block (12 lines × 2) (Docs/prototypes/futex-ticket-lock/main.swift)
- …and 191 more

## Changes since last survey

- 57 commits — 53 feature/other, 4 fixes

## By area

- Sources/SwiftTerm — 42 commits
- Tests/SwiftTermTests — 7 commits
- (root) — 2 commits
- Tools/SwiftTermBenchmarks — 2 commits
- (repo) — 1 commit
- .github/workflows — 1 commit
- TerminalApp/iOSTerminal — 1 commit
- TerminalApp/iOSTerminal.xcodeproj — 1 commit

## Notable commits

- fix: Fix APC UTF-8 continuation bytes across input chunks (#799)
- fix: Fix out-of-range read in reflowNarrower; ignore DECSLRM with left >= right
- fix: Fix three CI failures on main (#794)
- fix: fix: duplicate primary PTY descriptors under the session lock (#842)
- change: Add DECSET_DECAWM_OffRespectsLeftRightMargin to the esctest allowlist
- change: Add OSC 110/111 and DECSET 41; TAB keeps the pending wrap
- change: Add a CI check for run-time field layout in hot-path types
- change: Add a code layout report for benchmark A/B runs
- change: Add pending-wrap tests
- change: Add small sanmple program to test iOS keyboard input without creating a real SSH account
- change: Add the reverse wraparound tests to the esctest allowlist
- change: Add wrap-heavy benchmark workloads
- change: Apply sync-end and cursor-style updates at the next frame tick
- change: Clear warnings on github for the sample app
- change: Coalesce OSC 12/112 cursor color changes on the frame driver
- change: Content snapshots: buffer selection, whole-buffer and ranged regions, palette, and an ANSI export (#753)
- change: DECCRA follows origin mode for the destination; DECFI scrolls from the pending wrap
- change: Drop inline images from lines that EL, ED 0/1 and ECH erase (#815)
- change: Drop the glyph atlas CPU copy and start the color atlas smaller (#816)
- change: End OSC 8 links on an empty URI with params (#834)
- …and 37 more
