aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-30 19:22:34 +0000
committertv <tv@krebsco.de>2026-11-30 19:22:34 +0000
commit3bc200a2fdae7b928c68b4a1f8bfee9a919e8ff8 (patch)
tree2349badfd2a501c4ce250fc03ae15e6e6ed74870
parentb0cae5076879ad1cb7091cb9fa403c01d879d311 (diff)
docs: the federation guides, on sets of events
A federation starts on sets (--store-document); what is of the Automerge document alone (the store file, putting again, remakes, a pinned checkpoint found in the document) is said apart, for federations that keep their store there until they moved.
-rw-r--r--docs/guides/federation/README.md6
-rw-r--r--docs/guides/federation/building-on-the-api.md5
-rw-r--r--docs/guides/federation/checkpoints.md17
-rw-r--r--docs/guides/federation/forking-and-following.md2
-rw-r--r--docs/guides/federation/getting-started.md25
-rw-r--r--docs/guides/federation/promises.md7
-rw-r--r--docs/guides/federation/refusals-and-drops.md25
-rw-r--r--docs/guides/federation/remakes.md7
-rw-r--r--docs/guides/federation/running-a-node.md130
-rw-r--r--docs/guides/federation/upgrades.md8
-rw-r--r--docs/guides/federation/watching.md6
-rw-r--r--docs/guides/federation/when-things-go-wrong.md22
12 files changed, 166 insertions, 94 deletions
diff --git a/docs/guides/federation/README.md b/docs/guides/federation/README.md
index 104a04c..c9b0205 100644
--- a/docs/guides/federation/README.md
+++ b/docs/guides/federation/README.md
@@ -28,9 +28,9 @@ by them, in its words.
* [`voting-by-itself.md`](voting-by-itself.md): a node voting and proposing for its party
by its operator's rules: its key, its record, following, proposing checkpoints.
* [`refusals-and-drops.md`](refusals-and-drops.md): what a node refuses and what of it
- is its own, the store file, dropping events and taking them back.
-* [`remakes.md`](remakes.md): compactions only, the electorate, the snapshot, putting
- again after a switch, two epochs for one, and rejoining.
+ is its own, what is kept across restarts, dropping events and taking them back.
+* [`remakes.md`](remakes.md): in the Automerge document, compactions only, the electorate,
+ the snapshot, putting again after a switch, two epochs for one, and rejoining.
* [`upgrades.md`](upgrades.md): upgrading the nodes of a federated swarm, what the
federation's number and its revision say, and moving to a later revision.
* [`watching.md`](watching.md): what a node's API and its log say that needs an operator
diff --git a/docs/guides/federation/building-on-the-api.md b/docs/guides/federation/building-on-the-api.md
index 45394ed..1f01954 100644
--- a/docs/guides/federation/building-on-the-api.md
+++ b/docs/guides/federation/building-on-the-api.md
@@ -91,5 +91,6 @@ already: a write is an event every node keeps until a checkpoint leaves it out.
## Not through the store API
-A node of a federated swarm refuses writes through the store API (`/store`): the document
-takes events and each node's own protocol data only.
+A node of a federated swarm refuses writes through the store API (`/store`), which holds
+nothing of the store where it is a set of events: a federation takes events and each
+node's own protocol data only.
diff --git a/docs/guides/federation/checkpoints.md b/docs/guides/federation/checkpoints.md
index 072fc80..12d08a9 100644
--- a/docs/guides/federation/checkpoints.md
+++ b/docs/guides/federation/checkpoints.md
@@ -114,10 +114,15 @@ Votes and proposals aren't signed again: their version is behind.
## Nodes that weren't there
-A node reads its store at every start from its document's checkpoint, or from the one
-its operator pins (`--store-checkpoint`), which it finds in its document. Until a remake
-leaves out what a checkpoint forgot, the document holds what came before, and a node
-that was away builds the checkpoint from it as any. After such a remake, a node away
-across it, or joining, takes the checkpoint only where its operator pins it: ask a node
-you trust for it (`checkpoint` in `GET /events`)
+A node that was away across a move builds the checkpoint itself, as any: the others keep
+what the checkpoint forgot for a while (`--store-keeps-forgotten`, 30 days unless
+given), and give it what it lacks. A node away for longer, or joining, starts from the
+checkpoint only where its operator pins it (`--store-checkpoint`), with nothing of the
+store yet: ask a node you trust for it (`checkpoint` in `GET /events`)
([`running-a-node.md`](running-a-node.md), [Joining](running-a-node.md#joining)).
+
+A node keeping its store in the Automerge document reads it at every start from its
+document's checkpoint, or from the one its operator pins, which it finds in its
+document. Until a remake leaves out what a checkpoint forgot, the document holds what
+came before, and a node that was away builds the checkpoint from it; after such a
+remake, it takes the checkpoint only where its operator pins it.
diff --git a/docs/guides/federation/forking-and-following.md b/docs/guides/federation/forking-and-following.md
index 63b7c40..441f4f9 100644
--- a/docs/guides/federation/forking-and-following.md
+++ b/docs/guides/federation/forking-and-following.md
@@ -48,7 +48,7 @@ go. The rules are the design's ([`federation.md`](../../federation.md),
`--at 4a1d 9e30` names the heads for the others. The fork is named by its root's ID,
the SHA-256 of its root (the file's first line), which nobody can steer.
4. **Start it**: a node carries one swarm, so the founders start the fork's nodes with
- files of their own (state, document, store file), from the root
+ files of their own (state, the set of events), from the root
(`--store-root fork-root`), or by its ID through one of them (`--store-id`), each
with its party (`--store-party`).
5. **Begin a record there**: a fork is a store of its own, and a party that never voted
diff --git a/docs/guides/federation/getting-started.md b/docs/guides/federation/getting-started.md
index 33f9181..8b7e5f3 100644
--- a/docs/guides/federation/getting-started.md
+++ b/docs/guides/federation/getting-started.md
@@ -107,11 +107,12 @@ Keep it: a party that loses its record casts nothing on the current version
## Starting
-tv's node starts the federation from the root:
+tv's node starts the federation from the root, and holds it in a set of events, kept in
+a file (`--store-document`):
```sh
-continuum --store-root root --store-party tv --store-file store.json \
- --state-file state.json --document-file document --node-key-file node.key \
+continuum --store-root root --store-party tv --store-document events \
+ --state-file state.json --node-key-file node.key \
--htpasswd htpasswd --mycelium-enable
curl -s -u tv:secret localhost:3000/events
# {"checkpoint":"6d1e…","heads":["6d1e…"],"party":"tv","store":"6d1e…","taken":0,
@@ -122,15 +123,21 @@ lass's node joins it by its ID, through tv's node, one of whose addresses it is
(`addresses` in `GET /admin/stats` there):
```sh
-continuum --store-id 6d1e… --store-party lass --store-file store.json \
- --seeds mycelium:… --state-file state.json --document-file document \
+continuum --store-id 6d1e… --store-party lass --store-document events \
+ --seeds mycelium:… --state-file state.json \
--node-key-file node.key --htpasswd htpasswd --mycelium-enable
```
-Nodes sync with the nodes the parties list, and with no others: both are in the first
-version. A party lists another node of its own by itself, without a vote
+It asks tv's node for the root by its ID, and for everything after. Nodes sync with the
+nodes the parties list, and with no others: both are in the first version. A party lists
+another node of its own by itself, without a vote
([`common-changes.md`](common-changes.md#what-a-party-does-by-itself)).
+A federation that keeps its store in the Automerge document (`--document-file`,
+`--store-file`, no `--store-document`) goes on so, and moves to sets of events node by
+node ([`operations.md`](../../operations.md),
+[Moving to sets of events](../../operations.md#moving-to-sets-of-events)).
+
## Writing and reading
tv writes in its namespace, through its node:
@@ -209,8 +216,8 @@ continuum-party --node http://lass:secret@localhost:3000 --key lass.key \
Once a node holds both votes, it writes the version, and every node takes it:
`continuum-party status` says version 1. makefu's node, started with
-`--store-id 6d1e… --store-party makefu` and a seed, is a member now: the others sync
-with it, and makefu writes in its namespace as tv did.
+`--store-id 6d1e… --store-party makefu --store-document events` and a seed, is a member
+now: the others sync with it, and makefu writes in its namespace as tv did.
## What next
diff --git a/docs/guides/federation/promises.md b/docs/guides/federation/promises.md
index 733c713..c6ba2eb 100644
--- a/docs/guides/federation/promises.md
+++ b/docs/guides/federation/promises.md
@@ -40,8 +40,9 @@ to whom. A party whose machine is taken over whole is the adversary from then on
* **Good votes**: a party may vote badly; a `true` binds it while its proposal can
pass, and only other parties' nays free it: parties that never vote hold it there.
* **Delivery**: what a party's nodes withhold reaches nobody through them.
-* **Speed and uptime**: a party that floods the store, or keeps remakes from committing,
- makes nodes slow or runs them out of memory, never wrong. The others fork away from it.
+* **Speed and uptime**: a party that floods the store, or, where it is kept in the
+ Automerge document, keeps remakes from committing, makes nodes slow or runs them out of
+ memory, never wrong. The others fork away from it.
* **One swarm where keys voted twice**: each node keeps the version it took, and nodes
part, until their operators choose
([`when-things-go-wrong.md`](when-things-go-wrong.md)).
@@ -59,7 +60,7 @@ to whom. A party whose machine is taken over whole is the adversary from then on
([`keys.md`](keys.md), [`proposing-and-voting.md`](proposing-and-voting.md)); vote
from one client; back only what you mean to, as a `true` binds.
* **An operator**: give your node seeds you trust, pin checkpoints you got from nodes you
- trust, and keep its store file ([`running-a-node.md`](running-a-node.md)).
+ trust, and keep the file of its set ([`running-a-node.md`](running-a-node.md)).
* **An application**: read from a node you trust, as what it answers is its word; check
the events yourself where that matters
([`writing-and-reading.md`](writing-and-reading.md),
diff --git a/docs/guides/federation/refusals-and-drops.md b/docs/guides/federation/refusals-and-drops.md
index 1d29df1..40f37de 100644
--- a/docs/guides/federation/refusals-and-drops.md
+++ b/docs/guides/federation/refusals-and-drops.md
@@ -26,17 +26,21 @@ curl -s -u tv:secret localhost:3000/events/refused
or larger than it allows), `judged` (refused at its history), `builtOn` (built on
`on`, refused), `notAbove` (not above the checkpoint's heads, as a move refuses it).
-A change of another node that a node refuses doesn't take its events with it: the store
-takes them as from anywhere (`Took events a refused change carried`), and the node puts
-them again.
-
## Kept across restarts
-A node reads its store anew from its document at every start; what it refused of its
-own, and what it dropped, it keeps in its store file (`--store-file`), written whenever
-it changes. Without the file, a restart may take what it refused; a file that doesn't
-read stops the node from starting; one it can't write it logs (`Couldn't write the store
-file`).
+What a node refused of its own, and what it dropped, is in its set's file
+(`--store-document`) with the events, written where the set changed, every five seconds
+and as the node stops; started again, the node goes on from it. Without the file, the
+node joins anew, and may take what it refused; a file that doesn't read stops the node
+from starting; one it can't write it logs (`Couldn't write the store's document`).
+
+A node keeping its store in the Automerge document reads it anew from that document at
+every start, and keeps what it refused of its own and what it dropped in its store file
+(`--store-file`), written whenever it changes: without it, a restart may take what it
+refused, and one that doesn't read stops the node from starting (`Couldn't write the
+store file`, where it can't write it). A change of another node that such a node refuses
+doesn't take its events with it: the store takes them as from anywhere (`Took events a
+refused change carried`), and the node puts them again.
## Dropping
@@ -57,7 +61,8 @@ events from whoever brings them, and any version event naming a version among th
whoever wrote it anew; it writes none itself, though it holds the votes passing it, and
keeps so across restarts. Not what its checkpoint keeps
or holds by ID: every event after it builds on that. A move to a checkpoint is undone
-only by a checkpoint its operator pins (`--store-checkpoint`).
+only by starting from a checkpoint its operator pins (`--store-checkpoint`), anew
+([`running-a-node.md`](running-a-node.md), [Joining](running-a-node.md#joining)).
## Taking back
diff --git a/docs/guides/federation/remakes.md b/docs/guides/federation/remakes.md
index 05c27ab..5897ba4 100644
--- a/docs/guides/federation/remakes.md
+++ b/docs/guides/federation/remakes.md
@@ -1,5 +1,12 @@
# Remakes under a federation
+A node holding its store in a set of events (`--store-document`) has nothing to remake:
+it holds no changes, no writers and no epochs, and what it holds shrinks by the
+federation's checkpoints alone ([`checkpoints.md`](checkpoints.md)). This guide is for a
+federation that keeps its store in the Automerge document, until it moved
+([`operations.md`](../../operations.md),
+[Moving to sets of events](../../operations.md#moving-to-sets-of-events)).
+
A remake moves a swarm to a new document, for Automerge's sake only: the store needs
none, and its events stay what they are. A federated swarm takes compactions only. How a
remake runs is as in any swarm ([`remakes.md`](../../remakes.md)); this guide says what is
diff --git a/docs/guides/federation/running-a-node.md b/docs/guides/federation/running-a-node.md
index 27ee3a0..2392578 100644
--- a/docs/guides/federation/running-a-node.md
+++ b/docs/guides/federation/running-a-node.md
@@ -1,29 +1,37 @@
# Running a node of a federation
-A node of a federated swarm runs as any continuum node: its node key, its state and
-document files, its transports, a supervisor ([`operations.md`](../../operations.md)).
-This guide says what is otherwise: the options of a swarm holding a store, who syncs,
-what its API lets in, and joining.
+A node of a federated swarm runs as any continuum node: its node key, its state file,
+its transports, a supervisor ([`operations.md`](../../operations.md)). This guide says
+what is otherwise: the options of a swarm holding a store, who syncs, what its API lets
+in, and joining.
+
+A node holds its store in a set of events, kept in a file (`--store-document`), which
+this guide describes; or in the Automerge document any swarm syncs, as federations
+started before sets did, and do until they move
+([In the Automerge document](#in-the-automerge-document), below). Nodes of the one and
+nodes of the other don't sync with each other.
## Its options
* `--store-root FILE` starts the swarm from its root, or goes on with it: the file the
founders made (`continuum-party root`), the root on its first line and, for a fork,
- the events the root keeps, a line each. The node builds the changes founding the
- swarm from it, as every node given the file builds them, and is ready at once.
-* `--store-id ID` joins the swarm by its ID, the root's SHA-256, through `--seeds`.
- Joining with an empty document, the node takes as its root that store's genesis change
- only.
+ the events the root keeps, a line each. The node begins its set from it, as every
+ node given the file does, and is ready at once.
+* `--store-id ID` joins the swarm by its ID, the root's SHA-256, through `--seeds`
+ ([Joining](#joining), below).
* `--store-party NAME`, which both need: the party the node is of, named in its entry
and its handshakes. It is a member once that party's node list names it
([Who syncs](#who-syncs)).
-* `--store-file PATH`: what is the node's own, written whenever it changes: the events
- it refused by what it took before (of two versions changing one, the second it judged)
- and those its operator had it drop. A node reads its store anew from its document
- whenever it starts: without the file, it may then take what it refused. Keep it beside
- the document file; one that doesn't read stops the node from starting.
-* `--store-checkpoint ID`: a checkpoint the node reads its store from whenever it starts,
- instead of from the document's checkpoint, by its ID ([Joining](#joining), below).
+* `--store-document PATH`: the file of the node's set of events, written where the set
+ changed, every five seconds and as the node stops: the store's events, what the node
+ refused by what it took before (of two versions changing one, the second it judged),
+ what its operator had it drop, and the members' entries. Started again, the node goes
+ on from it. One that doesn't read, or is of another store, stops the node from
+ starting.
+* `--store-checkpoint ID`: the checkpoint a node joining with nothing begins its set
+ from, instead of the root, by its ID ([Joining](#joining), below).
+* `--store-keeps-forgotten DURATION` (30 days unless given): for how long the node keeps
+ what a checkpoint its store moved to forgot, for nodes still before that checkpoint.
* `--store-neighbour-parties NAME,…`: parties among whose members, with its own party's,
the node keeps some of its neighbours.
* `--store-vote-key PATH` and the options with it: the node votes and proposes for its
@@ -37,10 +45,11 @@ node refuses to start with them.
## Its files
Beside those of every node ([`lifecycle.md`](../../lifecycle.md),
-[What the files are for](../../lifecycle.md#what-the-files-are-for)), the store file. Back
-up the node key, as every node's: its node ID is what its party lists, and a new key is a
-new node, which the party lists anew. The document file and the store file go together:
-the store file says what the node refuses of what the document holds.
+[What the files are for](../../lifecycle.md#what-the-files-are-for)), the file of its
+set, and no document file: the document a swarm syncs otherwise stays empty. Back up the
+node key, as every node's: its node ID is what its party lists, and a new key is a new
+node, which the party lists anew. Back up the set's file too: a node without it joins
+anew, and may then take what it refused.
## Who syncs
@@ -90,50 +99,83 @@ alone, so that a party listing many nodes can't be all of a node's neighbours.
(whether it takes a `true` a party is about to cast); and its operator's:
`POST /admin/events/drop`, `/admin/events/allow`, `/admin/events/vote`,
`/admin/events/fork`. Each answers `404` while the node holds no store.
-* **The store API** (`/store`) reads the document, where events are bytes at
- `_continuum/events/<ID>`; what counts is read at `GET /events/counts`. A write through
- it is refused (`403`): the document takes events and each node's own protocol data
- only.
+* **The store API** (`/store`) holds nothing: events are read at `GET /events/{id}`,
+ what counts at `GET /events/counts`. A write through it is refused (`403`): the set
+ takes events and each node's own entry only. So is a remake (`/admin/remakes`, `400`:
+ `this node's document is a set of events: there is nothing to remake`).
## Joining
-A node with an empty document joins by the store's ID (`--store-id`) through a member
-(`--seeds`), and holds its store once it has read the document: `GET /events` answers
-then. It learns of other members as it syncs, and needs none of its seeds once it has:
-they may go away. Before a checkpoint passed, it reads from the root: of two versions
-changing one, which keys voting twice wrote, it takes the first it judges, as any node,
-and reports the other (`own` in `GET /events/refused`), for you to choose
+A node with nothing of the store joins by its ID (`--store-id`) through a member
+(`--seeds`): it asks the members it reaches for the root by its ID, takes what hashes to
+it, and holds its store then (`Begun the store's set from what peers gave by name`):
+`GET /events` answers. Everything after it catches up on as it syncs. It learns of other
+members so, and needs none of its seeds once it has: they may go away. Before a
+checkpoint passed, it reads from the root: of two versions changing one, which keys
+voting twice wrote, it takes the first it judges, as any node, and reports the other
+(`own` in `GET /events/refused`), for you to choose
([`when-things-go-wrong.md`](when-things-go-wrong.md)).
Once the store moved to a checkpoint, a node joining starts from that checkpoint, which
its operator pins by its ID (`--store-checkpoint`): ask a node you trust for it
-(`checkpoint` in `GET /events`). The node finds it in its document, built from what the
-document holds as any node builds it, and holds no store until then (`The pinned
-checkpoint isn't in the document (yet)`). It takes no epoch whose snapshot holds a
-checkpoint it neither builds nor has pinned: from the root, it would take what was grown
-anew from it since, by keys of versions long replaced.
+(`checkpoint` in `GET /events`). The node asks the members it reaches for the checkpoint
+by that ID, and for the events it keeps, and holds no store until it has them all. From
+the root, it would take what was grown anew from it since, by keys of versions long
+replaced. The pin counts only while the node has no file of its set: with one, it goes on
+from there.
-A node that was away across a move to a checkpoint builds that checkpoint from its
-document, which holds what came before until a remake leaves it out; after such a remake,
-it takes the checkpoint only where its operator pins it. Pin it, and restart the node.
+A node that was away across a move to a checkpoint builds that checkpoint itself, from
+what the others keep of what the checkpoint forgot (`--store-keeps-forgotten`). Away for
+longer than they keep it, it stays before the checkpoint, and the others refuse what it
+writes: start it anew, without its set's file and with the checkpoint pinned. It then
+holds none of what it refused of its own or dropped
+([`refusals-and-drops.md`](refusals-and-drops.md)).
## What it writes by itself
* **A version that passed**, as soon as it holds the votes passing it (`Writing a
version that passed`): any node may write it, and the same version written by several
is one.
-* **Events its document lacks**, that its store would take and that it has: after a
- remake, a rejoin, or a change of another node it refused (`Put again events the
- document lacked`).
* **Merge events**, under a revision with them, where its party lists it and its store
holds more heads than an event may name (64): signed with its node key, a random wait
after there first were (`Merged heads beyond what an event may name`). They count for
nothing, and gather the heads apart, so that what is written after builds on them all.
-* **Its own protocol data**: its entry, its acks of remakes, and the remakes it
- coordinates. Remakes are compactions only, acked by the members
- ([`remakes.md`](../../remakes.md)).
+* **Its own entry**: where it is reached, its party, and what else a member says of
+ itself, signed with its node key and counted, the latest taken.
It refuses events as every node does, and some by what it took before: of two versions
changing the one it reads, the second it judged (`Refused an event its history takes, by
what this node took before: kept so`). `GET /events/refused` lists them apart (`own`):
tell its party, which decides what the node keeps.
+
+## In the Automerge document
+
+A federation started before sets of events keeps its store in the document every swarm
+syncs: its nodes run without `--store-document`, and move there node by node, through
+`--store-both` ([`operations.md`](../../operations.md),
+[Moving to sets of events](../../operations.md#moving-to-sets-of-events)). Until then,
+what is otherwise at such a node:
+
+* **Its options and files**: `--document-file`, as any node's, and `--store-file PATH`,
+ what is the node's own, written whenever it changes: the events it refused by what it
+ took before, and those its operator had it drop. The node reads its store anew from
+ its document whenever it starts: without the store file, it may then take what it
+ refused. The two go together; a store file that doesn't read stops the node from
+ starting.
+* **Starting and joining**: given the root, the node builds the changes founding the
+ swarm from it; joining with an empty document, it takes as its root that store's
+ genesis change only, and holds its store once it has read the document. A pinned
+ checkpoint (`--store-checkpoint`) it finds in its document, built from what the
+ document holds, at every start, and holds no store until then (`The pinned checkpoint
+ isn't in the document (yet)`).
+* **A node that was away** across a move to a checkpoint builds it from its document,
+ which holds what came before until a remake leaves it out; after such a remake, it
+ takes the checkpoint only where its operator pins it. Pin it, and restart the node.
+* **The store API** (`/store`) reads the document, where events are bytes at
+ `_continuum/events/<ID>`; a write through it is refused (`403`): the document takes
+ events and each node's own protocol data only.
+* **What it writes by itself** besides: events its document lacks, that its store would
+ take and that it has, after a remake, a rejoin, or a change of another node it refused
+ (`Put again events the document lacked`); and its acks of remakes, and the remakes it
+ coordinates. Remakes are compactions only, acked by the members
+ ([`remakes.md`](remakes.md)).
diff --git a/docs/guides/federation/upgrades.md b/docs/guides/federation/upgrades.md
index 92cedc4..4cec3af 100644
--- a/docs/guides/federation/upgrades.md
+++ b/docs/guides/federation/upgrades.md
@@ -12,10 +12,10 @@ A node of a federated swarm upgrades as any node does
restarted with its files, and a release's version says how: a patch or a minor release one
node at a time, a major one every node close together. Nodes write each other the newest
wire version both speak; where two releases share none, a major one, upgraded nodes and
-the others don't talk, and the swarm is split until all are upgraded. A remake needs the
-same Automerge on every node, and one with another rejoins instead of switching. Before
-1.0.0, the first part of the version that isn't 0 counts as the major one (`0.2.0` after
-`0.1.1` is a flag day).
+the others don't talk, and the swarm is split until all are upgraded. Where the store is
+kept in the Automerge document, a remake needs the same Automerge on every node, and one
+with another rejoins instead of switching. Before 1.0.0, the first part of the version
+that isn't 0 counts as the major one (`0.2.0` after `0.1.1` is a flag day).
Nobody runs every node of a federated swarm: each party's operators upgrade its nodes. A
patch or minor release each party takes when it likes; for a major one, agree on when,
diff --git a/docs/guides/federation/watching.md b/docs/guides/federation/watching.md
index a60b1ab..f3e8ccb 100644
--- a/docs/guides/federation/watching.md
+++ b/docs/guides/federation/watching.md
@@ -107,10 +107,12 @@ At warn or error:
takes events again` once its operator had it drop that event;
* `This node isn't a member of its store, as it reads now: its party doesn't list it, and
members don't sync with it`;
-* `The pinned checkpoint isn't in the document (yet): holding no store until it is`;
+* `The pinned checkpoint isn't in the document (yet): holding no store until it is`, at
+ a node keeping its store in the Automerge document;
* `The document's root is no store's: not reading it`, `Reading the store from the
document failed`;
-* `Couldn't write the store file: a restart may take what this node refused`: a full or
+* `Couldn't write the store's document: a restart goes on from what the file holds`,
+ `Couldn't write the store file: a restart may take what this node refused`: a full or
read-only disk;
* `Couldn't vote by itself`, `Voting by itself, without its party's record: votes none`;
* `Couldn't put what it signed for its party: put again later`, `Couldn't write a version
diff --git a/docs/guides/federation/when-things-go-wrong.md b/docs/guides/federation/when-things-go-wrong.md
index 8326f72..13df07d 100644
--- a/docs/guides/federation/when-things-go-wrong.md
+++ b/docs/guides/federation/when-things-go-wrong.md
@@ -11,7 +11,7 @@ rules are the design's ([`federation.md`](../../federation.md),
Two versions changing one are written only where keys voted twice: a party's `true` and
`false` on one proposal, each shown to some, or its `true` on two. Each node takes the
first it judges and refuses the other, with everything built on it, and keeps so across
-restarts (`--store-file`); its log says so (`Refused an event its history takes, by what
+restarts; its log says so (`Refused an event its history takes, by what
this node took before: kept so`), `continuum-party status` says so, and `GET
/events/refused` lists it under `own`:
@@ -61,7 +61,8 @@ curl -u tv:secret -X POST -H 'Content-Type: application/json' \
The node refuses what it dropped from then on, from whoever brings it, and writes no
version naming what it dropped, until it is allowed again. A node drops only what it
took after its checkpoint: a version that moved it to a checkpoint it undoes only by
-taking a checkpoint its operator pins (`--store-checkpoint`).
+starting from a checkpoint its operator pins (`--store-checkpoint`), anew, without its
+set's file ([`running-a-node.md`](running-a-node.md), [Joining](running-a-node.md#joining)).
The parties answer keys that voted twice by forking, without the party that voted twice
(`continuum-party fork remove lass`) or with its keys named anew (`fork keys lass
@@ -75,7 +76,7 @@ record.
A node stops at a version event writing a version that passed on the version it reads,
which its continuum doesn't read: of a later federation, using what a later continuum
takes, or none at all. It takes nothing and refuses nothing from then on, and votes
-nothing by itself or by hand; what is put through it, it still writes into the document
+nothing by itself or by hand; what is put through it, it holds back
(`stopped` when put). Its log says so (`The store stopped at an event this continuum
can't judge`), and `GET /events` names the event, why, and how many it holds back:
@@ -94,7 +95,7 @@ makes a version none ([`proposing-and-voting.md`](proposing-and-voting.md),
Upgrade the node to a continuum that reads it: restarted, it reads its store anew and
takes it. Where none does (two thirds passed a proposal that is no version), have the node
drop that event: it goes on under the version before, refuses the event and any writing
-that version, and keeps so (`--store-file`):
+that version, and keeps so across restarts:
```sh
curl -u tv:secret -X POST -H 'Content-Type: application/json' \
@@ -103,10 +104,11 @@ curl -u tv:secret -X POST -H 'Content-Type: application/json' \
```
Allowed again (`/admin/events/allow`), it stops there once more. A node that stopped
-keeps none of it in its store file: restarted, it stops there again. What it holds back
-it leaves out of nothing, as it can't tell which will be taken: it puts it again where its
-document lacks it, and a remake keeps it, so a remake while nodes are stopped loses none
-of what was put since.
+keeps none of it in its set's file: restarted, it stops there again. What it holds back,
+it passes on to nobody, and what was put through it since it stopped, no other node has:
+put it through another node. A node keeping its store in the Automerge document puts
+what it holds back again where its document lacks it, and a remake keeps it, so a remake
+while nodes are stopped loses none of what was put since.
## A node doing less than it should
@@ -119,8 +121,8 @@ of what was put since.
(`continuum-party nodes --add`), through any member.
* **An event waits** (`waiting` when put): the node lacks an event it builds on. It
takes it once that one arrives.
-* **It doesn't start**: its store file doesn't read, or an option of a swarm that isn't
- federated is set ([`running-a-node.md`](running-a-node.md),
+* **It doesn't start**: the file of its set doesn't read, or an option of a swarm that
+ isn't federated is set ([`running-a-node.md`](running-a-node.md),
[Its options](running-a-node.md#its-options)).
* **A write is refused**: [`writing-and-reading.md`](writing-and-reading.md),
[Why a write is refused](writing-and-reading.md#why-a-write-is-refused).