From 46fc2ab070b5f8d3cd6c8bd0d6bd15c624a061e5 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 25 Nov 2026 15:20:37 +0000 Subject: federation: a node votes false by no rule: --store-nay-beside is gone A node following a party copies no false, so a followed key voting twice finds nobody to end the first of its two checkpoints. With --store-nay-beside its followers cast that false by rule: it showed each checkpoint to some of them, voted false on one itself, had them end it and move to the other, and passed the first with the rest. Two checkpoint versions on one, by one key, in a federation of any size. The rule was there for two checkpoints proposed at once, which a node's wait before it proposes makes rare. Where they stay proposed, neither with two thirds, their parties end one by hand: the checkpoints guide says how (Two proposed at once). Row 59 says so, and its simulation has the one two thirds back pass, with no false cast. An option that is gone is named so, with what to do (config::GONE), on the command line and in a configuration file, where "unknown option" would leave an operator guessing. --- docs/example.toml | 1 - docs/federation.md | 8 +++++--- docs/guides/federation/checkpoints.md | 33 +++++++++++++++++++++++++++--- docs/guides/federation/voting-by-itself.md | 9 ++++---- 4 files changed, 40 insertions(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/example.toml b/docs/example.toml index cdf942a..6423f95 100644 --- a/docs/example.toml +++ b/docs/example.toml @@ -167,7 +167,6 @@ htpasswd = "/etc/continuum/htpasswd" # store-vote-record = "/var/lib/continuum/party-record.json" # store-follow = ["lass"] # store-follow-any = false -# store-nay-beside = false # store-propose-events = 10000 # store-propose-every = "7d" # store-propose-versions = 1 diff --git a/docs/federation.md b/docs/federation.md index 79921d6..4aefffc 100644 --- a/docs/federation.md +++ b/docs/federation.md @@ -610,8 +610,10 @@ each voting by itself can vote twice; none for a proposal that is no version; an rule for checkpoints, none for a version that changes more than its number, what it changes and its checkpoint, which it checks against the current one, nor for one whose heads leave out what it held for a while ([Checkpoints](#checkpoints)). Where two -checkpoints are proposed at once, the votes split, as any do; a rule may vote `false` on -the one it doesn't back, so that one dies and its backers are free. It backs, and +checkpoints are proposed at once, the votes split, as any do: one two thirds back passes, +and the other lapses with the move; where neither does, their parties end one by hand. A +node votes `false` by no rule, as a party it follows could count on that `false`, and +voting twice have its followers pass two checkpoints. It backs, and proposes, a checkpoint only once its store held its checkpoint, or ran, for a while, by its own clock: so the parties it follows move the store at most once that long, and a node just started backs none. What it held when it started, it takes as held for a @@ -821,7 +823,7 @@ yet*: what would answer it better, which isn't built. | 56 | Two versions changing one, naming different checkpoints | As 12: each node keeps the one it took, and moves to its checkpoint | unit | | 57 | A key added back, or a place given back, after a checkpoint | Brings back nothing signed before the checkpoint that counted no more there | unit | | 58 | A party a node follows backs, or votes `false` on, a version that changes more than its checkpoint | By default the node follows neither; one following on any version backs the one, as its operator chose, and copies no `false` | unit | -| 59 | Two checkpoints proposed at once, by nodes voting by themselves | The votes split; nays from the nodes backing one make the other dead, and its backers are free | sim | +| 59 | Two checkpoints proposed at once, by nodes voting by themselves | The votes split: one two thirds back passes, and the other lapses with the move. Where neither does, each party's `true` stays on its own until nays by hand from more than a third end one; a node votes `false` by no rule, which a party it follows could count on | sim | | 60 | Two nodes of one party, each voting by itself | They can vote twice, answered as any party voting twice: a party has one node vote by itself | — | | 61 | A key a version names, kept on a node that votes by itself, stolen with it | As 23: it counts while that version is current | unit | | 62 | A party's event spelled anew by another: its `sig` or `key` encoded otherwise, its signature's S not canonical (of ECDSA, the order less `s`, or `r` or `s` with zeros more in front), its blob naming another key | None: `key` and `sig` read back to themselves, the signature is checked strictly (of ECDSA, `s` low and `r` and `s` each its shortest), and the blob's key is `key` | unit | diff --git a/docs/guides/federation/checkpoints.md b/docs/guides/federation/checkpoints.md index f6340b0..072fc80 100644 --- a/docs/guides/federation/checkpoints.md +++ b/docs/guides/federation/checkpoints.md @@ -69,9 +69,36 @@ again. [Its rules](voting-by-itself.md#its-rules)). * `--store-back-after` (ten minutes unless set) has it back none before its store held its checkpoint, or ran, that long. -* `--store-nay-beside` has it vote `false` on every other version only moving to a - checkpoint, where it backs one that can still pass: of two checkpoints proposed at once, - the other dies, and its backers are free. + +## Two proposed at once + +Nodes voting by themselves each propose a random wait after a checkpoint is due, so that +the first proposal reaches the others before they make one of their own. Two can still +come at once: in a cut, or where a party proposes one beside another on purpose. Each +party's one `true` is then on the one its node proposed, or follows. + +Where two thirds back one of them, it passes, every node moves there, and the other +lapses with the move: nothing to do. Where neither gets two thirds, both stay proposed +and their backers stay bound, as a `true` holds its party until its proposal is dead, and +no node votes `false` by a rule: a `false` cast so is one a party it follows could count +on, to pass two checkpoints voting twice. Then the parties end one by hand: + +1. See both, and who backs which: `continuum-party proposals`, or `status`. +2. Agree which one to end. Either moves the store to heads its backers held; `beside` of + each in `GET /events/counts` says what moving there refuses. +3. More than a third of the parties vote `false` on it, none of them a party that backs it, + as none votes `true` and `false` on one proposal: + + ```sh + continuum-party vote 8d02… no # by its client + continuum-party vote 8d02… no --through # a party whose node votes for it + ``` + +4. It is dead. Its backers are free: their nodes back the other by themselves where they + follow one of its backers, and a party votes `true` on it by hand otherwise. + +A party that backed one may vote `false` on the other, so the backers of one, where they +are more than a third of the parties, end the other by themselves. ## After a move diff --git a/docs/guides/federation/voting-by-itself.md b/docs/guides/federation/voting-by-itself.md index 175081c..a94a084 100644 --- a/docs/guides/federation/voting-by-itself.md +++ b/docs/guides/federation/voting-by-itself.md @@ -10,7 +10,7 @@ proposal. The rules are the design's ([`federation.md`](../../federation.md), ```sh continuum --store-id 6d1e… --store-party tv … \ --store-vote-key tv.key --store-vote-record tv.record \ - --store-follow lass,makefu --store-nay-beside --store-propose-events 1000 + --store-follow lass,makefu --store-propose-events 1000 ``` * `--store-vote-key`: a key the party's version names, an OpenSSH private key file @@ -70,9 +70,10 @@ or `POST /admin/events/vote` with `{"proposal": "8d02…", "yes": true}`. close vote, one key voting twice can pass a rival version at a history from before it, any time later, which nodes lagging behind or joining from the root may take; a checkpoint above that version ends that. -* **`false` beside** (`--store-nay-beside`): where it backs a proposal that can still - pass, it votes `false` on every other version only moving to a checkpoint, so that of - two checkpoints proposed at once the other dies, and its backers are free. +* **No `false` by a rule**: where two checkpoints are proposed at once and neither gets two + thirds, their parties end one by hand ([`checkpoints.md`](checkpoints.md), + [Two proposed at once](checkpoints.md#two-proposed-at-once)). A `false` a node cast by + a rule is one a party it follows could count on, to pass two checkpoints voting twice. ## What it keeps to -- cgit v1.3.1