diff options
| author | tv <tv@krebsco.de> | 2026-11-29 15:06:04 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-29 15:06:04 +0000 |
| commit | 8cdde74fcdcf31414da0d22222d2cc338df20fa1 (patch) | |
| tree | 37911374599ed825fa3264c8e99ae830cec843fc /docs/document.md | |
| parent | a3af68fafee80b3eef493e8b041e21352e547da2 (diff) | |
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.
Diffstat (limited to 'docs/document.md')
| -rw-r--r-- | docs/document.md | 8 |
1 files changed, 8 insertions, 0 deletions
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: |
