My approach (not finished) is to use linked lists and tombstones. I found index transformations to not be provably correct in an arbitrary P2P system because it always required a document root.
Here is a (terrible terrible) demo of the linked list approach: https://www.youtube.com/watch?v=rci89p0o2wQ .
What are your thoughts on your approach handling rich text? (document nesting)
Would love to chat more, mark [AT] gundb [DOT] io