Description
Engineer a local-first synchronization engine utilizing Conflict-free Replicated Data Types (CRDTs) to allow users to draft and queue governance votes offline.
Architecture & Context
For governance of fractional token parameters, users need to read proposals and vote regardless of network stability. By capturing votes as CRDT vectors in IndexedDB, the client can deterministically merge state with the backend once connectivity returns.
Technical Requirements
- Integrate
Yjs or Automerge specifically optimized for browser usage.
- Utilize
Dexie.js for persistent storage of offline mutations.
- Implement a Service Worker background sync event to flush pending vectors automatically.
Acceptance Criteria
Description
Engineer a local-first synchronization engine utilizing Conflict-free Replicated Data Types (CRDTs) to allow users to draft and queue governance votes offline.
Architecture & Context
For governance of fractional token parameters, users need to read proposals and vote regardless of network stability. By capturing votes as CRDT vectors in IndexedDB, the client can deterministically merge state with the backend once connectivity returns.
Technical Requirements
YjsorAutomergespecifically optimized for browser usage.Dexie.jsfor persistent storage of offline mutations.Acceptance Criteria