bootstrap: SwiftPM skeleton, gates, bundler, and the lane procedure
Four targets (MWBCore, MWBNet, MWBMac, mwb) with a layering test that keeps MWBCore free of AppKit/CoreGraphics/Network; tools/gates.sh as the definition of done; tools/bundle.sh producing a signed dist/mwb.app; tools/lane.sh for lane worktrees; smoke binary with --version and --check-permissions. docs/loop.md records the Dev -> QA -> lead loop with the literal dispatch prompts, the wave schedule and escalations. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
69c0f7ab53
commit
671b3dfa61
20 files changed
+615
-20
No files matched your search
@@ -0,0 +1,39 @@
|
||||
# <feature-name>
|
||||
|
||||
<!-- Copy to docs/features/<feature-name>/README.md. The lead writes Goal,
|
||||
Assumptions, Handshakes and Status/TODO as the brief; Dev owns the
|
||||
Work log; QA owns the QA log; the lead alone writes Review. -->
|
||||
|
||||
## Goal
|
||||
|
||||
One paragraph: what this lane delivers, why it exists, and which
|
||||
`docs/protocol.md` sections it implements.
|
||||
|
||||
## Assumptions
|
||||
|
||||
- Every judgement call that is not enforced by code, one bullet each,
|
||||
with the Windows citation (`App/<path>.cs:<line>`) where one exists.
|
||||
|
||||
## Handshakes
|
||||
|
||||
### Promised (topo.md handshake N, to <consumer lanes>)
|
||||
|
||||
```swift
|
||||
// public API sketch; may change during the lane, README updated in the same change
|
||||
```
|
||||
|
||||
### Consumed
|
||||
|
||||
- `<lane>`: `<API>` as published in its README.
|
||||
|
||||
## Status / TODO
|
||||
|
||||
- [ ] `<file>`: item
|
||||
- [ ] `Tests/<target>/<file>`: item
|
||||
- [ ] `docs/protocol.md`: citations verified / marks flipped
|
||||
|
||||
## Work log
|
||||
|
||||
## QA log
|
||||
|
||||
## Review
|
||||
@@ -54,12 +54,20 @@ works on this machine at all. Nothing in later lanes can start until
|
||||
- [x] Report the toolchain state to the user and wait for Xcode.
|
||||
Xcode 27.0 (27A266a) installed 2026-09-15; `xcode-select -p` is
|
||||
`/Applications/Xcode.app/Contents/Developer`.
|
||||
- [ ] `Package.swift`, empty targets with one placeholder type each,
|
||||
`Tests/MWBCoreTests/LayeringTests.swift`.
|
||||
- [ ] `tools/gates.sh`, `.swift-format`.
|
||||
- [ ] `tools/bundle.sh` + `Resources/Info.plist`.
|
||||
- [ ] `mwb --version`, `mwb --check-permissions`.
|
||||
- [ ] `tools/gates.sh` green; record Swift/Xcode versions in the work log.
|
||||
- [x] `Package.swift`, four targets + two test targets, one placeholder
|
||||
type each; `Tests/MWBCoreTests/LayeringTests.swift` enforces D2.
|
||||
- [x] `tools/gates.sh` (via `xcrun swift-format`), `.swift-format`.
|
||||
- [x] `tools/bundle.sh` + `Resources/Info.plist`; ad-hoc build verified,
|
||||
identity-signed build awaits the user's certificate (D5).
|
||||
- [x] `mwb --version`, `mwb --check-permissions` (exit 3 when a grant is
|
||||
missing) backed by `MWBMac/Permissions.swift` (preflight only).
|
||||
- [x] `tools/lane.sh` worktree helper; `docs/loop.md` procedure;
|
||||
`docs/features/TEMPLATE.md`.
|
||||
- [x] `tools/gates.sh` green: 3 XCTest cases, 0 warnings, lint clean.
|
||||
- [ ] Not done, deliberately: no CI workflow. The lucisv Gitea runner
|
||||
exists on this Mac (`verilogrustformatter/tools/RELEASING.md`), but
|
||||
a CI that runs `swift test` for a project that will soon post
|
||||
input events needs invariant 5 thought through first — TODO §8.
|
||||
|
||||
## Work log
|
||||
|
||||
@@ -70,7 +78,23 @@ works on this machine at all. Nothing in later lanes can start until
|
||||
XCTest case, `swift-tools-version:6.0`) built in 8 s and the test
|
||||
passed under `swift test`. The Assumptions above stay as the record of
|
||||
why Xcode is a requirement; the fallback Makefile is not needed.
|
||||
- 2026-09-15 (lead, solo at the user's request): skeleton landed.
|
||||
Decisions: (1) `Permissions.swift` ships now with *preflight only* so
|
||||
the smoke binary can report grants; the `event-tap` lane owns
|
||||
requesting and extends this file — recorded in `docs/topo.md` §1.1.
|
||||
(2) `swift-format` config: 110 columns, 4-space indent, `NeverForceUnwrap`
|
||||
and `NeverUseForceTry` as lint errors (CLAUDE.md Swift standards);
|
||||
tests are not exempted, so tests use `XCTUnwrap`. (3) `gates.sh`
|
||||
runs the guarded `swift test` once under `pipefail`; a guard kill
|
||||
fails the gate. (4) `bundle.sh` refuses to sign ad-hoc unless
|
||||
`MWB_ADHOC=1`, so nobody burns a TCC grant by accident. Deviation from
|
||||
plan: none. Versions: Xcode 27.0 (27A266a), Swift 6.4, macOS 27.0.
|
||||
|
||||
## QA log
|
||||
|
||||
## Review
|
||||
|
||||
- 2026-09-15 (lead): self-inspected per `docs/loop.md` §5 — gates green,
|
||||
layering test exercises real files, no force-unwraps in `Sources/`.
|
||||
Merged directly to `main` (solo lane, no worktree). Carry forward: the
|
||||
wave-1 briefs already exist; dispatch per `docs/loop.md` §1.
|
||||
Reference in new issue
Block a user