feat(home): pin iCloud Home for fresh installs (#171)
CI / ci (push) Canceled after 0s

With no stored Home override, launch resolves once and PINS the
winner, so the Home never silently moves: a legacy
~/Documents/Museion directory wins (existing Homes migrate manually,
never silently), else <CloudDocs>/Museion when iCloud Drive is
present (dynamically resolved unprefixed path, plain FileManager —
no ubiquity entitlements, ADR-0009), else the silent Documents
fallback. Repoint-only stands (ADR-0004), zero mover code.

The ladder + probes live in HomeResolution.swift (own file —
MuseionApp.swift stays under the lint line cap); init takes an
injectable probe/defaults seam, and default constructions under
hosted tests take an early return so the runner app's real iCloud
state and defaults are never touched. 9 seam-driven tests replace
the old default-Home pin; implement + finish-audit reviews landed
the legacy-probe dir gate, the non-destructive hosted no-write
guard, and the flip-verified CloudDocs spelling pin.

Suite 628/628 (xcresult executed count). DOX: Museion/AGENTS.md,
MuseionTests/AGENTS.md, GLOSSARY.md; devlog + INDEX + CHANGELOG.

Closes #171

Co-Authored-By: Cipher <cipher@hermes.local>
This commit is contained in:
AlexKuceraandCipher committed 2026-11-05 13:10:44 +01:00
1 parent c485cfac60
commit ad021b5267
10 files changed
+282 -34

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ Complete history of session logs in this directory, newest first. One-line summa
<!-- write-log: full-index -->
| Date | Type | File | Summary |
|------|------|------|---------|
| 2026-11-05 | issue | [20261105-issue171-default-home-icloud-pin-once-legacy-guard_log.md](20261105-issue171-default-home-icloud-pin-once-legacy-guard_log.md) | Fresh installs pin `<CloudDocs>/Museion` with a legacy-dir guard; injectable probe seam, 9 tests (#171) |
| 2026-11-04 | issue | [20261104-issue158-wayfinder-map-cold-turkey-closed_log.md](20261104-issue158-wayfinder-map-cold-turkey-closed_log.md) | #158: Cold Turkey map closed — frontier empty, build on main, hotkey fog parked; #140 ready to close |
| 2026-11-04 | issue | [20261104-issue166-preset-chips-cold-turkey-arm-bar_log.md](20261104-issue166-preset-chips-cold-turkey-arm-bar_log.md) | #166: preset chips ruled NO — typeable value + defaults + steppers cover arming; frontier now empty |
| 2026-11-04 | issue | [20261104-issue165-s5-1-tie-in-cold-turkey-block-first-draft-eligibility_log.md](20261104-issue165-s5-1-tie-in-cold-turkey-block-first-draft-eligibility_log.md) | #165: S5.1 tie-in ruled NO — capture stays pass-gated; revisit trigger parked in map Out of scope |