aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake
Commit message (Collapse)AuthorAgeFilesLines
* remake: turning a running swarm strict, keeping what an operator signedtv2026-11-086-12/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until a swarm is strict, the user a change names is its node's word, so any member could have planted registry entries, policy, bans or user-signed values as any user, plain or signed by a key it put there itself; writing the strict policy trusted all of it as it was. A remake of a new kind, `strict`, turns a swarm strict instead: * Its content is a manifest (access::strict): the swarm, the strict policy, and each value kept at the places values are signed, by the SHA-256 of its JSON, signed by an operator (ssh-keygen -Y sign -n continuum-strict). * Every node builds the next epoch as compaction does, keeping at the signed places only the values the manifest names, as they were at the base, and writing its policy (RemakeKind::protocol, the one kind that changes protocol data). Writes after the base reach the new epoch only by replays, judged by the strict policy. * A node votes for one only with its manifest signed by one of --strict-keys, keys given out of the document; without any, for none (logged once, `Not voting for a strict remake`), unless --follow-strict-remakes. A coordinator proposes only what it would vote for (403). Once a majority commits one, every node switches, as with any remake: refusing to switch would only cut a node off. * GET /admin/strict-manifest gives the manifest keeping everything held now, the values for review and the heads they are at; continuum-signed strict shows them, signs once confirmed and proposes at those heads. The sim a_swarm_turning_strict_through_a_remake: a member plants a registry entry as a manager; the operator's manifest leaves it out; a and b, given the key, commit; c, without, follows; the entry is gone and the policy strict everywhere.
* rules: a carried remake record taken from the coordinator its snapshot namestv2026-11-084-1/+10
| | | | | | | | | | | | | | | | | Review finding 7, second part: a record carried into a new epoch whole (proposal and decision in one change) was taken from any member, for any remake ID. A member could write a forged record, decision included, for a fresh ID in a single change. The snapshot's epoch metadata now names the remake's coordinator, as the quorum built it. The carried-record exception holds only in a later epoch, only for the remake that made it, and only from the coordinator its snapshot names, where there is no record yet. Wire version 43: the snapshot, and so the epoch ID, changes. The review suggested carrying the record inside the snapshot instead. The snapshot can't hold the decision, which names the snapshot's own hash. So the snapshot vouches for who may carry the record instead.
* remake: replays judged before they go intv2026-11-084-2/+118
| | | | | | | | | | | | | | | A switching or rejoining node replays late writes as fresh changes naming each write's user, and nothing judged them before they left: a replay every node would refuse (a revoked capability, a second envelope at a signed path, readers changed) was refused everywhere, and with it everything the node wrote after it. Under a policy, replay_newest now judges each group it commits as every node will (rules::judge_held, in the new epoch); one they would refuse is taken back (forked at the heads before it, same actor) and its paths quarantined with the reason. replay_newest takes the epoch. Review finding 3 (remake replays).
* remake: replay from the quarantine where the user may writetv2026-11-081-12/+35
| | | | | | | | | | POST /admin/quarantine/{id}/replay needs write on _continuum, which never covers user data, and replayed every path of the entry as the user who asked: every node refused the user data in it. It now replays only the paths the user may write and keeps the rest in the entry (left), for one who may; 403 if the user may write none. Review finding 3 (quarantine replays).
* swarm: changes taken unjudged, dropped (REFUSALS)tv2026-11-071-0/+17
| | | | | | | | | A node refusing changes a peer brought tells it which broke a rule; the peer judges them itself, and if its rules refuse them too, drops them with all built on them (its document forked without them, a fresh actor), quarantining its own writes among them. Wire version 42. Auth plan M6 (rejoin on taint).
* remake: replays keep their writerstv2026-11-074-25/+198
| | | | | | | | A remake's replay writes each value as the user who wrote it, splitting where several users wrote under a path, so replays are judged as the original writes. Auth plan M6 (remakes, 2.4).
* remake: forgetting and releasing name their usertv2026-11-072-2/+22
| | | | | | | Forget records and released quarantines name the user who made them, so they are judged by its capabilities. Auth plan M6.
* store: keys_at tells no map from an empty onetv2026-11-073-3/+8
| | | | | | | | registry::exists counted any value at _continuum/users as a registry; keys_at answers None where there is no map, and its users (records, members, forget records, remakes) say what they make of it. Auth plan M1 (fix).
* refuse misplaced authorstv2026-11-071-0/+9
|
* dashboard: polish remake ringstv2026-11-071-1/+17
|
* dashboard: remake switch delaytv2026-11-061-1/+1
|
* dashboard: add epoch switch indicatortv2026-11-052-7/+33
|
* dashboard: map remake votestv2026-11-051-0/+37
|
* fixup 700, 701, 702tv2026-11-031-38/+2
|
* remake: read ops, not diffstv2026-11-022-6/+6
| | | | This gives bench_replay a speedup of ~8x/64x/280x.
* api: add type caststv2026-11-021-0/+1
|
* add remake benchmarkstv2026-11-022-0/+91
|
* remake: download wakes on end instead of tickertv2026-11-012-6/+15
|
* remake: decouple grace time from node's keepalivetv2026-11-014-4/+25
|
* document: allow writes during rejointv2026-11-014-214/+271
|
* LWW everywhere, mostlytv2026-11-014-23/+340
|
* remake: copy stale view when writes stoptv2026-11-012-5/+11
| | | | This ensures that stale reads show every write that was answered.
* remake: log expired and missed votestv2026-11-012-9/+61
|
* api: off clock refuses aborting expired remaketv2026-11-011-14/+29
|
* remake: introduce follow-the-majority ruletv2026-11-011-27/+139
|
* document: reject writes during rejointv2026-11-014-31/+72
|
* use Automerge as Document instead of AutoCommittv2026-10-319-144/+174
| | | | This allows a lot of operations to drop mut.
* store function accept any documenttv2026-10-311-6/+10
|
* tests write through document::testing helperstv2026-10-315-210/+210
|
* remake coordination use document, not automergetv2026-10-316-46/+41
|
* one function for changed pathstv2026-10-311-27/+6
|
* remake needs sane clocktv2026-10-312-1/+22
|
* remake: drop is_reserved; use is_protocoltv2026-10-311-10/+5
|
* remake: drop parse_metadatatv2026-10-311-12/+8
|
* replace EpochInfo by EpochRecordtv2026-10-311-16/+1
|
* remake: move proposal to its own moduletv2026-10-313-252/+271
|
* move ChangeSet from swarm to documenttv2026-10-313-3/+3
|
* talk about "transport" unless mycelium is meanttv2026-10-271-3/+3
|
* remake worker wakes up when vote is duetv2026-10-264-2/+42
|
* describe remake test failures in simulationtv2026-10-261-0/+30
|
* make clippy happy againtv2026-10-263-16/+17
|
* add remake tests on the simulatortv2026-10-262-0/+57
|
* add changed_path minimality testtv2026-10-261-0/+69
|
* add epoch retention teststv2026-10-261-0/+29
|
* add test ensuring at most one remake commitstv2026-10-261-0/+151
|
* don't cast votes after committv2026-10-261-2/+14
|
* add remake statstv2026-10-262-0/+47
|
* introduce bounded blob downloadstv2026-10-262-5/+8
|
* allow aborting remake with unreachable coordiantortv2026-10-261-4/+26
|
* remove some dead commentstv2026-10-261-5/+3
|