Module optimistic
Expand description
Latency-hiding action lifecycle for a UI backed by a remote model host.
The UI always renders a local Automerge replica. Actions apply to that replica immediately and enter this queue; a transport sends the returned envelopes to the authoritative host. Confirmations advance a private confirmed replica in submission order. A rejection or concurrent host update rebuilds the optimistic replica from confirmed state and replays every still-pending action with fresh dependency-correct envelopes.
Structs§
- Optimistic
Queue - A local optimistic replica plus the confirmed baseline it can rebuild from.
- Rebase
Batch - Envelopes invalidated by a rejection or authoritative merge, and their
dependency-correct replacements. Send
outboundin order; late replies naming asupersededid are safely ignored byOptimisticQueue.
Enums§
- Acknowledgement
- Result of an acknowledgement.
Stalemeans the id was already replaced during a rebase or was never part of this session. - Optimistic
Error