How is WebDAV sync implemented?

I looked around and could not find documentation or anything, but maybe I just missed it?

I am curious to know how WebDAV sync is implemented? How is the data in the WebDAV folder formatted? Is there a standard / spec written for it?

No, you didn't. There is no specification document for sync.

I'm not sure, if @laurent ever created one.