vue + fastify · Medium · autosave state machine
A browser and API disagree at the revision-safe autosave api boundary. An editor saves drafts in the background. A slow confirmation for an older revision currently marks the latest text as saved, and an older failure can replace the current status.
Task
Repair the shared browser-to-service contract. Reduce edit, save, success and failure events into a truthful draft status.