There is a well known conflict resolution system for the contents of document synced between couchbase server and couchbase lite. This is not about that.
Imagine this scenario: one instance of couchbase lite creates a document (along with a meta().id) and saves it locally, waiting to sync to the server when opportunity arises (maybe in an area of poor internet connectivity). Another, completely different instance of couchbase lite (different phone) creates a document (completely different) but with the same document meta().id as the first instance.
When both instances try to sync to the server, can the server tell these are two different documents and re-assign an ID to one of them? does the first document synced get overwritten by the second document?
I know this is a scenario which might never happen, but for the sake of being ready for the unexpected, what happens when different documents of the same ID are synced to the server?