ADR-017: Offline Sync Protocol for Driver Hub
Status: ✅ Accepted Canonical file: ../../protocols/offline-sync-protocol.md
This ADR is documented in the protocols directory. See the canonical file for full details.
Summary
Establishes the offline sync protocol for the Driver Hub PWA, covering:
- Client queue structure (IndexedDB/RxDB
PendingMutationinterface) - Sync API (
POST /api/sync/batchwithSyncBatchRequest/SyncBatchResponse) - Per-record transactional batch semantics
- Deduplication via
sync_idempotency_logtable - Server-side
change_eventgeneration - "Server Wins" conflict resolution
- Connectivity detection and retry strategy
Applies to: OnboardSale, ExpenseReceipt, BoardingEvent, Incident, IssueReport.