S1 — Default Museion Home flips to iCloud (CloudDocs), pinned once with legacy guard #171
Notifications
Due Date
No due date set.
Blocks
Reference: AlexKucera/museion#171
Reference in new issue
Block a user
Spec source: resolution comment on #170 (map #167). Plain build slice for #145 — not a wayfinder ticket.
What
Flip the default Museion Home to iCloud for NEW installs — pin-once with a legacy-Home guard.
AppGateState(Museion/MuseionApp.swift:47-68): when no stored override exists (UserDefaultsmuseionHome, existing semantics — file URLs only), resolve and PIN once, in this order:~/Documents/MuseionEXISTS on disk → existing Home → pin the legacy path (charting settlement: existing Homes migrate manually, never silently).~/Library/Mobile Documents/com~apple~CloudDocs, unprefixed; never a hard-codediCloud~form) exists and is a directory → pin<CloudDocs>/Museion.~/Documents/Museion. No dialog, no rail pill — the Settings Home field just shows the resolved path.Pin = written to UserDefaults once, only when no value is stored. The Home never silently moves after pinning.
Constraints
home default is documents museiontest (MuseionTests/PostLibraryTests.swift:199) to the seam.defaultMuseionHomefirst (repo rule).Acceptance
xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' buildand… testgreen (verify by executed count, not the banner).[Generated by AI]