From 8cdde74fcdcf31414da0d22222d2cc338df20fa1 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 15:06:04 +0000 Subject: wire: what another kind of document says, in a SYNC's body and a STATUS's stamp From version 53 on, beside Automerge's (SyncBody::Kind, HeadsSummary::Kind): a SYNC's body is one more of its shapes, another kind's bytes; a STATUS's stamp is another kind's bytes after a byte no Automerge stamp begins with. Nothing version 53 said changes, and version 52 says neither (WireError::OtherKind). Two stamps of another kind are the same where their bytes are. A node holding an Automerge document passes over a body of another kind: a peer holding one isn't let near it. --- docs/document.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs') diff --git a/docs/document.md b/docs/document.md index 17dca62..13d6cd9 100644 --- a/docs/document.md +++ b/docs/document.md @@ -336,6 +336,14 @@ upgrades node by node. A node that speaks 52 alone says no kind, and is of the k there was then; nodes of different kinds refuse each other in the handshake, saying so, and sync nothing. +What another kind says goes in the same two messages (`SyncBody::Kind`, +`HeadsSummary::Kind`): a SYNC's body is one of Automerge's, or another kind's bytes; a +STATUS's stamp is Automerge's heads, or another kind's bytes after a byte no Automerge +stamp begins with. Version 52 says neither. What a SYNC and a STATUS say beside, that +the sender is ready, when it sent, whose tree a push is along, whom it reaches, is for +every kind; the epoch, a body taken as delivered, heads announced and what vouches for +changes are Automerge's, and a node of another kind says one epoch and leaves the rest. + ### As merged state without a history would give it To see that what is asked isn't Automerge's in other words: -- cgit v1.3.1