aboutsummaryrefslogtreecommitdiffstats
path: root/src/document/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* document: what goes to a peer next is the document's to saytv2 days1-0/+1
| | | | | | | | | document::passing::next: the next message for a peer, by the session with it: changes as they are along a tree, a sync message, or an offer of the changes as a blob where a message would be too large, with the signatures of what it carries, and whether it is taken as delivered. swarm::sync keeps whose tree a message is along, the epoch it is of, the envelope, and what is counted of it.
* document: values read and written through a view any kind of document givestv2 days1-0/+1
| | | | | | | | | | | | | document::view: Read (the value at a path, plain, typed, a map's keys) and Write (a value written, one deleted), which Automerge's documents, writes in progress and documents as they were all are. The member registry, the users, access control's reads and rules, the topology, forgetting and bootstrap read and write through them, and name neither Automerge's ReadDoc and Transactable nor document::store, which is what an Automerge document can do beyond. How a swarm holding a store judges what a change writes is handed to the rules (rules::judge_seen), being its kind of document's to say.
* document: screening what is received is the document's, the rules access ↵tv2 days1-0/+1
| | | | | | | | | control's access::screen becomes document::screen: reading received bytes as changes, putting them in order, keeping those that wait or are refused, vouching by signatures and applying is all Automerge's shape, and has each change judged by the rules (access::rules) before it applies it.
* document: what a dropped change takes with it is the document's to saytv2 days1-0/+1
| | | | | | | | | document::dropping: a change a document holds and all that builds on it (Tainted), and the document left without them, with what this node's own writes among them touched and the others' changes (Dropped). The walk of the history, the fork and the fresh actor were the node's, in AppState::drop_taken, which keeps what is its own: whether a drop waits for a second member's word, the quarantine, the refused.
* document: the writers a node wrote under are the document's, not a remake'stv2 days1-0/+1
| | | | | | | | | The actors a node writes or wrote with in its current document (document::own::OwnWriters, AppState::own_writers) were kept by the remake state, which signing, the document file, sync and a dropped change read them from. They are the engine's: a document of a kind without writers of this sort has none, and needs no remake state for them.
* release: --version says what decides which builds work togethertv12 days1-0/+6
| | | | | | | | | | | | | | | | `continuum --version` and `continuum-party --version` say, after the release, the wire versions the build speaks, the federation and the revisions of it it knows (with the `federation` feature), and the Automerge version it makes documents with: continuum 1.0.0 wire versions 52 to 52 federation 1: the base revision, revision 1 (merge-events) automerge 0.12.0 `-V` says the release alone, as before; continuum-party had no version at all. The Automerge version is the one the crate itself reports (`document::engine_version`), so it follows Cargo.lock.
* document: a store swarm's genesis change, built byte for byte from its roottv2026-11-161-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, everywheretv2026-11-151-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 documenttv2026-11-091-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 changestv2026-11-071-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 touchtv2026-11-071-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 nodetv2026-11-071-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