Skip to main content

Module sync

Module sync 

Source
Expand description

Synchronisation helpers for bones event shards.

This module provides:

  • merge — logic for combining divergent .events shard files.
  • prolly — content-defined Merkle tree for O(log N) event set diffing.
  • protocol — transport-agnostic 3-round sync protocol built on prolly trees.

The prolly tree and protocol modules are library APIs for external sync tools. bones does not own transport — tools like maw, custom MCP servers, or direct TCP/HTTP services implement protocol::SyncTransport and call the sync functions.

Modules§

merge
Union-merge logic for bones event shard files.
prolly
Prolly Tree: content-defined chunked Merkle tree for efficient O(log N) diff.
protocol
Prolly Tree sync protocol for non-git event replication.