Split the project into Lanework and Lanework Pro targets

Two app targets from one source tree — no build flags, no #if in
shared code: an edition difference is a file one target compiles and
the other does not. Base keeps everything it had (dev.rzen.indie.Kanban,
minimal entitlements, AppIcon); KanbanPro compiles the same sources
plus the reserved KanbanPro/ root (Git/, Remote/, Auth/ land with
pro-m1 — libgit2 deliberately not added yet), adds network-client and
its keychain group, and hand-writes its Info.plist with the UTI block
verbatim — base exports the type, Pro imports it, one format either
app opens. The unit-test sources compile twice, once per host, with
Pro's module aliased so 56 test files keep @testable import Kanban
unchanged; scheme Kanban stays the muscle-memory command and
LaneworkPro joins it. InertGitTests pins the base posture with bytes
and mtimes — a full editing session over boards carrying realistic
.git trees at root and nested in a card leaves all twelve entries
untouched, and moves and copies carry them verbatim.
scripts/verify-editions.sh proves the rest: 26 checks over signatures,
symbols, entitlements, identity, and the shared UTI, discounting
Xcode's test-host exceptions by name rather than silently.

Claude-Session: https://claude.ai/code/session_01SR4XGjmBE16ZUYWpfFHXwY
This commit is contained in:
2026-07-28 13:15:06 -04:00
parent 06ee59e24b
commit f37892c9a9
20 changed files with 898 additions and 5 deletions
+36
View File
@@ -0,0 +1,36 @@
import Foundation
/// **Pro's source root.** This directory and this file's presence in it *is* the edition
/// split (12-editions.md Targets): the `Kanban` target compiles `Kanban/` alone, the
/// `KanbanPro` target compiles `Kanban/` **plus** `KanbanPro/`. Nothing in the shared tree is
/// `#if`-ed on an edition, because "the editions differ at the binary level" (12) is only true if
/// the difference is a file one target builds and the other does not.
///
/// **What lands here, and when.** Nothing yet this is a reserved root, split out ahead of the
/// code so pro-m1 is a set of new files rather than a second pass over the project structure:
///
/// - `KanbanPro/Git/` the git `HistoryProviding` implementation (06-history-undo.md: undo as
/// forward restore commits over HEAD's first-parent ancestry), init/adoption, branches, commit
/// identity, repository hygiene. Brings the libgit2 dependency with it; the base target must
/// never gain one, which `scripts/verify-editions.sh` checks against the signed binary.
/// - `KanbanPro/Remote/` pull/push, push-on-commit (07-sync-collab.md). The
/// `com.apple.security.network.client` entitlement Pro already carries is for this, and base's
/// lack of it is the other half of what the verification script checks.
/// - `KanbanPro/Auth/` remote credentials over the declared keychain access group
/// (07 Auth: Keychain, SSH, TOFU).
///
/// **What does not land here**: anything the edition matrix marks for all three editions. The
/// board experience, agent attribution and accessibility are shared code and stay in `Kanban/`.
///
/// The type itself is a namespace, not state the composition root that picks a
/// `HistoryProviding` per edition arrives with the providers it chooses between (base's native
/// stack in m8-native-undo, Pro's git stack in pro-m1), and inventing a seam here before either
/// exists would be guessing at its shape.
enum ProEdition {
/// The edition's own bundle identifier (12 Targets, ruled 2026-07-27: base keeps
/// `dev.rzen.indie.Kanban`, Pro mints its own). Stated as a constant so the value has one
/// home in Pro-only code; the running app reads its identity from `Bundle.main`, which is
/// already how the App Support directory is per-edition without a line of edition code
/// (`BoardRegistry`, `ClipboardStore`).
static let bundleIdentifier = "dev.rzen.indie.KanbanPro"
}