feat(collab): SPEC-003 realtime collaborative editing via P2P CRDTs #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/4/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SPEC-003: Realtime Collaborative Editing via P2P CRDTs
Turns
ar-editfrom a single-machine tool into a realtime, multiplayer editor: two or more instances collaborate on one project over a direct peer-to-peer connection, with no central server holding state. ImplementsSPEC-003.Scale: 41 commits, 115 files, ~19.5k insertions.
What's in it
ar-edit daemon --edit <name>owns the canonical file; one-shot commands attach to a live host and mutate through it (one store, no divergence), failing closed if the socket is present but unresponsive (bounded by a timeout).mark/poiCLI commands route through it with legacy-file migration.AR_EDIT_AUTHOR→.ar-edit/author→ gituser.name→ OS username), stored as CRDT state, shown inmark/poi/edit show.Quality
store.rs100% kill,crdt.rs90% (remaining survivors are equivalent/redundancy-masked),edit.rs100%; plus property + adversarial tests, with the id-reuse blocker's proptest seed checked in.Known caveats (read before merging as "collaboration done")
blake3KDF (vs HKDF), no transcript/node-key binding. Pairing policy is a deliberate 3-attempt lockout (not burn-on-first). The local/annotation paths don't depend on this.tracing/metrics).🤖 Generated with Claude Code
https://claude.ai/code/session_01XShvi51hax77hMd6wHFBTf