Skip to main content

Module sync

Module sync 

Source
Expand description

Synchronization records and the dedup algorithm (§9.2).

Two projections of a memo:

  • ManifestRecord: lightweight (no body) — the agent diffs against its local id → hash cache to decide what changed.
  • FullRecord: the complete memo body, requested only for ids the diff flagged as “needs fetch”.

diff_manifest implements the agent-side dedup so callers (and tests) can reason about it without the CLI.

Structs§

FullRecord
Full memo payload, returned for ids flagged by the diff.
ManifestDiff
Result of diffing a manifest against a local cache (§9.2, steps 3–4).
ManifestRecord
Lightweight manifest entry: identity + content hash + timestamp + tombstone.

Functions§

diff_manifest
known maps id (hyphenated) → hash ("b3:…"), exactly what an agent caches.