Skip to main content

Module sync

Module sync 

Source
Expand description

Engine sync with a place (Cloud v4 V4, SPEC-ENGINE §3.4.3–§3.4.4): verification of snapshot and tail records, the push of own events, and the driver that clones, tails and pushes a replica.

Modules§

auto
Background vault sync (3.12.3): the daemon syncs every shared vault of this machine without a manual lean-ctx cloud sync.
driver
Driving a place’s replica from the server (SPEC-ENGINE §3.4.3–§3.4.4): clone (signed manifest, then every segment, each verified before import, refetched once on a mismatch), tail since the cursor, and push of own events. The server log is the only source of truth: accepted pushes stay pending until the tail delivers them.
on_write
Push a knowledge write to Cloud from the process that made it (#270).
place
The C0 2.0 sync of one bound vault (SPEC-ENGINE §3.4.4, V1.6): clone or tail the replica, turn what the capture gate lets through into signed events, push them, tail again. Runs only when the enrolled Cloud speaks C0 2.0 (crate::bus::relay_v2::speaks_v2); against a 1.x Cloud the draft path stays as it is.
purge
Purges on the engine (SPEC-ENGINE §3.4.6, V4.7): after a fold, every node a purge removed leaves the dedupe index (its keys move to purge_deny, so the text is never captured again), its own local text is removed from the project knowledge, and each tombstone gets one signed acknowledgement for the place (E9 / purge_acks[] on E5).
push
Pushing own events to a place (E5 POST /v1/places/{p}/events, SPEC-ENGINE §3.4.4, C0 2.0 push_request / push_response).
records
Verifying what the server sends for a clone and a tail (SPEC-ENGINE §3.4.3, C0 2.0 section 6 records): the signed snapshot manifest, the segment record stream with its envelope Merkle root, and tail pages.
writer
What writes signed events into a workspace vault: the instance key, a registered workspace worker and the place as C0 2.0 names it. Every engine path that queues vault events (sync capture, cloud maintain, knowledge contradict|retract) builds its signer and place here, so the C0 spellings (hlc.node and place id as hyphenated UUIDs) cannot drift between paths again (dogfood 25.10.: the maintain CLI signed with the raw inst_<hex> id and Cloud refused invalid_event shape /hlc/node).