# Changelog

> **This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.**

## Score

- CAI 56 → 55 (-0.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

## Lenses

- Code Health 96 → 95 (-0.3)
- Architecture 92 → 91 (-1.2)
- Maturity 59 → 59 (+0.0)
- Readiness 43 → 43 (-0.5)
- Security 56 → 56 (+0.0)
- Performance 100 → 100 (+0.0)

## Resolved (19)

- Assertions commented out: testExample (Example/MantisTests/MantisTests.swift)
- CGImage.transformedImage (cognitive 17) (Sources/Mantis/Extensions/CGImageExtensions.swift)
- CGImage.transformedImage (cyclomatic 18) (Sources/Mantis/Extensions/CGImageExtensions.swift)
- Duplicated block (11 lines × 2) (Sources/Mantis/CropData.swift)
- Duplicated block (16–17 lines × 2) (Sources/Mantis/Extensions/UIImageExtensions.swift)
- Duplicated block (28–35 lines × 2) (Sources/Mantis/Extensions/UIImageExtensions.swift)
- Duplicated block (5 lines × 2) (Sources/Mantis/CropViewController/ToolBarButtonImageBuilder+DrawImage.swift)
- Duplicated block (6 lines × 2) (Sources/Mantis/CropView/CropBoxFreeAspectFrameUpdater.swift)
- Duplicated block (7 lines × 2) (Sources/Mantis/Extensions/UIImageExtensions.swift)
- Duplicated block (8 lines × 2) (Sources/Mantis/RotationDial/SlideDial/SlideDialTypeButton.swift)
- Duplicated block (9–16 lines × 2) (Sources/Mantis/Extensions/UIImageExtensions.swift)
- High: security finding (details withheld)
- Near-duplicate member pair (60 shared lines) (Sources/Mantis/Extensions/UIImageExtensions.swift)
- No assertions: testPerformanceExample (Example/MantisTests/MantisTests.swift)
- Skipped test: testObservationTrackingFiresOniOS17 (Tests/MantisTests/CropSessionTests.swift)
- UIImage.cropWithCIImage (cognitive 25) (Sources/Mantis/Extensions/UIImageExtensions.swift)
- UIImage.cropWithCIImage (cyclomatic 26) (Sources/Mantis/Extensions/UIImageExtensions.swift)
- UIImage.cropWithPerspective (cognitive 24) (Sources/Mantis/Extensions/UIImageExtensions.swift)
- UIImage.cropWithPerspective (cyclomatic 25) (Sources/Mantis/Extensions/UIImageExtensions.swift)

## New (31)

- CGImage.cropWithPerspective (cognitive 18) (Sources/MantisCore/CGImage+Crop.swift)
- CGImage.cropWithPerspective (cyclomatic 19) (Sources/MantisCore/CGImage+Crop.swift)
- CGImage.transformedImage (cognitive 17) (Sources/MantisCore/CGImageExtensions.swift)
- CGImage.transformedImage (cyclomatic 18) (Sources/MantisCore/CGImageExtensions.swift)
- Duplicated block (6 lines × 2) (Sources/Mantis/CropView/CropBoxFreeAspectFrameUpdater.swift)
- Duplicated block (6 lines × 2) (Sources/Mantis/CropViewController/CropToolbar.swift)
- Edited copies of one member (3 members, 12+ corresponding lines) (Sources/Mantis/AppearanceColorPreset.swift)
- Edited copy of a member (12 corresponding lines) (Sources/Mantis/CropViewController/ToolBarButtonImageBuilder+DrawImage.swift)
- Edited copy of a member (14 corresponding lines) (Sources/Mantis/Mantis.swift)
- Edited copy of a member (16 corresponding lines) (Sources/Mantis/Helpers/PerspectiveTransformHelper.swift)
- Edited copy of a member (17 corresponding lines) (Sources/Mantis/CropView/CropView+Touches.swift)
- Edited copy of a member (21 corresponding lines) (Sources/Mantis/RotationDial/SlideDial/SlideRuler.swift)
- Edited copy of a member (5 corresponding lines) (Sources/Mantis/Helpers/SkewPositioning.swift)
- Edited copy of a member (6 corresponding lines) (Sources/Mantis/Config.swift)
- Edited copy of a member (64 corresponding lines) (Sources/Mantis/RotationDial/SlideDial/SlideDialIconDrawer.swift)
- Edited copy of a member (9 corresponding lines) (Sources/Mantis/CropView/CropView+Layout.swift)
- High interface indirection
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- …and 11 more

## Changes since last survey

- 4 commits — 3 feature/other, 1 fixes

## By area

- Sources/Mantis — 2 commits
- Tests/MantisTests — 2 commits

## Notable commits

- fix: fix: keep ellipse(maskOnly:) crops rectangular and add core unit tests (#557)
- change: feat!: Mantis 4.0 — SwiftPM only, iOS 17, Xcode 16 (#556)
- change: feat!: add MantisCore, a UIKit-free crop engine that also runs on macOS (#559)
- change: test: allow one pixel of slack in SlideDial ruler-ratio checks (#561)
