You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Sync the personal fork's state across machines (user confirmed useful between machines). emdash's implementation: self-operated Cloudflare Worker + D1 relay (opaque row bodies), AES-256-GCM per-row encryption (HKDF per (table, pk), AAD bound to space/row/version/keyId), two-half pairing secrets with checksum, device tokens + revocation, tombstones, LWW by server version, machine-local columns, tasks provisionable on demand, long-poll.
Decisions inside:
What state syncs in Orca: worktree meta (stage, links, order), automation configs, …? Orca has no SQLite app DB — state is orca-data.json — so "tables + triggers" does not port; a key/value LWW layer over the JSON state is the likely shape.
Relay: Cloudflare Worker + D1 model is good, but porting emdash's code verbatim may not fit once storage and task model are decided.
Whether Orca's existing pieces cover part of it: Orca Mobile relay + E2EE pairing, Remote Orca Servers, Orca Account cloud.
Multi-machine sync for the fork: board + worktree state over a self-hosted E2E relay, LWW.
What syncs: board/worktree state only — worktreeMeta (workflowStage, linkedIssue/PR, column order lists, isArchived, isPinned), board ui keys (per-project column order, dismissed ghost ids). Machine-local (NOT synced): terminal sessions/tabs, settings, automation runs.
Relay: self-hosted Cloudflare Worker + D1 (emdash pattern), deployed by the user, configured in fork settings. The relay stores opaque E2E-encrypted rows only — reusing Orca's existing crypto (e2ee-crypto NaCl box / HKDF key schedule); per-row encryption with AAD-bound keys like emdash. NOT the upstream Orca Cloud (fragile for a fork).
Storage shape: Orca has no SQLite — sync = a key/value LWW layer over the orca-data.json state: sync unit = per-key values (one worktreeMeta per id, one order list per project), server-versioned LWW, tombstones for deletes. Existing rekey primitives (moveKey, priorWorktreeIds) stay the conflict-free identity mechanism.
Conflicts: last-write-wins by version, no dialogs.
Offline: local write queue, push + pull on reconnect (long-poll/WS from the worker).
Pairing/join: reuse the existing QR / orca://pair deep-link flow + devices screen with per-device revocation (device-registry pattern); two-half pairing secret like emdash.
Protocol is new surface (client ↔ self-hosted relay) — capability-negotiated per docs/reference/remote-wire-compatibility.md when the spec lands.
Out of this scope: "Board × remote workspaces" fog stays open.
Activity
64ix commentedon Aug 20, 2026
Answer
Multi-machine sync for the fork: board + worktree state over a self-hosted E2E relay, LWW.
worktreeMeta(workflowStage, linkedIssue/PR, column order lists, isArchived, isPinned), boarduikeys (per-project column order, dismissed ghost ids). Machine-local (NOT synced): terminal sessions/tabs, settings, automation runs.orca-data.jsonstate: sync unit = per-key values (one worktreeMeta per id, one order list per project), server-versioned LWW, tombstones for deletes. Existing rekey primitives (moveKey, priorWorktreeIds) stay the conflict-free identity mechanism.orca://pairdeep-link flow + devices screen with per-device revocation (device-registry pattern); two-half pairing secret like emdash.fix(board): enforce fork-local ghost candidates; scope spec-ref exclu…