core icon indicating copy to clipboard operation
core copied to clipboard

corpus-sync: incremental change feed — decided export --since <rev>

Open tcballard opened this issue 4 months ago • 0 comments

Sub-issue of #255 (corpus-sync, ADR-093). Depends on #257 (point-in-time export).

Corpus: decisions/requirements/rac-export-change-feed.md

Scope:

  • decided export --documents|--graph --since <rev> [--at <rev2>]: documents feed of added/modified/removed records (full record shape embedded so the published schema applies unchanged); graph feed of node/edge delta arrays.
  • Change detection keys on canonical id (ADR-026): git mv = modified, never removed+added.
  • Cursor metadata base/head as resolved SHAs; AsDecided persists nothing — the consumer owns the cursor (ADR-080).
  • Replay law CI-asserted: base export + feed == head export, byte-for-byte. Empty delta → empty feed, exit 0. CLI-only (ADR-032).

Tick on #255 when landed.

tcballard avatar Jul 02 '26 21:07 tcballard