diff options
| author | tv <tv@krebsco.de> | 2026-11-20 01:28:41 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 02:38:56 +0100 |
| commit | 96a733e1ccbf6dab2d69f263d655e487ac54c20d (patch) | |
| tree | abfa6c292134a224b53e4a70c60a31721577a7bc /docs | |
| parent | 7a178877d3b979ae6bd0e48ddb06363a0d50affc (diff) | |
federation: revision 2, the federation's name
A version may give its federation a name (`name`, spelled as a party's),
under a revision that has names: `federation-name`, revision 2. The
first version's is in the root, so a rehearsal named otherwise is
another federation, though its parties, keys, nodes and rules are the
same; a later version changes the name as anything else, which changes
what the federation is called, not which it is. A version giving a name
under an earlier revision is none.
What a version does says so, in words: it names the federation, renames
it, or drops its name. Half the generated histories begin at the newest
revision now, their versions naming the federation anew now and then;
those of the revisions before are generated as they were.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/federation-tests.md | 3 | ||||
| -rw-r--r-- | docs/federation.md | 32 |
2 files changed, 23 insertions, 12 deletions
diff --git a/docs/federation-tests.md b/docs/federation-tests.md index eeb90b6..e6b3ba7 100644 --- a/docs/federation-tests.md +++ b/docs/federation-tests.md @@ -61,7 +61,8 @@ to: a stage is done when its tests are. ## Properties, over generated histories Histories are generated: a few parties (3 to 7), their keys, versions passing, honest -writes and votes, nodes merging under a revision with merge events or not, and an +writes and votes, nodes merging and versions naming the federation anew under the newest +revision or neither under the base revision, and an adversary that signs anything its own keys or stolen ones can, on any dependencies, and puts out events no party signs. Each property is checked for every order of every history small enough (up to some 8 events, every order that puts 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 |
