aboutsummaryrefslogtreecommitdiffstats
path: root/src/document/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* document: a store swarm's genesis change, built byte for byte from its roottv27 hours1-0/+2
| | | | | | | | | | | | | A swarm holding a store starts from its genesis change, which every node builds from the store's root alike, so that one root makes one swarm (`docs/store.md`, What the document holds). `document::events` builds it: it writes the policy naming the fold, the swarm's ID (the root's) and the root at its ID, as bytes, each making the maps on its way, under the writer made of the root ID's first 16 bytes, at time 0, without a message. `is_genesis` tells such a change by building it again from the root it holds; `started` is a document holding it, written to under a writer of its own; `ids` and `bytes` read the events a document holds at `_continuum/events`. All of it behind the `federation` feature.
* signed values: one reading of an envelope, everywheretv2 days1-0/+1
| | | | | | | | | | | | | | | | Three parts read an envelope three ways: the store's order took any string with the prefix whose meta held a `seq`, its reads any whose value decoded, the checks only one with four parts and a meta of exactly its fields. A string that the first two took and the checks refused was read first, read as the registry's or the policy's value, and treated as nothing by the check of the next write there. `document::signed` reads an envelope the one way: four parts, the value JSON, the meta exactly its six fields (one more, or one twice, and it isn't one), no newline in either, the signature decoding. The store's order, its plain reads, the checks, the API and the users API all go by it. What isn't one in every respect is a plain string, wherever it is read.
* stats: the writers of the documenttv8 days1-0/+10
| | | | | | | | | | | How many writers (Automerge actors) the document's changes have matters: a writer is a node's run (each start, rejoin or drop makes one, a start keeping the one of before with `--keep-actor` after a clean stop), and every transfer of the whole history carries a signature for each. `/admin/stats` now says it (`document.writers`, and `document_writers` for Prometheus), counted from the changes' metadata alongside the saved size's measurement in the background (at least a minute apart), as that takes time proportional to the document too; an export, which measures the size alone, keeps the count of before. The dashboard's figures show it with the rest.
* access: screening received changestv10 days1-1/+2
| | | | | | | | | access::screen: a batch of received changes judged change by change, those that change what rules read applied before the next is judged; a refused change stays out with whatever builds on it, kept aside for operators; changes missing dependencies wait. Auth plan M6.
* inspect: the paths changes touchtv10 days1-0/+1
| | | | | | | | document::inspect: each change's paths read from its operations before it is applied, the same on every node: an object's place as made, cut at lists and text; unknown objects at the root. Auth plan M6.
* signatures: changes signed by their nodetv10 days1-0/+1
| | | | | | | | | | Every node signs the changes it commits with its node key, an Ed25519 signature over the change's hash, kept beside the document. One signature on an actor's latest change vouches for its earlier ones. Protocol data and paths listed in _continuum/access/signed are signed, and writes with ?signed=true. Auth plan M5.
* fixup 700, 701, 702tv2026-11-031-1/+3
|
* add remake benchmarkstv2026-11-021-1/+1
|
* api: add application/vnd.continuum.* scalar typestv2026-11-021-0/+1
|
* add document benchmarkstv2026-11-011-0/+2
|
* api: allow reading past versionstv2026-11-011-0/+1
|
* use Automerge as Document instead of AutoCommittv2026-10-311-6/+8
| | | | This allows a lot of operations to drop mut.
* store function accept any documenttv2026-10-311-1/+3
|
* tests write through document::testing helperstv2026-10-311-0/+2
|
* remake coordination use document, not automergetv2026-10-311-4/+9
|
* move SyncSession to documenttv2026-10-311-8/+5
|
* move all automerge references to documenttv2026-10-311-0/+24
|
* add guard test for automerge importstv2026-10-311-0/+54
|
* move changes as bytes to documenttv2026-10-311-0/+1
|
* rename AutoMerge to Documenttv2026-10-311-0/+5
|
* add document lock statstv2026-10-281-0/+1
|
* turn all pub into pub(crate)tv2026-10-261-2/+2
|
* move protocol paths to dedicated moduletv2026-10-261-0/+1
|
* allow to persist documenttv2026-10-251-0/+1
|
* reorganize all the modulestv2026-10-211-0/+5