diff options
| author | tv <tv@krebsco.de> | 2026-12-01 02:08:53 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 02:08:53 +0000 |
| commit | 22f9ac13bd0089f89cd2dd74932b522ab0c285c0 (patch) | |
| tree | 5b5f9c09755f385743c9537672542456b79a6a2e /docs | |
| parent | eadf0952260ba4b21e791226cf5ad39e8f079c86 (diff) | |
federation: nodes of both kinds pass their sets on to each other, too
Two nodes of both kinds say an Automerge document in their handshakes,
and synced that alone: what only sets hold, the entries of the nodes on
sets, stopped at the first node of both it reached, so that in a swarm
larger than its neighbour count the nodes on sets never came to read
each other's entries. A node of both now says where its set stands
beside each STATUS to a peer on a document; one of both that hears it
passes its set on in turn, one on the document alone drops it.
A simulation of nine nodes, three of each kind, two neighbours each.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/document.md | 15 | ||||
| -rw-r--r-- | docs/operations.md | 4 |
2 files changed, 16 insertions, 3 deletions
diff --git a/docs/document.md b/docs/document.md index 641fa92..2a8b015 100644 --- a/docs/document.md +++ b/docs/document.md @@ -787,8 +787,19 @@ alone and nodes on a set alone take none of each other's handshakes: what goes b them goes through the nodes of both ([`operations.md`](operations.md), [Moving to sets of events](operations.md#moving-to-sets-of-events)). -Not built: that no swarm holding a store is started on Automerge any more. One that -runs there runs on, until it has moved. +A member's entry is in the document or in the set its node holds, and a node of both +writes its own in both; no node writes another's. So a node on the document alone reads +the entries of the nodes on the document and of both, a node on a set alone those of +the nodes on sets and of both, and each has its neighbours among those; a node of both +reads them all. Two nodes of both kinds say an Automerge document in their handshakes, +and sync it; beside each STATUS, a node of both says where its set stands to every peer +that said so (`swarm::set::say_beside`). A node of both that hears it knows the peer +holds a set too, and passes its own on to it from then on; a node on the document alone +drops it. So the entries that sets alone hold cross from one node of both to the next, +and every node on a set comes to read every other's. + +A swarm holding a store may still be started on Automerge, so that the move can be +tried: one that runs there runs on, until it has moved. ## What others do diff --git a/docs/operations.md b/docs/operations.md index b12af28..a643c41 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -179,7 +179,9 @@ of both kinds do with either, and carry between them, so move every node through Between the steps, the swarm works as ever: an event put on any node reaches every node. Within a step, it works as long as the nodes of both kinds reach each other and every other node reaches one of them; `GET /events` on each node shows whether its -store holds what the others' hold (`heads`). +store holds what the others' hold (`heads`). A node on the document alone doesn't see +the nodes on sets alone among the members it reaches (`GET /peers`), nor those it: each +has its neighbours among the nodes of its own kind and of both, until all are of one. A node that joins later is given `--store-id`, `--store-document` and seeds: with nothing of the store, it asks the members it reaches for the root by its name, or, with |
