mobile-conflict-resolution-ios
Installation
SKILL.md
Platform-agnostic concepts: shared/mobile/conflict-resolution-concepts.md
Conflict Resolution — Couchbase Lite iOS/macOS
Conflicts occur when the same document is modified on multiple devices before syncing. CBL resolves them automatically using last-write-wins by default, or with a custom resolver.
How conflicts arise
Device A: doc rev 1 → edit → rev 2a (synced)
Device B: doc rev 1 → edit → rev 2b (offline, then syncs)
↓
Conflict: 2a vs 2b
Default resolution: last-write-wins
CBL picks the revision with the higher sequence number. No code required.