feat(sync): first-class sneakernet export/import via USB/SD (E-09)#46
Open
ChelseaKR wants to merge 1 commit into
Open
feat(sync): first-class sneakernet export/import via USB/SD (E-09)#46ChelseaKR wants to merge 1 commit into
ChelseaKR wants to merge 1 commit into
Conversation
Surface the existing end-to-end-encrypted CRDT delta as a file-based sneakernet workflow, so a tenant on a metered plan or in a no-Wi-Fi room can keep a case in step by handing over a small encrypted file in person — no relay, no data plan, no account. - sync.py: add `suggested_delta_filename(peer)` -> `habitable-delta-<peerfp8>.hsync`, a stable, leak-free default name (the file is sealed regardless of its name). - cli.py: add `sync-export` (--peer, --out; reuses `export_message`) and `sync-import` (one or more file paths, so a USB folder glob works; reuses `import_messages`). Import is not silent — it reports merges/captures like `sync` — and errors cleanly with a non-zero exit when nothing in the files was sealed to this device, or on a forged/undecryptable blob (SyncError). - docs: new docs/sneakernet-sync.md (identity exchange, export to stick, hand-over, import + reply, "a lost stick leaks nothing"), linked from README.md and docs/setup-guide.md. - tests: tests/test_cli_sync_file.py drives the real CLI end to end — A -> file -> B roundtrip (merges/captures), wrong-recipient and forged-blob clean errors, idempotent re-import (0 new captures), and the fp8 filename. - roadmap: mark E-09 shipped in the synthetic-persona backlog and the execution-log ledger. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Surface the existing end-to-end-encrypted CRDT delta as a file-based
sneakernet workflow, so a tenant on a metered plan or in a no-Wi-Fi room
can keep a case in step by handing over a small encrypted file in person
— no relay, no data plan, no account.
suggested_delta_filename(peer)->habitable-delta-<peerfp8>.hsync,a stable, leak-free default name (the file is sealed regardless of its name).
sync-export(--peer, --out; reusesexport_message) andsync-import(one or more file paths, so a USB folder glob works; reusesimport_messages). Import is not silent — it reports merges/captures likesync— and errors cleanly with a non-zero exit when nothing in the fileswas sealed to this device, or on a forged/undecryptable blob (SyncError).
hand-over, import + reply, "a lost stick leaks nothing"), linked from
README.md and docs/setup-guide.md.
A -> file -> B roundtrip (merges/captures), wrong-recipient and forged-blob
clean errors, idempotent re-import (0 new captures), and the fp8 filename.
execution-log ledger.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Backfill PR for a completed roadmap item (
roadmap/sneakernet-sync-e-09, 1 commit(s) overmain). Part of the portfolio roadmap batch.