iCloud Home facts — companion visibility, eviction, conflicts, first-run posture #168

Closed
opened 2026-11-05 11:12:34 +01:00 by AlexKucera · 1 comment
Owner

Part of #167

Question

Which iCloud storage location do the facts actually support for a Museion Home, and what exactly must a best-effort v1 tolerate there? Facts to pin (all source-cited, macOS-27 unsandboxed client per ADR-0009, plain files under one Home per ADR-0004):

  1. Companion visibility — can a third-party iOS editor (Textastic specifically) browse/open/edit files inside Obsidian's iCloud container (~/Library/Mobile Documents/iCloud~md~obsidian/Documents/) via the Files app / document picker, or is that container Obsidian-only on iOS? (Obsidian mobile's container-only vault rule is already pinned: vaults outside iCloud Drive/Obsidian never open on iPhone/iPad.)
  2. Eviction mechanics from macOS — how do evicted files appear (.icloud placeholder names, dataless APFS files), what does a plain FileManager read do (blocking download? error offline?), does per-folder "Keep Downloaded" pin reliably, and what does that mean for Museion's folder watcher + full rescan model (evicted piece = missing post.md = row drops out).
  3. Conflict behavior — when the same file is edited on two devices, does iCloud fork copies (exact naming pattern of the conflict duplicate) or block/queue? How do plain-file apps (iA Writer, Obsidian) document handling it?
  4. First-run / availability posture — for an unsandboxed app: does ~/Library/Mobile Documents/ need any TCC consent? What exists when iCloud Drive is disabled (path absent? container dirs present but stale?)? Path-form discrepancy to resolve: iCloud~com~apple~CloudDocs vs com~apple~CloudDocs (both seen on this machine).
  5. Reliability record — known iCloud+plain-files failure modes from mature apps' docs/forums (Obsidian's iCloud warnings are one input), enough to judge "best-effort v1" against.
  6. Default-path support — facts for/against iCloud Drive/Museion (CloudDocs proper) as the product default for NEW Homes.

Deliverable: factsheet as the resolution comment on this ticket (scratch copy at ~/.hermes/cache/scratch/wf145/icloud-home-companions.md); docs/research/ landing rides an authorized build commit. No branches, no pushes (repo standing rule).

[Generated by AI]

Part of #167 ## Question Which iCloud storage location do the facts actually support for a Museion Home, and what exactly must a best-effort v1 tolerate there? Facts to pin (all source-cited, macOS-27 unsandboxed client per ADR-0009, plain files under one Home per ADR-0004): 1. **Companion visibility** — can a third-party iOS editor (Textastic specifically) browse/open/edit files inside Obsidian's iCloud container (`~/Library/Mobile Documents/iCloud~md~obsidian/Documents/`) via the Files app / document picker, or is that container Obsidian-only on iOS? (Obsidian mobile's container-only vault rule is already pinned: vaults outside `iCloud Drive/Obsidian` never open on iPhone/iPad.) 2. **Eviction mechanics from macOS** — how do evicted files appear (`.icloud` placeholder names, dataless APFS files), what does a plain `FileManager` read do (blocking download? error offline?), does per-folder "Keep Downloaded" pin reliably, and what does that mean for Museion's folder watcher + full rescan model (evicted piece = missing post.md = row drops out). 3. **Conflict behavior** — when the same file is edited on two devices, does iCloud fork copies (exact naming pattern of the conflict duplicate) or block/queue? How do plain-file apps (iA Writer, Obsidian) document handling it? 4. **First-run / availability posture** — for an unsandboxed app: does `~/Library/Mobile Documents/` need any TCC consent? What exists when iCloud Drive is disabled (path absent? container dirs present but stale?)? Path-form discrepancy to resolve: `iCloud~com~apple~CloudDocs` vs `com~apple~CloudDocs` (both seen on this machine). 5. **Reliability record** — known iCloud+plain-files failure modes from mature apps' docs/forums (Obsidian's iCloud warnings are one input), enough to judge "best-effort v1" against. 6. **Default-path support** — facts for/against `iCloud Drive/Museion` (CloudDocs proper) as the product default for NEW Homes. Deliverable: factsheet as the resolution comment on this ticket (scratch copy at `~/.hermes/cache/scratch/wf145/icloud-home-companions.md`); `docs/research/` landing rides an authorized build commit. No branches, no pushes (repo standing rule). [Generated by AI]
AlexKucera added the wayfinder:researchwayfinder:research labels 2026-11-05 11:12:34 +01:00
AlexKucera self-assigned this 2026-11-05 11:13:14 +01:00
Author
Owner

iCloud Home facts — companion visibility, eviction, conflicts, first-run posture

Resolves #168 (child of #167). Method: read-only local probes on this machine (macOS 27.0.1, iCloud Drive on) + primary docs + reputable forum/support threads. Probe lines are quoted from terminal transcripts, 2026-11-05. Nothing on this machine was modified or downloaded by the probes.

1. Companion visibility — can Textastic reach files inside Obsidian's iCloud container?

Answer: the container is NOT Obsidian-only on iOS. Third-party editors with document-picker access (Textastic, Taio) can browse, open, and edit-in-place inside iCloud Drive/Obsidian — including .obsidian. Access is picker-mediated (no iOS app gets blanket background access to another app's container), but for a human-driven companion workflow it works today.

2. Eviction mechanics from macOS

  • FACT — no .icloud stub names on modern macOS. Whole-tree probe: find "$HOME/Library/Mobile Documents" -name '*.icloud' | wc -l → 0. Evicted files keep their real name and size. (Probe 2026-11-05.) Name-mangled stubs (".name.icloud") were the pre-Sonoma mechanism; Sonoma moved iCloud Drive to FileProvider dataless files. Sources: https://eclecticlight.co/2024/03/11/icloud-drive-in-sonoma-optimise-mac-storage-or-not/ ("eviction replaced the local file with a hidden stub file" — past tense, pre-Sonoma), https://eclecticlight.co/2023/10/29/last-week-on-my-mac-dataless-files-arrive/
  • FACT — eviction = dataless APFS file: metadata local, data remote. Probe (identical pattern in CloudDocs and the Obsidian container; 20+ files found with size>0, blocks=0):
    stat -f 'size=%z blocks=%b' …/Flight School 2.5/Plugins/Prompt Plugin.md → size=460 blocks=0
    stat flags → compressed,dataless   (SF_DATALESS, documented in TN3150)
    
    Apple TN3150: "A file that contains only metadata is known as a dataless file." Source: https://developer.apple.com/documentation/technotes/tn3150-getting-ready-for-data-less-files
  • FACT — what a plain read does depends on the caller's I/O policy:
    • Normal app context: "Reads trigger downloads, and files lose their dataless property before the reads are allowed to resume" — the read blocks while the system materializes the file. Source: WWDC21 session 10182, https://developer.apple.com/videos/play/wwdc2021/10182/
    • Background/launchd context: man launchd.plist (verified on this machine) — MaterializeDatalessFiles: "This optional key specifies the dataless file materialization policy… If this key is not set, the default system policy for dataless files will be used. See setiopolicy_np(3)." Processes running the default-off policy get an immediate EDEADLK instead of a download (TN3150 documents EDEADLK for IOPOL_MATERIALIZE_DATALESS_FILES_OFF).
    • Probe (this machine; this agent session runs under launchd): os.open()+os.read() on the 460-byte dataless file → errno=11 (EDEADLK) strerror='Resource deadlock avoided', blocks stayed 0, no download. (Probe 2026-11-05.)
  • FACT — materialization can be slow and is not limited to read(): "Materializing a dataless file can take time if the file is large or there are poor network conditions"; symptoms include hangs, ETIMEDOUT, watchdog terminations; even fileExists(atPath:) and directory enumeration can materialize intermediate dataless folders. Source: TN3150 (URL above).
  • FACT — the system evicts automatically under disk pressure: "The system will evict local files automatically and without involving your file provider extension when there is an urgent need for disk space … the minimum set of least recently used files", and only files already uploaded — never files with pending local changes. Source: WWDC21 10182 (URL above).
  • FACT — eviction is keyed to "Optimize Mac Storage": ON → nonreplicated mode, eviction possible; OFF → replicated mode, "no eviction is possible, but local and remote files are synced to remain identical". Source: https://eclecticlight.co/2024/03/11/icloud-drive-in-sonoma-optimise-mac-storage-or-not/
  • FACT — per-folder "Keep Downloaded" pin is the sanctioned mitigation, recommended by Obsidian ("strongly recommended to keep load times fast"; macOS 15+: right-click → Keep Downloaded; ≤14: disable Optimize Mac Storage) — https://obsidian.md/help/sync-notes — and reported effective by users ("changing the obsidian folder on iCloud to 'Always remain on this device'" stopped duplicates, https://forum.obsidian.md/t/icloud-duplicates/27138). Pinning/evict UI has rough edges: Apple dev forums report the evict subcommand removed from fileproviderctl and Finder's "Make available online only" sometimes missing on bulk folder selection (https://developer.apple.com/forums/tags/fileprovider).

Implication for Museion's watcher + full rescan (facts): an evicted post.md still appears in directory listings with its real name and size (probe: ls/stat show it; only blocks are 0) — a listing-based rescan does not lose the row; only content reads block (app context) or fail fast (background/EDEADLK context). The "evicted = missing post.md = row drops out" failure mode belongs to the legacy .icloud name-mangling era — zero such files exist on this machine. What v1 must tolerate instead: slow/hanging first reads, EDEADLK if any code path runs from a daemon context, and TN3150's guidance to detect dataless status (SF_DATALESS) and read off the main thread.

3. Conflict behavior

  • FACT — iCloud forks copies; it does not block or queue. Apple: when the same document is edited on devices that were offline, "If you keep multiple versions, a different number is added to each version's name except the first one. For example, two versions of 'Seven Wonders' are named 'Seven Wonders' and 'Seven Wonders 2'. Versions you don't select are deleted." Source: https://support.apple.com/guide/mac-help/mh40780/mac
  • FACT — plain-file duplicate naming seen in the wild: filename (1), (2), … (iCloud for Windows client) — https://forum.obsidian.md/t/icloud-sync-issues/28320; "Note 2.md, or a name containing 'conflicted copy'" (community plugin docs describing macOS/iOS iCloud behavior) — https://community.obsidian.md/plugins/jemzsync. No first-party doc pins the exact plain-file (non-document-app) duplicate naming; Apple's documented pattern is the numbered suffix.
  • Contrast — Obsidian's own sync product (not iCloud) names conflicts original (Conflicted copy device-name YYYYMMDDHHMM).md. Source: https://obsidian.md/help/sync/troubleshoot

Answer: a two-device edit race yields two files (original + numbered/conflicted sibling), not a queued merge. Museion should treat numbered/conflict-pattern sibling files as a normal, recoverable state, not corruption.

4. First-run / availability posture (unsandboxed app)

  • FACT — iCloud Drive is TCC-protected since macOS 10.15: "macOS Catalina is now protecting many of the most common locations where we store our files … desktop documents downloads, their iCloud Drive or third-party storage" (WWDC19 session 701, ~23:10, https://developer.apple.com/videos/play/wwdc2019/701/); Apple Platform Security: consent required "before accessing files in Documents, Downloads, Desktop, iCloud Drive and network volumes". An unsandboxed app reading pre-existing files under ~/Library/Mobile Documents/ hits the per-app Files and Folders → iCloud Drive consent (not Full Disk Access).
  • FACT — creating new content needs NO consent: "user consent is not required for an app to create new documents in any of these protected locations, just to read existing contents" (WWDC19 701). Creating iCloud Drive/Museion and writing new files into it does not prompt.
  • FACT — path-form discrepancy RESOLVED by probe: on this machine CloudDocs exists only as ~/Library/Mobile Documents/com~apple~CloudDocs (real dir, inode 298525); ls -lad …/iCloud~com~apple~CloudDocs → "No such file or directory". The iCloud~ prefix is the ubiquity-container convention (iCloud~<bundle-id>: iCloud~md~obsidian, and Apple system containers like iCloud~com~apple~DocumentsApp, iCloud~com~apple~shortcuts~runtime — all in the probe's top-level listing). Corroborated: "At a file system level, iCloud Drive appears in the path /Library/Mobile Documents/comapple~CloudDocs" (https://eclecticlight.co/2026/08/25/an-icloud-primer/). Code must target the unprefixed form (or resolve the URL dynamically rather than hard-coding).
  • FACT — iCloud Drive disabled / signed out: the user may keep a local copy, "cop[ies] to a folder called iCloud Drive (Archive) in your home folder"; new local Desktop/Documents folders are created (https://support.apple.com/en-us/126628, https://support.apple.com/en-us/109344). User report of off + "Remove from Mac": com~apple~CloudDocs contents became inaccessible/gone (https://stackoverflow.com/questions/79657785). Stale per-app containers persist indefinitely regardless — the probe's top-level listing contains dozens of containers from long-uninstalled apps. Partially UNRESOLVED: no first-party doc pins the exact CloudDocs directory lifecycle when Drive is toggled off (empty vs. stale vs. absent); treat all three as runtime possibilities and probe at first run.

5. Reliability record (plain files + iCloud)

6. Default-path support — iCloud Drive/Museion (CloudDocs) for NEW Homes

Facts FOR:

Facts AGAINST (tolerances a v1 must absorb if CloudDocs is the default):

  • "Optimize Mac Storage" ON → system-initiated LRU eviction at any time → first reads block or fail (TN3150/WWDC21 above); the app needs off-main-thread reads, dataless detection, and a user affordance to pin the Home folder ("Keep Downloaded").
  • Reading pre-existing files prompts for iCloud Drive consent (first run).
  • Edit races produce numbered/conflicted sibling duplicates (no merge).
  • If the user disables iCloud Drive, the local copy can be archived out from under the app (iCloud Drive (Archive)) — the Home path can evaporate.

What this means for the decision

  • Both candidate roots are plain directories this unsandboxed app can read/write directly — probe: both stat/list fine; the Obsidian vault registry (~/Library/Application Support/obsidian/obsidian.json) shows live vaults in both com~apple~CloudDocs/… and iCloud~md~obsidian/Documents/… on this machine.
  • Obsidian container is the right root only if Museion Homes must be openable in Obsidian mobile on iPhone/iPad (Obsidian mobile opens nothing outside iCloud Drive/Obsidian). Companion editors (Textastic/Taio) can reach inside it on iOS, but every access is picker-mediated. Eviction, conflict, and TCC behavior are identical — the same FileProvider machinery backs both (probe found dataless files in both).
  • CloudDocs gives maximum companion visibility (any picker app, iCloud.com, Windows), frictionless creation of new Homes, and the iA Writer default-path precedent — at the cost of absorbing eviction, conflict duplicates, and consent-on-read of pre-existing content.
  • Either way, "best-effort v1" on iCloud must tolerate: (a) dataless files — blocking materialization in-app, EDEADLK from any daemon-context code path; (b) numbered conflict siblings appearing next to originals; (c) iCloud Drive disabled mid-life (path gone or archived). These are documented substrate behaviors, not Museion bugs.

[Generated by AI]

# iCloud Home facts — companion visibility, eviction, conflicts, first-run posture Resolves #168 (child of #167). Method: read-only local probes on this machine (macOS 27.0.1, iCloud Drive on) + primary docs + reputable forum/support threads. Probe lines are quoted from terminal transcripts, 2026-11-05. Nothing on this machine was modified or downloaded by the probes. ## 1. Companion visibility — can Textastic reach files inside Obsidian's iCloud container? - **FACT — the Obsidian container is visible and browsable in the iOS Files app** under iCloud Drive → Obsidian. Obsidian's own help instructs: "open the Files app, tap Browse, select iCloud Drive under Locations, and confirm your vault is inside the Obsidian folder", and warns to use "the folder … with the Obsidian icon" — not a plain folder of the same name. Source: https://obsidian.md/help/sync-notes - **FACT — Textastic opens any iCloud Drive file/folder via the iOS document picker, in place.** Manual: files opened via the picker are "opened in-place. Changes you make to the files are saved directly to their original location"; external folders are supported from "folders in **iCloud Drive**" and "On my iPad/iPhone", and "behave the same as the Local Files and iCloud locations". Source: https://www.textasticapp.com/v10/manual/integration_other_apps/external_files_folders.html - **FACT — Obsidian itself recommends Textastic for editing inside the vault on iOS**, for the hidden config folder: "To view and edit hidden files and folders, you'll need a third-party app such as: Taio … **Textastic** — Paid app with advanced file editing capabilities." Source: https://obsidian.md/help/configuration-folder - **FACT — user-confirmed working**, including hidden dotfolders: "Yes, Textastic can indeed open the .obsidian folder within iCloud Drive!!" (https://forum.obsidian.md/t/modifying-css-snippets-in-hidden-config-folder-so-not-accessible-in-ios/21974); step-by-step: "In the left sidebar of Textastic, tap 'Add External Folder…', browse to your vault, and select it." (https://forum.obsidian.md/t/mobile-ios-app-to-work-with-hidden-folder/25741); same workflow in https://forum.obsidian.md/t/copy-obsidian-settings-to-a-separate-configuration-for-mobile/34893 - **FACT (contrast, already pinned in map #167)** — Obsidian mobile itself opens nothing outside its own container: "On iOS and iPadOS, Obsidian only has access to and vaults can only be in: `iCloud Drive/Obsidian` (iCloud) and/or `On My iPhone/Obsidian` (local)" (https://forum.obsidian.md/t/switching-to-a-different-vault/53372; https://obsidian.md/help/sync-notes "ensure your vault is stored in the correct location"). **Answer: the container is NOT Obsidian-only on iOS.** Third-party editors with document-picker access (Textastic, Taio) can browse, open, and edit-in-place inside `iCloud Drive/Obsidian` — including `.obsidian`. Access is picker-mediated (no iOS app gets blanket background access to another app's container), but for a human-driven companion workflow it works today. ## 2. Eviction mechanics from macOS - **FACT — no `.icloud` stub names on modern macOS.** Whole-tree probe: `find "$HOME/Library/Mobile Documents" -name '*.icloud' | wc -l` → `0`. Evicted files keep their real name and size. (Probe 2026-11-05.) Name-mangled stubs (".name.icloud") were the pre-Sonoma mechanism; Sonoma moved iCloud Drive to FileProvider dataless files. Sources: https://eclecticlight.co/2024/03/11/icloud-drive-in-sonoma-optimise-mac-storage-or-not/ ("eviction replaced the local file with a hidden stub file" — past tense, pre-Sonoma), https://eclecticlight.co/2023/10/29/last-week-on-my-mac-dataless-files-arrive/ - **FACT — eviction = dataless APFS file: metadata local, data remote.** Probe (identical pattern in CloudDocs and the Obsidian container; 20+ files found with size>0, blocks=0): ``` stat -f 'size=%z blocks=%b' …/Flight School 2.5/Plugins/Prompt Plugin.md → size=460 blocks=0 stat flags → compressed,dataless (SF_DATALESS, documented in TN3150) ``` Apple TN3150: "A file that contains only metadata is known as a dataless file." Source: https://developer.apple.com/documentation/technotes/tn3150-getting-ready-for-data-less-files - **FACT — what a plain read does depends on the caller's I/O policy:** - Normal app context: "Reads trigger downloads, and files lose their dataless property before the reads are allowed to resume" — the read **blocks** while the system materializes the file. Source: WWDC21 session 10182, https://developer.apple.com/videos/play/wwdc2021/10182/ - Background/launchd context: `man launchd.plist` (verified on this machine) — `MaterializeDatalessFiles`: "This optional key specifies the dataless file materialization policy… If this key is not set, the default system policy for dataless files will be used. See setiopolicy_np(3)." Processes running the default-off policy get an immediate **EDEADLK** instead of a download (TN3150 documents EDEADLK for `IOPOL_MATERIALIZE_DATALESS_FILES_OFF`). - Probe (this machine; this agent session runs under launchd): `os.open()+os.read()` on the 460-byte dataless file → `errno=11 (EDEADLK) strerror='Resource deadlock avoided'`, blocks stayed 0, no download. (Probe 2026-11-05.) - **FACT — materialization can be slow and is not limited to `read()`:** "Materializing a dataless file can take time if the file is large or there are poor network conditions"; symptoms include hangs, `ETIMEDOUT`, watchdog terminations; even `fileExists(atPath:)` and directory enumeration can materialize intermediate dataless folders. Source: TN3150 (URL above). - **FACT — the system evicts automatically under disk pressure:** "The system will evict local files automatically and without involving your file provider extension when there is an urgent need for disk space … the minimum set of least recently used files", and only files already uploaded — never files with pending local changes. Source: WWDC21 10182 (URL above). - **FACT — eviction is keyed to "Optimize Mac Storage":** ON → nonreplicated mode, eviction possible; OFF → replicated mode, "no eviction is possible, but local and remote files are synced to remain identical". Source: https://eclecticlight.co/2024/03/11/icloud-drive-in-sonoma-optimise-mac-storage-or-not/ - **FACT — per-folder "Keep Downloaded" pin is the sanctioned mitigation,** recommended by Obsidian ("strongly recommended to keep load times fast"; macOS 15+: right-click → Keep Downloaded; ≤14: disable Optimize Mac Storage) — https://obsidian.md/help/sync-notes — and reported effective by users ("changing the obsidian folder on iCloud to 'Always remain on this device'" stopped duplicates, https://forum.obsidian.md/t/icloud-duplicates/27138). Pinning/evict UI has rough edges: Apple dev forums report the `evict` subcommand removed from `fileproviderctl` and Finder's "Make available online only" sometimes missing on bulk folder selection (https://developer.apple.com/forums/tags/fileprovider). **Implication for Museion's watcher + full rescan (facts):** an evicted post.md **still appears in directory listings with its real name and size** (probe: `ls`/`stat` show it; only blocks are 0) — a listing-based rescan does **not** lose the row; only *content* reads block (app context) or fail fast (background/EDEADLK context). The "evicted = missing post.md = row drops out" failure mode belongs to the legacy `.icloud` name-mangling era — zero such files exist on this machine. What v1 must tolerate instead: slow/hanging first reads, EDEADLK if any code path runs from a daemon context, and TN3150's guidance to detect dataless status (`SF_DATALESS`) and read off the main thread. ## 3. Conflict behavior - **FACT — iCloud forks copies; it does not block or queue.** Apple: when the same document is edited on devices that were offline, "If you keep multiple versions, a different number is added to each version's name except the first one. For example, two versions of 'Seven Wonders' are named 'Seven Wonders' and 'Seven Wonders 2'. Versions you don't select are deleted." Source: https://support.apple.com/guide/mac-help/mh40780/mac - **FACT — plain-file duplicate naming seen in the wild:** `filename (1)`, `(2)`, … (iCloud for Windows client) — https://forum.obsidian.md/t/icloud-sync-issues/28320; "`Note 2.md`, or a name containing 'conflicted copy'" (community plugin docs describing macOS/iOS iCloud behavior) — https://community.obsidian.md/plugins/jemzsync. No first-party doc pins the exact plain-file (non-document-app) duplicate naming; Apple's documented pattern is the numbered suffix. - **Contrast — Obsidian's own sync product** (not iCloud) names conflicts `original (Conflicted copy device-name YYYYMMDDHHMM).md`. Source: https://obsidian.md/help/sync/troubleshoot **Answer:** a two-device edit race yields **two files** (original + numbered/conflicted sibling), not a queued merge. Museion should treat numbered/conflict-pattern sibling files as a normal, recoverable state, not corruption. ## 4. First-run / availability posture (unsandboxed app) - **FACT — iCloud Drive is TCC-protected since macOS 10.15:** "macOS Catalina is now protecting many of the most common locations where we store our files … desktop documents downloads, their iCloud Drive or third-party storage" (WWDC19 session 701, ~23:10, https://developer.apple.com/videos/play/wwdc2019/701/); Apple Platform Security: consent required "before accessing files in Documents, Downloads, Desktop, iCloud Drive and network volumes". An unsandboxed app reading pre-existing files under `~/Library/Mobile Documents/` hits the per-app **Files and Folders → iCloud Drive** consent (not Full Disk Access). - **FACT — creating new content needs NO consent:** "user consent is not required for an app to create new documents in any of these protected locations, just to read existing contents" (WWDC19 701). Creating `iCloud Drive/Museion` and writing new files into it does not prompt. - **FACT — path-form discrepancy RESOLVED by probe:** on this machine CloudDocs exists **only** as `~/Library/Mobile Documents/com~apple~CloudDocs` (real dir, inode 298525); `ls -lad …/iCloud~com~apple~CloudDocs` → "No such file or directory". The `iCloud~` prefix is the ubiquity-container convention (`iCloud~<bundle-id>`: `iCloud~md~obsidian`, and Apple system containers like `iCloud~com~apple~DocumentsApp`, `iCloud~com~apple~shortcuts~runtime` — all in the probe's top-level listing). Corroborated: "At a file system level, iCloud Drive appears in the path ~/Library/Mobile Documents/com~apple~CloudDocs" (https://eclecticlight.co/2026/08/25/an-icloud-primer/). Code must target the **unprefixed** form (or resolve the URL dynamically rather than hard-coding). - **FACT — iCloud Drive disabled / signed out:** the user may keep a local copy, "cop[ies] to a folder called iCloud Drive (Archive) in your home folder"; new local Desktop/Documents folders are created (https://support.apple.com/en-us/126628, https://support.apple.com/en-us/109344). User report of off + "Remove from Mac": `com~apple~CloudDocs` contents became inaccessible/gone (https://stackoverflow.com/questions/79657785). Stale per-app containers persist indefinitely regardless — the probe's top-level listing contains dozens of containers from long-uninstalled apps. **Partially UNRESOLVED:** no first-party doc pins the exact CloudDocs directory lifecycle when Drive is toggled off (empty vs. stale vs. absent); treat all three as runtime possibilities and probe at first run. ## 5. Reliability record (plain files + iCloud) - **Obsidian official:** "iCloud Drive on Windows may lead to file duplication or corruption"; keep the vault folder downloaded; "If services like OneDrive or iCloud offload files … Obsidian can't access them, causing sync issues." https://obsidian.md/help/sync-notes - **Obsidian forum (long-running thread):** uploads stalling until reboot, duplicates `(1),(2)`, files stuck in pending upload states, "the entire vault was duplicated once" — https://forum.obsidian.md/t/icloud-sync-issues/28320; duplicates from sync clashes and from running iCloud together with Obsidian Sync — https://forum.obsidian.md/t/icloud-duplicates/27138 - **iA Writer** (recommends iCloud on Mac): "from time to time syncing issues can occur. Problems include single documents not syncing, being unable to open iCloud documents, devices becoming out of sync" — but "serious iCloud issues are now rare, and can almost always be fixed" (restart devices, check Apple system status). https://ia.net/writer/support/help/icloud - **File-system seams:** xattrs are filtered and size-capped in iCloud; QuickLook thumbnail generation fights eviction (re-downloads evicted files); saved local versions were lost on eviction before the macOS 14.4.1 fix. https://eclecticlight.co/2023/08/06/last-week-on-my-mac-are-we-ready-for-dataless-files/ and https://eclecticlight.co/2024/03/18/how-icloud-drive-works-in-macos-sonoma/ - **Apple ships a repair path:** "If there are files or folders in iCloud Drive that aren't syncing, see Repair files and folders with broken permissions in iCloud Drive." https://support.apple.com/guide/mac-help/store-files-in-icloud-drive-mchle5a61431/mac ## 6. Default-path support — `iCloud Drive/Museion` (CloudDocs) for NEW Homes **Facts FOR:** - CloudDocs is the one location every companion reaches: Finder, every iOS app's document picker, iCloud.com, and iCloud for Windows (https://support.apple.com/guide/mac-help/store-files-in-icloud-drive-mchle5a61431/mac; Textastic manual). The Obsidian container is reachable on iOS only through the Files app/picker, and Obsidian mobile cannot open anything outside its own container. - Creating the Home folder there requires no TCC consent (WWDC19 creation carve-out above) — a first-run default of `iCloud Drive/Museion` is frictionless for **new** Homes. - Mature plain-file precedent: iA Writer defaults to iCloud Drive on Mac when enabled and recommends it (https://ia.net/writer/support/library/cloud-storage); Obsidian lists iCloud as a supported/recommended sync path for macOS+iOS with Keep Downloaded (https://obsidian.md/help/sync-notes). **Facts AGAINST (tolerances a v1 must absorb if CloudDocs is the default):** - "Optimize Mac Storage" ON → system-initiated LRU eviction at any time → first reads block or fail (TN3150/WWDC21 above); the app needs off-main-thread reads, dataless detection, and a user affordance to pin the Home folder ("Keep Downloaded"). - Reading **pre-existing** files prompts for iCloud Drive consent (first run). - Edit races produce numbered/conflicted sibling duplicates (no merge). - If the user disables iCloud Drive, the local copy can be archived out from under the app (`iCloud Drive (Archive)`) — the Home path can evaporate. ## What this means for the decision - Both candidate roots are plain directories this unsandboxed app can read/write directly — probe: both stat/list fine; the Obsidian vault registry (`~/Library/Application Support/obsidian/obsidian.json`) shows live vaults in **both** `com~apple~CloudDocs/…` and `iCloud~md~obsidian/Documents/…` on this machine. - **Obsidian container** is the right root only if Museion Homes must be openable in Obsidian mobile on iPhone/iPad (Obsidian mobile opens nothing outside `iCloud Drive/Obsidian`). Companion editors (Textastic/Taio) *can* reach inside it on iOS, but every access is picker-mediated. Eviction, conflict, and TCC behavior are identical — the same FileProvider machinery backs both (probe found dataless files in both). - **CloudDocs** gives maximum companion visibility (any picker app, iCloud.com, Windows), frictionless creation of new Homes, and the iA Writer default-path precedent — at the cost of absorbing eviction, conflict duplicates, and consent-on-read of pre-existing content. - Either way, "best-effort v1" on iCloud must tolerate: (a) dataless files — blocking materialization in-app, EDEADLK from any daemon-context code path; (b) numbered conflict siblings appearing next to originals; (c) iCloud Drive disabled mid-life (path gone or archived). These are documented substrate behaviors, not Museion bugs. [Generated by AI]
Sign in to join this conversation.