SPB Git

Repository Public MIT

DECISIONS.md 4.9 KB 25 lines markdown

1# Decisions23| ID | Date | Decision | Reason |4|---|---|---|---|5| D-001 | 2026-12-02 | Monorepo at `~/Desktop/Cluster/apple/SP/sp-glasskit`, origin `https://git.spboucher.ai/sp-glasskit`, public. | Apple projects live on the laptop (Xcode); the mandate names this repository. |6| D-002 | 2026-12-02 | MIT licence. | Confirmed by the owner on 2026-12-02. |7| D-003 | 2026-12-02 | Deployment targets: iOS / iPadOS 26.0 and macOS 26.0. iOS 18 / macOS 15 are **not** declared. | The mandate allows the older targets only if tests permit; no iOS 18 or macOS 15 runtime is installed, so a fallback could not be executed. The Material fallback still exists for Reduce Transparency and is tested on 26. |8| D-004 | 2026-12-02 | visionOS, tvOS and watchOS are not declared. | `Glass` is unavailable on visionOS; the mandate targets iOS, iPadOS and macOS. |9| D-005 | 2026-12-02 | `swift-tools-version: 6.2`, Swift 6 language mode (strict concurrency). | 6.2 is the first tools version with `.v26` platforms; keeps the package usable from Xcode 26. |10| D-006 | 2026-12-02 | Swift Testing for unit tests; XCUITest for the Studio. | Installed toolchain supports both; Swift Testing gives parameterised tests for the 50-component matrix. |11| D-007 | 2026-12-02 | No third-party dependency, including for CLI argument parsing (own strict parser). | Mandate §2 and §9. |12| D-008 | 2026-12-02 | Themes never expose blur, refraction or glass opacity. Controllable glass parameters are exactly: variant (regular / clear), tint, interactivity, shape. | These are the only parameters of `Glass` in the SDK (see audit). |13| D-009 | 2026-12-02 | The Studio Xcode project is generated by XcodeGen from `Apps/GlassStudio/project.yml`; the generated `.xcodeproj` is committed. | Reviewable project definition, while a clone opens without installing XcodeGen. |14| D-010 | 2026-12-02 | CI is `Scripts/ci.sh` (local and any macOS runner) plus `.github/workflows/ci.yml` calling it. | SPB Git has no known hosted macOS runner; the script is the source of truth. |15| D-011 | 2026-12-02 | Source mode ships its primitives explicitly: every component depends on the item `glass-foundation` (core, tokens, themes, effects, strings, licence), and files are prepared at build time by removing the imports of GlassKit modules. | The mandate requires source mode to work without the package. One shared item is smaller and safer than duplicating helpers in fifty components. |16| D-012 | 2026-12-02 | Dependencies between registry items are inferred from the symbols each file uses, not declared by hand. | A hand-kept list drifts. Inference can add an unneeded dependency; it cannot miss a referenced type. The 50 source-mode builds verify the result. |17| D-013 | 2026-12-02 | Published registry versions are immutable; the builder compares manifests and files and refuses to alter an existing version. | Checksums recorded in users' lock files must stay valid. |18| D-014 | 2026-12-02 | The registry directory is excluded from source-header stamping. | The header tool rewrote the `File` line of the published copies and broke 92 checksums (commit 3199324, fixed in c52795a). Registry files keep the header of their original source path. |19| D-015 | 2026-12-02 | Studio logic and views live in the package target `GlassStudioKit` (`Apps/GlassStudio/Kit`); the Xcode app target contains only the entry point and assets. | `swift test` can then exercise the Studio's models, stores, code generation and screen layout. The dependency direction is unchanged: the Studio depends on the libraries, never the reverse. |20| D-016 | 2026-12-02 | The Studio never compiles or evaluates user input. Previews are compiled SwiftUI driven by typed values; snippets come from typed templates with string-literal escaping; generated snippets are compiled in a fixture package by the test suite. | Mandate §10.2; also the only approach allowed on iOS. |21| D-017 | 2026-12-02 | The DocC reference is built locally (`Scripts/build-docs.sh`) and not hosted. | The umbrella archive weighs about 640 MB because DocC repeats inherited SwiftUI members for every view. The site documents components from the same Markdown pages the Studio bundles. |22| D-018 | 2026-12-02 | UI tests run on the iOS simulator only. They are not run on macOS on the development machine. | XCUITest on macOS takes over the pointer and keyboard of the machine in use. macOS is covered by off-screen layout tests of every screen and by captures of the running app taken from launch arguments. |23| D-019 | 2026-12-02 | Proposed bundle identifier `ai.spboucher.glassstudio` retained. | Queried through the App Store Connect API (read-only) on 2026-12-02: no existing bundle ID with that identifier in the team. |24| D-020 | 2026-12-02 | GlassKit's own strings follow the system language; the Studio's language setting changes the Studio interface only. | A global language override inside the package would be mutable global state, which the architecture rules exclude. |25
Files main
Menu

Theme