From a363c9958788dc648828410126f0f93c0c9bee5f Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 04:34:59 +0000 Subject: wire: version 53, what is the document's as bytes, and the kind in handshakes Spoken beside 52 (OLDEST), so a swarm upgrades node by node: a node writes each peer the newest version both speak. From 53 on (wire::KINDS, wire::kinds), what is a document's kind's goes as bytes the wire carries and doesn't read: a SYNC's body, with whether it is taken as delivered, and what vouches for what it carries; where a STATUS says its sender stands; what a BLOB request asks for in bulk; a BLOB is of a unit or of what is offered in bulk, by their names. Automerge's bytes are what 52 carries in the messages' own fields. HELLO and HELLO_REPLY say the kind of the sender's document (document::KIND, automerge) from 53 on; one in 52 says none and is of that kind. A peer whose document is of another kind is refused in the handshake, saying so. The bytes of 52 stay as golden_bytes has them; golden_bytes_of_kinds has those of 53. scripts/wire-check v0.0.1: its nodes and this tree's talk. --- docs/operations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/operations.md') diff --git a/docs/operations.md b/docs/operations.md index 027cb64..e99a914 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -120,7 +120,7 @@ too: each peer's, as far as the node heard, is its `knows` in `GET /peers`. ```sh continuum --version # continuum 0.0.1 -# wire versions 52 to 52 +# wire versions 52 to 53 # federation 1: the base revision, revision 1 (merge-events) # automerge 0.12.0 ``` @@ -141,7 +141,7 @@ A node upgrades by restarting with its files. What to know: Nodes sharing no version don't talk: the swarm is split until every node is upgraded, both sides go on writing, and they merge then. Each logs it, at warn, once per peer, naming both versions and the node to upgrade (`Peer speaks another wire version: a - newer build (wire version 54; this one speaks 52): upgrade this node to talk with it; + newer build (wire version 54; this one speaks 52 to 53): upgrade this node to talk with it; ignoring its messages`, or of an older build, `upgrade that node`). 0.0.1 logs `Peer speaks another wire version (another build); ignoring its messages`, with the peer's version and its own (`ours`): upgrade the node whose version is the lower. A -- cgit v1.3.1