Skip to main content

universal_storage_convergence_session 0.1.0-dev.1 copy "universal_storage_convergence_session: ^0.1.0-dev.1" to clipboard
universal_storage_convergence_session: ^0.1.0-dev.1 copied to clipboard

Anti-entropy session core over the convergence kernel: wire codec, delta planning, receive watermark. Pure Dart — knows nothing about transports or storage.

universal_storage_convergence_session #

The anti-entropy session core over the convergence kernel (dfp ADR 0063): the MeshSyncProtocol wire codec (hello / sub / vv / delta frames), the DeltaPlanner decision core (what to send a peer: ops or a snapshot), the ReceiveWatermark causality floor for local writes after folding remote state, and the generic SnapshotPolicy compaction type.

Pure Dart. Knows nothing about transports or storage — messages in, messages out. Two parents share it: Universal Storage's mesh sync and ecsly's world sync; merge semantics stay in the kernel, transport seams stay outside.

Receive watermark, in one paragraph #

The kernel folds remote ops without ticking the local clock, so LWW orders a post-fold local write by raw wall clock — a peer with an ahead wall clock would outrank it forever. ReceiveWatermark keeps the (wall, counter) max of everything RECEIVED, re-anchored to the local actor, purely logically; local writers floor their tick time through floorNow and pass the watermark as the kernel's lastIssued. Both together make a local write issued after folding a remote op strictly outrank it, even on a frozen wall clock.

0
likes
140
points
145
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Anti-entropy session core over the convergence kernel: wire codec, delta planning, receive watermark. Pure Dart — knows nothing about transports or storage.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

meta, universal_storage_convergence, universal_storage_world

More

Packages that depend on universal_storage_convergence_session