# Changelog

## Score

- CAI 57 → 55 (-1.4)

## Lenses

- Code Health 76 → 76 (+0.0)
- Architecture 97 → 97 (+0.0)
- Maturity 60 → 55 (-5.4)
- Readiness 36 → 36 (+0.0)
- Security 100 → 100 (+0.0)
- Performance 100 → 100 (+0.0)

## Resolved (4)

- Duplicate intent across bridges. Both `Perception` and `CDPBridge` expose a `findElements` method for locating UI elements. While they target different backends (general vs Chrome DevTools Protocol), the public API surface exposes two distinct ways to perform the same logical operation (finding elements) with different signatures and return types, forcing the caller to know which bridge to use.
- Inconsistent construction patterns. `LocatorBuilder` offers three distinct methods to create a `Locator`. `fromQuery` and `forRole` are convenience methods that likely delegate to `build`, but their existence alongside a generic `build` method creates API surface bloat and inconsistency in how users instantiate locators (some use static-like convenience methods, others use a builder pattern).
- Orphaned files with no living knowledge
- Redundant and confusingly named capture methods. `captureWindowSync` and `captureWindowSyncWithReason` appear to do the same core operation (sync capture by PID) but have different return types and names. `captureWindow` offers an alternative lookup by title. The distinction between 'Sync' and 'SyncWithReason' is unclear and likely duplicates intent or represents an incomplete refactoring.

## New (24)

- Dormant codebase
- Most significant orphaned file (Sources/GhostOS/Actions/Actions.swift)
- Most significant orphaned file (Sources/GhostOS/Perception/Perception.swift)
- Most significant orphaned file (Sources/ghost/SetupWizard.swift)
- Orphaned file (Sources/GhostOS/Actions/FocusManager.swift)
- Orphaned file (Sources/GhostOS/Common/Types.swift)
- Orphaned file (Sources/GhostOS/Learning/EventHandlers.swift)
- Orphaned file (Sources/GhostOS/Learning/LearningDispatch.swift)
- Orphaned file (Sources/GhostOS/Learning/LearningRecorder.swift)
- Orphaned file (Sources/GhostOS/Learning/LearningTypes.swift)
- Orphaned file (Sources/GhostOS/MCP/MCPDispatch.swift)
- Orphaned file (Sources/GhostOS/MCP/MCPServer.swift)
- Orphaned file (Sources/GhostOS/MCP/MCPTools.swift)
- Orphaned file (Sources/GhostOS/MCP/WaitManager.swift)
- Orphaned file (Sources/GhostOS/Perception/Annotate.swift)
- Orphaned file (Sources/GhostOS/Recipes/RecipeEngine.swift)
- Orphaned file (Sources/GhostOS/Recipes/RecipeStore.swift)
- Orphaned file (Sources/GhostOS/Recipes/RecipeTypes.swift)
- Orphaned file (Sources/GhostOS/Screenshot/ScreenCapture.swift)
- Orphaned file (Sources/GhostOS/Vision/CDPBridge.swift)
- …and 4 more
