square/Valet
61.2
Adequate · 14 November 2026
3.1k
lines of production code
Swift
primary language
5
measurements over time
What this system is
Features
Add Valet iOS Test Host App scaffolding
The Valet iOS Test Host App is introduced as a new test target, providing the necessary iOS application structure to exercise the Valet library. This includes standard project assets such as the app icon set, launch screen, and main storyboard, along with configuration files like Info.plist and entitlements. The entitlements specifically configure access to the 'group.valet.test' application group and keychain access groups, enabling the test host to interact with shared keychain storage for testing purposes.
Valet iOS Test Host App · high confidence
Add signed macOS test host app for keychain testing
A new macOS test host application has been added to enable testing of signed keychain code. The app includes a standard Cocoa interface (AppDelegate, ViewController, and Main storyboard) and is configured with entitlements for app sandboxing, application groups, and specific keychain access groups, allowing the test suite to verify behavior with properly signed binaries.
Valet macOS Test Host App · high confidence
Add tvOS test host application
A new test host application for tvOS has been added to support testing the Valet library on Apple TV. This includes the standard iOS application structure (AppDelegate, ViewController, Main storyboard) along with tvOS-specific asset catalogs for app icons and top-shelf images, and an entitlements file configured with the necessary keychain access groups for the test environment.
Valet tvOS Test Host App · high confidence
Added TouchID test storyboard for secure element operations
A new storyboard file (ValetSecureElementTestMain.storyboard) has been added to the ValetTouchIDTest localization bundle. This UI provides a test interface for the Valet TouchID feature, allowing users to perform secure element operations such as setting, getting, and removing items, checking for item existence, and requiring a biometric prompt.
ValetTouchIDTest/en.lproj · high confidence
Added watchOS test host app configuration and assets
A new watchOS test host application has been added to support running the full XCTest suite on watchOS devices. This includes the necessary app icon assets for various watch sizes and roles, an Info.plist defining the app bundle and its companion iOS app, entitlements for shared application groups, and a basic Interface.storyboard for the watch interface controller.
Valet watchOS Test Host App · high confidence
Added watchOS test host app structure
A new watchOS test host application has been added to support running tests on the watchOS platform. This includes the necessary SwiftUI app entry point, a basic content view, and associated asset catalogs for icons and colors, enabling the Valet library's test suite to execute in a watchOS environment.
Valet watchOS Test Host App Watch App · high confidence
Behavioural changes
Added Info.plist for Sources module
A new Info.plist file has been added to the Sources directory, establishing the standard metadata configuration (such as bundle identifier, version, and copyright) required for the module under the adopted SPM file structure.
Sources · high confidence
Automated multi-platform build and coverage reporting
The project now includes a Swift-based build script that automates compilation and testing across iOS 18, tvOS 18, macOS 15, and watchOS 11, supporting both Swift Package Manager and Xcode build systems. A companion shell script handles uploading code coverage reports to Codecov for the generated derived data, streamlining the CI process for these specific platform configurations.
Scripts · high confidence
Internal keychain access logic restructured for platform safety and migration support
The internal implementation of keychain operations has been refactored to improve cross-platform compatibility and data integrity. The new \Service\ configuration now applies the \kSecUseDataProtectionKeychain\ attribute to the base query on all platforms, addressing previous inconsistencies where it was only applied on macOS. Additionally, the \Keychain\ class now includes a dedicated \migrateObjects\ method, enabling the safe transformation and migration of existing keychain values. These changes are part of a broader internal restructuring that also introduces thread-safe wrappers for SecItem calls and centralized configuration enums.
Sources/Valet/Internal · high confidence
Updated Xcode project schemes for modern build configurations
The shared Xcode project schemes (including Valet Mac, iOS, tvOS, watchOS, and their respective test hosts) have been regenerated to version 1.3/1.7 with a LastUpgradeVersion of 1600. This update standardizes build settings across all targets, enabling parallel builds, implicit dependency building, and code coverage for test actions, while ensuring consistent debugger and launcher identifiers for reliable debugging and testing workflows.
Valet.xcodeproj/xcshareddata · high confidence
Valet 4.0 introduces Swift 6 concurrency, new Secure Enclave types, and explicit identifiers
Valet has been updated to version 4.0, adopting Swift 6 and Xcode 16 with full Sendable conformance across core types to support modern concurrency. The library now exposes new \SecureEnclaveValet\ and \SinglePromptSecureEnclaveValet\ classes for storing data on the Secure Enclave with configurable biometric access controls, alongside new \Identifier\ and \SharedGroupIdentifier\ structs that allow explicit, user-defined keychain service identifiers. Existing APIs have been refactored to use these new types, and \CloudAccessibility\ has been separated from \Accessibility\ to distinguish iCloud-synced items from local-only ones.
Sources/Valet · high confidence
Valet API refactored to use Secure Enclave
The Valet library has been updated to replace the previous SecureElement implementation with SecureEnclave. This change involves removing the legacy Valet.h and Valet.m interface files and introducing the new VALSinglePromptSecureEnclaveValet component, which alters how user presence authentication is handled for keychain operations.
Valet · high confidence
Valet project structure migrated to Swift and modern Xcode standards
The Valet iOS/macOS library has been rewritten in Swift, replacing the previous Objective-C implementation. This change introduces a new project structure with Swift-based source files (such as Valet.swift, SecureEnclave.swift, and Configuration.swift) and updates the Xcode project file to reflect modern build settings and object versions. The migration includes the addition of new test suites for Swift components and the integration of legacy Objective-C support via a separate LegacyValet framework, ensuring backward compatibility while shifting the primary development focus to Swift.
Valet.xcodeproj · high confidence
ValetTouchIDTest app rewritten in Swift with Secure Enclave support
The ValetTouchIDTest sample application has been rewritten in Swift to demonstrate the SinglePromptSecureEnclaveValet class. This update introduces a new launch screen and configures the app to request Face ID usage permissions. The test interface now allows users to store, retrieve, remove, and check for the existence of keychain items protected by the Secure Enclave, including a new 'Require Prompt' button that forces biometric authentication on the next access attempt.
ValetTouchIDTest · high confidence
Test coverage
Added unit tests for Valet configuration, keychain errors, and valet initialization; Added watchOS test host app extension scaffolding; Adopt SPM file structure for test bundle; Expanded integration test coverage for Valet keychain operations; Removed legacy Objective-C test suite.
Dependencies
10 commits updating dependencies (1 manifest)
A dependency / build maintenance change in (dependencies) — 10 commits (1 fix), 1 file: “Get Package.swift building on all platforms”; “Adopt Swift 6 and Xcode 16 (\#322)”; “Adopt SPM”; and 7 more (refs \#322, \#308, \#363, \#199).
(dependencies) · medium confidence · unverified
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
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 61 → 61 (+0.7)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 73 → 68 (-4.8)
- Architecture 98 → 98 (-0.2)
- Maturity 52 → 61 (+8.9)
- Readiness 52 → 50 (-1.9)
- Security 100 → 100 (+0.0)
Resolved (15)
- High: security finding (details withheld)
- Inverted test pyramid
- No ADRs found
- Orphaned file (Sources/Valet/Accessibility.swift)
- Orphaned file (Sources/Valet/Internal/Keychain.swift)
- Orphaned file (Sources/Valet/Internal/SecItem.swift)
- Orphaned file (Sources/Valet/Internal/Service.swift)
- Orphaned file (Sources/Valet/MigratableKeyValuePair.swift)
- Orphaned file (Sources/Valet/SecureEnclave.swift)
- Orphaned file (Sources/Valet/SecureEnclaveAccessControl.swift)
- Orphaned file (Sources/Valet/SharedGroupIdentifier.swift)
- Orphaned file (Sources/Valet/SinglePromptSecureEnclaveValet.swift)
- Orphaned file (ValetTouchIDTest/ValetTouchIDTestViewController.swift)
- Orphaned files with no living knowledge
- build.swift.top-level code (cognitive 22) (Scripts/build.swift)
New (11)
- Edited copies of one member (3 members, 4+ corresponding lines) (Sources/Valet/SecureEnclaveValet.swift)
- Edited copies of one member (4 members, 11+ corresponding lines) (Sources/Valet/SecureEnclaveValet.swift)
- Edited copies of one member (4 members, 12+ corresponding lines) (Sources/Valet/Valet.swift)
- Edited copies of one member (4 members, 7+ corresponding lines) (Sources/Valet/SecureEnclaveValet.swift)
- Edited copies of one member (4 members, 8+ corresponding lines) (Sources/Valet/Valet.swift)
- Edited copies of one member (6 members, 8+ corresponding lines) (Sources/Valet/Valet.swift)
- Edited copy of a member (14 corresponding lines) (Sources/Valet/SecureEnclave.swift)
- Edited copy of a member (19 corresponding lines) (Sources/Valet/Internal/SecItem.swift)
- Edited copy of a member (27 corresponding lines) (Sources/Valet/Valet.swift)
- Edited copy of a member (5 corresponding lines) (Sources/Valet/SecureEnclaveValet.swift)
- No ADRs found (Valet.xcodeproj/project.pbxproj)
Changes since last survey
- 1 commits — 1 feature/other, 0 fixes
By area
- (root) — 1 commit
Notable commits
- change: Remove CocoaPods support (#364)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
square/Valet was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit cf14b2ad4453a39cb671e08ca2add78da28f40cd — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.