Default-Home spec — path, fallback, ADR/PRD amendments, migration docs #170

Closed
opened 2026-11-05 11:12:35 +01:00 by AlexKucera · 2 comments
Owner

Part of #167

Question

Default-Home spec, pinned after the companion pick: exact default path for NEW Homes in iCloud (and the silent ~/Documents/Museion fallback mechanics when iCloud is unavailable at first run — settled at charting), the ADR-0004 amendment wording (default flips; repoint-only stands) plus any ADR-0009/PRD line-14 touch-ups, and the README/docs content for the documented manual migration of existing Homes (move folder in Finder → repoint in Settings; "Keep Downloaded" guidance per the factsheet). Ends by graduating numbered build slices as plain tickets that satisfy #145.

[Generated by AI]

Part of #167 ## Question Default-Home spec, pinned after the companion pick: exact default path for NEW Homes in iCloud (and the silent `~/Documents/Museion` fallback mechanics when iCloud is unavailable at first run — settled at charting), the ADR-0004 amendment wording (default flips; repoint-only stands) plus any ADR-0009/PRD line-14 touch-ups, and the README/docs content for the documented manual migration of existing Homes (move folder in Finder → repoint in Settings; "Keep Downloaded" guidance per the factsheet). Ends by graduating numbered build slices as plain tickets that satisfy #145. [Generated by AI]
AlexKucera added the wayfinder:grillingwayfinder:grilling labels 2026-11-05 11:12:35 +01:00
Author
Owner

Companion pick landed (resolution on #169, comment 26889): CloudDocs — default path iCloud Drive/Museion (unprefixed com~apple~CloudDocs, resolved dynamically), Textastic-class companion, Obsidian out of the story. Write the default spec from that: ADR-0004 amendment (default flips, repoint-only stands), silent ~/Documents/Museion fallback (settled at charting), migration docs = Finder move + repoint + Keep Downloaded; eviction/conflict tolerances per #168.

[Generated by AI]

Companion pick landed (resolution on #169, comment 26889): CloudDocs — default path `iCloud Drive/Museion` (unprefixed `com~apple~CloudDocs`, resolved dynamically), Textastic-class companion, Obsidian out of the story. Write the default spec from that: ADR-0004 amendment (default flips, repoint-only stands), silent `~/Documents/Museion` fallback (settled at charting), migration docs = Finder move + repoint + Keep Downloaded; eviction/conflict tolerances per #168. [Generated by AI]
AlexKucera self-assigned this 2026-11-05 11:49:13 +01:00
Author
Owner

Resolves #170 (child of #167). Round: one structured form, 2026-11-05, owner answered all three with the recommendations; folded assertions unvetoed.

Decision

Default-Home spec — pin-once at first run, with a legacy-Home guard.

  • No stored override → resolve once and PIN (UserDefaults museionHome, existing file-URL-only semantics), in order:
    1. Legacy default ~/Documents/Museion EXISTS on disk → existing Home → pin legacy (charting settlement: existing Homes migrate manually, never silently — today's installs never wake up pointing at an empty CloudDocs library).
    2. CloudDocs (resolved dynamically — ~/Library/Mobile Documents/com~apple~CloudDocs, unprefixed, never a hard-coded iCloud~ form) exists and is a directory → pin <CloudDocs>/Museion.
    3. Else → silent fallback: pin ~/Documents/Museion (no dialog, no rail pill — the Settings Home field just shows the resolved path).
  • The Home never silently moves after pinning; a fallback user who later enables iCloud is an existing Home and migrates via the documented manual move.
  • Availability probe = plain FileManager existence+isDirectory on the resolved CloudDocs path. No ubiquity API — the app has no entitlements (ADR-0009). Stale-container edge (Drive disabled, dir lingering) tolerated best-effort (settlement 3).

ADR/PRD wording bundle confirmed as drafted.

  • ADR-0004 Home clause amended to: "(iCloud Drive/Museion — ~/Library/Mobile Documents/com~apple~CloudDocs/Museion — by default for new Homes, resolved dynamically, never hard-coded; silent fallback to ~/Documents/Museion at first run when iCloud Drive is unavailable; creating the Home needs no TCC consent, reading pre-existing iCloud files prompts once — unsandboxed, ADR-0009; editable in Settings; repoint-only — Museion never moves content; pre-iCloud Homes migrate by documented manual move + Settings repoint)".
  • PRD line 14 gains: "default Home: iCloud Drive/Museion (CloudDocs), silent ~/Documents/Museion fallback at first run (map #167)".
  • ADR-0009 untouched.

Build slices graduated as plain tickets blocking #145:

  • S1 — Default Museion Home flips to iCloud (CloudDocs), pinned once with legacy guard → #171 (ready-for-agent).
  • S2 — README Museion Home section + ADR-0004 amendment + PRD touch-up → #172 (ready-for-agent).
  • S3 — Dogfood gate: migrate the real Home to iCloud via the shipped docs → #173 (ready-for-human; blocked by #171+#172; closes #145 when verified).

Folded (assertions, unvetoed)

  • Docs land in the README only (a "Your Museion Home" section); docs/ records decisions, not user how-to.
  • The migration docs name the real control: Settings ▸ Content ▸ Museion Home ▸ Choose… (Museion/SettingsPaneView.swift:199).
  • The existing test home default is documents museion (MuseionTests/PostLibraryTests.swift:199) re-pins to an injected probe seam under S1 — hosted tests never touch the machine's real iCloud state.
  • S1 loads SwiftFairy + swift6-concurrency before Swift edits (map Notes).

Post-resolution scope addition

Mid-closeout the owner added one more map item: an iOS capture shortcut (create a Museion post, open in Textastic) — charted as #174, a wayfinder:prototype child of #167 blocked by #173, feeding the pre-existing plain ticket #138 (also wired to #145). The map stays open for it; the iCloud-hardening fog line stays parked behind its revisit trigger.

[Generated by AI]

Resolves #170 (child of #167). Round: one structured form, 2026-11-05, owner answered all three with the recommendations; folded assertions unvetoed. ## Decision **Default-Home spec — pin-once at first run, with a legacy-Home guard.** - No stored override → resolve once and PIN (UserDefaults `museionHome`, existing file-URL-only semantics), in order: 1. Legacy default `~/Documents/Museion` EXISTS on disk → existing Home → pin legacy (charting settlement: existing Homes migrate manually, never silently — today's installs never wake up pointing at an empty CloudDocs library). 2. CloudDocs (resolved dynamically — `~/Library/Mobile Documents/com~apple~CloudDocs`, unprefixed, never a hard-coded `iCloud~` form) exists and is a directory → pin `<CloudDocs>/Museion`. 3. Else → silent fallback: pin `~/Documents/Museion` (no dialog, no rail pill — the Settings Home field just shows the resolved path). - The Home never silently moves after pinning; a fallback user who later enables iCloud is an existing Home and migrates via the documented manual move. - Availability probe = plain FileManager existence+isDirectory on the resolved CloudDocs path. No ubiquity API — the app has no entitlements (ADR-0009). Stale-container edge (Drive disabled, dir lingering) tolerated best-effort (settlement 3). **ADR/PRD wording bundle confirmed as drafted.** - ADR-0004 Home clause amended to: "(iCloud Drive/Museion — `~/Library/Mobile Documents/com~apple~CloudDocs/Museion` — by default for new Homes, resolved dynamically, never hard-coded; silent fallback to `~/Documents/Museion` at first run when iCloud Drive is unavailable; creating the Home needs no TCC consent, reading pre-existing iCloud files prompts once — unsandboxed, ADR-0009; editable in Settings; repoint-only — Museion never moves content; pre-iCloud Homes migrate by documented manual move + Settings repoint)". - PRD line 14 gains: "default Home: iCloud Drive/Museion (CloudDocs), silent ~/Documents/Museion fallback at first run (map #167)". - ADR-0009 untouched. **Build slices graduated as plain tickets blocking #145:** - S1 — Default Museion Home flips to iCloud (CloudDocs), pinned once with legacy guard → #171 (ready-for-agent). - S2 — README Museion Home section + ADR-0004 amendment + PRD touch-up → #172 (ready-for-agent). - S3 — Dogfood gate: migrate the real Home to iCloud via the shipped docs → #173 (ready-for-human; blocked by #171+#172; closes #145 when verified). ## Folded (assertions, unvetoed) - Docs land in the README only (a "Your Museion Home" section); docs/ records decisions, not user how-to. - The migration docs name the real control: Settings ▸ Content ▸ Museion Home ▸ Choose… (Museion/SettingsPaneView.swift:199). - The existing test `home default is documents museion` (MuseionTests/PostLibraryTests.swift:199) re-pins to an injected probe seam under S1 — hosted tests never touch the machine's real iCloud state. - S1 loads SwiftFairy + swift6-concurrency before Swift edits (map Notes). ## Post-resolution scope addition Mid-closeout the owner added one more map item: an iOS capture shortcut (create a Museion post, open in Textastic) — charted as #174, a `wayfinder:prototype` child of #167 blocked by #173, feeding the pre-existing plain ticket #138 (also wired to #145). The map stays open for it; the iCloud-hardening fog line stays parked behind its revisit trigger. [Generated by AI]
Sign in to join this conversation.