aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-25 13:03:52 +0000
committertv <tv@krebsco.de>2026-11-25 13:03:52 +0000
commit1656f73b41a3528048c33774457b0d68ed430934 (patch)
tree56fa9550232e9831f1f2d6ed324d9b16b9d713cf /docs
parent1820e326115f803ffa84280aad4e367f20d91e9f (diff)
store: a new event builds on a head holding what it is judged by
A new event builds on the heads taken earliest, 64 at most. Where a store holds more, and those all come from before the current version was written, an event on them is written under the version before: a merge event, under one without merge events, was refused, so the backlog of heads a revision was passed to merge stayed, and with more heads than a checkpoint may name, no node proposed one. The fold now says which events a new one is to have in its history (Fold::judged_by; the federation: those writing the current version), and building_on names the earliest head holding one, in place of the last of the others.
Diffstat (limited to 'docs')
-rw-r--r--docs/federation.md3
-rw-r--r--docs/store.md4
2 files changed, 5 insertions, 2 deletions
diff --git a/docs/federation.md b/docs/federation.md
index d0af71f..79921d6 100644
--- a/docs/federation.md
+++ b/docs/federation.md
@@ -648,7 +648,8 @@ signs merge events with its own key ([Events](#events)): they count for nothing,
gather what they build on into the history of what builds on them. It does so by itself
where its store holds more heads than an event may name, a random wait after it first
did, so that of the members few do at once: each on as many as an event may name, the
-earliest taken first, until no more are left.
+earliest taken first, with one holding the current version among them, as an event on
+older heads alone is written under the version before, until no more are left.
### Forks
diff --git a/docs/store.md b/docs/store.md
index d5159f6..f1e7586 100644
--- a/docs/store.md
+++ b/docs/store.md
@@ -102,7 +102,9 @@ A fold says, of its events:
* **how large an event may be**, which the document judges a change by
([On Automerge](#on-automerge)), and how many events it may build on: a new event
builds on the heads of what a node holds, as many as that, the earliest taken first, so
- that what is written merges what stayed apart the longest;
+ that what is written merges what stayed apart the longest, one of them holding what
+ the fold says a new event is judged by, where a head does (the federation: an event
+ writing the current version);
* **whether an event is taken where its history reads as a given state**: judging. A
root is taken only as its own store's, never by judging;
* **the state a checkpoint and the events after it read as**, built by adding the events