diff options
Diffstat (limited to 'docs/federation.md')
| -rw-r--r-- | docs/federation.md | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/docs/federation.md b/docs/federation.md index df4501e..7b7bd54 100644 --- a/docs/federation.md +++ b/docs/federation.md @@ -227,6 +227,12 @@ current at its heads, [Forks](#forks)). Spread out: those of the parties that start it ([Nodes](#nodes)). * **The checkpoint** (`checkpoint`), where the version names one: the heads at which the store moves to a checkpoint once the version is current ([Checkpoints](#checkpoints)). +* **The federation's name** (`name`), where the version gives one, under a revision that + has names ([Changing the federation](#changing-the-federation)): spelled as a party's + name. The first version's is in the root, so it parts the federation from one whose + first version is alike otherwise ([Starting a federation](#starting-a-federation)); a + later version changes it as anything else, which changes what the federation is + called, not which it is. * **The rules**, in order: the first whose path matches a path says who writes there. A path is segments separated by `/`, none empty. A rule's first segment is literal, and not `_continuum`; any other is literal, `{party}` (the name of a party of the version, @@ -247,16 +253,17 @@ party named like a shared name takes it where a `{party}` rule comes before it: application keeps party names apart from its spelling (no party named `wiki` while `wiki.r` is lass's). -A version is none if a field is missing or more (but for `checkpoint`, which it may -leave out), if it names more than 96 parties (two thirds of them would be more votes than -a version event may name), if it gives a party more keys than a key set may hold or more -nodes than a node list, or a rule a path longer than a write's may be, or if it breaks -any of the above. A version is one event, its parties and rules with it, so it fits in -256 KiB: a federation giving each name a rule of its own holds a few thousand names. A -proposal is taken whatever it holds: whether it is a version is asked -where a version event names it, so that nodes knowing more of what a version may say don't -part from those knowing less. A node can't tell a version that is none from one a later -continuum reads: at a version event writing one that passed, it stops +A version is none if a field is missing (but `checkpoint`, `revision` and `name`, which +it may leave out) or more (`name` among them, under a revision without names), if it +names more than 96 parties (two thirds of them would be more votes than a version event +may name), if it gives a party more keys than a key set may hold or more nodes than a +node list, or a rule a path longer than a write's may be, or if it breaks any of the +above. A version is one event, its parties and rules with it, so it fits in 256 KiB: a +federation giving each name a rule of its own holds a few thousand names. A proposal is +taken whatever it holds: whether it is a version is asked where a version event names it, +so that nodes knowing more of what a version may say don't part from those knowing less. +A node can't tell a version that is none from one a later continuum reads: at a version +event writing one that passed, it stops ([Changing the federation](#changing-the-federation)). A node shows whether a proposal is a version by the federation it knows, and a party's client backs none that isn't: two thirds backing one that is none stop every node at its version event, until their @@ -702,7 +709,9 @@ parties, zones, blocks and names that are nobody's by their spelling. A federation starts with a store of its own: its root, a checkpoint without heads that keeps nothing, its version the first, which no party signs ([Checkpoints](#checkpoints)), -so one first version makes one federation, named by the root's ID. Among the node lists +so one first version makes one federation, named by the root's ID. Its founders give it a +name there ([The policy](#the-policy)), so that a rehearsal, named otherwise, is another +federation, though its parties, keys, nodes and rules are the same. Among the node lists the version gives, one names a node of its founders', so the federation starts with members, and other nodes come in as their parties list them. Its swarm's genesis change holds the root, built byte for byte from it, its policy naming the fold `federation` @@ -933,6 +942,7 @@ another build's among them, can't read a version naming it: | Revision | Its feature | What it adds | | --- | --- | --- | | 1 | `merge-events` | Merge events, which a node its party lists signs with its own key, building on events it holds and writing nothing ([Events](#events)) | +| 2 | `federation-name` | The federation's name, which a version gives and a later one changes; the first version's, in the root, parts it from a federation alike otherwise ([The policy](#the-policy)) | What no history judges, the document, a change, the snapshot and the Automerge version, no version names: a change there splits the swarm until every node runs it |
