Skip to content

feat: add JSONL Stage-1 remote synchronization - #478

Draft
fujibee wants to merge 5 commits into
dogfood/retention-resyncfrom
dogfood/jsonl-stage1-sync
Draft

feat: add JSONL Stage-1 remote synchronization#478
fujibee wants to merge 5 commits into
dogfood/retention-resyncfrom
dogfood/jsonl-stage1-sync

Conversation

@fujibee

@fujibee fujibee commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • implement JSONL prepare_push, reconcile_push, and apply_pull behind the existing journal lock
  • persist byte-stable wire reservations, acknowledgements, quarantine/import outcomes, and transport cursor as one-record fsynced transitions
  • pair byte-offset sync positions with an atomically rotated file generation across compaction and rename
  • project imported events through existing inbox/watch/history/export views without echo re-push

Validation

  • bats tests/test_jsonl_remote_sync.bats (12 contract/crash/concurrency cases; age-v1 when available)
  • AGMSG_STORAGE_DRIVER=jsonl bats tests/test_storage_contract.bats (34)
  • bats tests/test_remote_sync.bats (16)
  • node --test tests/remote_sync_engine.test.mjs (21)

Draft/unmerged dogfood stack. Base is dogfood/retention-resync; no main merge is requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant