Skip to content
Astera Technology

Replay offline edits without overwriting newer work

Keep the original command identity and base version, then resolve conflicts after reconnecting.

Store intent rather than a blind final snapshot

HTTP does not make every POST safe to repeat. A local offline queue needs the target’s documented idempotency and concurrency rules. The sample stores command, record, base revision and proposed change; it never silently merges a conflicting edit.

Synthetic offline command queue
CommandBaseChangeReconnect result
OFF-1 / contact C-7Revision 4Change phoneRevision still 4: eligible to apply
OFF-2 / contact C-8Revision 6Change addressTarget now 7: conflict review
Retry OFF-1Same commandSame payloadReconcile prior result; do not duplicate
Download editable CSV ↓

Resolve in the user’s current context

Recheck current permission after reconnecting. Offline approval or an old login is not authority to write after access is removed. Present the original and current values for a deliberate correction, keeping the failed command for traceability.

Should a client replace a conflicting command’s base revision with the newest revision automatically?

Show the worked answer

No. That bypasses the protection and can overwrite another person’s work. Resolve the change, then create an authorised replacement intent against the reviewed current state.

Related resources