feat(m0): complete scaffold, logging and signature checks (T0.2-T0.6)

Add os.Logger categories, OSSignposter wrapper and shortHash helper; enforce exact Debug/Release/install signatures; lint tests; update M0 docs and progress.
This commit is contained in:
schihei committed 2026-11-26 12:33:51 +01:00
1 parent 374085ec2f
commit 7ca5c710ec
17 files changed
+331 -9

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ Goal: an empty but correctly configured project that builds, tests and launches
| Task | Description | AC | Req |
|---|---|---|---|
| T0.1 | The kit ships `Packages/SprachmittlerKit/Package.swift` with placeholder sources, tests and synthetic fixtures. Verify it resolves and builds; replace placeholder enums as modules gain real types. | `swift build --package-path Packages/SprachmittlerKit` and `make test` succeed; fixture-loading test passes. | R048 |
| T0.2 | Complete the `App/` sources (stubs shipped): `SprachmittlerApp` with a `MenuBarExtra`, `Settings` scene and quit item; `Info.plist` (`LSUIElement`, `NSServices`, ATS local networking); non-sandboxed entitlements. | `make app` builds; the menu-bar icon appears and no Dock icon is shown; `codesign -d --entitlements -` shows exactly `app-sandbox = false`. | R021, R041, R049 |
| T0.2 | Complete the `App/` sources (stubs shipped): `SprachmittlerApp` with a `MenuBarExtra`, `Settings` scene and quit item; `Info.plist` (`LSUIElement`, `NSServices`, ATS local networking); non-sandboxed entitlements. | `make app` builds; the menu-bar icon appears and no Dock icon is shown; the entitlements file contains exactly `app-sandbox = false`. A Debug signature may additionally carry Xcode's injected `get-task-allow`; Release and the `make install` signature must not. `scripts/verify.sh` checks the Debug and Release signatures; `make install` checks the installed one. | R021, R041, R049 |
| T0.3 | Validate the shipped `project.yml` and `make generate`; set your own bundle ID prefix. | `xcodegen generate` produces a project that builds in Xcode and via `xcodebuild`. | R049 |
| T0.4 | Run the shipped `scripts/verify.sh`, `.swiftformat`, `.swiftlint.yml`; fix issues so the gate is green on the scaffold. Add `os.Logger` categories and an `OSSignposter` wrapper in `SprachmittlerCore`. | `make verify` runs end-to-end; logging helper used in a test. | R033, R050 |
| T0.5 | Run `make doctor`: OpenCode 2.x installed, `opencode.json` parses as native V2, agents/commands/skills discovered, `opencode debug config` shows the permission rules. | `make doctor` green; `/status` works in OpenCode. | R048 |