Sync / API

foldkit-sync/metakit

A document's laws and transitions written as metakit expressions, for Sync.forApplication(App).make. make takes the plain values these build, so a page that does not use metakit carries none of it.

Namespaces

SyncDeclaredLaws and transitions of a Sync document declared as metakit expressions. Named apart from foldkit-form/metakit's Declared, so one file can import both.

Functions

convergenceRead machine's durable Messages, given as its arms (machine.transitions.Add): for each overlapping pair whether a rebase can change what a replica showed,…
fromMachineExtracts the durable subset of an application's metakit Machine for Sync.forApplication(App).make({ transitions }), throwing at definition for a tag whose…
settleConvergenceWhat convergence owes, discharged with the walks given, as evidence for Temporal.report. A pair that never rebases is a decision checked by its walk,…

Interfaces

Convergence
PairWalkWhat a walk of a pair found: how it ran, and whether the two commit orders left different documents.
RebasePairA pair of durable Messages whose footprints overlap, and whether a rebase can change what a replica showed.
RedeliveryWhat a durable Message delivered twice in a row to one replica does.
SettleOptions