From 81df63a1514ba8951345e5de489565106ecf485e Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Wed, 21 Oct 2026 05:25:06 -0400 Subject: [PATCH] docs(#943): correct the downgrade claim in the #917 plan of record The plan's Epic B outcome said a downgrade to an older build "still finds its history where it looks for it". True of the data, 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 reaches the blobs it would have read. Correcting it rather than leaving a wrong statement in a merged plan of record, because the consequence is a release one: once a user launches a schema-2 build they cannot go back to an earlier release, so a Play rollback or a halted staged rollout does not help anyone who already launched it. The real fallback is an older build PLUS a pre-migration database copy, which loses everything received since. #943 carries the open decisions. This commit only fixes the claim. Citadel: meshcore-open-gq7 Refs #943, #917, #920 Co-Authored-By: Claude Opus 5 --- docs/initiatives/standalone/917-storage-save-path/PLAN.md | 4 ++++ 1 file changed, 4 insertions(+) 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