From 6e5afca5a795f3bf5da43f20c81fb70216ae12d8 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 01:31:09 +0000 Subject: continuum-party: found by a name, propose name, the name in status `found` takes the federation's name (`--name`, required), and founds at revision 2, the first that gives one, unless `--revision` names a later one; one naming an earlier is an error. `propose name NAME` (and `fork name`) names the federation anew, the next version following revision 2 too where the current one doesn't, which the preview says. `status` says the name its current version gives beside the store's ID. --- docs/guides/federation/common-changes.md | 7 +++++++ docs/guides/federation/getting-started.md | 18 +++++++++++------- docs/guides/federation/watching.md | 5 +++-- 3 files changed, 21 insertions(+), 9 deletions(-) (limited to 'docs/guides') diff --git a/docs/guides/federation/common-changes.md b/docs/guides/federation/common-changes.md index 8a31080..51a6644 100644 --- a/docs/guides/federation/common-changes.md +++ b/docs/guides/federation/common-changes.md @@ -150,3 +150,10 @@ a node voting by itself backs no version naming a checkpoint that changes more. `propose revision FEATURE`: the next version, following the revision that adds the feature, once every party's nodes run a continuum that knows it ([`upgrades.md`](upgrades.md), [Moving to a revision](upgrades.md#moving-to-a-revision)). + +## Naming the federation anew + +`propose name NAME`: the next version, giving the federation another name, which changes +what it is called, not which it is: its root keeps the name it was founded with. Where +the current version follows a revision that gives no name, the next one follows revision +2 too, which takes every party's nodes running a continuum that knows it, as above. diff --git a/docs/guides/federation/getting-started.md b/docs/guides/federation/getting-started.md index c2e1bc6..fa81c94 100644 --- a/docs/guides/federation/getting-started.md +++ b/docs/guides/federation/getting-started.md @@ -49,17 +49,18 @@ printf '%s' 'secret' | argon2 "$(openssl rand -hex 16)" -id -e | sed 's/^/tv:/' ## The first version The founders agree on the first version, as a file. `continuum-party found` writes it -from each party's keys (`PARTY=` an `authorized_keys` line, or a file of them), its node -list, and the rules in order (`--rule PATH=WRITER`), each party writing in its namespace -where no rule is given: +from the federation's name (`--name`), each party's keys (`PARTY=` an `authorized_keys` +line, or a file of them), its node list, and the rules in order (`--rule PATH=WRITER`), +each party writing in its namespace where no rule is given: ```sh -continuum-party found tv=tv.key.pub lass=lass.key.pub \ +continuum-party found --name krebs tv=tv.key.pub lass=lass.key.pub \ --nodes tv=continuum:5be1… --nodes lass=continuum:9c07… > first.json ``` ```json -{ "federation": 1, "number": 0, "changes": null, +{ "federation": 1, "number": 0, "changes": null, "name": "krebs", + "revision": "", "keys": { "tv": { "since": 0, "keys": ["ssh-ed25519 AAAA…"] }, "lass": { "since": 0, "keys": ["ssh-ed25519 AAAA…"] } }, "nodes": { "tv": { "since": 0, "nodes": ["continuum:5be1…"] }, @@ -68,8 +69,11 @@ continuum-party found tv=tv.key.pub lass=lass.key.pub \ ``` Each party writes in its namespace (`home/tv/…`), and nowhere else: no other rule gives -a place. Every change of the version takes two thirds of its parties: of two, both. -`--revision FEATURE` starts it on a later revision of the federation +a place. Every change of the version takes two thirds of its parties: of two, both. The +name is in the root, so a rehearsal named otherwise (`krebs-test`) is another federation, +though its parties, keys, nodes and rules are the same; a later version renames it, which +changes what it is called, not which it is. It follows revision 2 of the federation, the +first that gives a name; `--revision FEATURE` starts it on a later one ([`upgrades.md`](upgrades.md)). ## The root diff --git a/docs/guides/federation/watching.md b/docs/guides/federation/watching.md index 4bc062d..a60b1ab 100644 --- a/docs/guides/federation/watching.md +++ b/docs/guides/federation/watching.md @@ -11,7 +11,7 @@ store, through its API and its log. (`read`, `values`), with what needs a look in colour on a terminal: ``` -store 6d1e8a0c4f2b9d77… +store 6d1e8a0c4f2b9d77… (krebs) checkpoint 6d1e8a0c4f2b9d77… 3 heads, 120 events taken after the checkpoint the node continuum:9c07e2a4b6d8f0a1… (beta) @@ -49,7 +49,8 @@ you: tv ``` IDs and hashes are cut short here; the client writes them whole, the shortest prefix -naming a proposal in bold, and keys by their fingerprints. Every node goes by the name it +naming a proposal in bold, and keys by their fingerprints. The store goes by the name its +federation's current version gives it, where one does. Every node goes by the name it gave itself (`--alias`) where the node knows it, a node no party lists yet by its ID alone. It says of every party's nodes how long ago the node heard from each, and what each runs (its wire versions and the newest revision it knows: the nodes to upgrade before a -- cgit v1.3.1