diff --git a/docs/initiatives/standalone/917-storage-save-path/PLAN.md b/docs/initiatives/standalone/917-storage-save-path/PLAN.md index 9e1db177..79e1deb4 100644 --- a/docs/initiatives/standalone/917-storage-save-path/PLAN.md +++ b/docs/initiatives/standalone/917-storage-save-path/PLAN.md @@ -110,6 +110,10 @@ One-time migration of the worst key (5.38 MiB, 9,230 messages), measured with a **Two deliberate departures from this plan, both stricter or narrower, never looser:** 1. **The blob is never deleted**, not even on a verified match. This plan said "retained until per-key readback matches"; the implementation keeps it after the match too. Rows become the read and write path and the blob is left untouched, so the database temporarily holds both copies. Reclaiming that space is a separate owner-gated step, because the moment that delete runs is the moment a mistake stops being recoverable. + + > **Correction, 2026-10-21 (#943).** This section originally added that a downgrade to an older build "still finds its history where it looks for it". That is true of the **data** and false in **practice**, and the owner hit it: drift refuses to open a database whose `user_version` is newer than the binary's `schemaVersion`, so a pre-#917 build cannot open a migrated database at all. It never gets as far as the blobs it would have read. + > + > The consequence is a release one, not a desktop one: **once a user launches a schema-2 build they cannot go back to an earlier release.** A Play rollback or a halted staged rollout does not help anyone who already launched it, and the real fallback is an older build *plus* a pre-migration database copy, which loses everything received since. #943 carries the decisions (release-note wording, whether to tolerate a newer schema, whether the app should take its own pre-migration copy). 2. **One row per message with the per-message JSON in a `payload` column**, rather than a column per field. The migration is then a pure re-key with no field mapping that can silently drop or coerce a value, and the stores reuse their existing encoders verbatim. The trade, stated on the issue before building: message fields are not SQL-queryable. Columns can be added beside the payload later without another data migration. ### Epic C: Integration Testing