diff --git a/.github/workflows/integration-cassandra.yml b/.github/workflows/integration-cassandra.yml index 29f92aeb7..adb2628c0 100644 --- a/.github/workflows/integration-cassandra.yml +++ b/.github/workflows/integration-cassandra.yml @@ -420,8 +420,8 @@ jobs: devtools/check-cassandra-catalog-lock ./target/release/extenddb ${{ job.services.cassandra.id }} 127.0.0.1:9042 18454 - # No released image carries the Cassandra backend, so the job builds - # the last 0.1.x release from its tag, on a cache miss only. + # No 0.1.14 image carries the Cassandra backend, so the job builds + # 0.1.14 from its tag, on a cache miss only. - name: Build the v0.1.14 release (cassandra backend) if: steps.cache-v0-1-14.outputs.cache-hit != 'true' run: | @@ -440,7 +440,7 @@ jobs: path: ${{ runner.temp }}/target-v0.1.14/release/extenddb key: extenddb-v0.1.14-no-default-features-${{ env.V0114_FEATURES }}-${{ runner.os }}-${{ runner.arch }} - - name: Check the last 0.1.x release against migrated catalogs + - name: Check the 0.1.14 release against migrated catalogs run: >- devtools/check-cassandra-older-binary ./target/release/extenddb ${{ runner.temp }}/target-v0.1.14/release/extenddb diff --git a/.github/workflows/integration-mongodb.yml b/.github/workflows/integration-mongodb.yml index 4918b4872..0538fb132 100644 --- a/.github/workflows/integration-mongodb.yml +++ b/.github/workflows/integration-mongodb.yml @@ -276,7 +276,7 @@ jobs: run: devtools/check-mongodb-auth ./target/release/extenddb 27081 18490 - name: Check the released catalogs against a fresh install run: devtools/check-mongodb-released ./target/release/extenddb 27061 18480 - - name: Check the last 0.1.x release against migrated catalogs + - name: Check the 0.1.14 release against migrated catalogs run: | docker pull extenddb/extenddb-mongodb:0.1.14 devtools/check-mongodb-older-binary ./target/release/extenddb \ diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 26a4695d0..ed5a4d3a5 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -221,11 +221,11 @@ jobs: devtools/check-postgres-catalog-lock ./target/release/extenddb postgresql://postgres:devpass@127.0.0.1:5432 18452 - # The last 0.1.x image's verify, migrate --yes and serve against + # The 0.1.14 image's verify, migrate --yes and serve against # catalogs this binary created and migrated: what each writes, and that # this binary then reports WrittenByOlderRelease and --reconverge # restores Current. - - name: Check the last 0.1.x release against migrated catalogs + - name: Check the 0.1.14 release against migrated catalogs run: | docker pull extenddb/extenddb-postgres:0.1.14 devtools/check-postgres-older-binary ./target/release/extenddb \ @@ -322,10 +322,10 @@ jobs: - name: Check serve and migrate on one catalog run: devtools/check-sqlite-catalog-lock ./target/release/extenddb 18450 - # The last 0.1.x dev image's serve and migrate --yes against catalogs + # The 0.1.14 dev image's serve and migrate --yes against catalogs # this binary migrated: what each writes, and that this binary then # reports WrittenByOlderRelease and --reconverge restores Current. - - name: Check the last 0.1.x release against migrated catalogs + - name: Check the 0.1.14 release against migrated catalogs run: | docker pull extenddb/extenddb-dev:0.1.14 devtools/check-sqlite-older-binary ./target/release/extenddb \ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b8107c5f3..d605b19c8 100755 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -304,7 +304,7 @@ SQLite, PostgreSQL, Cassandra and MongoDB migrate through this framework. rewrites stored policies, and running it again would rewrite a policy written after it and change that policy's decision. `extenddb migrate --yes --reconverge`, which repairs a catalog that a - release before 1.0 wrote to, runs the convergent migrations again and + release before 0.1.15 wrote to, runs the convergent migrations again and skips a recorded migration that is not convergent, with a line that names it. @@ -356,6 +356,7 @@ SQLite, PostgreSQL, Cassandra and MongoDB migrate through this framework. cargo test -p extenddb-storage-sqlite --lib the_released_bodies -- --nocapture cargo test -p extenddb-storage-postgres --lib the_released_bodies -- --nocapture cargo test -p extenddb-storage-mongodb --lib the_released_bodies -- --nocapture + cargo test -p extenddb-storage-cassandra --lib the_released_bodies -- --nocapture ``` A released body does not change. If one has to, for example because a @@ -363,7 +364,7 @@ SQLite, PostgreSQL, Cassandra and MongoDB migrate through this framework. entry for it with the new checksum and `rebless: Some("")`. A code body keeps its fingerprint, and its golden test shows that its output did not change. A later migration leaves migration 1's file and - `0001_baseline.expected.json` as they are: they define the v1.0 schema, + `0001_baseline.expected.json` as they are: they define migration 1's schema, which the runner checks a store against the first time migration 1 runs on it. @@ -613,7 +614,7 @@ devtools/check-sqlite-older-binary ./target/release/extenddb \ each other, that the `migrate` preview and `verify` run beside a server, that `verify` exits 3 on a catalog behind the binary, and that `migrate --yes` refuses a missing database without creating it. -`check-sqlite-older-binary` runs the last 0.1.x dev image against catalogs +`check-sqlite-older-binary` runs the 0.1.14 dev image against catalogs this binary migrated, and checks that the binary then reports `WrittenByOlderRelease` and that `extenddb migrate --yes --reconverge` restores `Current`; with `DEV_BIN` set to a `sqlite,dev-mode` build it also diff --git a/Cargo.lock b/Cargo.lock index d44029493..cf826f058 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1660,7 +1660,7 @@ dependencies = [ [[package]] name = "extenddb" -version = "0.1.14" +version = "0.1.15" dependencies = [ "anyhow", "extenddb-app", @@ -1677,7 +1677,7 @@ dependencies = [ [[package]] name = "extenddb-app" -version = "0.1.14" +version = "0.1.15" dependencies = [ "anyhow", "async-trait", @@ -1707,7 +1707,7 @@ dependencies = [ [[package]] name = "extenddb-auth" -version = "0.1.14" +version = "0.1.15" dependencies = [ "async-trait", "aws-credential-types", @@ -1730,7 +1730,7 @@ dependencies = [ [[package]] name = "extenddb-backup-store" -version = "0.1.14" +version = "0.1.15" dependencies = [ "aws-config", "aws-runtime", @@ -1755,7 +1755,7 @@ dependencies = [ [[package]] name = "extenddb-cache" -version = "0.1.14" +version = "0.1.15" dependencies = [ "futures", "moka", @@ -1766,7 +1766,7 @@ dependencies = [ [[package]] name = "extenddb-config" -version = "0.1.14" +version = "0.1.15" dependencies = [ "anyhow", "config", @@ -1781,7 +1781,7 @@ dependencies = [ [[package]] name = "extenddb-core" -version = "0.1.14" +version = "0.1.15" dependencies = [ "base64 0.22.1", "bigdecimal", @@ -1797,7 +1797,7 @@ dependencies = [ [[package]] name = "extenddb-engine" -version = "0.1.14" +version = "0.1.15" dependencies = [ "base64 0.22.1", "bytes", @@ -1823,7 +1823,7 @@ dependencies = [ [[package]] name = "extenddb-server" -version = "0.1.14" +version = "0.1.15" dependencies = [ "anyhow", "async-trait", @@ -1866,7 +1866,7 @@ dependencies = [ [[package]] name = "extenddb-storage" -version = "0.1.14" +version = "0.1.15" dependencies = [ "async-trait", "aws-lc-rs", @@ -1892,7 +1892,7 @@ dependencies = [ [[package]] name = "extenddb-storage-cassandra" -version = "0.1.14" +version = "0.1.15" dependencies = [ "async-trait", "base64 0.22.1", @@ -1923,7 +1923,7 @@ dependencies = [ [[package]] name = "extenddb-storage-mongodb" -version = "0.1.14" +version = "0.1.15" dependencies = [ "anyhow", "async-trait", @@ -1953,7 +1953,7 @@ dependencies = [ [[package]] name = "extenddb-storage-postgres" -version = "0.1.14" +version = "0.1.15" dependencies = [ "anyhow", "async-trait", @@ -1985,7 +1985,7 @@ dependencies = [ [[package]] name = "extenddb-storage-sqlite" -version = "0.1.14" +version = "0.1.15" dependencies = [ "async-trait", "base64 0.22.1", diff --git a/Cargo.toml b/Cargo.toml index de2707500..6b8155fad 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ members = [ ] [workspace.package] -version = "0.1.14" +version = "0.1.15" edition = "2024" rust-version = "1.91.1" license = "Apache-2.0" @@ -45,19 +45,19 @@ homepage = "https://extenddb.org/" # pin that is not exact. # Internal dev-dependencies are declared by path in each crate instead, with # no version, so that cargo drops them from the published manifests. -extenddb-core = { path = "crates/core", version = "=0.1.14" } -extenddb-cache = { path = "crates/cache", version = "=0.1.14" } -extenddb-backup-store = { path = "crates/backup-store", version = "=0.1.14" } -extenddb-engine = { path = "crates/engine", version = "=0.1.14" } -extenddb-storage = { path = "crates/storage", version = "=0.1.14" } -extenddb-config = { path = "crates/config", version = "=0.1.14" } -extenddb-storage-cassandra = { path = "crates/storage-cassandra", version = "=0.1.14" } -extenddb-storage-mongodb = { path = "crates/storage-mongodb", version = "=0.1.14" } -extenddb-storage-postgres = { path = "crates/storage-postgres", version = "=0.1.14" } -extenddb-storage-sqlite = { path = "crates/storage-sqlite", version = "=0.1.14" } -extenddb-auth = { path = "crates/auth", version = "=0.1.14" } -extenddb-server = { path = "crates/server", version = "=0.1.14" } -extenddb-app = { path = "crates/app", version = "=0.1.14" } +extenddb-core = { path = "crates/core", version = "=0.1.15" } +extenddb-cache = { path = "crates/cache", version = "=0.1.15" } +extenddb-backup-store = { path = "crates/backup-store", version = "=0.1.15" } +extenddb-engine = { path = "crates/engine", version = "=0.1.15" } +extenddb-storage = { path = "crates/storage", version = "=0.1.15" } +extenddb-config = { path = "crates/config", version = "=0.1.15" } +extenddb-storage-cassandra = { path = "crates/storage-cassandra", version = "=0.1.15" } +extenddb-storage-mongodb = { path = "crates/storage-mongodb", version = "=0.1.15" } +extenddb-storage-postgres = { path = "crates/storage-postgres", version = "=0.1.15" } +extenddb-storage-sqlite = { path = "crates/storage-sqlite", version = "=0.1.15" } +extenddb-auth = { path = "crates/auth", version = "=0.1.15" } +extenddb-server = { path = "crates/server", version = "=0.1.15" } +extenddb-app = { path = "crates/app", version = "=0.1.15" } # Serialization serde = { version = "1", features = ["derive"] } diff --git a/README.md b/README.md index d7fc7c55c..aef101624 100755 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ A backend moves up one tier in a minor release. Before that release, the maintai | Backend | Tier | Topology | Data across upgrades | API coverage | CI | Known limits | |---|---|---|---|---|---|---| -| PostgreSQL | Stable | PostgreSQL 14 or later, on the same host, on another host or as a managed service. | `extenddb migrate --yes` migrates the catalog in place. CI upgrades catalogs that 0.1.x releases created. | The operations in [Supported Operations](#supported-operations). Vector search needs the pgvector extension. | `integration`, required, on PostgreSQL 16 | Time to Live (TTL) removes about 100 expired items per table per minute. | +| PostgreSQL | Stable | PostgreSQL 14 or later, on the same host, on another host or as a managed service. | `extenddb migrate --yes` migrates the catalog in place. CI upgrades catalogs that 0.1.14 and earlier releases created. | The operations in [Supported Operations](#supported-operations). Vector search needs the pgvector extension. | `integration`, required, on PostgreSQL 16 | Time to Live (TTL) removes about 100 expired items per table per minute. | | SQLite | Stable (single node) | SQLite runs in the server process. A lock file allows one server for each database file. There is no production image, so build from source. | As PostgreSQL. `migrate --yes` copies the database file before its first change. | The operations in Supported Operations. | `integration`, required | One write transaction at a time. TTL as PostgreSQL. | | MongoDB | Beta | MongoDB 7.0 or later, as a replica set, also for one node. | As PostgreSQL. | No vector search. On a global secondary index (GSI) with more than one RANGE attribute, `Query` takes a key condition on the first one only. | `mongodb-integration`, required, on MongoDB 7 | A number in a key attribute has at most 34 significant digits. The database names are fixed, so one replica set holds one catalog. TTL as PostgreSQL. | | Cassandra | Experimental | Cassandra 4.1 or later, with `PasswordAuthenticator`. Each table takes its writes in one datacenter. | `migrate --yes` migrates the catalog. No rollback procedure is tested. | No vector search. CreateBackup keeps each backup in the catalog, with or without a backup store. The `Query` limit of MongoDB on a GSI with more than one RANGE attribute. | `cassandra-integration`, required, on Cassandra 4.1 | Some management operations are not atomic. A few known race conditions are open. TTL removes about 1,000 expired items per table per minute. See [Known Limitations](docs/cassandra-setup.md#known-limitations). | @@ -176,7 +176,7 @@ key_path = "/etc/extenddb/tls/key.pem" The production images contain ExtendDB only. The storage backend runs as a separate service. See [`docker/README.md`](docker/README.md) for the PostgreSQL image, [`docker/README-mongodb.md`](docker/README-mongodb.md) for the MongoDB image, -and [`docker/README-cassandra.md`](docker/README-cassandra.md) for the Cassandra image (published from 1.0): external database requirements, +and [`docker/README-cassandra.md`](docker/README-cassandra.md) for the Cassandra image (published from 0.1.15): external database requirements, hardened local Compose stacks, smoke tests, and explicit init/migrate/serve production lifecycle. The SQLite backend has no production container image; [`docs/dev-image.md`](docs/dev-image.md) covers the SQLite development image. diff --git a/SOFTWARE-LICENSE-NOTICES-CASSANDRA.html b/SOFTWARE-LICENSE-NOTICES-CASSANDRA.html index 9ae18ff04..a403a2e45 100644 --- a/SOFTWARE-LICENSE-NOTICES-CASSANDRA.html +++ b/SOFTWARE-LICENSE-NOTICES-CASSANDRA.html @@ -1956,17 +1956,17 @@

Used by:

Apache License 2.0

Used by:

                                 Apache License
                            Version 2.0, January 2004
diff --git a/SOFTWARE-LICENSE-NOTICES-DEV.html b/SOFTWARE-LICENSE-NOTICES-DEV.html
index ff58095c3..b75a4ed01 100644
--- a/SOFTWARE-LICENSE-NOTICES-DEV.html
+++ b/SOFTWARE-LICENSE-NOTICES-DEV.html
@@ -1746,17 +1746,17 @@ 

Used by:

Apache License 2.0

Used by:

                                 Apache License
                            Version 2.0, January 2004
diff --git a/SOFTWARE-LICENSE-NOTICES-MONGODB.html b/SOFTWARE-LICENSE-NOTICES-MONGODB.html
index 5409d1562..806821b18 100644
--- a/SOFTWARE-LICENSE-NOTICES-MONGODB.html
+++ b/SOFTWARE-LICENSE-NOTICES-MONGODB.html
@@ -1749,17 +1749,17 @@ 

Used by:

Apache License 2.0

Used by:

                                 Apache License
                            Version 2.0, January 2004
diff --git a/SOFTWARE-LICENSE-NOTICES.html b/SOFTWARE-LICENSE-NOTICES.html
index f4b3740e2..a462bc633 100644
--- a/SOFTWARE-LICENSE-NOTICES.html
+++ b/SOFTWARE-LICENSE-NOTICES.html
@@ -1747,17 +1747,17 @@ 

Used by:

Apache License 2.0

Used by:

                                 Apache License
                            Version 2.0, January 2004
diff --git a/crates/app/src/cmd_backup.rs b/crates/app/src/cmd_backup.rs
index 709c7b37f..7fe6c0311 100644
--- a/crates/app/src/cmd_backup.rs
+++ b/crates/app/src/cmd_backup.rs
@@ -352,10 +352,10 @@ enum BackupCommand {
     /// Copy in-catalog backups into the configured backup store, each under its own ARN, and
     /// replace each by its catalog row. Takes the maintenance claim first (every backup and
     /// restore job answers LimitExceededException until it ends) and waits for running jobs; on
-    /// SQLite it needs the server stopped. Refuses a backup a 0.1.x release took (its backup id
-    /// has the 13-digit shape a 0.1.x release issued) and one with an item the item check refuses
-    /// or a definition the legacy restore refuses, keeping its in-catalog backup; restore such a
-    /// backup and take a new one.
+    /// SQLite it needs the server stopped. Refuses a backup that 0.1.14 or an earlier release
+    /// took (its backup id has the 13-digit shape those releases issued) and one with an item
+    /// the item check refuses or a definition the legacy restore refuses, keeping its
+    /// in-catalog backup; restore such a backup and take a new one.
     /// With --all it then cleans up after deleted in-catalog backups: what a stopped run left
     /// under each one's prefix is deleted, and its record removed.
     #[command(group(clap::ArgGroup::new("backups").required(true).args(["arn", "all"])))]
diff --git a/crates/app/src/cmd_migrate.rs b/crates/app/src/cmd_migrate.rs
index 2164b64d2..070f20d13 100755
--- a/crates/app/src/cmd_migrate.rs
+++ b/crates/app/src/cmd_migrate.rs
@@ -65,7 +65,7 @@ pub struct MigrateArgs {
     pub(crate) list: bool,
 
     /// With --yes: run every convergent migration again, to repair a catalog
-    /// a release before 1.0 wrote to after it was migrated
+    /// a release before 0.1.15 wrote to after it was migrated
     #[arg(long, requires = "yes", conflicts_with = "forget")]
     pub(crate) reconverge: bool,
 
diff --git a/crates/app/src/cmd_migrate_runner.rs b/crates/app/src/cmd_migrate_runner.rs
index ec4d4f35f..7bd203137 100644
--- a/crates/app/src/cmd_migrate_runner.rs
+++ b/crates/app/src/cmd_migrate_runner.rs
@@ -6,7 +6,7 @@
 //! writing nothing, so it runs beside a server. `--yes` reads the status
 //! again under the migration lock and applies; it refuses a store that is
 //! not a catalog, which `extenddb init` creates. `--reconverge` reruns every
-//! convergent migration on a catalog a release before 1.0 wrote to,
+//! convergent migration on a catalog a release before 0.1.15 wrote to,
 //! `--forget` clears an unreleased migration, and `--list` prints the
 //! migrations without opening the catalog.
 //!
@@ -225,7 +225,7 @@ async fn preview(
             if version.is_none() {
                 println!(
                     "Stop every server that uses this catalog before applying: a server of a \
-                     release before 1.0 is not detected while it runs."
+                     release before 0.1.15 is not detected while it runs."
                 );
             }
             println!("{}", behind_summary(*version, pending, latest));
@@ -272,7 +272,7 @@ fn behind_summary(version: Option, pending: &[Pending], latest: u32) -> Str
             format!("The catalog is at migration {v}; this binary carries {latest}.")
         }
         (None, None) => format!(
-            "The catalog has no migration ledger (a release before 1.0 created it); this binary \
+            "The catalog has no migration ledger (a release before 0.1.15 created it); this binary \
              carries migrations 1 to {latest}."
         ),
     }
diff --git a/crates/engine/src/backup/migrate_legacy.rs b/crates/engine/src/backup/migrate_legacy.rs
index 4a2362ef2..e6b95e366 100644
--- a/crates/engine/src/backup/migrate_legacy.rs
+++ b/crates/engine/src/backup/migrate_legacy.rs
@@ -15,9 +15,10 @@
 //! DELETED goes through these steps in this order, and every refusal
 //! before the first put reads nothing more and writes nothing:
 //!
-//! 1. The id: one with the 13-digit shape every 0.1.x release issued (with
-//!    or without a suffix) is refused, since a store prefix carries only
-//!    the 14-digit shape, whose id carries its creation instant. The way
+//! 1. The id: one with the 13-digit shape that 0.1.14 and earlier releases
+//!    issued (with or without a suffix) is refused, since a store prefix
+//!    carries only the 14-digit shape, whose id carries its creation
+//!    instant. The way
 //!    out is a restore of the backup and a new backup of the restored
 //!    table, which has a new ARN.
 //! 2. The table name: one the store-prefix rules refuse (`BackupArn`: over
@@ -821,8 +822,8 @@ async fn migrate_one(
     };
     let Some(created_at) = backup_creation_date_time(parts.backup_id) else {
         return Step::Done(Outcome::Refused(format!(
-            "its backup id {} has the 13-digit shape a 0.1.x release issued, and a store prefix \
-             carries only the 14-digit shape; {CARRY_FORWARD}",
+            "its backup id {} has the 13-digit shape that 0.1.14 and earlier releases issued, and \
+             a store prefix carries only the 14-digit shape; {CARRY_FORWARD}",
             parts.backup_id
         )));
     };
@@ -1668,8 +1669,8 @@ async fn delete_leftover(
 /// prefix is known clean and the record is not listed again. Each deletion
 /// and the removal run after the claim's re-check. "deleted" either way,
 /// with a note for what was deleted or removed. A backup whose id has the
-/// 13-digit shape a 0.1.x release issued, or whose table name forms no
-/// prefix, never had a copy, and is left as it is.
+/// 13-digit shape that 0.1.14 and earlier releases issued, or whose table
+/// name forms no prefix, never had a copy, and is left as it is.
 async fn clean_deleted(
     storage: &S,
     run: &Run<'_, '_>,
diff --git a/crates/engine/src/backup/tests/migrate_legacy.rs b/crates/engine/src/backup/tests/migrate_legacy.rs
index 0b8c8b4e7..b20007bcd 100644
--- a/crates/engine/src/backup/tests/migrate_legacy.rs
+++ b/crates/engine/src/backup/tests/migrate_legacy.rs
@@ -41,8 +41,8 @@ fn seed_legacy(fake: &Fake, arn: &str, items: Vec) {
     let mut source = source(Some(definition("PAY_PER_REQUEST")));
     source.backup_arn = arn.to_owned();
     source.item_count = i64::try_from(items.len()).unwrap();
-    // An id of the 13-digit shape (a 0.1.x backup's) keeps the fixture's
-    // time.
+    // An id of the 13-digit shape (a backup of 0.1.14 or earlier) keeps the
+    // fixture's time.
     source.backup_creation_date_time =
         extenddb_storage::util::backup_creation_date_time(arn).unwrap_or(CREATED);
     fake.sources.lock().unwrap().insert(arn.to_owned(), source);
@@ -282,8 +282,8 @@ async fn an_in_catalog_backup_is_copied_under_its_arn_and_replaced_by_its_row()
 type Prepare = Box;
 
 /// Every refusal that needs no copy keeps the in-catalog backup and writes
-/// nothing to the store: an id of the 13-digit shape a 0.1.x release
-/// issued (13 digits with a suffix, and bare), a table name the store-prefix rules refuse, a name the
+/// nothing to the store: an id of the 13-digit shape that 0.1.14 and
+/// earlier releases issued (13 digits with a suffix, and bare), a table name the store-prefix rules refuse, a name the
 /// manifest refuses, a definition whose vector state is unknown (a SQLite
 /// backup from before catalog 0.0.4), vector indexes (the legacy restore's
 /// own refusal), a backend that cannot read the backup (MongoDB's without
@@ -300,13 +300,13 @@ async fn each_refusal_before_the_copy_keeps_the_in_catalog_backup_and_writes_not
         (
             thirteen,
             Box::new(|_, _| {}),
-            "has the 13-digit shape a 0.1.x release issued",
+            "has the 13-digit shape that 0.1.14 and earlier releases issued",
             false,
         ),
         (
             bare,
             Box::new(|_, _| {}),
-            "has the 13-digit shape a 0.1.x release issued",
+            "has the 13-digit shape that 0.1.14 and earlier releases issued",
             false,
         ),
         (
diff --git a/crates/storage-cassandra/src/migrations/backend.rs b/crates/storage-cassandra/src/migrations/backend.rs
index e7cb158f6..d20916b25 100644
--- a/crates/storage-cassandra/src/migrations/backend.rs
+++ b/crates/storage-cassandra/src/migrations/backend.rs
@@ -341,8 +341,9 @@ struct KeyspaceLedger<'a> {
     keyspace: &'a str,
     /// The `catalog_version` to write with this keyspace's row. Migration
     /// 1's row and the version go in one logged batch: a stop between two
-    /// writes would leave that row beside a 0.1.x version row, which the
-    /// next run reads as a catalog an older release wrote to. A later row
+    /// writes would leave that row beside the dotted version row of 0.1.14
+    /// or earlier, which the next run reads as a catalog an older release
+    /// wrote to. A later row
     /// goes on its own, after the version, since its notes can be long and a
     /// logged batch is refused past the node's `batch_size_fail_threshold`
     /// (50 KB by default). A stop between them leaves the version ahead of
@@ -530,7 +531,7 @@ impl MigrationBackend for CassandraMigrations<'_> {
             Step::Record => Done::default(),
         };
         // The first time migration 1 is applied to a store, the store must
-        // match the v1.0 schema; a later --reconverge leaves its row as it
+        // match migration 1's schema; a later --reconverge leaves its row as it
         // is and is not checked, since later migrations change the schema.
         if id == MigrationId::Baseline && row.is_some() {
             self.agree().await?;
diff --git a/crates/storage-cassandra/src/migrations/mod.rs b/crates/storage-cassandra/src/migrations/mod.rs
index 4cae14840..1d0e376bf 100644
--- a/crates/storage-cassandra/src/migrations/mod.rs
+++ b/crates/storage-cassandra/src/migrations/mod.rs
@@ -87,8 +87,127 @@ pub(crate) const CATALOG_EXPECTED: &str =
 pub(crate) const ACCOUNT_EXPECTED: &str =
     include_str!("../../migrations/account/0001_baseline.expected.json");
 
-/// Checksums of the released bodies (none until v1.0).
-pub(crate) const RELEASED: &[Released] = &[];
+/// Checksums of the released bodies, every migration at or below
+/// `RELEASED_THROUGH`.
+pub(crate) const RELEASED: &[Released] = &[
+    Released {
+        id: MigrationId::Baseline,
+        store: StoreKind::Catalog,
+        checksum: "69e43d5b7ca2ad3c9a357eda54d2c9cd7b7b27edc461dd37e4c6e1a7f6a3f483",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::Baseline,
+        store: StoreKind::Account,
+        checksum: "7120e35ef62f8d66cb0e35a00f606411a83cbe5f733271169ca9740814f7b991",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::ResourceTagConditionKeys,
+        store: StoreKind::Catalog,
+        checksum: "80c502c54ef9240ab5f64b24b060261a295e41d29954d9b492b83c64c444170e",
+        fingerprint: Some("0002_resource_tag_condition_keys/1"),
+        kind: Kind::Breaking,
+        convergent: false,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::SortKeyDefinitions,
+        store: StoreKind::Catalog,
+        checksum: "de1643152979168a2a4f806c19c99751f78b1cf21bf8e513396f8d44e1610c93",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::IndexTableBaseKey,
+        store: StoreKind::Catalog,
+        checksum: "b746760f188138e35490c08ce40a9545dc889461419f55a8572502e7225bed66",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::DropContinuousBackups,
+        store: StoreKind::Catalog,
+        checksum: "44a5e8e1978724b5f3a309d3a437688a0034ce95d5855b8e2d3deb69c603873b",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::BackupCatalogIndex,
+        store: StoreKind::Catalog,
+        checksum: "45352bad164748f9ddb072031cd35488c11f9f2d428f3e20b623ddda64a99330",
+        fingerprint: Some("0006_backup_catalog_index/cassandra/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::StreamPending,
+        store: StoreKind::Catalog,
+        checksum: "9d8b3fa7e8cb186bb92ef8e595f2a1d2847881dc6a21e3a4204ad0aac5ec667a",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::RestoreProgress,
+        store: StoreKind::Catalog,
+        checksum: "ca346592755f9f3f172fc78aea2c5a8e901a31b16bca28eb375a36e3687e961a",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::WarmThroughput,
+        store: StoreKind::Catalog,
+        checksum: "d5f50b607d377a316d07d8e962b67c08a821aa19f4bdf7eea7dd5e3e5630d6ac",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AccountMetrics,
+        store: StoreKind::Catalog,
+        checksum: "5c868bb49143fcb9180e16a7584f09ba11ca1594ed8a45492b0a5866d7e3ee7b",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AttributeNameEscape,
+        store: StoreKind::Catalog,
+        checksum: "764e80eb7f995c15d6a8fb1feb5611befaaa2fc5df9024ecc52cb64b39383871",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::UniqueAccessKeyIds,
+        store: StoreKind::Catalog,
+        checksum: "17e0af138cf802384f025408af64bfc3349588bbdbc7b688e2c59f7aa2c5e0ff",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+];
 
 /// This backend's entry for every id. Public so `migrate --list` can print
 /// each migration's kind without connecting.
@@ -391,7 +510,7 @@ pub async fn wait_for_schema_agreement(session: &CassandraSession) -> Result<(),
 }
 
 /// Run migration 1's body for stores of `kind` in `keyspace` and record
-/// nothing, as a release before 1.0 left a catalog with these tables and no
+/// nothing, as a release before 0.1.15 left a catalog with these tables and no
 /// ledger: for the tests of adoption.
 ///
 /// # Errors
@@ -630,7 +749,7 @@ pub async fn foreign_contents(
 }
 
 /// The (table, column) pairs migration 1 adds to the catalog keyspace with
-/// `ALTER TABLE ... ADD IF NOT EXISTS`: a table an `init` or a 0.1.x release
+/// `ALTER TABLE ... ADD IF NOT EXISTS`: a table an `init` or a release up to 0.1.14
 /// created before such a statement lacks them, and migration 1 adds them.
 fn baseline_added_columns() -> std::collections::BTreeSet<(&'static str, &'static str)> {
     CATALOG_BASELINE
diff --git a/crates/storage-cassandra/src/migrations/postcheck.rs b/crates/storage-cassandra/src/migrations/postcheck.rs
index 3119d2776..11ca2e6b9 100644
--- a/crates/storage-cassandra/src/migrations/postcheck.rs
+++ b/crates/storage-cassandra/src/migrations/postcheck.rs
@@ -139,7 +139,7 @@ pub fn compare(expected: &Definitions, actual: &Definitions) -> Vec {
     };
     for key in actual.columns.keys() {
         if named(key) && !expected.columns.contains_key(key) {
-            differences.push(format!("column {key} is not part of the v1.0 schema"));
+            differences.push(format!("column {key} is not part of migration 1's schema"));
         }
     }
     for (name, want) in &expected.indexes {
@@ -204,7 +204,8 @@ pub(crate) async fn check(
         return Ok(());
     }
     Err(MigrationError::Store(format!(
-        "migration 1 left {keyspace} different from the v1.0 schema, so it was not recorded: {}",
+        "migration 1 left {keyspace} different from migration 1's schema, so it was not \
+         recorded: {}",
         differences.join("; ")
     )))
 }
diff --git a/crates/storage-cassandra/src/migrations/tests.rs b/crates/storage-cassandra/src/migrations/tests.rs
index fd75a11b4..80666d7f0 100644
--- a/crates/storage-cassandra/src/migrations/tests.rs
+++ b/crates/storage-cassandra/src/migrations/tests.rs
@@ -24,7 +24,7 @@ fn no_migration_is_additive_before_the_old_binary_job() {
 
 /// Every `ALTER TABLE ... ADD` of migration 1's catalog body is read as a
 /// column that may be missing from a table an `init` left, and each one is
-/// a column of the v1.0 schema.
+/// a column of migration 1's schema.
 #[test]
 fn the_columns_migration_1_adds_with_alter_are_read_from_its_body() {
     let added = super::baseline_added_columns();
@@ -46,7 +46,7 @@ fn the_columns_migration_1_adds_with_alter_are_read_from_its_body() {
     for (table, column) in &added {
         assert!(
             expected.columns.contains_key(&format!("{table}.{column}")),
-            "{table}.{column} is not in the v1.0 schema"
+            "{table}.{column} is not in migration 1's schema"
         );
     }
 }
@@ -104,7 +104,7 @@ fn the_baselines_write_no_setting_except_deleting_the_marker() {
 
 #[test]
 fn the_baselines_record_every_legacy_file() {
-    // A release before 1.0 runs no legacy file once every version it knows is
+    // A release before 0.1.15 runs no legacy file once every version it knows is
     // recorded in its ledger.
     for version in 1..=5 {
         assert!(
diff --git a/crates/storage-cassandra/tests/direct/backup_engine.rs b/crates/storage-cassandra/tests/direct/backup_engine.rs
index 559af9556..cb2feafe4 100644
--- a/crates/storage-cassandra/tests/direct/backup_engine.rs
+++ b/crates/storage-cassandra/tests/direct/backup_engine.rs
@@ -2886,7 +2886,8 @@ async fn test_migration_6_backfills_the_registrations_and_the_reconciler_removes
 
     // Back to the shape before migration 6: the registrations as the
     // previous release wrote them (no job record), the interrupted target
-    // CREATING, and the migration forgotten.
+    // CREATING, and migration 6's ledger row deleted, so the next run applies
+    // migration 6 alone.
     let catalog = engine.catalog_keyspace();
     for (name, table_id) in [
         ("BfDone", finished.table_id.as_str()),
@@ -2914,7 +2915,7 @@ async fn test_migration_6_backfills_the_registrations_and_the_reconciler_removes
     )
     .await;
     let prefix = prefix_of(&engine);
-    forget_catalog_migration(&engine, &prefix, MigrationId::BackupCatalogIndex).await;
+    delete_catalog_ledger_row(&engine, MigrationId::BackupCatalogIndex).await;
     let report = extenddb_storage_cassandra::migrations::migrate_catalog_keyspace(
         engine.session_arc(),
         &prefix,
@@ -4501,27 +4502,22 @@ fn prefix_of(engine: &CassandraEngine) -> String {
         .to_owned()
 }
 
-/// Remove migration `id`'s ledger row from the catalog keyspace under the
-/// migration lock, as `migrate --forget` does, so the next run applies it
-/// again.
-async fn forget_catalog_migration(engine: &CassandraEngine, prefix: &str, id: MigrationId) {
-    use extenddb_storage_cassandra::migrations::{CassandraMigrations, LeaseTimes, MigrationLock};
-    let lock = MigrationLock::acquire(
-        engine.session_arc(),
-        &engine.catalog_keyspace(),
-        LeaseTimes::DEFAULT,
-        Duration::from_secs(120),
-    )
-    .await
-    .expect("take the lock");
-    let forgotten = {
-        let migrations = CassandraMigrations::locked_catalog_only(&lock, prefix);
-        extenddb_storage::migrations::Runner::new(&migrations, "test")
-            .forget(id.number())
-            .await
-    };
-    lock.release().await;
-    forgotten.expect("forget the migration");
+/// Delete migration `id`'s ledger row from the catalog keyspace, so the
+/// next run applies it. The version row is left as it was; the next run
+/// rewrites it.
+async fn delete_catalog_ledger_row(engine: &CassandraEngine, id: MigrationId) {
+    let id = i32::try_from(id.number()).expect("a migration id fits an int");
+    engine
+        .session()
+        .query_with_values(
+            format!(
+                "DELETE FROM {}.extenddb_migrations WHERE id = ?",
+                engine.catalog_keyspace()
+            ),
+            cdrs_tokio::query_values!(id),
+        )
+        .await
+        .expect("delete the migration's ledger row");
 }
 
 /// A catalog at migration 5 whose migration 6 fails in its backfill (a
diff --git a/crates/storage-cassandra/tests/direct/keyspace_migrations.rs b/crates/storage-cassandra/tests/direct/keyspace_migrations.rs
index ecd1706a7..76e33c4f8 100644
--- a/crates/storage-cassandra/tests/direct/keyspace_migrations.rs
+++ b/crates/storage-cassandra/tests/direct/keyspace_migrations.rs
@@ -43,9 +43,9 @@ struct Schema {
     added_columns: &'static [(&'static str, &'static str)],
 }
 
-/// Migration 1's catalog body: the tables, index and columns of the 0.1.x
-/// catalog migrations V001 to V005, apart from `continuous_backups` and
-/// `metrics`, which migrations 5 and 10 drop (see [`DROPPED`]), and with
+/// Migration 1's catalog body: the tables, index and columns of the
+/// catalog migrations V001 to V005 of 0.1.14 and earlier, apart from
+/// `continuous_backups` and `metrics`, which migrations 5 and 10 drop (see [`DROPPED`]), and with
 /// `account_metrics`, which migration 10 creates in place of `metrics`. The
 /// runner's ledger and the serving registrations are in neither list.
 const CATALOG: Schema = Schema {
@@ -87,8 +87,8 @@ const CATALOG: Schema = Schema {
     ],
 };
 
-/// Migration 1's account body: the tables and indexes of the 0.1.x data
-/// migrations V001 and V002.
+/// Migration 1's account body: the tables and indexes of the data
+/// migrations V001 and V002 of 0.1.14 and earlier.
 const ACCOUNT: Schema = Schema {
     tables: &[
         "backup_items",
@@ -250,7 +250,7 @@ async fn problems_in(
 }
 
 /// Before every migration run the session selects another keyspace with
-/// `USE`, as the 0.1.x runners on the same session did before #632:
+/// `USE`, as the runners of earlier releases on the same session did before #632:
 /// `extenddb init` and `extenddb migrate` migrate the catalog keyspace and
 /// then each account keyspace on one session, and CreateAccount migrates
 /// its keyspace on the engine's session, which every other caller shares.
diff --git a/crates/storage-cassandra/tests/migrations.rs b/crates/storage-cassandra/tests/migrations.rs
index 7279e2156..577419581 100644
--- a/crates/storage-cassandra/tests/migrations.rs
+++ b/crates/storage-cassandra/tests/migrations.rs
@@ -512,12 +512,13 @@ async fn the_check_before_the_lock_reads_no_policy() {
     deployment(&session, &prefix).await;
     let migrations = CassandraCatalogMigrations;
     let target = target_of(&prefix);
-    let lock = migrations.lock(&target, TIMEOUT).await.expect("lock");
-    migrations
-        .forget(&lock, 2)
-        .await
-        .expect("forget migration 2");
-    migrations.release(lock).await;
+    // Migration 2 pending: its ledger row deleted (the version row is left
+    // as it was; the next run rewrites it).
+    cql(
+        &session,
+        &format!("DELETE FROM {prefix}_catalog.extenddb_migrations WHERE id = 2"),
+    )
+    .await;
     // A user, whose policies migration 2's read looks up.
     cql(
         &session,
@@ -639,7 +640,7 @@ async fn migration_1_converges_a_legacy_catalog_and_stops_on_a_table_of_another_
     let catalog = format!("{prefix}_catalog");
     keyspace(&session, &catalog).await;
     // A catalog with the legacy files' tables and no ledger, as a release
-    // before 1.0 left it, with the traces in its settings: the version row,
+    // before 0.1.15 left it, with the traces in its settings: the version row,
     // the marker, and a setting an operator changed.
     run_baseline_unrecorded(&session, &catalog, StoreKind::Catalog)
         .await
diff --git a/crates/storage-cassandra/tests/migrations_stopped.rs b/crates/storage-cassandra/tests/migrations_stopped.rs
index d0481e0dc..a3a2e8176 100644
--- a/crates/storage-cassandra/tests/migrations_stopped.rs
+++ b/crates/storage-cassandra/tests/migrations_stopped.rs
@@ -45,7 +45,7 @@ async fn fresh_catalog(session: &Arc, prefix: &str) {
         .expect("the settings table");
 }
 
-/// A catalog as a release before 1.0 left it: the tables migration 1
+/// A catalog as a release before 0.1.15 left it: the tables migration 1
 /// converges and no ledger, `catalog_version` 0.0.4 and the resource-tag
 /// marker, one account with its keyspace, and a policy holding a
 /// `dynamodb:ResourceTag` key in each of the six places migration 2
@@ -387,8 +387,9 @@ async fn an_upgrade_stopped_inside_migrations_1_and_2_finishes_on_the_next_run()
         2,
         // Before migration 1's ledger row in the catalog keyspace, which is
         // written in one batch with the version row: as two writes, a stop
-        // between them left the row beside the 0.1.x version row, and the
-        // next run refused the catalog as one an older release wrote to.
+        // between them left the row beside the dotted version row of 0.1.14
+        // or earlier, and the next run refused the catalog as one an older
+        // release wrote to.
         catalog_1 - 1,
         // Between two statements of migration 1's account file.
         catalog_1 + 2,
@@ -720,7 +721,7 @@ async fn the_status_read_under_the_lock_keeps_it_through_a_long_scan() {
 /// Both forms on one key with different values, which migration 2 refuses.
 const COLLIDING: &str = r#"{"Version":"2012-10-17","Statement":[{"Effect":"Deny","Action":"dynamodb:*","Resource":"*","Condition":{"StringEquals":{"dynamodb:ResourceTag/env":"prod","aws:ResourceTag/env":"dev"}}}]}"#;
 
-/// From 1.0 on a `dynamodb:ResourceTag` key written through the API has no
+/// From 0.1.15 on a `dynamodb:ResourceTag` key written through the API has no
 /// effect, as on the service. Migration 2 is not convergent, so a reconverge
 /// leaves the policies written after it, in each place a policy is stored,
 /// with the text they were written with, one that names both forms of a key
@@ -767,7 +768,7 @@ async fn a_reconverge_leaves_policies_written_after_migration_2_as_they_are() {
         6,
         "{before}"
     );
-    // What a release before 1.0 leaves when it writes to a migrated catalog.
+    // What a release before 0.1.15 leaves when it writes to a migrated catalog.
     cql(
         &session,
         &format!(
diff --git a/crates/storage-mongodb/src/migrations/mod.rs b/crates/storage-mongodb/src/migrations/mod.rs
index 31e314ca8..0578bdb7d 100644
--- a/crates/storage-mongodb/src/migrations/mod.rs
+++ b/crates/storage-mongodb/src/migrations/mod.rs
@@ -94,8 +94,127 @@ pub(crate) const CATALOG_EXPECTED: &str =
 pub(crate) const DATA_EXPECTED: &str =
     include_str!("../../migrations/data/0001_baseline.expected.json");
 
-/// Checksums of the released bodies (none until v1.0).
-pub(crate) const RELEASED: &[Released] = &[];
+/// Checksums of the released bodies, every migration at or below
+/// `RELEASED_THROUGH`.
+pub(crate) const RELEASED: &[Released] = &[
+    Released {
+        id: MigrationId::Baseline,
+        store: StoreKind::Catalog,
+        checksum: "1ce04b3b2869e54a399f325d1e5c482b45d1cf5621e7ab13461a130108f85266",
+        fingerprint: Some("0001_baseline/mongodb/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::Baseline,
+        store: StoreKind::Data,
+        checksum: "1ce04b3b2869e54a399f325d1e5c482b45d1cf5621e7ab13461a130108f85266",
+        fingerprint: Some("0001_baseline/mongodb/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::ResourceTagConditionKeys,
+        store: StoreKind::Catalog,
+        checksum: "80c502c54ef9240ab5f64b24b060261a295e41d29954d9b492b83c64c444170e",
+        fingerprint: Some("0002_resource_tag_condition_keys/1"),
+        kind: Kind::Breaking,
+        convergent: false,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::SortKeyDefinitions,
+        store: StoreKind::Catalog,
+        checksum: "242923091cd3a8e6eb263c05ecd5cf96e5bb1d7d94c20772b06df1ec44a09937",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::IndexTableBaseKey,
+        store: StoreKind::Catalog,
+        checksum: "786ea5e51bd39a29abea044bdf04cc7d3076f183b57847ccdaddd445b0c25604",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::DropContinuousBackups,
+        store: StoreKind::Catalog,
+        checksum: "3ca80eefd6a2d3cef629e81666c90c34228b012626769712e3893c2dba6efba1",
+        fingerprint: Some("0005_drop_continuous_backups/mongodb/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::BackupCatalogIndex,
+        store: StoreKind::Catalog,
+        checksum: "68e0d07b8ca85db637aa70600b5834c76aeaada3d4deae4b2e67b9a313471fec",
+        fingerprint: Some("0006_backup_catalog_index/mongodb/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::StreamPending,
+        store: StoreKind::Catalog,
+        checksum: "261c42e26a802f1850859b051468a83472cffbf0506040e09e83e5410b721f61",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::RestoreProgress,
+        store: StoreKind::Catalog,
+        checksum: "1743840a61b647fd1f7f53c3837a6d574d0a72e00620a1ab8ffddce625573034",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::WarmThroughput,
+        store: StoreKind::Catalog,
+        checksum: "77444ad166c919980cdcf1a5f51ab65eca55724d186f0551fbe1b9a81c85cbe5",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AccountMetrics,
+        store: StoreKind::Catalog,
+        checksum: "3b9ff3ab729a20d26f99566d6f3c2ebdda6ca1bcf5c8e9442fa0c7328928e5b0",
+        fingerprint: Some("0010_account_metrics/mongodb/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AttributeNameEscape,
+        store: StoreKind::Catalog,
+        checksum: "671888396581cd761f1dff0a78a417e09c9be96a898fd1495ea3422817ca5c46",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::UniqueAccessKeyIds,
+        store: StoreKind::Catalog,
+        checksum: "8ebbabc18a490f6eed27571527b0666eda217e7dfac888c6943f08d133cd401e",
+        fingerprint: Some("0012_unique_access_key_ids/mongodb/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+];
 
 /// This backend's entry for every id. Public so `migrate --list` can print
 /// each migration's kind without connecting.
diff --git a/crates/storage-mongodb/src/migrations/postcheck.rs b/crates/storage-mongodb/src/migrations/postcheck.rs
index 8e9785909..ec0c657ac 100644
--- a/crates/storage-mongodb/src/migrations/postcheck.rs
+++ b/crates/storage-mongodb/src/migrations/postcheck.rs
@@ -343,7 +343,7 @@ mod tests {
         );
         let unique = &data["idempotency_tokens"].indexes["account_id_1_token_1"];
         assert_eq!(unique.options.get("unique"), Some(&json!(true)));
-        // A table's stream shards in shard id order. No release before 1.0
+        // A table's stream shards in shard id order. No release before 0.1.15
         // created this index, so migration 1 adds it to a released data
         // database before the check.
         let by_table = &data["stream_shards"].indexes["table_id_1_shard_id_1"];
diff --git a/crates/storage-mongodb/tests/migrations_fresh.rs b/crates/storage-mongodb/tests/migrations_fresh.rs
index 3fa8e05f1..fbeb3760c 100644
--- a/crates/storage-mongodb/tests/migrations_fresh.rs
+++ b/crates/storage-mongodb/tests/migrations_fresh.rs
@@ -581,7 +581,10 @@ async fn forget_clears_an_unreleased_id_and_migrate_applies_it_again() {
     let migrations = MongoMigrations::open(&d.target, Some(&held))
         .await
         .expect("open");
+    // The runner is given a released bound of 0, so migration 1 is one it
+    // may forget whatever bound this binary carries.
     Runner::new(&migrations, "test")
+        .with_released_through(0)
         .forget(1)
         .await
         .expect("forget 1");
diff --git a/crates/storage-mongodb/tests/migrations_released.rs b/crates/storage-mongodb/tests/migrations_released.rs
index 3b4173dac..7d85097ac 100644
--- a/crates/storage-mongodb/tests/migrations_released.rs
+++ b/crates/storage-mongodb/tests/migrations_released.rs
@@ -207,7 +207,7 @@ async fn every_released_catalog_upgrades_to_the_definitions_of_a_fresh_install()
         if state == "dotted-ttl" {
             // The accepted difference of this state: the legacy index stays
             // until TTL is disabled on the table (inventory section 3.2,
-            // MongoDB item 4), and v1.0 creates none for a dotted name.
+            // MongoDB item 4), and this binary creates none for a dotted name.
             let dotted = &before["T_cu_dotted"];
             assert!(
                 dotted.iter().any(|(n, _)| n == "idx_ttl_exp.at"),
@@ -243,7 +243,7 @@ async fn stream_shards_indexes(d: &Deployment) -> BTreeMap {
 }
 
 /// The `{table_id, shard_id}` index on `stream_shards`, which no release
-/// before 1.0 created: every released data database has only the unique
+/// before 0.1.15 created: every released data database has only the unique
 /// `shard_id` index, and the `migrate --yes` that adopts it adds the index
 /// with migration 1's data step. A second run applies nothing.
 #[tokio::test(flavor = "multi_thread")]
@@ -466,7 +466,7 @@ async fn migration_1_upgrades_the_oldest_release_as_the_golden_file_records() {
     d.drop_databases().await;
 }
 
-/// From 1.0 on a `dynamodb:ResourceTag` key written through the API has no
+/// From 0.1.15 on a `dynamodb:ResourceTag` key written through the API has no
 /// effect, as on the service. Migration 2 is not convergent, so a reconverge
 /// leaves the policies written after it with the text they were written
 /// with, one that names both forms of a key, which the rewrite refuses,
@@ -532,7 +532,7 @@ async fn a_reconverge_leaves_policies_written_after_migration_2_as_they_are() {
         2,
         "{before:?}"
     );
-    // What a release before 1.0 leaves when it writes to a migrated catalog.
+    // What a release before 0.1.15 leaves when it writes to a migrated catalog.
     d.catalog()
         .collection::("settings")
         .insert_one(doc! { "_id": "resource_tag_migration", "value": "applied" })
@@ -580,7 +580,7 @@ async fn fixture_key(d: &Deployment) -> (Bson, String, String, i64) {
     )
 }
 
-/// An access key document as a release before 1.0 stored it, with an `_id`
+/// An access key document as a release before 0.1.15 stored it, with an `_id`
 /// and a creation time the test chooses, and a secret that tells the copies
 /// apart.
 fn stored_key(n: u8, access_key_id: &str, account: &str, user: &str, created_ms: i64) -> Document {
@@ -619,7 +619,7 @@ async fn access_key_indexes(d: &Deployment) -> Vec {
 
 /// Migration 12's body on the oldest released catalog, after the fixture's
 /// user imported its access key ID twice more and the user `ci` imported
-/// the example pair three times: a release before 1.0 stored a document for
+/// the example pair three times: a release before 0.1.15 stored a document for
 /// each import. Each ID keeps the copy a credential lookup read before the
 /// upgrade: the first in natural order, which for the fixture's key is
 /// neither the oldest copy nor the one with the lowest `_id`. The unique
diff --git a/crates/storage-postgres/src/migrations/mod.rs b/crates/storage-postgres/src/migrations/mod.rs
index 08fb2b8c1..295e523e1 100644
--- a/crates/storage-postgres/src/migrations/mod.rs
+++ b/crates/storage-postgres/src/migrations/mod.rs
@@ -75,8 +75,136 @@ pub(crate) const CATALOG_EXPECTED: &str =
 pub(crate) const DATA_EXPECTED: &str =
     include_str!("../../data_migrations/0001_baseline.expected.json");
 
-/// Checksums of the released bodies (none until v1.0).
-pub(crate) const RELEASED: &[Released] = &[];
+/// Checksums of the released bodies, every migration at or below
+/// `RELEASED_THROUGH`.
+pub(crate) const RELEASED: &[Released] = &[
+    Released {
+        id: MigrationId::Baseline,
+        store: StoreKind::Catalog,
+        checksum: "1353083a65512973a4e54c35242ce1e11e68f8773d9e59c2f9c60ef4e56d63d3",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::Baseline,
+        store: StoreKind::Data,
+        checksum: "aeb9f87144e5ca589669b8bd32e71d36bf54d1c7a926c5aae79ed2897a5bd98d",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::ResourceTagConditionKeys,
+        store: StoreKind::Catalog,
+        checksum: "80c502c54ef9240ab5f64b24b060261a295e41d29954d9b492b83c64c444170e",
+        fingerprint: Some("0002_resource_tag_condition_keys/1"),
+        kind: Kind::Breaking,
+        convergent: false,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::SortKeyDefinitions,
+        store: StoreKind::Catalog,
+        checksum: "76e4e40ede2d02020703cff333f71feba2839da573f83aa0be0e3ff5b50aafb3",
+        fingerprint: Some("0003_sort_key_definitions/postgres/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::IndexTableBaseKey,
+        store: StoreKind::Data,
+        checksum: "534ef4a81efc85815ce055bfb2410de8d099f0c3756883b5871b7da04e02b002",
+        fingerprint: Some("0004_index_table_base_key/postgres/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::DropContinuousBackups,
+        store: StoreKind::Catalog,
+        checksum: "b685348472df535fc4873e7439b9a81ab2b9dff60c703f95ec3de769048da596",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::BackupCatalogIndex,
+        store: StoreKind::Catalog,
+        checksum: "7d67534ae535c17d283c8cb1477fb8be0820d2bb96b6a91179f7e17e116ef8c4",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::StreamPending,
+        store: StoreKind::Data,
+        checksum: "57ecfc569703552867fba309ecb6b82e5f81b7b1f87d27558943bdff3ae82341",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::RestoreProgress,
+        store: StoreKind::Data,
+        checksum: "366157a591a030703fbf2d1c899b90e8b57e9c67c68d8e0a71b74b3eaee8d546",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::WarmThroughput,
+        store: StoreKind::Catalog,
+        checksum: "3fedea10abfba13ee3aecf0a61daafb8cce470d70a8e134b5dcd53b007759f28",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AccountMetrics,
+        store: StoreKind::Catalog,
+        checksum: "abf2b0b69ce379b42ffbd9fbd7c22d61cbd9624b21d42b1856e02005771f315d",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AttributeNameEscape,
+        store: StoreKind::Catalog,
+        checksum: "284c9e0acc37bc8fe0390188b1fc4b0a74467854b7919c616b525aafff8bba05",
+        fingerprint: Some("0011_attribute_name_escape/postgres/1"),
+        kind: Kind::Breaking,
+        convergent: false,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AttributeNameEscape,
+        store: StoreKind::Data,
+        checksum: "284c9e0acc37bc8fe0390188b1fc4b0a74467854b7919c616b525aafff8bba05",
+        fingerprint: Some("0011_attribute_name_escape/postgres/1"),
+        kind: Kind::Breaking,
+        convergent: false,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::UniqueAccessKeyIds,
+        store: StoreKind::Catalog,
+        checksum: "5003dffcdb2e46d560d794360fdb7a6a9d5eb000968082450b8bee9a0bc23d02",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+];
 
 /// This backend's entry for every id. Public so `migrate --list` can print
 /// each migration's kind without connecting.
diff --git a/crates/storage-postgres/src/migrations/postcheck.rs b/crates/storage-postgres/src/migrations/postcheck.rs
index a2f8df4d5..1714efa4a 100644
--- a/crates/storage-postgres/src/migrations/postcheck.rs
+++ b/crates/storage-postgres/src/migrations/postcheck.rs
@@ -11,9 +11,9 @@
 //! ignored. Every object the expected file names is checked, and objects it
 //! does not name are ignored, because the same databases hold per-table
 //! objects no migration creates. A difference stops migration 1, and the
-//! refusal names each object with what it is, what v1.0 has and what to do;
-//! the check runs inside migration 1's transaction, so nothing is
-//! committed. One pre-release shape is accepted with a note:
+//! refusal names each object with what it is, what migration 1 has and
+//! what to do; the check runs inside migration 1's transaction, so nothing
+//! is committed. One pre-release shape is accepted with a note:
 //! `table_restores.source_table_arn` nullable, which a build from before the
 //! release of `table_restores` left.
 
@@ -183,7 +183,7 @@ fn column_sql(column: &Column) -> String {
 }
 
 /// How `found` differs from `expected`, one clause per attribute, such as
-/// `has type integer where v1.0 has bigint`.
+/// `has type integer where migration 1 has bigint`.
 fn column_differences(found: &Column, expected: &Column) -> Vec {
     let collation = |c: &Option| {
         c.as_ref()
@@ -192,28 +192,28 @@ fn column_differences(found: &Column, expected: &Column) -> Vec {
     let mut clauses = Vec::new();
     if found.data_type != expected.data_type {
         clauses.push(format!(
-            "has type {} where v1.0 has {}",
+            "has type {} where migration 1 has {}",
             found.data_type, expected.data_type
         ));
     }
     if found.not_null != expected.not_null {
         clauses.push(if found.not_null {
-            "is NOT NULL where v1.0 allows NULL".to_owned()
+            "is NOT NULL where migration 1 allows NULL".to_owned()
         } else {
-            "allows NULL where v1.0 has NOT NULL".to_owned()
+            "allows NULL where migration 1 has NOT NULL".to_owned()
         });
     }
     match (&found.default, &expected.default) {
         (Some(f), Some(e)) if f != e => {
-            clauses.push(format!("has default {f} where v1.0 has {e}"));
+            clauses.push(format!("has default {f} where migration 1 has {e}"));
         }
-        (Some(f), None) => clauses.push(format!("has default {f} where v1.0 has none")),
-        (None, Some(e)) => clauses.push(format!("has no default where v1.0 has {e}")),
+        (Some(f), None) => clauses.push(format!("has default {f} where migration 1 has none")),
+        (None, Some(e)) => clauses.push(format!("has no default where migration 1 has {e}")),
         _ => {}
     }
     if found.collation != expected.collation {
         clauses.push(format!(
-            "has collation {} where v1.0 has {}",
+            "has collation {} where migration 1 has {}",
             collation(&found.collation),
             collation(&expected.collation)
         ));
@@ -236,8 +236,8 @@ fn split(key: &str) -> (&str, &str) {
 }
 
 /// The differences between `expected` and `actual`, each naming the object,
-/// what it is and what v1.0 has, and what to do about it; and the notes for
-/// the accepted shape.
+/// what it is and what migration 1 has, and what to do about it; and the
+/// notes for the accepted shape.
 #[must_use]
 pub fn compare(expected: &Definitions, actual: &Definitions) -> (Vec, Vec) {
     let mut differences = Vec::new();
@@ -264,8 +264,8 @@ pub fn compare(expected: &Definitions, actual: &Definitions) -> (Vec, Ve
     for key in actual.columns.keys() {
         if named_tables.contains(split(key).0) && !expected.columns.contains_key(key) {
             differences.push(format!(
-                "column {key} is not part of the v1.0 schema; drop it, after saving any data in \
-                 it that you need"
+                "column {key} is not part of migration 1's schema; drop it, after saving any data \
+                 in it that you need"
             ));
         }
     }
@@ -278,8 +278,8 @@ pub fn compare(expected: &Definitions, actual: &Definitions) -> (Vec, Ve
             )),
             Some(found) if found == index => {}
             Some(found) if found.definition != index.definition => differences.push(format!(
-                "{on} is defined as {} where v1.0 defines it as {}; drop it and create it with \
-                 the v1.0 definition",
+                "{on} is defined as {} where migration 1 defines it as {}; drop it and create it \
+                 with migration 1's definition",
                 found.definition, index.definition
             )),
             Some(_) => differences.push(format!(
@@ -295,7 +295,8 @@ pub fn compare(expected: &Definitions, actual: &Definitions) -> (Vec, Ve
             None => differences.push(format!("{on} is missing; add it as {definition}")),
             Some(found) if found == definition => {}
             Some(found) => differences.push(format!(
-                "{on} is {found} where v1.0 has {definition}; drop it and add it as {definition}"
+                "{on} is {found} where migration 1 has {definition}; drop it and add it as \
+                 {definition}"
             )),
         }
     }
@@ -312,9 +313,10 @@ pub fn compare(expected: &Definitions, actual: &Definitions) -> (Vec, Ve
 fn refusal(database: &str, differences: &[String]) -> String {
     let lines: Vec = differences.iter().map(|d| format!("  {d}")).collect();
     format!(
-        "after migration 1 the database {database} differs from the v1.0 schema in {} place(s), \
-         so nothing was committed:\n{}\nMake each change in the database {database}, then run \
-         migrate --yes again; migration 1 checks the schema again before it commits.",
+        "after migration 1 the database {database} differs from migration 1's schema in {} \
+         place(s), so nothing was committed:\n{}\nMake each change in the database \
+         {database}, then run migrate --yes again; migration 1 checks the schema again before \
+         it commits.",
         differences.len(),
         lines.join("\n")
     )
@@ -389,8 +391,9 @@ mod tests {
             differences,
             [
                 "index t_pkey on table t is defined as CREATE UNIQUE INDEX t_pkey ON public.t \
-                 USING btree (id, other) where v1.0 defines it as CREATE UNIQUE INDEX t_pkey ON \
-                 public.t USING btree (id); drop it and create it with the v1.0 definition"
+                 USING btree (id, other) where migration 1 defines it as CREATE UNIQUE INDEX \
+                 t_pkey ON public.t USING btree (id); drop it and create it with migration 1's \
+                 definition"
             ]
         );
         let mut invalid = definitions();
@@ -414,8 +417,8 @@ mod tests {
         assert_eq!(
             differences,
             [
-                "constraint t_pkey on table t is PRIMARY KEY (id, other) where v1.0 has PRIMARY \
-                 KEY (id); drop it and add it as PRIMARY KEY (id)"
+                "constraint t_pkey on table t is PRIMARY KEY (id, other) where migration 1 has \
+                 PRIMARY KEY (id); drop it and add it as PRIMARY KEY (id)"
             ]
         );
     }
@@ -439,11 +442,11 @@ mod tests {
     }
 
     /// Each attribute of a column that differs is named in words with what
-    /// v1.0 has, followed by the definition to change it to; a missing
-    /// column gives the definition to add, and a column v1.0 does not have
-    /// is to be dropped.
+    /// migration 1 has, followed by the definition to change it to; a
+    /// missing column gives the definition to add, and a column migration 1
+    /// does not create is to be dropped.
     #[test]
-    fn a_column_difference_names_each_attribute_and_the_v1_definition() {
+    fn a_column_difference_names_each_attribute_and_migration_1s_definition() {
         let mut actual = definitions();
         actual.columns.insert(
             "t.id".to_owned(),
@@ -458,9 +461,10 @@ mod tests {
         assert_eq!(
             differences,
             [
-                "column t.id has type double precision where v1.0 has integer, allows NULL where \
-                 v1.0 has NOT NULL, has default 1 where v1.0 has none and has collation \"C\" \
-                 where v1.0 has the type's default; change it to integer NOT NULL"
+                "column t.id has type double precision where migration 1 has integer, allows \
+                 NULL where migration 1 has NOT NULL, has default 1 where migration 1 has none \
+                 and has collation \"C\" where migration 1 has the type's default; change it \
+                 to integer NOT NULL"
             ]
         );
         let mut actual = definitions();
@@ -470,7 +474,7 @@ mod tests {
         assert_eq!(
             compare(&expected, &actual).0,
             [
-                "column t.id has no default where v1.0 has 0; change it to integer NOT NULL \
+                "column t.id has no default where migration 1 has 0; change it to integer NOT NULL \
                  DEFAULT 0"
             ]
         );
@@ -489,8 +493,8 @@ mod tests {
             compare(&definitions(), &actual).0,
             [
                 "column t.id is missing; add it as integer NOT NULL",
-                "column t.extra is not part of the v1.0 schema; drop it, after saving any data \
-                 in it that you need"
+                "column t.extra is not part of migration 1's schema; drop it, after saving any \
+                 data in it that you need"
             ]
         );
     }
@@ -506,9 +510,9 @@ mod tests {
         let message = refusal("acme_catalog", &differences);
         assert_eq!(
             message,
-            "after migration 1 the database acme_catalog differs from the v1.0 schema in 2 \
-             place(s), so nothing was committed:\n  column t.id has type bigint where v1.0 has \
-             integer; change it to integer NOT NULL\n  sequence t_seq is missing; create it\n\
+            "after migration 1 the database acme_catalog differs from migration 1's schema in 2 \
+             place(s), so nothing was committed:\n  column t.id has type bigint where migration \
+             1 has integer; change it to integer NOT NULL\n  sequence t_seq is missing; create it\n\
              Make each change in the database acme_catalog, then run migrate --yes again; \
              migration 1 checks the schema again before it commits."
         );
diff --git a/crates/storage-postgres/src/migrations/tests.rs b/crates/storage-postgres/src/migrations/tests.rs
index f23e7f3bd..ae1485eb9 100644
--- a/crates/storage-postgres/src/migrations/tests.rs
+++ b/crates/storage-postgres/src/migrations/tests.rs
@@ -53,7 +53,7 @@ fn the_baseline_files_keep_the_legacy_index_names_and_guards() {
     let Body::File { text, .. } = &baseline.bodies()[0].body else {
         panic!("migration 1's catalog body is a file");
     };
-    // A release before 1.0 that replays legacy 001 stops at its first index,
+    // A release before 0.1.15 that replays legacy 001 stops at its first index,
     // before it changes anything, only while the names stay the same.
     for name in [
         "idx_tables_pending_transition",
diff --git a/crates/storage-postgres/tests/backup_restore.rs b/crates/storage-postgres/tests/backup_restore.rs
index 6be91d323..4c29544a8 100644
--- a/crates/storage-postgres/tests/backup_restore.rs
+++ b/crates/storage-postgres/tests/backup_restore.rs
@@ -3892,9 +3892,11 @@ mod catalog_index {
 
         // Back to the shape before migration 6: the job record's columns and
         // index gone, the registrations as the old release wrote them, the
-        // interrupted target CREATING, and the migration forgotten.
+        // interrupted target CREATING, and migration 6's ledger row deleted,
+        // so the next run applies migration 6 alone.
         sqlx::raw_sql(
             "DROP INDEX IF EXISTS idx_table_restores_status; \
+             DELETE FROM extenddb_migrations WHERE id = 6; \
              ALTER TABLE table_restores DROP COLUMN status, DROP COLUMN kind, \
                  DROP COLUMN store_kind, DROP COLUMN store_root, DROP COLUMN store_id, \
                  DROP COLUMN owner_generation, DROP COLUMN heartbeat_at, DROP COLUMN spool_host, \
@@ -3917,7 +3919,6 @@ mod catalog_index {
             .await
             .expect("open the runner");
         let migrations = Runner::new(&runner, "test");
-        migrations.forget(6).await.expect("forget migration 6");
         let report = migrations.migrate().await.expect("migrate again");
         runner.close().await;
         assert_eq!(report.applied.iter().map(|a| a.id).collect::>(), [6]);
diff --git a/crates/storage-postgres/tests/migrations_crash.rs b/crates/storage-postgres/tests/migrations_crash.rs
index cd0aadd8f..06a66d376 100644
--- a/crates/storage-postgres/tests/migrations_crash.rs
+++ b/crates/storage-postgres/tests/migrations_crash.rs
@@ -349,7 +349,7 @@ async fn a_server_refuses_while_a_migrator_holds_only_the_migration_key() {
         return skip("legacy migrator");
     };
     let s = Scratch::new(&base, "pgm_legacy").await;
-    // A migrator of a release before 1.0, or one between taking its own key
+    // A migrator of a release before 0.1.15, or one between taking its own key
     // and the servers' key, holds the migration key alone.
     let catalog = s.catalog().await;
     let mut legacy = catalog.begin().await.unwrap();
diff --git a/crates/storage-postgres/tests/migrations_fresh.rs b/crates/storage-postgres/tests/migrations_fresh.rs
index 9cbea0c8f..e985c89aa 100644
--- a/crates/storage-postgres/tests/migrations_fresh.rs
+++ b/crates/storage-postgres/tests/migrations_fresh.rs
@@ -188,7 +188,7 @@ async fn the_status_names_each_state_and_writes_nothing() {
 
     s.migrate_through(MigrationId::LATEST).await;
     assert_eq!(s.status().await, CatalogStatus::Current { version: LATEST });
-    // A release before 1.0 ran its `migrate`, which inserts the marker again.
+    // A release before 0.1.15 ran its `migrate`, which inserts the marker again.
     sqlx::query("INSERT INTO settings (key, value) VALUES ('resource_tag_migration', 'applied')")
         .execute(&catalog)
         .await
@@ -315,12 +315,13 @@ async fn the_post_check_stops_a_different_shape_and_accepts_the_pre_release_one(
         .expect_err("refused");
     let message = err.to_string();
     assert!(
-        message.contains("differs from the v1.0 schema in 2 place(s)")
-            && message.contains("column accounts.extra is not part of the v1.0 schema; drop it")
+        message.contains("differs from migration 1's schema in 2 place(s)")
+            && message
+                .contains("column accounts.extra is not part of migration 1's schema; drop it")
             && message.contains("column accounts.created_at has default '2020-01-01")
             && message.contains(
-                "where v1.0 has now(); change it to timestamp with time zone NOT NULL DEFAULT \
-                 now()"
+                "where migration 1 has now(); change it to timestamp with time zone NOT NULL \
+                 DEFAULT now()"
             )
             && message.contains("then run migrate --yes again")
             && !message.contains("Column {"),
diff --git a/crates/storage-postgres/tests/migrations_golden.rs b/crates/storage-postgres/tests/migrations_golden.rs
index 5dd412aca..ffd6c6e0a 100644
--- a/crates/storage-postgres/tests/migrations_golden.rs
+++ b/crates/storage-postgres/tests/migrations_golden.rs
@@ -185,7 +185,7 @@ async fn every_policy_document(catalog: &PgPool) -> Vec {
     .unwrap()
 }
 
-/// Record what a release before 1.0 leaves when it writes to a migrated
+/// Record what a release before 0.1.15 leaves when it writes to a migrated
 /// catalog, then reconverge: migration 2 is named as skipped, and the
 /// catalog is current again.
 async fn reconverge_after_an_older_release_wrote(s: &Scratch, catalog: &PgPool) {
@@ -211,7 +211,7 @@ async fn reconverge_after_an_older_release_wrote(s: &Scratch, catalog: &PgPool)
     assert_eq!(s.status().await, CatalogStatus::Current { version: LATEST });
 }
 
-/// From 1.0 on a `dynamodb:ResourceTag` key written through the API has no
+/// From 0.1.15 on a `dynamodb:ResourceTag` key written through the API has no
 /// effect, as on the service. Migration 2 is not convergent, so a reconverge
 /// leaves a policy written after it, in each place a policy is stored, with
 /// the text it was written with, and so with the decision it had.
diff --git a/crates/storage-postgres/tests/migrations_runs.rs b/crates/storage-postgres/tests/migrations_runs.rs
index ffd30fca1..9852fc49f 100644
--- a/crates/storage-postgres/tests/migrations_runs.rs
+++ b/crates/storage-postgres/tests/migrations_runs.rs
@@ -70,7 +70,9 @@ async fn a_reconverge_keeps_what_a_later_migration_added() {
 }
 
 /// `forget` deletes the rows of the id it is given in every store that
-/// records it, and the next run applies that id again.
+/// records it, and the next run applies that id again. The runner is given
+/// a released bound of 0, so the latest migration is one it may forget
+/// whatever bound this binary carries.
 #[tokio::test]
 async fn forget_removes_one_migration_and_the_next_run_applies_it() {
     let Some(base) = base_conn() else {
@@ -81,7 +83,10 @@ async fn forget_removes_one_migration_and_the_next_run_applies_it() {
         .await
         .unwrap();
     let m = PostgresMigrations::open(&s.target(), &lock).await.unwrap();
-    let forgot = Runner::new(&m, RELEASE).forget(LATEST).await;
+    let forgot = Runner::new(&m, RELEASE)
+        .with_released_through(0)
+        .forget(LATEST)
+        .await;
     m.close().await;
     lock.release().await;
     forgot.expect("forget the latest migration");
diff --git a/crates/storage-postgres/tests/migrations_serving.rs b/crates/storage-postgres/tests/migrations_serving.rs
index 8a3b933a7..033c9dcfb 100644
--- a/crates/storage-postgres/tests/migrations_serving.rs
+++ b/crates/storage-postgres/tests/migrations_serving.rs
@@ -13,10 +13,8 @@ mod migrations_support;
 use std::time::Duration;
 
 use extenddb_storage::hooks::{Reregistration, ServingRegistrar};
-use extenddb_storage::migrations::{CatalogStatus, MigrationError, MigrationId, Runner};
-use extenddb_storage_postgres::migrations::{
-    MigrationLock, PostgresMigrations, ServerRegistration, migrate,
-};
+use extenddb_storage::migrations::{CatalogStatus, MigrationError, MigrationId};
+use extenddb_storage_postgres::migrations::{MigrationLock, ServerRegistration, migrate};
 use migrations_support::{LATEST, Scratch, base_conn, pool, skip};
 use sqlx::PgPool;
 
@@ -131,7 +129,7 @@ async fn a_registration_the_database_ended_is_taken_again_on_a_new_session() {
 
 /// A migration that holds the catalog when the server tries again refuses
 /// the attempt, which leaves no key behind: one that holds both keys, and one
-/// of a release before 1.0 that holds the migration key alone. Once it has
+/// of a release before 0.1.15 that holds the migration key alone. Once it has
 /// finished without a change, the server registers again.
 #[tokio::test]
 async fn a_migration_that_holds_the_catalog_refuses_the_registration() {
@@ -196,15 +194,15 @@ async fn a_status_that_changed_while_unregistered_refuses_the_registration() {
         .expect("register");
     end_the_serving_session(&admin, &s).await;
     lost(®istration).await;
-    // A migrator clears the latest migration in the meantime.
-    let lock = MigrationLock::acquire(&s.options(), Duration::from_secs(5))
+    // The catalog changes in the meantime: the latest migration's ledger
+    // row is deleted (the version row is left as it was).
+    let catalog = s.catalog().await;
+    sqlx::query("DELETE FROM extenddb_migrations WHERE id = $1")
+        .bind(i32::try_from(LATEST).unwrap())
+        .execute(&catalog)
         .await
-        .unwrap();
-    let m = PostgresMigrations::open(&s.target(), &lock).await.unwrap();
-    let forgot = Runner::new(&m, RELEASE).forget(LATEST).await;
-    m.close().await;
-    lock.release().await;
-    forgot.expect("forget the latest migration");
+        .expect("delete the latest migration's ledger row");
+    catalog.close().await;
     match registration.register_again().await {
         Reregistration::Refused(why) => assert!(
             why.contains("status changed")
diff --git a/crates/storage-sqlite/src/backup.rs b/crates/storage-sqlite/src/backup.rs
index 7bdddc00f..9359f1788 100644
--- a/crates/storage-sqlite/src/backup.rs
+++ b/crates/storage-sqlite/src/backup.rs
@@ -5366,9 +5366,12 @@ mod restore_tests {
 
             // Back to the shape before migration 6: the job record's columns
             // and index gone, the registrations as the old release wrote
-            // them, the interrupted target CREATING, and the migration
-            // forgotten.
-            let mut undo = String::from("DROP INDEX IF EXISTS idx_table_restores_status;");
+            // them, the interrupted target CREATING, and migration 6's
+            // ledger row deleted, so the next run applies migration 6 alone.
+            let mut undo = String::from(
+                "DROP INDEX IF EXISTS idx_table_restores_status; \
+                 DELETE FROM extenddb_migrations WHERE id = 6;",
+            );
             for column in [
                 "status",
                 "kind",
@@ -5403,7 +5406,6 @@ mod restore_tests {
                 crate::migrations::SqliteMigrations::on_pool(engine.pool.clone(), ":memory:")
                     .expect("one connection");
             let runner = extenddb_storage::migrations::Runner::new(&on_pool, "test");
-            runner.forget(6).await.expect("forget migration 6");
             let report = runner.migrate().await.expect("migrate again");
             assert_eq!(report.applied.iter().map(|a| a.id).collect::>(), [6]);
 
diff --git a/crates/storage-sqlite/src/lib.rs b/crates/storage-sqlite/src/lib.rs
index 112d71ac4..fc0413dcb 100644
--- a/crates/storage-sqlite/src/lib.rs
+++ b/crates/storage-sqlite/src/lib.rs
@@ -61,7 +61,7 @@ mod workers;
 
 /// Default secondary-index propagation delay (milliseconds) when the
 /// `index_propagation_delay_ms` setting is absent, as it is on a catalog the
-/// migrations created (releases before 1.0 seeded the same value). The single
+/// migrations created (releases before 0.1.15 seeded the same value). The single
 /// definition used by both the live read on the write path and the background
 /// refresh worker.
 pub(crate) const DEFAULT_INDEX_PROPAGATION_DELAY_MS: u64 = 10;
diff --git a/crates/storage-sqlite/src/migrations/backend.rs b/crates/storage-sqlite/src/migrations/backend.rs
index e7490aece..dfafa1921 100644
--- a/crates/storage-sqlite/src/migrations/backend.rs
+++ b/crates/storage-sqlite/src/migrations/backend.rs
@@ -311,9 +311,23 @@ impl SqliteMigrations {
     ///
     /// As [`Runner::forget`]; the database is then as it was.
     pub(crate) async fn forget(&self, id: u32) -> Result<(), MigrationError> {
+        self.forget_with(&Runner::new(self, ""), id).await
+    }
+
+    /// [`SqliteMigrations::forget`] with `runner`, which a test gives
+    /// another released bound.
+    ///
+    /// # Errors
+    ///
+    /// As [`SqliteMigrations::forget`].
+    pub(crate) async fn forget_with(
+        &self,
+        runner: &Runner<'_, Self>,
+        id: u32,
+    ) -> Result<(), MigrationError> {
         in_transaction(
             self.exec("BEGIN IMMEDIATE"),
-            Runner::new(self, "").forget(id),
+            runner.forget(id),
             self.exec("COMMIT"),
             async {
                 let _ = self.exec("ROLLBACK").await;
diff --git a/crates/storage-sqlite/src/migrations/copy.rs b/crates/storage-sqlite/src/migrations/copy.rs
index 0379dd5c8..9cad96b7e 100644
--- a/crates/storage-sqlite/src/migrations/copy.rs
+++ b/crates/storage-sqlite/src/migrations/copy.rs
@@ -29,7 +29,8 @@
 //!
 //! The copy is created owner-only (0600) before SQLite writes to it,
 //! whatever the database's mode: the database holds the encryption key, and
-//! a catalog that 0.1.x `init` created and no server opened is 0644.
+//! a catalog that the `init` of 0.1.14 or earlier created and no server
+//! opened is 0644.
 //!
 //! Every copy's name carries the UTC time the run took it,
 //! `.pre-migration--to--`, and a name that
diff --git a/crates/storage-sqlite/src/migrations/golden_tests.rs b/crates/storage-sqlite/src/migrations/golden_tests.rs
index d0a2d135b..1ba51bed2 100644
--- a/crates/storage-sqlite/src/migrations/golden_tests.rs
+++ b/crates/storage-sqlite/src/migrations/golden_tests.rs
@@ -327,7 +327,7 @@ async fn every_policy_document(db: &Path) -> String {
     text
 }
 
-/// Record what a release before 1.0 leaves when it writes to a migrated
+/// Record what a release before 0.1.15 leaves when it writes to a migrated
 /// catalog, then reconverge: migration 2 is named as skipped, and the
 /// catalog is current again.
 async fn reconverge_after_an_older_release_wrote(db: &Path) {
@@ -349,7 +349,7 @@ async fn reconverge_after_an_older_release_wrote(db: &Path) {
     assert_eq!(status(db).await, CatalogStatus::Current { version: LATEST });
 }
 
-/// From 1.0 on a `dynamodb:ResourceTag` key written through the API has no
+/// From 0.1.15 on a `dynamodb:ResourceTag` key written through the API has no
 /// effect, as on the service. Migration 2 is not convergent, so a reconverge
 /// leaves a policy written after it, in each of the six places, with the
 /// text it was written with, and so with the decision it had.
diff --git a/crates/storage-sqlite/src/migrations/mod.rs b/crates/storage-sqlite/src/migrations/mod.rs
index 0dd81e82a..428ee5121 100644
--- a/crates/storage-sqlite/src/migrations/mod.rs
+++ b/crates/storage-sqlite/src/migrations/mod.rs
@@ -56,8 +56,118 @@ pub use commands::SqliteCatalogMigrations;
 /// applied to it.
 const BASELINE_EXPECTED: &str = include_str!("../../migrations/0001_baseline.expected.json");
 
-/// Checksums of the released bodies (none until v1.0).
-pub(crate) const RELEASED: &[Released] = &[];
+/// Checksums of the released bodies, every migration at or below
+/// `RELEASED_THROUGH`.
+pub(crate) const RELEASED: &[Released] = &[
+    Released {
+        id: MigrationId::Baseline,
+        store: StoreKind::Catalog,
+        checksum: "b72a83faad465556bceeb9c37554abbbc3aca316abd2823c3b117cd39e62349c",
+        fingerprint: Some("0001_baseline/sqlite/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::ResourceTagConditionKeys,
+        store: StoreKind::Catalog,
+        checksum: "80c502c54ef9240ab5f64b24b060261a295e41d29954d9b492b83c64c444170e",
+        fingerprint: Some("0002_resource_tag_condition_keys/1"),
+        kind: Kind::Breaking,
+        convergent: false,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::SortKeyDefinitions,
+        store: StoreKind::Catalog,
+        checksum: "a6f6841cb02734cc578f82b50ceb05fd7600d1647e6a0fed9e46fcd0c28c0e97",
+        fingerprint: Some("0003_sort_key_definitions/sqlite/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::IndexTableBaseKey,
+        store: StoreKind::Catalog,
+        checksum: "33863368aef25b7d9e678ddb4c9676de5a3c0408c818e4b3a91a88253d1b46c2",
+        fingerprint: Some("0004_index_table_base_key/sqlite/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::DropContinuousBackups,
+        store: StoreKind::Catalog,
+        checksum: "b7531559f55e4903371072c3e059ce3b82147f9b7fa7ba405dbb403b399e095c",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::BackupCatalogIndex,
+        store: StoreKind::Catalog,
+        checksum: "8528b29cd83afb95ac2e2bb637d90efe51dfaa704b5280e479edde4b7b2fa1cf",
+        fingerprint: Some("0006_backup_catalog_index/sqlite/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::StreamPending,
+        store: StoreKind::Catalog,
+        checksum: "99dc4a51692c3cc58d619420e2055130e33f93870dab2e02c087d4d44f1e5402",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::RestoreProgress,
+        store: StoreKind::Catalog,
+        checksum: "6d2e68d8284d72072de839c13f121be4005e8950fda90c5d9f7742c6958175c9",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::WarmThroughput,
+        store: StoreKind::Catalog,
+        checksum: "fd2dd35c3afbf3c8efcafe8dc6bddbfccbfb8c820c123bd5e74f87f60321953b",
+        fingerprint: Some("0009_warm_throughput/sqlite/1"),
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AccountMetrics,
+        store: StoreKind::Catalog,
+        checksum: "6c75cabed24c7d7488b33148800fe492d3dc2f561dd286ae70f203098b5375df",
+        fingerprint: None,
+        kind: Kind::Breaking,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::AttributeNameEscape,
+        store: StoreKind::Catalog,
+        checksum: "d1d6e06c5e8e048d163b16f9b2d816a2d4f636bfc642be4d5e1d608cbac9994a",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+    Released {
+        id: MigrationId::UniqueAccessKeyIds,
+        store: StoreKind::Catalog,
+        checksum: "5003dffcdb2e46d560d794360fdb7a6a9d5eb000968082450b8bee9a0bc23d02",
+        fingerprint: None,
+        kind: Kind::Additive,
+        convergent: true,
+        rebless: None,
+    },
+];
 
 /// This backend's entry for every id. Public so `migrate --list` can print
 /// each migration's kind without opening the database.
diff --git a/crates/storage-sqlite/src/migrations/open_tests.rs b/crates/storage-sqlite/src/migrations/open_tests.rs
index b5db709d7..247095554 100644
--- a/crates/storage-sqlite/src/migrations/open_tests.rs
+++ b/crates/storage-sqlite/src/migrations/open_tests.rs
@@ -112,8 +112,8 @@ async fn a_closed_wal_catalog_in_a_read_only_directory_names_the_shm_file() {
 
 #[tokio::test]
 async fn a_database_the_runner_cannot_write_fails_at_once_with_its_cause() {
-    // A rollback-journal database, as a 0.1.x release left it: the runner's
-    // connection switches it to WAL, which writes the file.
+    // A rollback-journal database, as 0.1.14 or an earlier release left it:
+    // the runner's connection switches it to WAL, which writes the file.
     let db = temp_db("ro-file");
     exec(
         &db,
diff --git a/crates/storage-sqlite/src/migrations/refusal_tests.rs b/crates/storage-sqlite/src/migrations/refusal_tests.rs
index 457f93f1e..de419aa9a 100644
--- a/crates/storage-sqlite/src/migrations/refusal_tests.rs
+++ b/crates/storage-sqlite/src/migrations/refusal_tests.rs
@@ -985,7 +985,9 @@ async fn a_failed_ledger_insert_leaves_nothing_of_the_body() {
 
 /// `forget` deletes the ledger row and writes the version row in one
 /// transaction: when the version row cannot be written, the ledger row is
-/// still there.
+/// still there. The command's path is followed under the lock, with a
+/// runner given a released bound of 0, so the latest migration is one it may
+/// forget whatever bound this binary carries.
 #[tokio::test]
 async fn a_forget_whose_version_row_fails_keeps_the_ledger_row() {
     use extenddb_storage::migrations::{CatalogMigrations, Target};
@@ -1006,11 +1008,18 @@ async fn a_forget_whose_version_row_fails_keeps_the_ledger_row() {
         .lock(&target, std::time::Duration::ZERO)
         .await
         .expect("lock");
-    let err = SqliteCatalogMigrations
-        .forget(&lock, LATEST)
+    let migrations = SqliteMigrations::open(&db.to_string_lossy())
         .await
-        .expect_err("the version row fails");
+        .expect("open");
+    let result = migrations
+        .forget_with(
+            &Runner::new(&migrations, "").with_released_through(0),
+            LATEST,
+        )
+        .await;
+    migrations.close().await;
     drop(lock);
+    let err = result.expect_err("the version row fails");
     assert!(
         err.to_string()
             .contains("the version row cannot be written"),
diff --git a/crates/storage-sqlite/src/migrations/released_tests.rs b/crates/storage-sqlite/src/migrations/released_tests.rs
index b452ddd10..c9ef90f38 100644
--- a/crates/storage-sqlite/src/migrations/released_tests.rs
+++ b/crates/storage-sqlite/src/migrations/released_tests.rs
@@ -19,7 +19,7 @@ use super::tests::{
 };
 
 /// Settings rows a released baseline seeded with an equal default in code.
-/// v1.0 seeds none of them and keeps the ones it finds, because a seeded
+/// Migration 1 seeds none of them and keeps the ones it finds, because a seeded
 /// value cannot be told from one an operator set.
 const DEV_IMAGE_SETTINGS: &[(&str, &str)] = &[
     ("control_plane_delay_seconds", "0.25"),
@@ -183,8 +183,9 @@ const BACKUP_WITH_SORT_KEYS: &str = "\
         ('arn:with-sort-keys', 'p0', 's01', '{\"pk\":{\"S\":\"p0\"},\"sk\":{\"S\":\"s01\"}}'), \
         ('arn:with-sort-keys', 'p0', 's02', '{\"pk\":{\"S\":\"p0\"},\"sk\":{\"S\":\"s02\"}}');";
 
-/// A v1.0 catalog seeded as the fixtures were: the bootstrap rows, then
-/// CreateTable `cu_orders` with its GSI, LSI and stream, and its TTL index.
+/// A catalog this binary created, seeded as the fixtures were: the
+/// bootstrap rows, then CreateTable `cu_orders` with its GSI, LSI and
+/// stream, and its TTL index.
 async fn fresh_seeded() -> BTreeMap> {
     let db = temp_db("fresh-seeded");
     run(&db).await.expect("fresh install");
@@ -419,9 +420,9 @@ async fn the_metrics_store_keeps_two_accounts_apart() {
     pool.close().await;
 }
 
-/// A release before 1.0 that starts on a v1.0 catalog rewrites
+/// A release before 0.1.15 that starts on a migrated catalog rewrites
 /// `catalog_version` (SQLite dev builds) or the marker (`migrate --yes`).
-/// v1.0 then reports it, refuses to migrate, and `--reconverge` repairs it,
+/// This binary then reports it, refuses to migrate, and `--reconverge` repairs it,
 /// leaving the ledger rows as the first application wrote them.
 #[tokio::test]
 async fn a_catalog_an_older_release_wrote_to_is_reported_and_reconverged() {
@@ -641,11 +642,13 @@ async fn changed_ahead_and_forgotten_ledgers() {
     )
     .await;
 
-    // An unreleased id, migration 4, can be forgotten and runs again.
+    // Migration 4 can be forgotten and runs again. The runner is given a
+    // released bound of 0, so 4 is unreleased whatever bound this binary
+    // carries.
     let migrations = SqliteMigrations::open(&db.to_string_lossy())
         .await
         .expect("open");
-    let runner = Runner::new(&migrations, RELEASE);
+    let runner = Runner::new(&migrations, RELEASE).with_released_through(0);
     let four = MigrationId::IndexTableBaseKey.number();
     runner.forget(four).await.expect("forget 4");
     assert!(matches!(
diff --git a/crates/storage-sqlite/src/migrations/tests.rs b/crates/storage-sqlite/src/migrations/tests.rs
index 1c7ffdbb4..82780fc82 100644
--- a/crates/storage-sqlite/src/migrations/tests.rs
+++ b/crates/storage-sqlite/src/migrations/tests.rs
@@ -457,7 +457,7 @@ async fn a_rebuild_of_tables_keeps_its_index_shard_and_stream_rows() {
 }
 
 /// The copy is owner-only whatever the database's mode: 0644 is the mode of
-/// a catalog that 0.1.x `init` created and no server opened.
+/// a catalog that the `init` of 0.1.14 or earlier created and no server opened.
 #[cfg(unix)]
 #[tokio::test]
 async fn the_copy_is_owner_only_and_has_a_name_no_run_reuses() {
diff --git a/crates/storage/Cargo.toml b/crates/storage/Cargo.toml
index acca989c2..7d5b288c9 100755
--- a/crates/storage/Cargo.toml
+++ b/crates/storage/Cargo.toml
@@ -12,7 +12,9 @@ homepage.workspace = true
 
 [features]
 # `test-util` exposes `migrations::check_released`, the checksum test each
-# backend crate runs on its migration table, and
+# backend crate runs on its migration table,
+# `migrations::Runner::with_released_through`, which lets a test forget a
+# migration the release has frozen, and
 # `password::count_verifications`, which returns the bcrypt cost of each check
 # a login ran. It also compiles the counter in `verify_password` that records
 # those costs, and `iam_leftovers_conformance`, the check each backend's tests
diff --git a/crates/storage/src/migrations/advice.rs b/crates/storage/src/migrations/advice.rs
index a93528b7a..7a9197bc4 100644
--- a/crates/storage/src/migrations/advice.rs
+++ b/crates/storage/src/migrations/advice.rs
@@ -168,9 +168,9 @@ pub fn status_message(status: &CatalogStatus, advice: &Advice<'_>) -> String {
                     "Stop the server.",
                 ),
                 (None, None) => (
-                    "the catalog has no migration ledger (a release before 1.0 created it)"
+                    "the catalog has no migration ledger (a release before 0.1.15 created it)"
                         .to_owned(),
-                    "Stop every server that uses this catalog: a server of a release before 1.0 \
+                    "Stop every server that uses this catalog: a server of a release before 0.1.15 \
                      is not detected while it runs.",
                 ),
             };
@@ -208,8 +208,8 @@ pub fn status_message(status: &CatalogStatus, advice: &Advice<'_>) -> String {
              recorded it, or restore the backup taken before it ran."
         ),
         CatalogStatus::WrittenByOlderRelease { trace } => format!(
-            "a release before 1.0 wrote to this catalog after it was migrated ({trace}).\nStop \
-             every server of a release before 1.0, then run:\n{}",
+            "a release before 0.1.15 wrote to this catalog after it was migrated ({trace}).\nStop \
+             every server of a release before 0.1.15, then run:\n{}",
             advice.command("--yes --reconverge")
         ),
         CatalogStatus::AheadIncompatible { .. } => format!(
@@ -317,7 +317,7 @@ mod quoting_tests;
 
 #[cfg(test)]
 mod tests {
-    use super::{Advice, error_message, status_message};
+    use super::{Advice, RELEASED_THROUGH, error_message, status_message};
     use crate::migrations::{
         AppliedStep, CatalogStatus, Kind, MigrationError, MigrationId, Outcome, Pending, RunReport,
         StoreKind,
@@ -544,42 +544,45 @@ mod tests {
 
     #[test]
     fn each_refusal_names_its_command() {
+        let changed = |id| CatalogStatus::Changed {
+            id,
+            store_name: "db".to_owned(),
+            recorded: "a".to_owned(),
+            expected: "b".to_owned(),
+        };
+        let unreleased = RELEASED_THROUGH + 1;
         let cases = [
             (
                 CatalogStatus::Uninitialized,
-                "create it with 'extenddb init'",
+                "create it with 'extenddb init'".to_owned(),
             ),
             (
                 CatalogStatus::WrittenByOlderRelease {
                     trace: "catalog_version is 0.0.4".to_owned(),
                 },
-                "--yes --reconverge",
+                "--yes --reconverge".to_owned(),
             ),
             (
                 CatalogStatus::NeedsAttention {
                     items: vec!["migration 2 resource_tag_condition_keys: a collision".to_owned()],
                 },
-                "  migration 2 resource_tag_condition_keys: a collision",
+                "  migration 2 resource_tag_condition_keys: a collision".to_owned(),
             ),
+            (changed(unreleased), format!("--forget {unreleased}")),
             (
-                CatalogStatus::Changed {
-                    id: 4,
-                    store_name: "db".to_owned(),
-                    recorded: "a".to_owned(),
-                    expected: "b".to_owned(),
-                },
-                "--forget 4",
+                changed(RELEASED_THROUGH),
+                "run the ExtendDB release that recorded it".to_owned(),
             ),
             (
                 CatalogStatus::AheadIncompatible {
                     unknown: vec![(9, "later".to_owned())],
                 },
-                "ExtendDB 1.0.1 cannot use it",
+                "ExtendDB 1.0.1 cannot use it".to_owned(),
             ),
         ];
         for (status, expected) in cases {
             let message = status_message(&status, &ADVICE);
-            assert!(message.contains(expected), "{status:?}: {message}");
+            assert!(message.contains(&expected), "{status:?}: {message}");
             assert!(
                 !message.contains("--pg-pass") && !message.contains("password"),
                 "{message}"
diff --git a/crates/storage/src/migrations/backend.rs b/crates/storage/src/migrations/backend.rs
index e936f6661..3ec544677 100644
--- a/crates/storage/src/migrations/backend.rs
+++ b/crates/storage/src/migrations/backend.rs
@@ -63,7 +63,7 @@ pub trait MigrationBackend: Send + Sync {
     /// rows; any other failure is an error, never "not applied".
     async fn read_ledger(&self, store: &StoreRef) -> Result, MigrationError>;
 
-    /// The pre-1.0 traces in the catalog's settings.
+    /// The traces a release before 0.1.15 left in the catalog's settings.
     async fn read_traces(&self) -> Result;
 
     /// Whether the catalog store holds no tables (or collections) at all, so
diff --git a/crates/storage/src/migrations/ledger.rs b/crates/storage/src/migrations/ledger.rs
index 201bd076d..a0b812602 100644
--- a/crates/storage/src/migrations/ledger.rs
+++ b/crates/storage/src/migrations/ledger.rs
@@ -97,16 +97,16 @@ impl LedgerRow {
     }
 }
 
-/// What a release before 1.0 left in the catalog's settings, read beside the
+/// What a release before 0.1.15 left in the catalog's settings, read beside the
 /// ledger.
 #[derive(Debug, Clone, Default, PartialEq, Eq)]
 pub struct CatalogTraces {
     /// The `catalog_version` settings row. A dotted value (`0.0.3`) comes from
-    /// a release before 1.0; the runner writes an integer.
+    /// a release before 0.1.15; the runner writes an integer.
     pub catalog_version: Option,
     /// Whether the `resource_tag_migration` row exists. Every released
     /// baseline seeded it and migration 1 deletes it, so on a catalog with a
-    /// ledger it means a release before 1.0 wrote to the catalog.
+    /// ledger it means a release before 0.1.15 wrote to the catalog.
     pub resource_tag_marker: bool,
 }
 
@@ -124,7 +124,7 @@ impl CatalogTraces {
         }
     }
 
-    /// The version row holds a dotted pre-1.0 version.
+    /// The version row holds the dotted version of a release before 0.1.15.
     #[must_use]
     pub fn dotted_version(&self) -> bool {
         self.catalog_version
diff --git a/crates/storage/src/migrations/reconverge_tests.rs b/crates/storage/src/migrations/reconverge_tests.rs
index 0c8567db4..9ebd51d7b 100644
--- a/crates/storage/src/migrations/reconverge_tests.rs
+++ b/crates/storage/src/migrations/reconverge_tests.rs
@@ -30,6 +30,51 @@ async fn forget_refuses_released_ids() {
     assert_eq!(fake.rows("cat"), all);
 }
 
+/// The runner every backend's `forget` builds, `Runner::new`, takes this
+/// binary's own bound: it refuses every id from 1 to `RELEASED_THROUGH`
+/// and forgets the first id above it. The tests above give their runner a
+/// bound; this one is what keeps a release binary from forgetting a
+/// released migration.
+#[tokio::test]
+async fn the_default_runner_refuses_every_id_this_binary_released() {
+    let fake = Fake::new();
+    current(&fake).await;
+    let all: Vec = (1..=LATEST).collect();
+    // Every id at or below the bound (none while the bound is 0).
+    let released = &all[..RELEASED_THROUGH as usize];
+    for &id in released {
+        let err = Runner::new(&fake, "1.0.0-test")
+            .forget(id)
+            .await
+            .unwrap_err();
+        assert!(matches!(err, MigrationError::Refused(_)), "{err:?}");
+        assert_eq!(err.exit_code(), exit::ERROR);
+        assert_eq!(
+            err.to_string(),
+            format!(
+                "migration {id} has been released; only migrations above \
+                 {RELEASED_THROUGH} can be forgotten"
+            ),
+        );
+        assert_eq!(fake.rows("cat"), all);
+    }
+    // The bound itself: with no id released the loop above checks nothing,
+    // so the first id above the bound must be forgotten.
+    let above = RELEASED_THROUGH + 1;
+    if above <= LATEST {
+        Runner::new(&fake, "1.0.0-test")
+            .forget(above)
+            .await
+            .unwrap();
+        let without: Vec = all.iter().copied().filter(|id| *id != above).collect();
+        assert_eq!(fake.rows("cat"), without);
+        runner(&fake).migrate().await.unwrap();
+        assert_eq!(fake.rows("cat"), all);
+    } else {
+        assert_eq!(RELEASED_THROUGH, LATEST);
+    }
+}
+
 #[tokio::test]
 async fn forget_refuses_an_id_it_cannot_forget() {
     let fake = Fake::new();
@@ -43,7 +88,11 @@ async fn forget_refuses_an_id_it_cannot_forget() {
     assert_eq!(err.exit_code(), exit::ERROR);
     assert!(err.to_string().contains("carries no migration"), "{err}");
     // An id no store has a row for.
-    let err = runner(&fake).forget(LATEST).await.unwrap_err();
+    let err = runner(&fake)
+        .with_released_through(0)
+        .forget(LATEST)
+        .await
+        .unwrap_err();
     assert_eq!(err.exit_code(), exit::ERROR);
     assert!(err.to_string().contains("nothing to forget"), "{err}");
     // 0 is no migration id, whatever the released bound.
diff --git a/crates/storage/src/migrations/registry.rs b/crates/storage/src/migrations/registry.rs
index df3569903..1844df7da 100644
--- a/crates/storage/src/migrations/registry.rs
+++ b/crates/storage/src/migrations/registry.rs
@@ -45,10 +45,10 @@ macro_rules! migration_ids {
 }
 
 migration_ids! {
-    /// Creates the v1.0 schema on an empty store and brings every released
+    /// Creates the catalog schema on an empty store and brings every released
     /// catalog to it.
     Baseline = 1, "baseline",
-        "create the v1.0 catalog schema, or bring a released catalog to it";
+        "create the catalog schema, or bring a released catalog to it";
     /// Rewrites stored policies from `dynamodb:ResourceTag/` to
     /// `aws:ResourceTag/`.
     ResourceTagConditionKeys = 2, "resource_tag_condition_keys",
@@ -116,8 +116,9 @@ migration_ids! {
 
 /// Highest id that has shipped in a release. Bodies at or below it are frozen:
 /// each backend pins their checksums, kinds and convergent flags, and
-/// `forget` refuses them. The v1.0 release PR raises it to 12.
-pub const RELEASED_THROUGH: u32 = 0;
+/// `forget` refuses them. Each release PR raises it to the last id
+/// (CONTRIBUTING.md, "Adding a catalog migration", step 7).
+pub const RELEASED_THROUGH: u32 = 12;
 
 impl MigrationId {
     /// The highest id this binary carries.
diff --git a/crates/storage/src/migrations/runner.rs b/crates/storage/src/migrations/runner.rs
index 10d4614ff..a4cd5bd1f 100644
--- a/crates/storage/src/migrations/runner.rs
+++ b/crates/storage/src/migrations/runner.rs
@@ -12,7 +12,8 @@ use super::registry::{MigrationId, RELEASED_THROUGH};
 use super::status::{AppliedStep, CatalogStatus, MigrationError, Pending, RunReport};
 use super::table::{Body, Kind, Migration, StoreKind};
 
-/// Every store's ledger, catalog first, and the catalog's pre-1.0 traces.
+/// Every store's ledger, catalog first, and the traces a release before 0.1.15
+/// left in the catalog's settings.
 #[derive(Debug, Clone)]
 struct Snapshot {
     ledgers: Vec<(StoreRef, Vec)>,
@@ -49,7 +50,7 @@ impl Snapshot {
     }
 
     /// Whether the store is a catalog: it has a ledger row, or a
-    /// `catalog_version` row a release before 1.0 wrote.
+    /// `catalog_version` row a release before 0.1.15 wrote.
     fn initialized(&self) -> bool {
         !self.catalog_rows().is_empty() || self.traces.catalog_version.is_some()
     }
@@ -82,10 +83,12 @@ impl<'a, B: MigrationBackend> Runner<'a, B> {
         }
     }
 
-    /// Use another released bound than [`RELEASED_THROUGH`].
-    #[cfg(test)]
+    /// Use another released bound than [`RELEASED_THROUGH`], for tests of
+    /// [`Runner::forget`] that need an id the bound does not cover, whatever
+    /// this binary's bound is. A release binary never sets it.
+    #[cfg(any(test, feature = "test-util"))]
     #[must_use]
-    pub(crate) fn with_released_through(mut self, released_through: u32) -> Self {
+    pub fn with_released_through(mut self, released_through: u32) -> Self {
         self.released_through = released_through;
         self
     }
@@ -137,7 +140,7 @@ impl<'a, B: MigrationBackend> Runner<'a, B> {
     }
 
     /// Run the convergent migrations again, repairing a catalog a release
-    /// before 1.0 wrote to (`WrittenByOlderRelease`): each convergent body
+    /// before 0.1.15 wrote to (`WrittenByOlderRelease`): each convergent body
     /// reruns, the `catalog_version` row is written again, and the ledger
     /// rows already there stay as they are, with their notes and
     /// `applied_at`. A recorded migration that is not convergent does not
diff --git a/crates/storage/src/migrations/status.rs b/crates/storage/src/migrations/status.rs
index b511763c2..1a2f87017 100644
--- a/crates/storage/src/migrations/status.rs
+++ b/crates/storage/src/migrations/status.rs
@@ -140,7 +140,7 @@ pub enum CatalogStatus {
     /// touches.
     Current { version: u32 },
     /// Migrations this binary carries are missing. `version` is `None` for a
-    /// catalog with no ledger (a release before 1.0, behind at migration 1).
+    /// catalog with no ledger (a release before 0.1.15, behind at migration 1).
     Behind {
         version: Option,
         pending: Vec,
@@ -161,7 +161,7 @@ pub enum CatalogStatus {
         recorded: String,
         expected: String,
     },
-    /// The catalog ledger has a row for migration 1 and a release before 1.0
+    /// The catalog ledger has a row for migration 1 and a release before 0.1.15
     /// wrote to the catalog afterwards.
     WrittenByOlderRelease { trace: String },
     /// Not a catalog: no ledger row and no `catalog_version` row.
@@ -211,7 +211,7 @@ impl std::fmt::Display for CatalogStatus {
                     (Some((catalog_at, behind)), _) => behind_line(catalog_at, &behind),
                     (None, Some(v)) => format!("the catalog is at migration {v}"),
                     (None, None) => {
-                        "the catalog has no migration ledger (a release before 1.0)".to_owned()
+                        "the catalog has no migration ledger (a release before 0.1.15)".to_owned()
                     }
                 };
                 let list: Vec = pending
@@ -257,7 +257,7 @@ impl std::fmt::Display for CatalogStatus {
             ),
             Self::WrittenByOlderRelease { trace } => write!(
                 f,
-                "a release before 1.0 wrote to this catalog after it was migrated ({trace}); \
+                "a release before 0.1.15 wrote to this catalog after it was migrated ({trace}); \
                  run 'extenddb migrate --yes --reconverge'"
             ),
             Self::Uninitialized => write!(f, "the catalog is not initialized"),
diff --git a/crates/storage/src/migrations/tests.rs b/crates/storage/src/migrations/tests.rs
index 9b07e980f..a6ca9b230 100644
--- a/crates/storage/src/migrations/tests.rs
+++ b/crates/storage/src/migrations/tests.rs
@@ -523,7 +523,7 @@ async fn every_status_and_its_exit_code() {
     fake.with_state(|s| s.ledgers.get_mut("data-a").unwrap().retain(|r| r.id != 4));
     assert_eq!(runner(&fake).status().await.unwrap().label(), "Behind");
 
-    // A release before 1.0 wrote to it: a dotted version, or the marker.
+    // A release before 0.1.15 wrote to it: a dotted version, or the marker.
     let fake = Fake::new();
     current(&fake).await;
     fake.with_state(|s| s.traces.catalog_version = Some("0.0.3".into()));
diff --git a/devtools/check-cassandra-catalog-lock b/devtools/check-cassandra-catalog-lock
index a0d578823..fad1e1967 100755
--- a/devtools/check-cassandra-catalog-lock
+++ b/devtools/check-cassandra-catalog-lock
@@ -30,8 +30,10 @@ with `init` and removes them at the end.
   a second migrate --yes exit 6, and the preview exits 0;
 - once the lock is free, migrate --yes --reconverge runs migration 1 again
   and neither 2, which is not convergent, nor 3 and 4, which do not apply on
-  Cassandra; migrate --forget 2 and the migrate --yes that applies 2 again
-  run, and serve runs;
+  Cassandra; migrate --forget of an id the binary does not carry exits 1
+  and leaves the lock free; once the script has deleted migration 2's
+  ledger row, the preview lists 2 as pending and migrate --yes applies it
+  again; and serve runs;
 - with the node paused, a server that cannot renew its registration answers
   503 within 40 s of the pause, before its row can expire (45 s after its
   last renewal, which came up to 5 s before the pause), then tries to
@@ -318,7 +320,23 @@ def main(binary: str, container: str, contact_point: str, port: int) -> int:
             "the reconverge skips migration 2 and does not name 3 or 4, which do not apply",
             output,
         )
-        expect_exit(0, "migrate --forget 2", migrate + ["--forget", "2"], env)
+        # --forget refuses an id the binary does not carry, whatever its
+        # released bound, and leaves the lock free: the migrate --yes below
+        # waits at most 5 s for it.
+        expect_exit(
+            1,
+            "migrate --forget of an id the binary does not carry",
+            migrate + ["--forget", "9999"],
+            env,
+            contains="carries no migration 9999",
+        )
+        # Migration 2 pending: its ledger row deleted (the version row is
+        # left as it was; the next run rewrites it).
+        code, output = cqlsh(
+            container,
+            f"CONSISTENCY QUORUM;\nDELETE FROM {keyspace}.extenddb_migrations WHERE id = 2;\n",
+        )
+        report(code == 0, "the script deletes migration 2's ledger row", output)
         expect_exit(
             3, "the preview lists migration 2 as pending", migrate, env, contains="2 resource_tag_condition_keys"
         )
diff --git a/devtools/check-cassandra-older-binary b/devtools/check-cassandra-older-binary
index 6ea584401..47bcaedc6 100755
--- a/devtools/check-cassandra-older-binary
+++ b/devtools/check-cassandra-older-binary
@@ -1,14 +1,15 @@
 #!/usr/bin/env python3
 # Copyright 2026 ExtendDB contributors
 # SPDX-License-Identifier: Apache-2.0
-"""A Cassandra catalog the last 0.1.x release created, upgraded by this
-binary, and that release run against v1.0 catalogs:
+"""A Cassandra catalog the 0.1.14 release created, upgraded by this
+binary, and that release run against catalogs this binary created or
+migrated:
 
     devtools/check-cassandra-older-binary  <0.1.14 binary> \\
           [port]
 
 <0.1.14 binary> is `extenddb` built from the v0.1.14 tag with
-`--no-default-features --features cassandra` (there is no released Cassandra
+`--no-default-features --features cassandra` (0.1.14 has no Cassandra
 image).  and  are as in
 devtools/check-cassandra-catalog-lock; the node uses PasswordAuthenticator
 with the admin role $CASSANDRA_ADMIN_USER and $CASSANDRA_ADMIN_PASSWORD
@@ -26,12 +27,12 @@ with the admin role $CASSANDRA_ADMIN_USER and $CASSANDRA_ADMIN_PASSWORD
 - Two migrators: on another 0.1.14 catalog, two `migrate --yes` started
   together both exit 0, one applies the migrations and the other waits for
   the lock and finds nothing to do.
-- Older binary: on the fresh and the upgraded v1.0 catalog the 0.1.14 binary
+- Older binary: on the fresh and the upgraded catalog the 0.1.14 binary
   runs `verify`, `migrate --yes` and `serve`. The script prints what each run
   changed and checks what this binary then reports: after a run that wrote
   the catalog, `migrate` and `verify` exit 5 naming WrittenByOlderRelease and
   `migrate --yes --reconverge` restores Current with the schema the catalog
-  had before; the 0.1.14 `serve` refuses a v1.0 catalog.
+  had before; the 0.1.14 `serve` refuses a migrated catalog.
 
 Everything the script creates (roles, keyspaces, the temporary directory) is
 removed at the end. The servers bind 127.0.0.1 only.
@@ -290,7 +291,7 @@ def seed(binary: str, deployment: Deployment, port: int, work: str) -> bool:
 
 
 def older_binary_runs(label: str, d: Deployment, binary: str, old: str, container: str, port: int) -> None:
-    """The 0.1.14 binary's verify, migrate --yes and serve on a v1.0 catalog,
+    """The 0.1.14 binary's verify, migrate --yes and serve on a migrated catalog,
     and what this binary then reports."""
     migrate = [binary, "migrate", "--config", d.config]
     for command in (["verify"], ["migrate", "--yes"], ["serve", "--foreground", "--port", str(port)]):
@@ -313,7 +314,7 @@ def older_binary_runs(label: str, d: Deployment, binary: str, old: str, containe
             # failure (a port in use, a config it cannot parse).
             report(
                 code not in (0, -1) and "resource-tag condition-key migration" in output,
-                f"exit {code}: {label}: the 0.1.14 serve refuses a v1.0 catalog for its marker",
+                f"exit {code}: {label}: the 0.1.14 serve refuses a migrated catalog for its marker",
                 output,
             )
         if not changes:
@@ -324,7 +325,7 @@ def older_binary_runs(label: str, d: Deployment, binary: str, old: str, containe
             f"{label}: after the 0.1.14 {what}, migrate reports WrittenByOlderRelease",
             migrate,
             d.env,
-            contains="a release before 1.0 wrote to this catalog",
+            contains="a release before 0.1.15 wrote to this catalog",
         )
         expect_exit(5, f"{label}: after the 0.1.14 {what}, verify exits 5", [binary, "verify", "--config", d.config], d.env)
         expect_exit(0, f"{label}: migrate --yes --reconverge", migrate + ["--yes", "--reconverge"], d.env)
@@ -355,7 +356,7 @@ def marker_written_by_older_migrate(label: str, d: Deployment, binary: str, cont
         f"{label}: with the 0.1.14 marker row, migrate reports WrittenByOlderRelease",
         migrate,
         d.env,
-        contains="a release before 1.0 wrote to this catalog",
+        contains="a release before 0.1.15 wrote to this catalog",
     )
     expect_exit(5, f"{label}: with the 0.1.14 marker row, migrate --yes refuses", migrate + ["--yes"], d.env)
     expect_exit(0, f"{label}: migrate --yes --reconverge removes the row", migrate + ["--yes", "--reconverge"], d.env)
diff --git a/devtools/check-mongodb-older-binary b/devtools/check-mongodb-older-binary
index f9e77c0a2..03bbbc6a2 100755
--- a/devtools/check-mongodb-older-binary
+++ b/devtools/check-mongodb-older-binary
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 # Copyright 2026 ExtendDB contributors
 # SPDX-License-Identifier: Apache-2.0
-"""Catalogs this binary created and migrated, against the last 0.1.x image:
+"""Catalogs this binary created and migrated, against the 0.1.14 image:
 
     devtools/check-mongodb-older-binary  \\
         [image] [mongo port] [api port]
@@ -146,7 +146,7 @@ def check(label: str, binary: str, image: str, port: int, api: int, fixture: str
         for what, cmd in [("verify", [binary, "verify", "--config", config]),
                           ("migrate preview", [binary, "migrate", "--config", config])]:
             expect_exit(5, f"{label}: {what} after the image wrote to the catalog", cmd, env,
-                        contains="release before 1.0")
+                        contains="release before 0.1.15")
         expect_exit(5, f"{label}: serve after the image wrote to the catalog",
                     [binary, *serve], env, contains="--reconverge", timeout=60)
         expect_exit(0, f"{label}: migrate --yes --reconverge",
diff --git a/devtools/check-postgres-catalog-lock b/devtools/check-postgres-catalog-lock
index b35a9f211..9090533f1 100755
--- a/devtools/check-postgres-catalog-lock
+++ b/devtools/check-postgres-catalog-lock
@@ -12,6 +12,10 @@ database's name is not the one `init` derives from the catalog's, and is
 given as `--data-db=`, so `init` has to create the database it names.
 
 - verify names that data database;
+- when RELEASED_THROUGH in crates/storage/src/migrations/registry.rs is
+  above 0, migrate --forget 1 exits 1, says migration 1 has been released,
+  and leaves both ledgers as they were (the bound is read from the source
+  tree, so run the script from the checkout the binary was built from);
 - the migrate preview and verify run beside a server and exit 0;
 - migrate --yes waits for the server's registration and exits 6, naming
   "extenddb serve", when it outlasts --lock-timeout;
@@ -28,13 +32,16 @@ given as `--data-db=`, so `init` has to create the database it names.
 - with POOLER_URL set to a connection pooler in front of the same server
   (for example postgresql://127.0.0.1:6432, a PgBouncer in transaction mode
   that authenticates roles through auth_query), verify, the preview,
-  migrate --yes, a --reconverge, --forget 3 and its reapplication, and serve
-  run with the catalog reached through the pooler.
+  migrate --yes, a --reconverge, and serve run with the catalog reached
+  through the pooler; --forget of an id the binary does not carry exits 1
+  and leaves the lock free, and migrate --yes applies migration 3 again once
+  the script has deleted its ledger row.
 
 init's HOME points into a temporary directory, so its TLS certificate is not
 written to the caller's home. The server binds 127.0.0.1 only.
 """
 import os
+import re
 import secrets
 import shutil
 import subprocess
@@ -115,6 +122,36 @@ def just_renewed(admin_url: str, stem: str, seconds: float = 40) -> bool:
     return False
 
 
+def released_through() -> int:
+    """RELEASED_THROUGH as the source tree the binary was built from sets
+    it."""
+    registry = os.path.join(
+        os.path.dirname(os.path.realpath(__file__)), "..", "crates", "storage", "src", "migrations", "registry.rs"
+    )
+    with open(registry, encoding="utf-8") as f:
+        bound = re.search(r"pub const RELEASED_THROUGH: u32 = (\d+);", f.read())
+    if bound is None:
+        sys.exit(f"no `pub const RELEASED_THROUGH: u32 = ;` in {registry}")
+    return int(bound.group(1))
+
+
+def ledgers(admin_url: str, stem: str) -> dict:
+    """Every row of the catalog's and the data database's migration
+    ledgers."""
+    rows = {}
+    for database in (f"{stem}_catalog", f"{stem}_items"):
+        conn = psycopg2.connect(f"{admin_url.rstrip('/')}/{database}")
+        try:
+            with conn.cursor() as cur:
+                cur.execute("SELECT to_regclass('extenddb_migrations') IS NOT NULL")
+                if cur.fetchone()[0]:
+                    cur.execute("SELECT * FROM extenddb_migrations ORDER BY id")
+                    rows[database] = cur.fetchall()
+        finally:
+            conn.close()
+    return rows
+
+
 def main(binary: str, admin_url: str, port: int) -> int:
     binary = os.path.realpath(binary)
     admin = urllib.parse.urlsplit(admin_url)
@@ -153,6 +190,19 @@ def main(binary: str, admin_url: str, port: int) -> int:
             env,
             contains=f"Connected to data database '{stem}_items'",
         )
+        released = released_through()
+        if released > 0:
+            before = ledgers(admin_url, stem)
+            expect_exit(
+                1,
+                f"migrate --forget 1 with migrations 1 to {released} released",
+                migrate + ["--forget", "1"],
+                env,
+                contains=f"migration 1 has been released; only migrations above {released} can be forgotten",
+            )
+            report(ledgers(admin_url, stem) == before, "the refused --forget leaves both ledgers as they were")
+        else:
+            print("skip migrate --forget of a released id: RELEASED_THROUGH is 0")
 
         log = os.path.join(work, "serve.log")
         server = start(serve, env, log)
@@ -310,7 +360,7 @@ def main(binary: str, admin_url: str, port: int) -> int:
 
         pooler = os.environ.get("POOLER_URL", "").strip().rstrip("/")
         if pooler:
-            through_pooler(binary, env, work, pooler, stem, app_password, port, servers)
+            through_pooler(binary, env, work, pooler, admin_url, stem, app_password, port, servers)
         else:
             print("skip the pass through a connection pooler: POOLER_URL is not set")
     finally:
@@ -328,6 +378,7 @@ def through_pooler(
     env: dict,
     work: str,
     pooler: str,
+    admin_url: str,
     stem: str,
     app_password: str,
     port: int,
@@ -366,7 +417,26 @@ def through_pooler(
         "the reconverge through the pooler ran migrations 1, 3, 4, 5 and 9 again and skipped 2",
         output,
     )
-    expect_exit(0, "migrate --forget 3 through the pooler", migrate + ["--forget", "3"], env)
+    # --forget refuses an id the binary does not carry, whatever its released
+    # bound, and leaves the lock free: the migrate --yes below waits at most
+    # 5 s for it through the pooler.
+    expect_exit(
+        1,
+        "migrate --forget of an id the binary does not carry, through the pooler",
+        migrate + ["--forget", "9999"],
+        env,
+        contains="carries no migration 9999",
+    )
+    # Migration 3 pending: its ledger row deleted (the version row is left
+    # as it was; the next run rewrites it).
+    conn = psycopg2.connect(f"{admin_url.rstrip('/')}/{stem}_catalog")
+    conn.autocommit = True
+    try:
+        with conn.cursor() as cur:
+            cur.execute("DELETE FROM extenddb_migrations WHERE id = 3")
+            report(cur.rowcount == 1, "the script deletes migration 3's ledger row")
+    finally:
+        conn.close()
     expect_exit(
         0,
         "migrate --yes applies migration 3 again through the pooler",
diff --git a/devtools/check-postgres-older-binary b/devtools/check-postgres-older-binary
index 6fd2a446b..323d4b11d 100755
--- a/devtools/check-postgres-older-binary
+++ b/devtools/check-postgres-older-binary
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 # Copyright 2026 ExtendDB contributors
 # SPDX-License-Identifier: Apache-2.0
-"""A PostgreSQL catalog this binary migrated, against the last 0.1.x image:
+"""A PostgreSQL catalog this binary migrated, against the 0.1.14 image:
 
     devtools/check-postgres-older-binary   \\
          [image] [port]
@@ -14,7 +14,7 @@ catalog.sql and data.sql (crates/storage-postgres/tests/fixtures/released/).
 Two deployments: a fresh one from this binary's `init`, and the fixture
 loaded into new databases and upgraded with this binary's `migrate --yes`.
 On each, the image runs `verify`, then `migrate --yes`, then `serve`, and
-each must end as the last 0.1.x release does on a v1.0 catalog: `verify`
+each must end as the 0.1.14 release does on a migrated catalog: `verify`
 exits 1 and writes nothing, `migrate --yes` exits 0 and writes the catalog,
 and `serve` refuses and exits 1 by itself. For every run
 the script prints what changed in the settings rows, the ledgers and the
@@ -235,7 +235,7 @@ def check_case(label: str, d: Deployment, binary: str, image: str, name: str, wo
             continue
         code, out = run([binary, "migrate", "--config", config], env)
         report(
-            code == 5 and "a release before 1.0 wrote to this catalog" in out,
+            code == 5 and "a release before 0.1.15 wrote to this catalog" in out,
             f"exit {code}: {label}: after the image's {what}, migrate reports WrittenByOlderRelease",
             out,
         )
diff --git a/devtools/check-sqlite-older-binary b/devtools/check-sqlite-older-binary
index 8b2bd0b5f..07666e6d6 100755
--- a/devtools/check-sqlite-older-binary
+++ b/devtools/check-sqlite-older-binary
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 # Copyright 2026 ExtendDB contributors
 # SPDX-License-Identifier: Apache-2.0
-"""A catalog this binary migrated, against the last 0.1.x dev image:
+"""A catalog this binary migrated, against the 0.1.14 dev image:
 
     devtools/check-sqlite-older-binary   \\
         [image] [port]
@@ -173,10 +173,10 @@ def check(label: str, kind: str, source: str, binary: str, image: Image, work: s
     for line in changes:
         print(f"     | {line}")
     output = expect_exit(
-        5, "migrate reports a catalog a release before 1.0 wrote to",
+        5, "migrate reports a catalog a release before 0.1.15 wrote to",
         [binary, "migrate", "--config", config],
     )
-    if "a release before 1.0 wrote to this catalog" not in output:
+    if "a release before 0.1.15 wrote to this catalog" not in output:
         report(False, "the preview does not name WrittenByOlderRelease", output)
     expect_exit(5, "verify reports it", [binary, "verify", "--config", config])
     dev_bin = os.environ.get("DEV_BIN", "")
diff --git a/devtools/release-dry-run b/devtools/release-dry-run
index 7f34ec89b..246ea313c 100755
--- a/devtools/release-dry-run
+++ b/devtools/release-dry-run
@@ -351,7 +351,14 @@ if [[ $CRATES == 1 ]]; then
         printf '%s\n' "$RUST_TOOLCHAIN" > "$WORK/crate-sha256/TOOLCHAIN"
         local packages=()
         while IFS= read -r line; do packages+=("$line"); done < "$WORK/crate-sha256/packages.txt"
-        (cd target/package && sha256sum -- "${packages[@]}") | tee "$WORK/crate-sha256/SHA256SUMS"
+        # cargo package writes under the target directory, which
+        # CARGO_TARGET_DIR or a config file can move; read it from cargo, as
+        # devtools/check-crate-packages does.
+        local target_dir
+        target_dir=$(cargo metadata --no-deps --format-version 1 \
+            | "$PYTHON" -c 'import json, sys; print(json.load(sys.stdin)["target_directory"])')
+        [[ -n "$target_dir" ]] || { echo "cargo metadata names no target directory"; return 1; }
+        (cd "$target_dir/package" && sha256sum -- "${packages[@]}") | tee "$WORK/crate-sha256/SHA256SUMS"
     }
     run "crates: SHA-256 record" crates-sha256.log -- crate_sha256
 fi
diff --git a/docker/README-cassandra.md b/docker/README-cassandra.md
index 583fbf67f..fb39e9282 100644
--- a/docker/README-cassandra.md
+++ b/docker/README-cassandra.md
@@ -65,7 +65,7 @@ default, `init` grants nothing, because every login role, including the
 application role, can then read and drop any keyspace and change any role's
 password, the superuser's included; use such a cluster for ExtendDB alone.
 Anyone who can read `extenddb.toml` holds the application role's password.
-A deployment created before 1.0 under `CassandraAuthorizer` needs the GRANT
+A deployment created before 0.1.15 under `CassandraAuthorizer` needs the GRANT
 statements in `docs/manuals/07-upgrade-manual.md` before it is upgraded.
 
 Run `extenddb init` once against a writable state volume. It connects as a
diff --git a/docker/README.md b/docker/README.md
index 45b66d359..0b5aeecf6 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -158,9 +158,9 @@ all the schema work, so it needs no credential the serving container lacks.
 To have it create the pgvector extension as well, add
 `--pg-user ` and inject `EXTENDDB_PG_PASSWORD` from the
 orchestrator's secret store into the Job only; without them the Job reports
-whether pgvector is available and goes on. A backup taken by a 0.1.x release
-can restore without its secondary indexes, so take a new backup of each table
-after the upgrade.
+whether pgvector is available and goes on. A backup taken by 0.1.14 or an
+earlier release can restore without its secondary indexes, so take a new
+backup of each table after the upgrade.
 
 ### Steady state
 
diff --git a/docker/dockerhub-overview-cassandra.md b/docker/dockerhub-overview-cassandra.md
index 26a80427c..66d6cc595 100644
--- a/docker/dockerhub-overview-cassandra.md
+++ b/docker/dockerhub-overview-cassandra.md
@@ -100,18 +100,24 @@ Pin `X.Y.Z` or a digest for production; a version tag is never overwritten.
 `sha-` are unpromoted build candidates, not releases. Both
 `linux/amd64` and `linux/arm64` ship as one multi-architecture index.
 
-Every published image is signed with ExtendDB's release key, an elliptic-curve
-P-256 key held in the AWS Key Management Service. The public key is committed
-in the repository as
-[`extenddb-signing.pub.pem`](https://github.com/ExtendDB/extenddb/blob/main/extenddb-signing.pub.pem).
-Verify an image before deploying it:
+Every published image is signed keyless with Sigstore cosign, with a Rekor
+transparency-log entry: the certificate names the GitHub Actions workflow and
+ref that signed the image, and no public key is needed. Verify an image before
+deploying it:
 
 ```console
-cosign verify --key extenddb-signing.pub.pem \
+cosign verify \
+  --certificate-identity-regexp '^https://github\.com/ExtendDB/extenddb/\.github/workflows/(release-image|sign-image)\.yml@refs/heads/main$' \
+  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
   docker.io/extenddb/extenddb-cassandra:X.Y.Z
 ```
 
-The same images and their signatures are mirrored by digest to
+The signer identity separates tiers: routine backend releases are signed by
+`release-image.yml` and routine dev releases by `release-dev-image.yml`, so
+this pattern rejects a routinely-signed dev image. The break-glass signer
+`sign-image.yml` can sign any tier, so it is the one identity both patterns
+share; drop it to pin verification to the routine per-tier path. The same
+images and their signatures are mirrored by digest to
 `ghcr.io/extenddb/extenddb-cassandra` and
 `public.ecr.aws/extenddb/extenddb-cassandra`.
 
diff --git a/docs/cassandra-setup.md b/docs/cassandra-setup.md
index 884bbe16c..7dfcdeb09 100644
--- a/docs/cassandra-setup.md
+++ b/docs/cassandra-setup.md
@@ -98,7 +98,7 @@ side, build one binary per backend.
 
 ## Container Image
 
-Starting with ExtendDB 1.0, the `extenddb/extenddb-cassandra` image is
+From release 0.1.15 on, the `extenddb/extenddb-cassandra` image is
 published to Docker Hub, GHCR and ECR Public. It contains this build of
 ExtendDB and no Cassandra server, client or Java runtime; Cassandra stays a
 separate service. [`docker/README-cassandra.md`](../docker/README-cassandra.md) covers
diff --git a/docs/design/04-component-storage.md b/docs/design/04-component-storage.md
index 56fbfca10..69659cfce 100755
--- a/docs/design/04-component-storage.md
+++ b/docs/design/04-component-storage.md
@@ -574,7 +574,8 @@ The catalog migrations are the numbered list every backend shares
 binary at compile time via `include_str!`. The shared runner applies them in id order and records
 each body in the `extenddb_migrations` ledger of the database it changed, and every id in the
 catalog's ledger. The
-`schema_history` table of a 0.1.x catalog stays in place and is not read.
+`schema_history` table of a catalog that 0.1.14 or an earlier release
+created stays in place and is not read.
 
 Migration files are named by id:
 ```
diff --git a/docs/design/15-backup-restore.md b/docs/design/15-backup-restore.md
index bba81c5bc..a59888628 100644
--- a/docs/design/15-backup-restore.md
+++ b/docs/design/15-backup-restore.md
@@ -479,11 +479,11 @@ Interfaces it adds:
         // revision item 36)
 ```
 `backup sync` and its options, each with its contract: Sync lists the root (every object, since the trait has no delimiter listing; the store lists in key order, so sync holds one prefix's objects at a time and the prefix of each manifest it listed, beside what it keeps of the root's rows, whose read is its larger cost (section 7), the reserved `changelog` and `exports/` components skipped; a filesystem store builds its own listing of the root first, section 7), checks each prefix against the catalog as the listing reaches it, reads the manifest and sidecar of the prefixes that have no row, and inserts an AVAILABLE row for each verified manifest whose data files the listing contains, every `data_files` key present with its `bytes`, with an insert-if-absent (`BackupCatalog::insert_backup_row`): a CreateBackup whose row landed between the check and the insert keeps its row and sync skips the prefix. Before adopting, sync parses the manifest's `backup_arn` with the one `BackupArn` type in `extenddb-core` and requires the parsed account, table and backup id to equal the listed path components and the `source_table` identity; a mismatch is logged and skipped. A manifest whose ARN is in another region is adopted under this server's region's spelling of the ARN and logged: the row carries the ARN this server issues, so `ListBackups` names this server's region and requests resolve the backup under either spelling, and the manifest keeps its own; the dead-owner probe and the restore accept a manifest whose ARN differs from the row's in the region alone (`BackupArn::names_same_backup`). One of another partition than `aws` is skipped, since every request refuses such an ARN before it reads a row (revision item 34). `--move-store ` re-points the rows of that root to the configured store. It needs the configured store healthy, refuses the configured root and a root with no rows, and its wait covers the jobs of every store id the catalog records for the old root as well as the configured store's (revision item 36). It first resolves that root's CREATING and DELETING rows itself, against the configured store: a CREATING row whose owner is dead becomes AVAILABLE if a verified manifest is there, and otherwise stops the move with no status written, since a copy without the complete backup says nothing about the old root's prefix (revision item 36), and a DELETING row whose prefix there holds no verified manifest has its deletion finished in the configured store (a manifest that fails verification is a leftover the deletion removes). For each AVAILABLE row it compares the configured store's listing of the row's prefix with the manifest's `data_files` (every key present, with its `bytes`) as well as checking the verified manifest and that its size and item total are the row's, and stops on a row whose copy is incomplete, naming it (every row that stops the move is named in one run, and none moves while any does; a row that would give an account two rows of one backup id stops it too); `--forget-backup ` deletes one row's catalog entry so the move can go ahead for the rest; it runs under the maintenance claim like the other commands, refuses a CREATING row with a live owner (the job's next conditional write would match nothing and its manifest would be adopted by the next sync), a FAILED row whose heartbeat is within `stale_job_after_secs` (its job may still write under the prefix) and a backup in use, one from which a restore target is CREATING, and for a legacy ARN, which has no new-format row, says so and does nothing. One rule covers the three tombstone states: the move refuses to carry a DELETING, DELETED or FAILED row whose prefix in the configured store holds a verified manifest, and names it (that prefix is a backup the operator copied before or during its deletion, not a leftover). For a FAILED row the way out is `--forget-backup` on the row, and the next sync adopts the prefix; for a DELETING or DELETED row the backup was deleted, so the way out is to remove that prefix from the configured root and run the move again (`--forget-backup` on the row would have the next sync adopt the deleted backup again). Then, after one re-read of the configured root's identity file (the deletion fence's `check_catalog`), it rewrites `store_kind`, `store_root` and `store_id` of the rows still of the old root and not CREATING, in slices of 500 keys (one key per call on Cassandra, which rewrites key by key) with the maintenance claim confirmed before each 500 keys and read, with no write, before every call, and lists the old root again, reporting a row still there; the reconciler then cleans the leftovers of the moved tombstones in the configured store. `--move-store` and `--forget-store` match `store_root` exactly as stored, the `?endpoint=` suffix of an S3 root included. A root whose file names another catalog stays unhealthy until an operator adopts it with `backup sync --adopt-store`, which takes the maintenance claim, rewrites the file's owner to this catalog and then syncs, recording the file's store id on the rows it adopts (the `backup_index` row PR 9b's matrix seeds by hand is the row this adoption writes); the previous owner acts on the root until a later check that can read its catalog finds the store unhealthy, at the earliest one reconciler interval after the cycle in progress ends, unless its deletion fence (section 4(c)) refuses a deletion or a CreateBackup first, so every server of the previous catalog is stopped before the adoption. On `sqlite-memory` the catalog, and with it the `catalog_id`, is new at every start, so the server runs a plain `backup sync` itself at startup when a store is configured, which adopts a root whose file names a `sqlite-memory` catalog as `--adopt-store` does, rewriting the file's owner to the new `catalog_id` before it syncs, so the root has one owner at a time there too once the previous process has exited (a new in-memory server is started only after the old one has exited; one started beside it adopts the root while the old one still acts on it until a later check or its fence); a root owned by any other catalog is unhealthy there as anywhere, and the backup CLI commands do not exist there (no file to open), so that startup sync is the only catalog-loss recovery there.
-`migrate-legacy`: PR 10 adds `extenddb backup migrate-legacy |--all`, which streams a legacy backup through the frozen reader's item stream, checking each item with the backup job's item validator (5.1 step 4), into `DataFileEncoder` and the configured store under the legacy backup id, so the ARN survives, with a manifest whose `snapshot.kind` says it is a copy of an in-catalog backup (`legacy_in_catalog`, no marker). Before it inserts the AVAILABLE row or deletes anything it re-reads the manifest it wrote through `ExtenddbManifest::from_json_bytes` (as implemented through `verify_prefix`, sync's check) and checks that the manifest's item count equals the legacy backup's; only then does it replace the legacy backup by its row, in one step per backend through `LegacyBackupReader::replace_with_index_row` rather than an insert and the reader's `delete` (revision item 37). It refuses a backup, keeping its legacy rows, deleting the objects it wrote and naming the reason, when the id has the 13-digit shape a 0.1.x release issued (13 digits with a hex suffix, or 13 bare digits), which the manifest parser refuses (section 4; that is every backup a 0.1.x release took), when the validator refuses an item (a value #618 let in, which main's legacy restore copies as stored), and when it cannot state the definition (a pre-0.0.4 SQLite backup recorded no vector state, so `vector_indexes` would be a guess); the way out for such a backup is to restore it through the legacy reader and take a new backup of the restored table, which has a new ARN (section 10). As implemented it also refuses a table name the store-prefix rules refuse, a backup name the manifest refuses, a MongoDB backup with no item collection, what the legacy restore refuses (a vector index, a multi-part base key) and an ARN a row of another store holds, and skips a CREATING or DELETING in-catalog backup (revision item 37).
+`migrate-legacy`: PR 10 adds `extenddb backup migrate-legacy |--all`, which streams a legacy backup through the frozen reader's item stream, checking each item with the backup job's item validator (5.1 step 4), into `DataFileEncoder` and the configured store under the legacy backup id, so the ARN survives, with a manifest whose `snapshot.kind` says it is a copy of an in-catalog backup (`legacy_in_catalog`, no marker). Before it inserts the AVAILABLE row or deletes anything it re-reads the manifest it wrote through `ExtenddbManifest::from_json_bytes` (as implemented through `verify_prefix`, sync's check) and checks that the manifest's item count equals the legacy backup's; only then does it replace the legacy backup by its row, in one step per backend through `LegacyBackupReader::replace_with_index_row` rather than an insert and the reader's `delete` (revision item 37). It refuses a backup, keeping its legacy rows, deleting the objects it wrote and naming the reason, when the id has the 13-digit shape that 0.1.14 and earlier releases issued (13 digits with a hex suffix, or 13 bare digits), which the manifest parser refuses (section 4; that is every backup those releases took), when the validator refuses an item (a value #618 let in, which main's legacy restore copies as stored), and when it cannot state the definition (a pre-0.0.4 SQLite backup recorded no vector state, so `vector_indexes` would be a guess); the way out for such a backup is to restore it through the legacy reader and take a new backup of the restored table, which has a new ARN (section 10). As implemented it also refuses a table name the store-prefix rules refuse, a backup name the manifest refuses, a MongoDB backup with no item collection, what the legacy restore refuses (a vector index, a multi-part base key) and an ARN a row of another store holds, and skips a CREATING or DELETING in-catalog backup (revision item 37).
 The maintenance claim per backend and the SQLite serve lock (4(f) states the rules): On PostgreSQL the claim is an advisory lock keyed `hashtextextended('backup_maintenance', RESTORE_LOCK_SEED)` (`MAINTENANCE_LOCK_KEY`), held exclusively on the command's dedicated connection, with the `backup_maintenance` row carrying the holder, the generation and the heartbeat; a job tests the lock with `pg_try_advisory_xact_lock_shared` in one autocommit statement, so the shared lock ends with the statement, and then reads the row's heartbeat age, so a holder whose session ended is still seen held until its heartbeat is older than `stale_job_after_secs`; a command's take tries the exclusive lock a few times over about 10 ms on its connection, so a job's one-statement shared lock does not refuse it, and with the lock taken refuses while the row's heartbeat is younger than `stale_job_after_secs`, as the other backends' take does (revision item 37): a holder whose session ended may run until its next beat. On MongoDB it is a document in a `backup_maintenance` collection, claimed and heartbeated like a job row (5.1 step 3) and held while its heartbeat is younger than `stale_job_after_secs`; on Cassandra a `backup_maintenance` row claimed by lightweight transaction with a coordinator-clock heartbeat, read by jobs at `LOCAL_SERIAL`. On SQLite every backup CLI command that writes the catalog takes the database's serve lock, as `destroy` and `migrate` do, so the server must be stopped first and no other claim is needed; with the serve lock held every job owner is dead, and so is the holder of any maintenance claim row, which such a command takes over whatever its heartbeat says; before the wait it runs the reconciler's dead-owner resolutions itself, as the claim's holder (the cycle takes the held branch without reading the claim back through the zero window) (a CREATING backup row to AVAILABLE or FAILED, a RUNNING restore to FAILED with its target removed, a DELETING row finished) and then waits and removes CREATING rows with a zero stale window, so a job the stop interrupted never makes it wait or refuse whatever its heartbeat says (a RUNNING `manifest` restore, which PR 9a introduces, is the exception revision item 29 states), and a server starting under the serve lock removes a maintenance claim a stopped command left; `backup list` is a read and runs beside a server.
 
 State transitions it owns: a prefix to an AVAILABLE row (adoption); CREATING or DELETING rows of a moved root resolved by `--move-store`; rows deleted outright by `--prune-missing` (AVAILABLE rows whose manifest is gone), `--forget-store` and `--forget-backup`; a FAILED restore's CREATING target removed by `remove-target`; legacy rows replaced by an AVAILABLE, unowned row by `migrate-legacy`, in one step per backend (revision item 37).
-Documentation rows it corrects: upgrade manual: on SQLite the backup CLI commands that write the catalog take the serve lock, so the server is stopped for `backup sync` and its options and for `purge` (section 4); legacy backups are carried forward with `backup migrate-legacy` (above), and one it refuses (an id of the 13-digit shape a 0.1.x release issued, an item the validator refuses, a pre-0.0.4 SQLite definition) is carried forward by restoring it and taking a new backup, which has a new ARN; a store owned by another catalog is adopted only with `backup sync --adopt-store`.
+Documentation rows it corrects: upgrade manual: on SQLite the backup CLI commands that write the catalog take the serve lock, so the server is stopped for `backup sync` and its options and for `purge` (section 4); legacy backups are carried forward with `backup migrate-legacy` (above), and one it refuses (an id of the 13-digit shape that 0.1.14 and earlier releases issued, an item the validator refuses, a pre-0.0.4 SQLite definition) is carried forward by restoring it and taking a new backup, which has a new ARN; a store owned by another catalog is adopted only with `backup sync --adopt-store`.
 
 ### PR 11: CI and documentation
 
diff --git a/docs/differences-from-dynamodb.md b/docs/differences-from-dynamodb.md
index db9b3db30..c44479284 100755
--- a/docs/differences-from-dynamodb.md
+++ b/docs/differences-from-dynamodb.md
@@ -110,7 +110,7 @@ from a request sent to that service or backend.
 
 ## Backup and Restore
 
-Behaviour stated as measured, and every number below, was observed with release builds of this branch for each backend (PostgreSQL, SQLite, MongoDB, Cassandra) on one host with the database on loopback, except where a row says otherwise, so timings say how the backends compare, not what a networked deployment will see. Numbers marked *(earlier build)* were measured on an earlier build of this branch and not repeated on the final one. Sentences marked *(from the code)* rest on reading the code and on storage-level tests, not on a running server.
+Behaviour stated as measured, and every number below, was observed with release builds for each backend (PostgreSQL, SQLite, MongoDB, Cassandra) on one host with the database on loopback, except where a row says otherwise, so timings say how the backends compare, not what a networked deployment will see. Numbers marked *(earlier build)* were measured on an earlier build and not repeated on the final one. Sentences marked *(from the code)* rest on reading the code and on storage-level tests, not on a running server.
 
 | Area | DynamoDB | ExtendDB |
 |------|----------|------|
@@ -131,7 +131,7 @@ Behaviour stated as measured, and every number below, was observed with release
 | Concurrent restores of one backup | A second `RestoreTableFromBackup` of a backup while a restore from it is still `CREATING` is `BackupInUseException` (measured) | The same on all four backends: the second restore is refused with `BackupInUseException` and creates nothing; the check runs inside the transaction that registers the restore (PostgreSQL, with the backup row locked `FOR UPDATE`; SQLite), inside the claim on the backup document followed by a check for a `CREATING` target of the backup (MongoDB), or inside the lightweight transaction on the backup row (Cassandra), so two simultaneous requests cannot both pass. For a store-backed restore the registration takes the same lock on the `backup_index` row instead of the legacy `backups` row (PostgreSQL `SELECT ... FOR UPDATE`, SQLite the `BEGIN IMMEDIATE` write transaction, MongoDB a `$inc lock_seq` on the `backup_index` document, Cassandra the `active_restores` lightweight transaction on the backup's partition), the same ordering guarantee, so a legacy restore and a store-backed restore of two different backups never contend and a `DeleteBackup` of a store-backed backup meets only store-backed registrations. Two concurrent registrations of one backup leave one restore target on Cassandra as on MongoDB: the registration's lightweight transaction (`IF backup_status = 'AVAILABLE' AND active_restores = null`) is linearized on the backup's partition, so the second finds `active_restores` non-null and is `BackupInUseException`; the in-use pre-read is advisory *(storage-level tests on both)*. Once the first target is `ACTIVE` the backup restores again; on MongoDB the check reads majority-committed data (at the default transaction read concern) while `DescribeTable` reads at `local`, so a `RestoreTableFromBackup` or `DeleteBackup` issued within the majority-commit lag after `DescribeTable` first shows the target `ACTIVE` can still be `BackupInUseException` and succeeds when retried (the lag is the journal flush plus any concurrent batch write still holding an earlier oplog slot; measured at 7 to 12 ms, once in about 2,000 observations, with a 3,000-item insert running beside the write). A restore of a backup whose `DeleteBackup` is in progress answers `BackupNotFoundException` on every backend (the service's answer was not measured), by two mechanisms: on MongoDB and Cassandra the delete marks the backup `DELETING` before it drops the data, and the restore finds no `AVAILABLE` backup; on PostgreSQL and SQLite the restore waits for the delete's transaction and then finds no backup. Earlier builds accepted concurrent restores of one backup on PostgreSQL, SQLite, and Cassandra, and on MongoDB after a 2 s retry |
 | Restore interrupted by the server stopping | Managed by the service | The copy runs in the server process, so a stopped process leaves its target `CREATING` with a RUNNING restore job record whose heartbeat stops. The engine's reconciler, once at startup and then every `backup.reconcile_interval_secs` (default 60 s), marks the record FAILED and removes the target once the heartbeat is older than `backup.stale_job_after_secs` (default 300 s) on the database's clock, on every backend alike, logs the removal with the table name, and then lets `DeleteBackup` and a new restore into the name succeed *(from the code)*. On SQLite a restart ages every record of the stopped process at once (one process serves the file), so the first cycle removes it without the stale window. Until then `DeleteTable` and `DeleteBackup` are refused as during a running restore. A store-backed restore (one run from a `[backup.store]`) is instead resumed, not discarded: its owner's death leaves a RUNNING restore job record with a stale heartbeat and the target `CREATING`, and the reconciler of any instance with the configured store takes the record over under a fresh owner generation once the heartbeat is stale (on SQLite at once after a restart, by the record's slot; on PostgreSQL once the owner's claim session has ended as well), stamping a fresh heartbeat in the same write so no second instance takes it too, and resumes the load from its recorded progress (per data file on PostgreSQL, per batch on SQLite, MongoDB and Cassandra), re-downloading to its own spool when the dead owner's `spool_host` is not this host's; the target reaches `ACTIVE` with the backup's full item count, its secondary indexes complete: a resumed Cassandra restore re-applies its last batch as idempotent upserts that rewrite the same base and index rows (the write path rewrites an unchanged item's GSI and LSI rows rather than deleting them, #424). A resume that finds no recorded progress and a target holding more items than the backup's total is `FAILED` with reason `target_not_empty` and the target is left in place: the rule protects a catalog restored from a dump that names a restore which finished and was written to since. A target holding no more than the total with no recorded progress is a first data file applied in part: on Cassandra, which records a batch's progress after its writes, an ordinary crash before the first progress record (the first 10,000 items or 32 MiB) leaves written items and no progress, and the resume re-applies the first file with idempotent upserts and reaches `ACTIVE` with the exact count *(from the code; the storage and engine cells)*. MongoDB records each batch's documents and its progress in one transaction, so a mid-file crash leaves no items the record does not account for and resumes to `ACTIVE`; only a crash before the first batch commits leaves an empty target, which resumes from the start. A record that one instance's reconciler has taken over five times without the restore ending (a resume whose final count or progress read fails every time, or that stops with the record RUNNING) is failed on the next takeover with reason `owner dead: taken over 5 times by one instance without the restore ending` and its target removed, so a record that can never finish does not hold its name and its backup for as long as the server runs; the count is per instance and a restart starts it over *(from the code)*. The target stays `CREATING` with a `FAILED` record: `DeleteTable` on it is `ResourceInUseException`, `DeleteBackup` of its backup and a second restore of that backup are `BackupInUseException`, and the reconciler does not remove it; `extenddb backup remove-target --account  ` (the admin guide's `backup` section) removes the target and its record, after which `DeleteBackup` and a new restore into the name succeed. A legacy (in-catalog) restore is still failed and its target removed. Measured *(binary-level, this release)*: SIGTERM during a store-backed restore left the record RUNNING and the restarted server resumed it to `ACTIVE` with every item (on PostgreSQL after the 45 s stale window, on SQLite at once); a SIGKILL at each restore kill point left the target to finish with the exact count (the base table's and the GSI's) or, for a failing restore, gone, except at the first reach of the Cassandra point that pauses before a batch's first progress record: on Cassandra (killed after the first batch's 10,000 upserts, before their record) the resume of that build answered `target_not_empty` and left the target `CREATING`, and `extenddb backup remove-target` then removed it, after which `DescribeTable` was `ResourceNotFoundException` and `DeleteBackup` succeeded; this release resumes that case with upserts to `ACTIVE` *(from the code; the nightly kill-point job runs it)*. On MongoDB a SIGKILL after a file's `insert_many` leaves the batch's items and its progress committed together, so the resume continues to `ACTIVE` rather than `target_not_empty`. Not covered *(from the code)*: on MongoDB, a target whose base copy had finished has its record DONE and is left alone by the reconciler; the index backfill worker finishes it after a restart, and if that backfill fails on every attempt the worker retries it every 5 s with a warning and never gives up, so the target stays `CREATING` (and `DeleteTable` and `DeleteBackup` stay refused) until the cause is fixed or the target's catalog document is removed by hand (no failing case was found to reproduce this). A target left `CREATING` by a build before this release is backfilled by the catalog migration as a RUNNING record with a heartbeat at the epoch, so the first cycle removes it. Heartbeats and the stale window are measured on the database server's clock, so the application hosts' clocks play no part. The same reconciler resolves a store-backed `CreateBackup` the server stopped (one reconciler with one duty list, in place of per-backend sweeps): a `CREATING` backup row whose owner is dead (on PostgreSQL and MongoDB a heartbeat older than `stale_job_after_secs`, on PostgreSQL once the owner's claim session has ended as well; on SQLite, where one process serves the file, every `CREATING` row after a restart and, at runtime, a row whose in-process slot no task holds, so a job task that died is resolved by the next cycle without a restart) is taken over under a fresh owner generation and becomes `AVAILABLE` when a complete, verified manifest is under its prefix in the configured store (the process died between the manifest write and the status write) and `FAILED` otherwise, never continuing the upload; the objects of a `FAILED` backup are deleted once its heartbeat is older than `stale_job_after_secs`; a `DELETING` backup's deletion is finished; a `DELETED` backup's prefix that still lists objects is swept; and `FAILED` and `DELETED` rows are removed once their prefix is empty and their `completed_at` is older than `failed_row_retention_secs` (7 days). Measured *(binary-level, this release)*: SIGKILL between the data file and the manifest left the row `CREATING` and the data file under the prefix, and after the restart the row was `FAILED` in the first cycle on SQLite and 46 s after the kill on PostgreSQL (`stale_job_after_secs = 45`), with the prefix deleted in the same cycle on PostgreSQL (the stale heartbeat is what made the owner dead) and once the dead owner's heartbeat was stale on SQLite, 45 s after the kill (the slot made the owner dead at once; the prefix waits for the heartbeat clock on every backend); the same at a kill between the three documents and the manifest, which leaves the documents under the prefix and no manifest; SIGKILL between the manifest write and the status write left the five objects, and the row was `AVAILABLE` with the manifest's size and count after the restart (SQLite at once, PostgreSQL after 48 s); SIGTERM during an upload left the row `FAILED` with reason `shutdown` and an empty prefix. These duties run only while the configured store is healthy, and under a maintenance claim only the dead-owner and `DELETING` duties run. A `FAILED` backup is `BackupNotFound` to clients; `extenddb backup list --failed` prints it with its reason |
 | Point-in-time recovery | 35-day window: `UpdateContinuousBackups` enables continuous backups, and `RestoreTableToPointInTime` restores to any second in the window | Not supported; use on-demand backups (`CreateBackup` and `RestoreTableFromBackup`) instead. `DescribeContinuousBackups` reports `ContinuousBackupsStatus: ENABLED` (the service reports this unconditionally) with `PointInTimeRecoveryStatus: DISABLED` and no restorable-time window. `UpdateContinuousBackups` with `PointInTimeRecoveryEnabled: true` returns `ContinuousBackupsUnavailableException`; with `false` it returns the same description. `RestoreTableToPointInTime` returns `PointInTimeRecoveryUnavailableException`, the exception the service models on that operation, for every request. Both refusals carry "Point-in-time recovery is not supported by this storage backend" and come after authentication and before authorization. They read only the operation name and, for `UpdateContinuousBackups`, `PointInTimeRecoveryEnabled`, so every caller gets them, with or without permissions, and no table is read. An `UpdateContinuousBackups` whose `PointInTimeRecoveryEnabled` is not `true` or `"true"` goes to authorization and the request's checks as before. The service authorizes first: a caller with no policy is denied on `dynamodb:Scan` on the restore's target table, and a caller with permissions gets the request's checks and "Point in time recovery is not enabled for table ''". A table that does not exist is `TableNotFoundException` ("Table not found: ") on `DescribeContinuousBackups` and on a disable, as on the service. Same on all four backends |
-| Where backups live | Managed storage, independent of the table | With a configured `[backup.store]` (a filesystem root, which is the default beside a SQLite database file, or an S3 bucket and prefix) on PostgreSQL, SQLite and MongoDB: under the store's root, at `/
//`, as gzip data files of DynamoDB JSON lines (`data/000001.json.gz`, ...) and the manifest documents (`extenddb-manifest.json` last, the commit record), with a `backup_index` row in the catalog as the index; a lost database loses the rows, not the bytes (`extenddb backup sync` gives a new catalog a row for each backup under the root, and `--adopt-store` first makes it the owner of a root another catalog owned; a root copied to a new place keeps its backups' ARNs once `--move-store` re-points their rows). A prefix copied from a server of another region, whose manifest spells its ARN in that region, is adopted under this server's region: its row carries the ARN this server issues, so `ListBackups` names this server's region (every `ListBackups` answer measured on the service names the endpoint's region) and `DescribeBackup`, `RestoreTableFromBackup` and `DeleteBackup` find it under either region's spelling, as they find the backups this server made and as the service finds a backup under another region's spelling of its ARN (measured; `DescribeBackup` answers with this server's spelling, as it does for this server's own backups, where the service echoes the spelling sent); the manifest keeps the spelling it was written with, and so does the source table's ARN, which `DescribeBackup`'s `SourceTableDetails.TableArn`, `ListBackups`' `BackupSummaries[].TableArn` and the restore's `RestoreSummary.SourceTableArn` answer in the manifest's region (a backup this server made names this server's region in every ARN it answers); the restore and the reconciler accept a manifest whose ARN differs from the row's in the region alone. `extenddb backup migrate-legacy ` or `--all` copies in-catalog backups into the store under their own ARNs, refusing the ones a 0.1.x release took (their backup ids have the 13-digit shape a 0.1.x release issued, and a store prefix carries only the 14-digit shape). Without a store, and on Cassandra always, inside the database the server already uses, so a lost database loses its backups too: on PostgreSQL in the catalog database (`backups`, `backup_items`, `backup_definitions`, `table_restores`), on SQLite in the one database file, on MongoDB as a `backups` metadata collection in the catalog database and one data collection per backup in the data database, on Cassandra as backup metadata in the catalog keyspace and item payloads in the account's keyspace; take database-level backups for off-host copies there | +| Where backups live | Managed storage, independent of the table | With a configured `[backup.store]` (a filesystem root, which is the default beside a SQLite database file, or an S3 bucket and prefix) on PostgreSQL, SQLite and MongoDB: under the store's root, at `/
//`, as gzip data files of DynamoDB JSON lines (`data/000001.json.gz`, ...) and the manifest documents (`extenddb-manifest.json` last, the commit record), with a `backup_index` row in the catalog as the index; a lost database loses the rows, not the bytes (`extenddb backup sync` gives a new catalog a row for each backup under the root, and `--adopt-store` first makes it the owner of a root another catalog owned; a root copied to a new place keeps its backups' ARNs once `--move-store` re-points their rows). A prefix copied from a server of another region, whose manifest spells its ARN in that region, is adopted under this server's region: its row carries the ARN this server issues, so `ListBackups` names this server's region (every `ListBackups` answer measured on the service names the endpoint's region) and `DescribeBackup`, `RestoreTableFromBackup` and `DeleteBackup` find it under either region's spelling, as they find the backups this server made and as the service finds a backup under another region's spelling of its ARN (measured; `DescribeBackup` answers with this server's spelling, as it does for this server's own backups, where the service echoes the spelling sent); the manifest keeps the spelling it was written with, and so does the source table's ARN, which `DescribeBackup`'s `SourceTableDetails.TableArn`, `ListBackups`' `BackupSummaries[].TableArn` and the restore's `RestoreSummary.SourceTableArn` answer in the manifest's region (a backup this server made names this server's region in every ARN it answers); the restore and the reconciler accept a manifest whose ARN differs from the row's in the region alone. `extenddb backup migrate-legacy ` or `--all` copies in-catalog backups into the store under their own ARNs, refusing the ones 0.1.14 and earlier releases took (their backup ids have the 13-digit shape those releases issued, and a store prefix carries only the 14-digit shape). Without a store, and on Cassandra always, inside the database the server already uses, so a lost database loses its backups too: on PostgreSQL in the catalog database (`backups`, `backup_items`, `backup_definitions`, `table_restores`), on SQLite in the one database file, on MongoDB as a `backups` metadata collection in the catalog database and one data collection per backup in the data database, on Cassandra as backup metadata in the catalog keyspace and item payloads in the account's keyspace; take database-level backups for off-host copies there | | Backup creation | `CreateBackup` returns while the backup is `CREATING`; `ListBackups` and `DescribeBackup` expose that state until it becomes `AVAILABLE`. `BackupName` and `TableName` are checked as the model says: length 3 to 255 and `[a-zA-Z0-9_.-]+`, with "1 validation error detected: Value '' at 'backupName' failed to satisfy constraint: " texts, joined under "2 validation errors detected:" when both fail (measured). `TableName` may be the table's ARN (measured). A table that does not exist or is still `CREATING` is `TableNotFoundException` "Table not found: " (measured) | With a configured `[backup.store]` on PostgreSQL, SQLite and MongoDB, `CreateBackup` takes the table's snapshot and writes the catalog row in the request and returns the backup `CREATING`; a job then uploads it and the backup becomes `AVAILABLE`, which `DescribeBackup` and `ListBackups` show as on the service (`BackupSizeBytes` is 0 while `CREATING` and the compressed size once `AVAILABLE`; `ItemCount` and `TableSizeBytes` in `SourceTableDetails` are the table's figures as last counted by the stats pass while `CREATING`, which is 0 and 0 for a table the stats pass has not reached yet, such as one loaded seconds before CreateBackup, and the backup's exact figures once `AVAILABLE`: the items written and the sum of their DynamoDB sizes; the service reported 0 and 0 in every fresh-table backup measured). `CREATING` lasts the whole upload (the durations below), and while it lasts `DeleteBackup` and `RestoreTableFromBackup` of the backup answer `BackupInUseException` "Backup is being created: " on all three backends; the 16 service backups measured were `AVAILABLE` 12 to 90 ms after `CreateBackup` answered, so a client that deletes or restores a backup right after creating it polls `DescribeBackup` first here. The backup is the table as it stood when its snapshot opened, which is inside the request but after the request's checks (the table's state, the store's health, the maintenance claim) and after any wait for a job permit, up to 30 s (below): every write acknowledged before the open is in the backup and none acknowledged after it, so a `PutItem` acknowledged while the request waited for a permit is in the backup (measured: a write acknowledged 1.01 s after a `CreateBackup` that waited for a permit was in it, 2 of 2 runs), and `BackupCreationDateTime` is the open's millisecond. Measured on the service: a restored backup contained every write acknowledged before `CreateBackup` was sent and the 18 writes acknowledged in the 0.1 s up to `BackupCreationDateTime`, and none of the 11,754 acknowledged in the 75 s that followed, so the service takes the table at an instant inside the request as well. A backup the job cannot finish (a store failure, an item no restore can load, a shutdown) is `FAILED`, which is `BackupNotFound` to clients, and its objects are deleted (the restore-interruption row). A `CreateBackup` still waiting in its snapshot open or row insert when the server stops writes no row; it is answered `ServiceUnavailable` "The server is shutting down. Retry the request." only after a registration loss, where the jobs' token is cancelled while the listener still serves, since on SIGTERM the listener's 5 s connection drain closes the connection before that token is cancelled (measured: the connection closed 8.2 s after the request was sent). Measured *(this release, 16-core host, filesystem store, the record in `docs/design/15-backup-restore-bench-pr8.md`)*: 100,000 items of a composite-key table with two GSIs `AVAILABLE` in 1.85 s on PostgreSQL and 1.44 s on SQLite, 1,000,000 in 36.1 s and 12.45 s. Without a store, and on Cassandra always, `CreateBackup` copies the items before it returns and returns the backup `AVAILABLE`. On PostgreSQL, MongoDB, and Cassandra a concurrent `ListBackups` never saw an in-catalog backup `CREATING` *(earlier build)*; on SQLite the backup row is visible as `CREATING` to other requests while the copy runs. Measured *(earlier build, in-catalog)*: 1.3 s for 60,000 items on PostgreSQL, 1.9 s for 60,000 on SQLite, 0.2 s for 20,000 on MongoDB, 5.1 s for 20,000 on Cassandra. MongoDB's in-catalog backups report `BackupSizeBytes` 0. The name checks are the service's, with its texts (the length clause before the pattern clause when both fail; the service's order was not captured), counting characters, with `TableName` taking the deployment's table-name limits; before them a 200 KB name was stored and returned in every `ListBackups` page (a 500 on Cassandra) and a NUL byte was a 500 on PostgreSQL. `TableName` as an ARN (`arn:aws:dynamodb:::table/`) is accepted on all four backends: an ARN whose region is not the server's (`server.region`, compared as written, so `US-EAST-1` differs from `us-east-1`) is `ValidationException` "1 validation error detected: Invalid AWS region in ''" (the service's answer, measured on DynamoDB twice; an earlier build resolved it to the server region's table), another account's is refused with the service's answers (see "A resource ARN in another account"), the account checked before the region, so another account's ARN in another region is `AccessDeniedException` (measured on DynamoDB for CreateBackup and ListBackups, twice each); an SDK built from the model refuses the ARN form client-side, so only a hand-built request sends it. `TableNotFoundException` "Table not found: " for a missing or `CREATING` table on all four backends, built from the request's name (the backends' own payloads differ). Without a store, and on Cassandra, a table the deployment can create is backed up whatever its name, as the service does (measured on DynamoDB: a table named `...` answered `ContinuousBackupsUnavailableException` "Backups are being enabled for the table: .... Please retry later" 13.2 s after `CreateTable` and was backed up at 33.7 s): the in-catalog format writes no store prefix. With a store, a name over 255 bytes (reachable only with `[limits] max_table_name_length` raised) or made only of dots fits no store prefix, so the store-backed create refuses it with `ValidationException` before it opens a snapshot or writes a row ("TableName cannot be backed up: a backup ARN cannot be formed for it: invalid backup ARN: table name of N bytes is longer than 255" / "... invalid backup ARN: table name \"...\" is only dots"). Every table under a `server.region` outside `[a-z0-9-]` is refused (the `BackupArn` row); the checks run after the table's ACTIVE probe and before the job permit, so the refusal takes no slot. The permit is the last check: a request that finds every `[backup] max_concurrent_jobs` slot held (default 4) waits up to 30 s for one and is then `LimitExceededException` ("Too many backup and restore jobs are running on this server (at most N at once, the [backup] max_concurrent_jobs bound); retry later"), where the service accepted six `CreateBackup` calls sent together (measured on DynamoDB, two runs) | | `DeleteBackup` response | The full `DescribeBackup` description with `BackupStatus` `DELETED`, including `SourceTableDetails.ProvisionedThroughput` (a required member) and `SourceTableFeatureDetails` (measured) | The same on all four backends: the engine reads the backup's recorded definition before the delete and fills the description as `DescribeBackup` does, with `BackupStatus` `DELETED`. A backup whose definition this build cannot read or that does not parse is still deleted and described without feature details (logged at warn), which means a damaged `PROVISIONED` backup is described with on-demand `ProvisionedThroughput` `{0, 0}`: ExtendDB's choice, deletability over the throughput member of a row that is being removed, where `DescribeBackup` on the same row is an `InternalServerError`; a failure to reach the database fails the request and deletes nothing. | | Concurrent `DeleteBackup` of one backup | A `DeleteBackup` of a backup already deleted is `BackupNotFoundException`; which call of several concurrent ones answers `DELETED` was not measured | The same on all four backends: the one `DeleteBackup` that deletes the backup answers `DELETED`, and every other one, concurrent or later, `BackupNotFoundException` "Backup not found: ". For an in-catalog backup the status is read again where the deletion is decided: under the row's lock on PostgreSQL, under the write lock on SQLite, in the document's transaction on MongoDB and by the `DELETING` claim's lightweight transaction on Cassandra; on MongoDB and Cassandra a `DeleteBackup` that finds another one's `DELETING` (running, or stopped by a crash or a failed call) finishes that cleanup and answers `BackupNotFoundException`, as `DescribeBackup` already answers for such a backup, so a client that retries a `DeleteBackup` that failed after it started gets `BackupNotFoundException` too. A second `DeleteBackup` of a store-backed backup answers `BackupNotFoundException` on all four backends. *(from the code and the tests)* | diff --git a/docs/getting-started.md b/docs/getting-started.md index 0f3d7ec58..24ef187cc 100755 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -289,7 +289,7 @@ extenddb runs as a daemon (background process) and logs to syslog. On startup it ```bash ./target/release/extenddb serve --config extenddb.toml -# extenddb 0.1.14 (catalog migration 12) starting on 127.0.0.1:18443 +# extenddb 0.1.15 (catalog migration 12) starting on 127.0.0.1:18443 # storage: postgres (postgresql://extenddb:***@localhost:5432/extenddb_catalog) ``` @@ -1393,7 +1393,7 @@ Each runner requires its tools to be installed. The runner checks prerequisites ```bash ./target/release/extenddb version -# extenddb 0.1.14 +# extenddb 0.1.15 # catalog migration 12 (postgres) # commit abc1234 # built 2026-04-17T12:00:00Z diff --git a/docs/manuals/04-quickstart-setup-guide.md b/docs/manuals/04-quickstart-setup-guide.md index 69aef9748..b33de1baa 100755 --- a/docs/manuals/04-quickstart-setup-guide.md +++ b/docs/manuals/04-quickstart-setup-guide.md @@ -129,7 +129,7 @@ Check the version: ```bash ./target/release/extenddb version -# extenddb 0.1.14 +# extenddb 0.1.15 # catalog migration 12 (postgres) # commit abc1234 # built 2026-04-17T12:00:00Z diff --git a/docs/manuals/05-admin-guide.md b/docs/manuals/05-admin-guide.md index fe5f402b7..9d8f57d9e 100755 --- a/docs/manuals/05-admin-guide.md +++ b/docs/manuals/05-admin-guide.md @@ -220,7 +220,7 @@ Took the maintenance claim as "extenddb backup sync on (pid )". The configured store's check passes (store id ); each server finds it so at its next reconciler cycle. ``` -`extenddb backup migrate-legacy ` or `--all` (exactly one) copies in-catalog backups into the configured store under their own ARNs, names, backup ids and creation times, and replaces each by its catalog row, AVAILABLE and unowned as a row `backup sync` inserts (the backup manual's [Legacy backups](14-backup-and-restore.md#legacy-backups) section gives what it refuses and the way out for each). `` is checked as a backup ARN before anything is opened (exit 2) and matched as written and rebuilt in this server's region; `--all` takes every in-catalog backup of every account that is not deleted, oldest first, and then the deleted ones. It needs the configured store healthy, opens the catalog as `serve` does (on SQLite under the serve lock: stop the server first; beside it the command exits 6), takes the maintenance claim on every backend for its whole run and waits as `purge` does, so CreateBackup and RestoreTableFromBackup answer `LimitExceededException` on every instance until it ends. Per backup it refuses a backup id of the 13-digit shape a 0.1.x release issued (every backup a 0.1.x release took) before it reads anything; streams the items through the backup job's writer, each checked with the item validator under this instance's `[limits]`, into data files under the backup's prefix, then the DynamoDB manifests and `extenddb-manifest.json` (`snapshot.kind` `legacy_in_catalog`, no marker, `item_order` `unordered`, `source_backend` and `source_extenddb_version` this binary's), each object written only if its key holds nothing (an object there stops the run, left as it is; on Cassandra the items are read at consistency `ALL`); runs the deletion fence before its first put, before the manifest's write, before the replacement and before each deletion of a copy (a root whose `extenddb-store.json` names another catalog stops the run with the copy and the in-catalog backup kept); reads the prefix back as sync does and checks the item count against the in-catalog backup's twice; and only then replaces the in-catalog backup with its row in one step. Objects under a backup's prefix with no catalog row of its backup id (under any ARN) are an earlier run's when the manifest there, if any, names the backup, and are deleted through the fence before the copy is written again (a walk of the prefix that starts no removal more than two heartbeat periods after the claim's last confirmed beat; a copy the run itself deletes is deleted object by object, only what it wrote); a row of the id under another ARN, or a manifest naming another backup, refuses the backup with nothing under the prefix deleted. Under the prefix of a deleted in-catalog backup they are deleted, and once the store lists nothing there the deleted backup's in-catalog record is removed and the backup reported `deleted`; while the record is there `backup sync` does not adopt the prefix. Before the manifest's write, each deletion under a prefix, the replacement and a record's removal the command waits for one heartbeat of its claim. Each line is `migrated`, `finished` (an earlier run had written its row; what was left of the in-catalog backup is removed), already in the store, `deleted` (the backup was deleted: nothing to migrate; a note says when a stopped run's copy was deleted or the record removed), `refused` (with its reason and way out), `skipped` (CREATING, DELETING, or deleted meanwhile, during the copy included; on SQLite the command first removes a CREATING in-catalog backup, whose create is dead under the serve lock, as `purge` does, and logs that removal under `extenddb::audit`) or `failed` (a later run tries again), with its notes indented under it; a `refused` or `failed` line says "Its in-catalog backup is kept" only where one is (not for a deleted backup, nor after a replacement call whose answer did not come, nor once the claim is lost). Each backup the command deleted or replaced anything for is logged under `extenddb::audit` with the account and the ARN, whatever its line says (a `refused`, `skipped` or `failed` backup whose earlier copy it deleted, and on Cassandra every finish, included), a line that changed nothing is not, and the command's log lines go to standard output with its own. `--all` goes on past a backup it does not migrate and exits 1 at the end with the counts; a lost claim (no heartbeat confirmed within two periods counts as lost; on SQLite a beat parked on the command's own write lock still confirms), a store the writer finds unhealthy, a failed listing or catalog call and a signal (acted on before the next backup and, inside a copy, at the writer's next step, the objects recorded for the copy in progress deleted and named in a note; a replacement under way finishes first) stop it, exit 1, the claim released (the stop says the claim is released only when its release succeeded, otherwise it waits out `stale_job_after_secs` on PostgreSQL, MongoDB and Cassandra; after a lost claim it says the run no longer holds the claim, which another command may hold). A second signal exits at once with status 130 and leaves what a kill leaves: the copy in progress, which the next run deletes, and on PostgreSQL, MongoDB and Cassandra the claim held until its heartbeat is older than `stale_job_after_secs`. A store call under way when the process is stopped (SIGSTOP, a paused VM) completes on resume; the backup manual's legacy section says what it can still do. It exits 0 when every backup it reached is in the store or deleted. While an in-catalog backup holds an ARN, in any status, `backup sync` skips a prefix whose manifest names that ARN, naming the command (a prefix with no manifest yet, which a run stopped before its manifest leaves, is reported "not a complete backup: no manifest"). Its peak memory does not grow with the backup on PostgreSQL, MongoDB and Cassandra (48 to 75 MiB measured on PostgreSQL debug builds for 1,000 and for 100,000 items, 75 once beside a running server, 56 and 55 MiB on MongoDB and Cassandra measured on an earlier revision of the command, on the 16-core host above); on SQLite it measured 55 to 149 MiB for 1,000 to 250,000 items, the page cache of its connections, at most about 32 MB times `pool_size`: +`extenddb backup migrate-legacy ` or `--all` (exactly one) copies in-catalog backups into the configured store under their own ARNs, names, backup ids and creation times, and replaces each by its catalog row, AVAILABLE and unowned as a row `backup sync` inserts (the backup manual's [Legacy backups](14-backup-and-restore.md#legacy-backups) section gives what it refuses and the way out for each). `` is checked as a backup ARN before anything is opened (exit 2) and matched as written and rebuilt in this server's region; `--all` takes every in-catalog backup of every account that is not deleted, oldest first, and then the deleted ones. It needs the configured store healthy, opens the catalog as `serve` does (on SQLite under the serve lock: stop the server first; beside it the command exits 6), takes the maintenance claim on every backend for its whole run and waits as `purge` does, so CreateBackup and RestoreTableFromBackup answer `LimitExceededException` on every instance until it ends. Per backup it refuses a backup id of the 13-digit shape that 0.1.14 and earlier releases issued (every backup those releases took) before it reads anything; streams the items through the backup job's writer, each checked with the item validator under this instance's `[limits]`, into data files under the backup's prefix, then the DynamoDB manifests and `extenddb-manifest.json` (`snapshot.kind` `legacy_in_catalog`, no marker, `item_order` `unordered`, `source_backend` and `source_extenddb_version` this binary's), each object written only if its key holds nothing (an object there stops the run, left as it is; on Cassandra the items are read at consistency `ALL`); runs the deletion fence before its first put, before the manifest's write, before the replacement and before each deletion of a copy (a root whose `extenddb-store.json` names another catalog stops the run with the copy and the in-catalog backup kept); reads the prefix back as sync does and checks the item count against the in-catalog backup's twice; and only then replaces the in-catalog backup with its row in one step. Objects under a backup's prefix with no catalog row of its backup id (under any ARN) are an earlier run's when the manifest there, if any, names the backup, and are deleted through the fence before the copy is written again (a walk of the prefix that starts no removal more than two heartbeat periods after the claim's last confirmed beat; a copy the run itself deletes is deleted object by object, only what it wrote); a row of the id under another ARN, or a manifest naming another backup, refuses the backup with nothing under the prefix deleted. Under the prefix of a deleted in-catalog backup they are deleted, and once the store lists nothing there the deleted backup's in-catalog record is removed and the backup reported `deleted`; while the record is there `backup sync` does not adopt the prefix. Before the manifest's write, each deletion under a prefix, the replacement and a record's removal the command waits for one heartbeat of its claim. Each line is `migrated`, `finished` (an earlier run had written its row; what was left of the in-catalog backup is removed), already in the store, `deleted` (the backup was deleted: nothing to migrate; a note says when a stopped run's copy was deleted or the record removed), `refused` (with its reason and way out), `skipped` (CREATING, DELETING, or deleted meanwhile, during the copy included; on SQLite the command first removes a CREATING in-catalog backup, whose create is dead under the serve lock, as `purge` does, and logs that removal under `extenddb::audit`) or `failed` (a later run tries again), with its notes indented under it; a `refused` or `failed` line says "Its in-catalog backup is kept" only where one is (not for a deleted backup, nor after a replacement call whose answer did not come, nor once the claim is lost). Each backup the command deleted or replaced anything for is logged under `extenddb::audit` with the account and the ARN, whatever its line says (a `refused`, `skipped` or `failed` backup whose earlier copy it deleted, and on Cassandra every finish, included), a line that changed nothing is not, and the command's log lines go to standard output with its own. `--all` goes on past a backup it does not migrate and exits 1 at the end with the counts; a lost claim (no heartbeat confirmed within two periods counts as lost; on SQLite a beat parked on the command's own write lock still confirms), a store the writer finds unhealthy, a failed listing or catalog call and a signal (acted on before the next backup and, inside a copy, at the writer's next step, the objects recorded for the copy in progress deleted and named in a note; a replacement under way finishes first) stop it, exit 1, the claim released (the stop says the claim is released only when its release succeeded, otherwise it waits out `stale_job_after_secs` on PostgreSQL, MongoDB and Cassandra; after a lost claim it says the run no longer holds the claim, which another command may hold). A second signal exits at once with status 130 and leaves what a kill leaves: the copy in progress, which the next run deletes, and on PostgreSQL, MongoDB and Cassandra the claim held until its heartbeat is older than `stale_job_after_secs`. A store call under way when the process is stopped (SIGSTOP, a paused VM) completes on resume; the backup manual's legacy section says what it can still do. It exits 0 when every backup it reached is in the store or deleted. While an in-catalog backup holds an ARN, in any status, `backup sync` skips a prefix whose manifest names that ARN, naming the command (a prefix with no manifest yet, which a run stopped before its manifest leaves, is reported "not a complete backup: no manifest"). Its peak memory does not grow with the backup on PostgreSQL, MongoDB and Cassandra (48 to 75 MiB measured on PostgreSQL debug builds for 1,000 and for 100,000 items, 75 once beside a running server, 56 and 55 MiB on MongoDB and Cassandra measured on an earlier revision of the command, on the 16-core host above); on SQLite it measured 55 to 149 MiB for 1,000 to 250,000 items, the page cache of its connections, at most about 32 MB times `pool_size`: ``` diff --git a/docs/manuals/07-upgrade-manual.md b/docs/manuals/07-upgrade-manual.md index 2b265b931..080365142 100755 --- a/docs/manuals/07-upgrade-manual.md +++ b/docs/manuals/07-upgrade-manual.md @@ -4,7 +4,7 @@ ## Current Status -This release versions the PostgreSQL, SQLite, Cassandra and MongoDB catalogs by a migration ledger and carries catalog migrations 1 to 12, which `extenddb migrate --list` prints. **Every deployment created by a 0.1.x release runs `extenddb migrate --yes` once** before a server of this release starts on it: the server refuses a catalog with pending migrations. Migration 1 brings the catalog of every 0.1.x release to the v1.0 schema, migration 5 drops `continuous_backups`, a table and on MongoDB a collection (see [Catalog 0.0.5](#catalog-005)), and migration 6 adds the backup catalog index and the restore job records ([below](#migration-6-the-backup-catalog-index)). Migration 7 adds the `stream_pending` table to the PostgreSQL data database, where a write stores its stream record until the record gets its sequence number after the write commits; it does not apply to the other backends. Migration 8 adds the `restore_progress` table to the PostgreSQL data database, where a store-backed restore records each data file it applied; it does not apply on the other backends either. +This release versions the PostgreSQL, SQLite, Cassandra and MongoDB catalogs by a migration ledger and carries catalog migrations 1 to 12, which `extenddb migrate --list` prints. **Every deployment created by 0.1.14 or an earlier release runs `extenddb migrate --yes` once** before a server of this release starts on it: the server refuses a catalog with pending migrations. Migration 1 brings the catalog of every earlier release to migration 1's schema, migration 5 drops `continuous_backups`, a table and on MongoDB a collection (see [Catalog 0.0.5](#catalog-005)), and migration 6 adds the backup catalog index and the restore job records ([below](#migration-6-the-backup-catalog-index)). Migration 7 adds the `stream_pending` table to the PostgreSQL data database, where a write stores its stream record until the record gets its sequence number after the write commits; it does not apply to the other backends. Migration 8 adds the `restore_progress` table to the PostgreSQL data database, where a store-backed restore records each data file it applied; it does not apply on the other backends either. Migration 9, `warm_throughput`, adds a nullable `warm_throughput` column to the `tables` and `indexes` catalog tables on PostgreSQL, SQLite and Cassandra. It holds the `WarmThroughput` a client sets on a table or a global secondary index, which `DescribeTable` reports; nothing acts on the value (see [Differences from DynamoDB](../differences-from-dynamodb.md)). Tables created before the migration report the defaults for their billing mode. On MongoDB it changes nothing, since the catalog collections have no validator, and the ledger records it as not applicable. Migration 9 is breaking: to go back to a release without it, restore the backup taken before the upgrade (see [Rollback Procedure](#rollback-procedure)). @@ -22,7 +22,7 @@ Configure `[backup.store]` before the release that stops creating in-catalog bac - `kind = "disabled"` under `[backup.store]` keeps a deployment on the in-catalog format on purpose. CreateBackup still logs the deprecation warning on each call. `kind = "disabled"` is no longer needed to keep a deployment able to restore the backups it takes. - A store-backed backup is listed, described, deleted and restored like any other. `RestoreTableFromBackup` of a backup in the configured store runs the restore job from the store on every backend (PostgreSQL, SQLite, MongoDB and Cassandra). In-catalog backups, those of the previous release included, restore as before. -`extenddb backup migrate-legacy ` or `--all` carries in-catalog backups into the configured store under their own ARNs (see the Backup and Restore manual's Legacy backups section). On SQLite, stop the server for it. On every backend, each backup and restore job answers `LimitExceededException` while it runs. It refuses a backup whose id has the 13-digit shape a 0.1.x release issued, which is every backup a 0.1.x release took. It also refuses a backup with an item the item check refuses, and a SQLite backup taken before catalog 0.0.4. To carry such a backup forward, restore it and take a new backup of the restored table, which has a new ARN. Run `migrate-legacy --all` again after the last DeleteBackup of an in-catalog backup. It deletes what a stopped migration left under a deleted backup's prefix, and then the deleted backup's record. The release that removes the in-catalog reader refuses its migration while such a record, whose backup id has the 14-digit shape, remains. +`extenddb backup migrate-legacy ` or `--all` carries in-catalog backups into the configured store under their own ARNs (see the Backup and Restore manual's Legacy backups section). On SQLite, stop the server for it. On every backend, each backup and restore job answers `LimitExceededException` while it runs. It refuses a backup whose id has the 13-digit shape that 0.1.14 and earlier releases issued, which is every backup those releases took. It also refuses a backup with an item the item check refuses, and a SQLite backup taken before catalog 0.0.4. To carry such a backup forward, restore it and take a new backup of the restored table, which has a new ARN. Run `migrate-legacy --all` again after the last DeleteBackup of an in-catalog backup. It deletes what a stopped migration left under a deleted backup's prefix, and then the deleted backup's record. The release that removes the in-catalog reader refuses its migration while such a record, whose backup id has the 14-digit shape, remains. An S3 store needs `spool_path` set on every backend except file-backed SQLite, where it defaults to `backup-spool/` beside the database file. The restore downloads into that directory, which must be a directory of its own, not the database directory. A filesystem store needs no spool. @@ -37,13 +37,13 @@ On file-backed SQLite, an absent `[backup.store]` section is a filesystem store - A default root can break this rule, for example when the database file is in a group-writable directory. Its `extenddb-store.json` can also name another catalog, for example after `destroy` and `init` re-created the catalog under the old root. In both cases the server logs a warning at startup: `backup store: the default root ... failed its check`. It leaves the store unconfigured, not unhealthy. So the upgrade never stops a server that never configured backups, and CreateBackup keeps working on it. `kind = "disabled"` silences this warning. The same root configured explicitly is a startup error or an unhealthy store. - The warning applies only while the catalog has no backup rows for the default root. That is the case after an upgrade, on a new deployment, and on a catalog re-created by `destroy` and `init`. Once a server has written rows for it, the default root is handled as a configured one. Its backups then never vanish behind a warning. A failed identity check is then an unhealthy store, reported on `/health`. A root that can no longer be opened is a startup error. -More than one server on one catalog is not supported in 1.0. Instances that share a catalog must still share one store root, as the Backup and Restore manual's [Configuration](14-backup-and-restore.md#configuration) section says. The admin guide's `[backup.store]` section describes the store checks. +More than one server on one catalog is not supported in this release. Instances that share a catalog must still share one store root, as the Backup and Restore manual's [Configuration](14-backup-and-restore.md#configuration) section says. The admin guide's `[backup.store]` section describes the store checks. `extenddb destroy` leaves the store, and `extenddb backup purge --confirm` deletes its backups. A catalog re-created with `init` finds the old root's `extenddb-store.json` naming the old catalog. The store is then unhealthy until `extenddb backup sync --adopt-store` makes the new catalog its owner. On file-backed SQLite with the default root, the server logs the warning above instead, and the store stays unconfigured. The Backup and Restore manual's [The catalog is lost and re-created](14-backup-and-restore.md#the-catalog-is-lost-and-re-created) section gives the procedure. -A backup that a 0.1.x release took can restore without its global and local secondary indexes: a SQLite backup taken by 0.1.14 records only the table's key schema and attribute definitions, and its restore creates the table with its items and no index. Take a new backup of each table after upgrading to v1.0, and keep the 0.1.x backups for their items only. `extenddb backup migrate-legacy` refuses these backups on their ids, which have the 13-digit shape a 0.1.x release issued, so a restore and a new backup is also their way into the store. +A backup that 0.1.14 or an earlier release took can restore without its global and local secondary indexes: a SQLite backup taken by 0.1.14 records only the table's key schema and attribute definitions, and its restore creates the table with its items and no index. Take a new backup of each table after upgrading to 0.1.15 or later, and keep the earlier backups for their items only. `extenddb backup migrate-legacy` refuses these backups on their ids, which have the 13-digit shape that 0.1.14 and earlier releases issued, so a restore and a new backup is also their way into the store. -The [general upgrade procedure](#general-upgrade-procedure) gives the sequence. The [version history](#version-history) records the 0.1.x catalog versions and what the 0.1.x binaries print, and [Behavior Changes by Release](#behavior-changes-by-release) what each release changes in behavior. +The [general upgrade procedure](#general-upgrade-procedure) gives the sequence. The [version history](#version-history) records the catalog versions of 0.1.14 and earlier and what those binaries print, and [Behavior Changes by Release](#behavior-changes-by-release) what each release changes in behavior. ## How Catalog Upgrades Work @@ -51,7 +51,7 @@ The [general upgrade procedure](#general-upgrade-procedure) gives the sequence. Every backend shares one numbered list of catalog migrations, in `crates/storage/src/migrations/registry.rs`. For each id a backend declares the body it runs in each of its stores, a SQL file under `crates/storage-/migrations/` or code, or why the id does not apply to it. `extenddb migrate --yes` applies the pending bodies in id order, catalog store first, and commits each body with a row in that store's ledger, the `extenddb_migrations` table: the id, name, kind, checksum, notes, time, and the release that applied it. On PostgreSQL the catalog database and the data database each have a ledger; on SQLite the database file has one. On MongoDB the bodies are code, and the catalog database and the data database each have a ledger collection: there a body's requests are each safe to send again, and its ledger row and, in the catalog, the `catalog_version` row commit in one transaction after the body, so a migrator stopped part way runs the body again. On Cassandra the bodies are CQL files and code, and the catalog keyspace and each account keyspace have a ledger table. Cassandra has no transactions: every statement of a body is safe to send again and a body's ledger row is written after it, so a run that stopped or failed part way, for example with `no answer within 20 s` from a loaded node, finishes when `migrate --yes` runs again. -The catalog's version is the highest id such that it and every lower id are recorded in every store its bodies touch. The `catalog_version` row in `settings` holds the same integer, written with each catalog row, for tools that read it; on Cassandra a stopped run can leave it one ahead of the ledger, or one behind after migration 1's last account keyspace, until `migrate --yes` runs again. The `schema_history` tables of 0.1.x PostgreSQL catalogs stay in place and are not read. +The catalog's version is the highest id such that it and every lower id are recorded in every store its bodies touch. The `catalog_version` row in `settings` holds the same integer, written with each catalog row, for tools that read it; on Cassandra a stopped run can leave it one ahead of the ledger, or one behind after migration 1's last account keyspace, until `migrate --yes` runs again. The `schema_history` tables of PostgreSQL catalogs that 0.1.14 or an earlier release created stay in place and are not read. Running `extenddb migrate --yes` on an up-to-date catalog changes nothing. @@ -67,14 +67,14 @@ Running `extenddb migrate --yes` on an up-to-date catalog changes nothing. | AheadIncompatible | The catalog has a migration this binary does not know that is breaking | 4 | 4 | 4 | 4 | | NeedsAttention | A pending migration found data that a person must fix; each item is named | 5 | 5 | 5 | 5 | | Changed | A recorded checksum differs from this binary's body | 5 | 5 | 5 | 5 | -| WrittenByOlderRelease | A 0.1.x release wrote to the catalog after it was migrated | 5 | 5 | 5; `--yes --reconverge` repairs it | 5 | +| WrittenByOlderRelease | A release before 0.1.15 wrote to the catalog after it was migrated | 5 | 5 | 5; `--yes --reconverge` repairs it | 5 | | Uninitialized | Not a catalog; `extenddb init` creates one | 1 | 1 | 1 | 1 | Exit status 6 means the migration lock, or a running server, was still held when `--lock-timeout` ran out; run the command again once it is free. Every refusal prints the command that resolves it. A dev build's `serve` applies a Behind or Uninitialized catalog at startup instead of refusing it. The `serve` codes are those of `serve --foreground`; in daemon mode `serve` exits 1 and writes the refusal to syslog. `verify` also checks the connection to the data database. When that check fails, `verify` exits 1 on a Behind catalog instead of 3, because `migrate --yes` cannot apply the pending migrations while the data database cannot be reached. It still exits 4 or 5 for the statuses that need a person. -A migration is additive when the previous release serves the catalog correctly with it applied, and breaking otherwise. Migrations 1 to 7 and 9 to 12 are breaking. Migration 8 creates a table in the PostgreSQL data database that the previous release never reads; on PostgreSQL it is declared breaking only because the job that proves an additive declaration against the old binary does not yet exist (CONTRIBUTING, step 4 of adding a migration), and on SQLite, MongoDB and Cassandra it does not apply (`migrate --list` prints it as not applicable, and `migrate` counts it as additive). Do not run a 0.1.x server against a migrated catalog. A 0.1.x binary that writes to a migrated catalog (its `migrate --yes`, or a SQLite dev server) leaves it WrittenByOlderRelease. `migrate --yes --reconverge` repairs it by running the convergent migrations again. Migration 2, which rewrites stored policies, is not convergent: the repair skips it and prints a line that says so (see the v0.1.14 notes below). +A migration is additive when the previous release serves the catalog correctly with it applied, and breaking otherwise. Migrations 1 to 7 and 9 to 12 are breaking. Migration 8 creates a table in the PostgreSQL data database that the previous release never reads; on PostgreSQL it is declared breaking only because the job that proves an additive declaration against the old binary does not yet exist (CONTRIBUTING, step 4 of adding a migration), and on SQLite, MongoDB and Cassandra it does not apply (`migrate --list` prints it as not applicable, and `migrate` counts it as additive). Do not run a server of 0.1.14 or an earlier release against a migrated catalog. A binary of those releases that writes to a migrated catalog (its `migrate --yes`, or a SQLite dev server) leaves it WrittenByOlderRelease. `migrate --yes --reconverge` repairs it by running the convergent migrations again. Migration 2, which rewrites stored policies, is not convergent: the repair skips it and prints a line that says so (see the v0.1.14 notes below). ### Migration 6: the backup catalog index @@ -143,7 +143,7 @@ The two transactions that hold the keys, the server's registration and the migra On PostgreSQL, migration 11, `attribute_name_escape`, rewrites the stored documents that carry attribute names. DynamoDB accepts U+0000 in an attribute name, and PostgreSQL `jsonb` cannot hold it. So a server of this release stores U+0000 in these documents as U+0001 U+0001, and U+0001 as U+0001 U+0002. It reverses the change when it reads them. Earlier releases stored the documents as written. In such a document, a name that holds U+0001 followed by U+0001 or U+0002 would read back as another name. A table keyed on that name would no longer find its items. Migration 11 applies the escape once to each document that holds U+0001 and leaves the others as they are. The documents are `tables.key_schema`, `tables.attribute_definitions`, `indexes.key_schema`, `indexes.projection`, `backups.key_schema`, `backups.attribute_definitions`, `backups.vector_indexes`, `backup_definitions.definition`, `vector_indexes.vector_attribute`, `vector_indexes.search_schema`, `vector_indexes.projection` and `backup_index.source_table_details_json` in the catalog database, and `gsi_pending.index_context` in the data database, which holds the index updates a stopped server left queued. Items are not rewritten. `migrate --yes` prints a note for each column it rewrote, for example `tables.key_schema: 1 document rewritten`, and the ledger keeps the notes. Each database's body commits in one transaction with its ledger row. A second run would change the names written since the first, so migration 11 is not convergent: `migrate --yes --reconverge` skips it. Migration 11 does not apply to SQLite, Cassandra and MongoDB. SQLite and Cassandra store these documents as JSON text, where U+0000 is the six characters `\u0000`, and MongoDB's BSON strings hold U+0000. -On MongoDB, `migrate` connects with the connection string in the config file, which the server uses too. A user with the `readWrite` role on `extenddb_catalog` and on `extenddb_data` and no other role can run `init`, `migrate --yes`, `verify` and `serve`. `migrate --yes` takes the migration lock, a document in the catalog's `settings` collection, and then waits for the registration every running server keeps in the catalog's `extenddb_servers` collection, and after `--lock-timeout` exits 6 naming each server's host and pid. A server renews its registration every 5 s, and every second after a renewal failed, and deletes it when it stops, once every background worker has ended (it leaves it to expire when one could not be stopped); a server that was killed leaves it until it expires, at most 45 s after its last renewal. A server whose registration was deleted, or that has not renewed it for 30 s, for example because the primary stopped answering, answers new requests with `ServiceUnavailable` and registers again, as a PostgreSQL server does after its session ends (above): it serves again once it holds a new registration and the catalog's status is the one it started with, and it stops with exit 1 when a migration holds the lock, when the status changed, or when 30 s pass without a registration. The lock and the registrations expire by the clock of the replica set's primary, so keep the clocks of its members in sync with NTP. Migration 1 deletes the `resource_tag_migration` settings document in the transaction that records its catalog step, so a 0.1.14 server refuses the migrated catalog, and a run that fails before that transaction leaves the document in place. 0.1.12 and 0.1.13 servers read neither that document nor the catalog version, so they start on a migrated catalog and serve it: do not run them against it. To go back to a 0.1.x release, restore the backup taken before `migrate --yes`. A 0.1.x `migrate` on a migrated catalog reports a pending change, and its `--yes` writes the settings document back; this release's status then reports the catalog as written by an older release, and `migrate --yes --reconverge` repairs it. +On MongoDB, `migrate` connects with the connection string in the config file, which the server uses too. A user with the `readWrite` role on `extenddb_catalog` and on `extenddb_data` and no other role can run `init`, `migrate --yes`, `verify` and `serve`. `migrate --yes` takes the migration lock, a document in the catalog's `settings` collection, and then waits for the registration every running server keeps in the catalog's `extenddb_servers` collection, and after `--lock-timeout` exits 6 naming each server's host and pid. A server renews its registration every 5 s, and every second after a renewal failed, and deletes it when it stops, once every background worker has ended (it leaves it to expire when one could not be stopped); a server that was killed leaves it until it expires, at most 45 s after its last renewal. A server whose registration was deleted, or that has not renewed it for 30 s, for example because the primary stopped answering, answers new requests with `ServiceUnavailable` and registers again, as a PostgreSQL server does after its session ends (above): it serves again once it holds a new registration and the catalog's status is the one it started with, and it stops with exit 1 when a migration holds the lock, when the status changed, or when 30 s pass without a registration. The lock and the registrations expire by the clock of the replica set's primary, so keep the clocks of its members in sync with NTP. Migration 1 deletes the `resource_tag_migration` settings document in the transaction that records its catalog step, so a 0.1.14 server refuses the migrated catalog, and a run that fails before that transaction leaves the document in place. 0.1.12 and 0.1.13 servers read neither that document nor the catalog version, so they start on a migrated catalog and serve it: do not run them against it. To go back to 0.1.14 or an earlier release, restore the backup taken before `migrate --yes`. The `migrate` of those releases on a migrated catalog reports a pending change, and its `--yes` writes the settings document back; this release's status then reports the catalog as written by an older release, and `migrate --yes --reconverge` repairs it. On MongoDB, migration 12 gives the catalog's `access_keys` collection a unique index on `access_key_id`; PostgreSQL, SQLite and Cassandra key their `access_keys` table by that ID. Before migration 12, every import of an access key stored a document, also under an access key ID that another document held. A credential lookup read the first of those documents its query plan met: the first in the collection's natural order when the plan scans the collection forward, as it does with no index on `access_key_id` and no query settings for the lookup's query. A delete of the key deleted one of them, so a key imported more than once still authenticated after a delete and was still listed among the user's access keys. Where one user holds every document of an ID, the migration keeps the document a credential lookup reads, deletes the others, and records a note that names the ID and the `_id` of each document it kept and deleted, which `verify` prints. To find that document, it asks the server for the lookup's query plan for each such ID. When the plan scans the collection forward, the migration keeps the first document in natural order; with any other plan, such as one through an index on `access_key_id`, it sends the lookup's own query. It also prints a warning with the same names before each delete, because a `migrate --yes` that stops after its deletes and before the index exists records no note when it runs again. A key that was imported twice and then deleted once before the upgrade has one document left, from the later import: no note names it, and it authenticates with the secret of that import. After the upgrade, review each user's access keys and delete any the user had deleted before. @@ -153,9 +153,9 @@ An index that an operator adds to `access_keys`, other than the unique index `ac Migration 12 groups the documents of `access_keys` in one request, and the runner gives each request 10 s. On a local `mongo:7` replica set, the preview took 8 s on a collection of 1 million keys, and on a collection of 2 million the preview, `verify` and `migrate --yes` stopped after 10 s with `no answer within 10 s`. On a collection that large, delete the extra documents and create the index in `mongosh`, which sets no such limit. This command lists each access key ID stored more than once, with its owners: `db.getSiblingDB("extenddb_catalog").access_keys.aggregate([{ $group: { _id: "$access_key_id", n: { $sum: 1 }, owners: { $addToSet: { account: "$account_id", user: "$user_name" } } } }, { $match: { n: { $gt: 1 } } }], { allowDiskUse: true })`. For an ID of more than one user, delete each document that is not the key owner's, as above. For an ID of one user, keep the document that `findOne({ access_key_id: "" })` returns, which a credential lookup reads, and delete the others. No note records these deletes. Then create the index with `db.getSiblingDB("extenddb_catalog").access_keys.createIndex({ access_key_id: 1 }, { unique: true }, "majority")`, which fails with a duplicate key error that names an ID while one is still stored more than once. Once the index is built, migration 12 reads only the documents whose access key ID is an array. While the build runs, migration 12 groups every document, so run `migrate --yes` after the command returns. -On Cassandra, `migrate` connects as the role the config file names, which the server connects as too. `--cassandra-user ` connects as another role, with its password in `EXTENDDB_CASSANDRA_PASSWORD` or `--cassandra-pass`; a wrong password is reported as a connection timeout. Migration 1 adopts a 0.1.x catalog: it keeps every setting except the `resource_tag_migration` row, which it deletes, and records itself in a ledger in the catalog keyspace and in every account keyspace. On a cluster that runs `CassandraAuthorizer`, `init` grants the application role SELECT, MODIFY, CREATE and ALTER on the catalog keyspace, those four and DROP on the default account's keyspace, and CREATE ON ALL KEYSPACES, which CreateAccount needs to create a keyspace per account and which also lets the role create tables in every keyspace on the cluster; a run of `migrate --yes --cassandra-user ` that creates a missing account keyspace grants the application role the five permissions on it. A 0.1.x `init` granted the application role nothing, so a deployment created before 1.0 on such a cluster needs the statements below before `migrate`. `migrate --yes` takes the migration lock, a row in the catalog's `settings` table written by lightweight transactions, and then waits for the registration every running server of this release keeps in the catalog's `extenddb_servers` table, and after `--lock-timeout` exits 6 naming each server. A server renews its registration every 5 s, and every second after a renewal failed, and deletes it when it stops, once every background worker has ended (it leaves it to expire when one could not be stopped); a server that was killed leaves it until it expires, at most 45 s after its last renewal. A server tries its renewals for 30 s after the last one that succeeded, so it keeps serving through an outage of 25 to 30 s, depending on when the outage starts, for example while the only replica of the catalog restarts. After that, 30 to 35 s after its last successful renewal, it answers new requests with `ServiceUnavailable` and registers again, as a PostgreSQL server does after its session ends (above), and stops with exit 1 when a migration holds the lock, when the status changed, or when 30 s pass without a registration. A migration needs every replica of the catalog keyspace reachable: the lock is written at `SERIAL`, the registrations are read at `ALL`, and after each schema statement the runner waits until every live node reports the same schema version. `serve` refuses a catalog with pending migrations, exiting 3 under `--foreground` with the pending migrations and the `extenddb migrate --config --yes` command to run. A 0.1.x server refuses a migrated catalog. +On Cassandra, `migrate` connects as the role the config file names, which the server connects as too. `--cassandra-user ` connects as another role, with its password in `EXTENDDB_CASSANDRA_PASSWORD` or `--cassandra-pass`; a wrong password is reported as a connection timeout. Migration 1 adopts a catalog that 0.1.14 or an earlier release created: it keeps every setting except the `resource_tag_migration` row, which it deletes, and records itself in a ledger in the catalog keyspace and in every account keyspace. On a cluster that runs `CassandraAuthorizer`, `init` grants the application role SELECT, MODIFY, CREATE and ALTER on the catalog keyspace, those four and DROP on the default account's keyspace, and CREATE ON ALL KEYSPACES, which CreateAccount needs to create a keyspace per account and which also lets the role create tables in every keyspace on the cluster; a run of `migrate --yes --cassandra-user ` that creates a missing account keyspace grants the application role the five permissions on it. The `init` of 0.1.14 and earlier granted the application role nothing, so a deployment created before 0.1.15 on such a cluster needs the statements below before `migrate`. `migrate --yes` takes the migration lock, a row in the catalog's `settings` table written by lightweight transactions, and then waits for the registration every running server of this release keeps in the catalog's `extenddb_servers` table, and after `--lock-timeout` exits 6 naming each server. A server renews its registration every 5 s, and every second after a renewal failed, and deletes it when it stops, once every background worker has ended (it leaves it to expire when one could not be stopped); a server that was killed leaves it until it expires, at most 45 s after its last renewal. A server tries its renewals for 30 s after the last one that succeeded, so it keeps serving through an outage of 25 to 30 s, depending on when the outage starts, for example while the only replica of the catalog restarts. After that, 30 to 35 s after its last successful renewal, it answers new requests with `ServiceUnavailable` and registers again, as a PostgreSQL server does after its session ends (above), and stops with exit 1 when a migration holds the lock, when the status changed, or when 30 s pass without a registration. A migration needs every replica of the catalog keyspace reachable: the lock is written at `SERIAL`, the registrations are read at `ALL`, and after each schema statement the runner waits until every live node reports the same schema version. `serve` refuses a catalog with pending migrations, exiting 3 under `--foreground` with the pending migrations and the `extenddb migrate --config --yes` command to run. A server of 0.1.14 or an earlier release refuses a migrated catalog. -On a deployment created before 1.0 on a cluster that runs `CassandraAuthorizer`, this release's `migrate`, `verify` and `serve`, connected as the application role, fail with `Unauthorized ... has no SELECT permission on
_catalog.accounts>` until the role holds its permissions. With every server stopped, run the statements below in `cqlsh` as a superuser; the application role cannot grant them to itself. `` and `` are `username` and `keyspace_prefix` under `[storage.cassandra]` in the config file. Each account has its own keyspace, so list the accounts first: +On a deployment created before 0.1.15 on a cluster that runs `CassandraAuthorizer`, this release's `migrate`, `verify` and `serve`, connected as the application role, fail with `Unauthorized ... has no SELECT permission on
_catalog.accounts>` until the role holds its permissions. With every server stopped, run the statements below in `cqlsh` as a superuser; the application role cannot grant them to itself. `` and `` are `username` and `keyspace_prefix` under `[storage.cassandra]` in the config file. Each account has its own keyspace, so list the accounts first: ``` SELECT account_id FROM _catalog.accounts; @@ -190,7 +190,7 @@ On PostgreSQL `migrate --yes` can also print: - `Waiting up to s for the statements of an earlier migrator that stopped`: a migrator that was killed left a statement running in a database. The run waits until it ends, and after `--lock-timeout` exits 6 naming each session with `SELECT pg_cancel_backend()` to end it; a statement that waits for a lock does not end by itself. The run looks for them in each database through its own connection to it, so a data database on another server is covered. - A line naming an index statement and the sessions it waits for: migration 4 builds its indexes with `CREATE INDEX CONCURRENTLY`, which waits for every transaction on the table. After 5 s it cancels the build and tries again, three times, and then stops naming the sessions; end them and run again. - `could not lock a table ... within 5 s, 4 times`: other sessions held locks on the tables a migration changes, which it names. Nothing of that migration was committed; stop those sessions and run again. -- `after migration 1 the database differs from the v1.0 schema in place(s)`: the first run of migration 1 on that database found objects that differ from the v1.0 schema, such as a column added by hand or a changed default, and committed nothing there. Each following line names an object and its table, what the database has, what v1.0 has, and the change to make. Make each change, then run `migrate --yes` again. +- `after migration 1 the database differs from migration 1's schema in place(s)`: the first run of migration 1 on that database found objects that differ from migration 1's schema, such as a column added by hand or a changed default, and committed nothing there. Each following line names an object and its table, what the database has, what migration 1 has, and the change to make. Make each change, then run `migrate --yes` again. On PostgreSQL one `--lock-timeout` bounds every wait of a run together: the wait for another migrator's lock, the wait for running servers, and the wait for an earlier migrator's statements. Each wait gets the time the earlier ones left, and its line prints the seconds left. With `--lock-timeout 0` a run makes one attempt at each: it exits 6 at once when another migrator or a running server holds its key, or when an earlier migrator's statement is still running. @@ -243,7 +243,7 @@ Data written after the upgrade in schema shapes the previous version cannot repr ## Version History -The catalog versions below are those of the 0.1.x releases, and the commands, output and procedures in them are those of the 0.1.x binaries. This release upgrades the catalog of any 0.1.x release with the [general upgrade procedure](#general-upgrade-procedure): its migration 1 applies the changes catalogs 0.0.2 to 0.0.4 made, and its migration 5 the change catalog 0.0.5 made. +The catalog versions below are those of 0.1.14 and earlier releases, and the commands, output and procedures in them are those of their binaries. This release upgrades the catalog of any of those releases with the [general upgrade procedure](#general-upgrade-procedure): its migration 1 applies the changes catalogs 0.0.2 to 0.0.4 made, and its migration 5 the change catalog 0.0.5 made. ### Catalog 0.0.5 @@ -254,7 +254,7 @@ Removes the storage of the per-table point-in-time recovery flag, which only `De - Cassandra: catalog migration `V006__drop_continuous_backups.cql` drops the `continuous_backups` table. - MongoDB: the catalog version stays at its own value; `extenddb migrate --yes` drops the `continuous_backups` collection from a catalog an earlier build created. -From v1.0 migration 5, `drop_continuous_backups`, drops the table on PostgreSQL, SQLite and Cassandra and the collection on MongoDB. +From 0.1.15, migration 5, `drop_continuous_backups`, drops the table on PostgreSQL, SQLite and Cassandra and the collection on MongoDB. The upgrade is not reversible in place: a 0.0.4 PostgreSQL or SQLite binary refuses to start against a 0.0.5 catalog (`Catalog version mismatch: expected 0.0.4, found 0.0.5`). Roll back by restoring what you saved before the upgrade. @@ -302,14 +302,14 @@ extenddb migrate --config extenddb.toml --yes extenddb serve --config extenddb.toml ``` -The upgrade rebuilds `backup_items` with a stable restore cursor, copying every row into a new table inside one write transaction; the database is locked for writes until it finishes. From v1.0 migration 1 makes this rebuild on a database whose `backup_items` has no `id` column. The preview lists migration 1 and does not name the rebuild. `--yes` prints the rebuild as a note under migration 1, and `verify` prints the same note from the ledger: +The upgrade rebuilds `backup_items` with a stable restore cursor, copying every row into a new table inside one write transaction; the database is locked for writes until it finishes. From 0.1.15, migration 1 makes this rebuild on a database whose `backup_items` has no `id` column. The preview lists migration 1 and does not name the rebuild. `--yes` prints the rebuild as a note under migration 1, and `verify` prints the same note from the ledger: ``` Applied 1 baseline rebuilt backup_items with an id column, copying 80 row(s); the old table's pages stay free inside the database file until a VACUUM ``` -The 0.1.x binaries named the rebuild in the preview, as `Pending: catalog 0.0.3 -> 0.0.4; data migrations [rebuild backup_items (80 rows)].`, and logged its start and end at info. +The binaries of 0.1.14 and earlier named the rebuild in the preview, as `Pending: catalog 0.0.3 -> 0.0.4; data migrations [rebuild backup_items (80 rows)].`, and logged its start and end at info. To roll back, stop the server, put the copied files back in place of the current ones (remove the current `-wal` and `-shm` first), and start the previous binary. @@ -461,12 +461,12 @@ was created again must attach them again. No catalog migration is required. --- -### Streams: disabling closes the shards, enabling creates a new stream +### v0.1.15: Streams: disabling closes the shards, enabling creates a new stream **What changed.** `UpdateTable` with `StreamEnabled: false` now closes the stream's shards (each gets an `EndingSequenceNumber`), and `StreamEnabled: true` afterwards creates a new stream with a new ARN and four new shard ids, as on -DynamoDB. Before this release a disable left the shards open and a re-enable +DynamoDB. Before 0.1.15 a disable left the shards open and a re-enable kept the same ARN. Each stream's shard ids carry its identity, so the change needs no catalog migration of its own. On MongoDB its one new index comes with migration 1 (below). @@ -484,7 +484,7 @@ before. **MongoDB.** Migration 1 creates the `{table_id: 1, shard_id: 1}` index on the data database's `stream_shards`: `extenddb init` runs it on a new deployment, -and `extenddb migrate --yes` runs it on a 0.1.x deployment. +and `extenddb migrate --yes` runs it on a deployment that 0.1.14 or an earlier release created. A deployment that a build without the index has already migrated gets it from `extenddb migrate --yes --reconverge`, which runs migration 1 again. @@ -508,7 +508,7 @@ shard ids the new release writes. - Cassandra: catalog migration `V006__drop_continuous_backups.cql` drops the `continuous_backups` table. Until it runs, CreateBackup, RestoreTableFromBackup, and DeleteBackup are refused, as on any catalog with a pending migration (see [Cassandra](#cassandra)). Stop every server of an earlier build first: an earlier build's DeleteTable, its account deletion, and its removal of `DELETING` tables write to `continuous_backups` and fail once it is gone, and its `DescribeContinuousBackups` and `UpdateContinuousBackups` answer HTTP 500. - MongoDB: the catalog version does not change. `extenddb migrate` reports `catalog: drop the continuous_backups collection`, and `--yes` drops it. `extenddb serve` drops nothing, and a new catalog does not create the collection. Stop every server of an earlier build first: an earlier build starts against the migrated catalog (MongoDB has no startup version check), accepts an enable request with `ENABLED` and a 35-day window, and recreates the collection, which the next `extenddb migrate` reports as pending again. -From v1.0 migration 5, `drop_continuous_backups`, drops the table on PostgreSQL, SQLite and Cassandra and the collection on MongoDB. +From 0.1.15, migration 5, `drop_continuous_backups`, drops the table on PostgreSQL, SQLite and Cassandra and the collection on MongoDB. An earlier PostgreSQL or SQLite binary refuses to start against the migrated catalog; roll back by restoring what you saved before the upgrade, as described under [Rollback Procedure](#rollback-procedure). @@ -728,6 +728,29 @@ previous paragraph sets up. No catalog migration is required. --- +### v0.1.15: a LeadingKeys-fenced Query with a non-equality partition key condition gets AccessDeniedException + +**What changed.** A `Query` whose key condition names the partition key with +an operator other than equality is a shape the engine rejects with +`ValidationException`: a `KeyConditionExpression` such as `pk > :v`, or a legacy +`KeyConditions` entry for the partition key with one operand under an operator +other than `EQ` (`LE` or `BEGINS_WITH`, for example). Before 0.1.15, +authorization bound no `dynamodb:LeadingKeys` value for these requests, so every +principal, however its LeadingKeys condition was written, got the +`ValidationException`. Now LeadingKeys is bound to that one operand and the +policy is evaluated before the shape is rejected, as DynamoDB does: a principal +whose LeadingKeys condition does not cover the operand gets +`AccessDeniedException`, and the table owner and a principal fenced to the +operand still get `ValidationException`. + +A key condition that also has an equality on the partition key is decided by +that equality, as before, even when its value cannot be read. A condition with +two non-equality partition clauses, a `BETWEEN` or `IN` partition clause, or a +condition that does not parse still binds no LeadingKeys value. No catalog +migration is required. + +--- + ### v0.1.14 LeadingKeys now enforced on Query, batch and transaction operations **What changed.** `dynamodb:LeadingKeys` is now evaluated on `Query`, @@ -857,7 +880,7 @@ effect where it was previously bypassed. --- -### `server.region` is part of every backup ARN +### v0.1.15: `server.region` is part of every backup ARN `server.region` (default `us-east-1`) is baked into the ARN of every backup the server creates (`arn:aws:dynamodb:::table//backup/`), @@ -1023,9 +1046,9 @@ for any of these changes. **Who is affected.** Any deployment with an IAM policy that uses a `dynamodb:ResourceTag/` condition key or a `${dynamodb:ResourceTag/...}` policy variable: inline user, group and role policies, user and role permissions boundaries, and session policies. A policy that uses `aws:ResourceTag/` is not affected. Role trust policies are not affected: the AssumeRole path never resolved `dynamodb:ResourceTag/`, so a trust policy that names it behaved then as it does now. -**Migration is required.** `extenddb serve` refuses to start on a catalog that has not been migrated, with an error that names `extenddb migrate --yes`. Run `extenddb migrate --yes` once per deployment before starting the new binary. On PostgreSQL, the 0.1.14 `migrate` connects as the admin user, so pass `--pg-user ` and set `EXTENDDB_PG_PASSWORD`, as for `init`; from v1.0 the rewrite is catalog migration 2, which `migrate --yes` applies as the application role. The migration rewrites every stored `dynamodb:ResourceTag/` condition key and `${dynamodb:ResourceTag/...}` policy variable to the `aws:ResourceTag/` form, keeping the operator, the tag key and the value unchanged. The rewrite preserves the decision of each policy that a release before 0.1.14 stored, because `aws:ResourceTag/` resolves from the same table tags the old `dynamodb:ResourceTag/` key read. A policy that names `dynamodb:ResourceTag/` and that 0.1.14 stored after its last `migrate --yes` had no effect on 0.1.14, which leaves that key absent; migration 2 rewrites it with the others, so it takes effect after the upgrade to v1.0. The one difference is a `${dynamodb:ResourceTag/}` policy variable on a table without that tag: neither form expands, and the literal text in the comparison changes from `${dynamodb:ResourceTag/}` to `${aws:ResourceTag/}`. The decision changes only for a request value equal to one of those literals. A freshly initialised deployment needs no migrate step: 0.1.14's `init` records the catalog as migrated, and from v1.0 `init` applies migration 2 with the others. +**Migration is required.** `extenddb serve` refuses to start on a catalog that has not been migrated, with an error that names `extenddb migrate --yes`. Run `extenddb migrate --yes` once per deployment before starting the new binary. On PostgreSQL, the 0.1.14 `migrate` connects as the admin user, so pass `--pg-user ` and set `EXTENDDB_PG_PASSWORD`, as for `init`; from 0.1.15 the rewrite is catalog migration 2, which `migrate --yes` applies as the application role. The migration rewrites every stored `dynamodb:ResourceTag/` condition key and `${dynamodb:ResourceTag/...}` policy variable to the `aws:ResourceTag/` form, keeping the operator, the tag key and the value unchanged. The rewrite preserves the decision of each policy that a release before 0.1.14 stored, because `aws:ResourceTag/` resolves from the same table tags the old `dynamodb:ResourceTag/` key read. A policy that names `dynamodb:ResourceTag/` and that 0.1.14 stored after its last `migrate --yes` had no effect on 0.1.14, which leaves that key absent; migration 2 rewrites it with the others, so it takes effect after the upgrade to 0.1.15 or later. The one difference is a `${dynamodb:ResourceTag/}` policy variable on a table without that tag: neither form expands, and the literal text in the comparison changes from `${dynamodb:ResourceTag/}` to `${aws:ResourceTag/}`. The decision changes only for a request value equal to one of those literals. A freshly initialised deployment needs no migrate step: 0.1.14's `init` records the catalog as migrated, and from 0.1.15 `init` applies migration 2 with the others. -**What `migrate` prints.** Without `--yes`, `migrate` lists each policy it would rewrite, one line per policy with the account, the principal, the policy name and the number of condition keys, and writes nothing. With `--yes`, it rewrites and records that the migration is complete. It runs on every `migrate`, so an interrupted run is finished by the next one. If a policy lookup fails, or a policy needs attention (below), `migrate` reports it, exits non-zero, and does not record completion, so a later run retries. Policy bodies are never printed. From v1.0 the preview of a catalog with migration 2 pending prints the number of policies migration 2 rewrites and names the first 20 of them in that form, followed by the number of the others, and `migrate --yes` prints a line for each policy it rewrote, which the ledger keeps as notes of migration 2. A failed lookup is named with the account and principal it was reading and the error's text, and the run exits 1 without recording migration 2; a policy that needs attention makes the run exit 5. +**What `migrate` prints.** Without `--yes`, `migrate` lists each policy it would rewrite, one line per policy with the account, the principal, the policy name and the number of condition keys, and writes nothing. With `--yes`, it rewrites and records that the migration is complete. It runs on every `migrate`, so an interrupted run is finished by the next one. If a policy lookup fails, or a policy needs attention (below), `migrate` reports it, exits non-zero, and does not record completion, so a later run retries. Policy bodies are never printed. From 0.1.15 the preview of a catalog with migration 2 pending prints the number of policies migration 2 rewrites and names the first 20 of them in that form, followed by the number of the others, and `migrate --yes` prints a line for each policy it rewrote, which the ledger keeps as notes of migration 2. A failed lookup is named with the account and principal it was reading and the error's text, and the run exits 1 without recording migration 2; a policy that needs attention makes the run exit 5. **Both forms on one key.** If one operator block in a policy holds both `aws:ResourceTag/` and `dynamodb:ResourceTag/` for the same tag key with the same value, the two were one condition before the upgrade, and `migrate` drops the `dynamodb:` key. With different values they cannot share one JSON key. `migrate` then leaves the policy unchanged, lists it as `NEEDS ATTENTION` with the account, the principal and the policy name, exits non-zero, and does not record the migration as complete, so `serve` keeps refusing the catalog. Fix the policy with the previous version still serving the catalog (keep one of the two forms), then run `migrate --yes` with the new binary. A session policy that does not parse is reported in the log and skipped; it cannot be evaluated under either form. @@ -1044,13 +1067,13 @@ for any of these changes. To get the intended behaviour, write the condition on `aws:ResourceTag/`. -**`--reconverge` and policies written after the upgrade.** From v1.0 the rewrite is catalog migration 2, which runs once. `migrate --yes --reconverge` skips it, so a policy written after the upgrade keeps its `dynamodb:ResourceTag/` keys and its decision. This includes a policy that a SQLite dev build from v0.1.7 to v0.1.13 wrote to the catalog after the upgrade: that build evaluated the key against the table's tags, and v1.0 leaves the key absent, as the table above describes. Rewrite such a policy to the `aws:ResourceTag/` form by hand. A v0.1.14 `migrate --yes` runs its rewrite whenever it finds the `dynamodb:` form, including in policies written through the API after the upgrade, so do not run it against a migrated catalog. +**`--reconverge` and policies written after the upgrade.** From 0.1.15 the rewrite is catalog migration 2, which runs once. `migrate --yes --reconverge` skips it, so a policy written after the upgrade keeps its `dynamodb:ResourceTag/` keys and its decision. This includes a policy that a SQLite dev build from v0.1.7 to v0.1.13 wrote to the catalog after the upgrade: that build evaluated the key against the table's tags, and 0.1.15 and later leave the key absent, as the table above describes. Rewrite such a policy to the `aws:ResourceTag/` form by hand. A v0.1.14 `migrate --yes` runs its rewrite whenever it finds the `dynamodb:` form, including in policies written through the API after the upgrade, so do not run it against a migrated catalog. **Sessions issued before the migration.** Session policies are stored in the catalog, so `migrate` rewrites them along with the identity policies. A session issued before the upgrade is evaluated with its rewritten policy once `migrate --yes` has run, and it does not need to be issued again. The new binary does not serve an unmigrated catalog, so no request is evaluated against the old policy text under the new rules. -### IAM: `ArnEquals` and `ArnNotEquals` honour wildcards +### v0.1.15: IAM: `ArnEquals` and `ArnNotEquals` honour wildcards -**What changed.** `ArnEquals` and `ArnNotEquals` now match `*` and `?` in each ARN field, as `ArnLike` and `ArnNotLike` already did and as IAM evaluates all four. Before this release the two Equals operators compared strings exactly. An Arn condition over a context value that is not an ARN (fewer than six `:`-separated fields) is now false under every operator, including `ArnNotEquals` and `ArnNotLike`, and in `ForAnyValue:` and `ForAllValues:` forms it is false when any value in the set is not an ARN and the policy lists at least one value (`ForAllValues:ArnNotEquals` or `ForAllValues:ArnNotLike` with an empty value list stays true, as in IAM). No catalog migration is required. +**What changed.** `ArnEquals` and `ArnNotEquals` now match `*` and `?` in each ARN field, as `ArnLike` and `ArnNotLike` already did and as IAM evaluates all four. Before 0.1.15 the two Equals operators compared strings exactly. An Arn condition over a context value that is not an ARN (fewer than six `:`-separated fields) is now false under every operator, including `ArnNotEquals` and `ArnNotLike`, and in `ForAnyValue:` and `ForAllValues:` forms it is false when any value in the set is not an ARN and the policy lists at least one value (`ForAllValues:ArnNotEquals` or `ForAllValues:ArnNotLike` with an empty value list stays true, as in IAM). No catalog migration is required. **Who is affected.** A policy that uses an Arn operator in an identity policy, a permissions boundary, a session policy or a role trust policy, in these cases: @@ -1062,7 +1085,7 @@ To get the intended behaviour, write the condition on `aws:ResourceTag/`. A policy whose Arn values are literal ARNs, applied to a context value that is an ARN, evaluates as before. -### IAM: Arn condition values are matched and checked at write as IAM does +### v0.1.15: IAM: Arn condition values are matched and checked at write as IAM does **What changed.** The four Arn operators (`ArnEquals`, `ArnLike`, `ArnNotEquals` and `ArnNotLike`, with their `ForAllValues:`, `ForAnyValue:` and `IfExists` forms) now match a policy value shorter than an ARN as IAM does, and policy writes reject the Arn values IAM rejects. Both rules were measured on IAM on 2026-10-30. No catalog migration is required. @@ -1125,9 +1148,9 @@ No catalog migration is required. This change needs no catalog migration of its own. Before upgrading a deployment that restricts tagging, check the policies of each account for the statements above. -### IAM: `?` and `*` count UTF-16 code units +### v0.1.15: IAM: `?` and `*` count UTF-16 code units -**What changed.** `?` in a policy pattern matches one UTF-16 code unit and `*` matches any number of them, as in IAM. Before this release both counted bytes of the value's UTF-8 encoding. The rule applies to `Action`, `NotAction`, `Resource` and `NotResource` patterns and to the `StringLike`, `StringNotLike`, `ArnLike` and `ArnNotLike` condition operators. ASCII values evaluate as before. +**What changed.** `?` in a policy pattern matches one UTF-16 code unit and `*` matches any number of them, as in IAM. Before 0.1.15 both counted bytes of the value's UTF-8 encoding. The rule applies to `Action`, `NotAction`, `Resource` and `NotResource` patterns and to the `StringLike`, `StringNotLike`, `ArnLike` and `ArnNotLike` condition operators. ASCII values evaluate as before. **Who is affected.** A policy whose pattern uses `?` against a request value with a character outside ASCII. A character up to U+FFFF, such as `é` or `日`, is one unit and now takes one `?`; before this release it took one `?` per byte (two for `é`, three for `日`). A character above U+FFFF, such as an emoji, is two units and takes `??`, where it took four. A pattern written with one `?` per byte stops matching such a value and a pattern with one `?` per unit starts matching it, so a `Deny` or an `Allow` that relies on such a pattern can change its decision. Review policies that use `?` on condition keys that carry caller data, such as `dynamodb:LeadingKeys` and `dynamodb:Attributes`. No catalog migration is required. @@ -1159,7 +1182,7 @@ No catalog migration is required. --- -### Streams: a `StreamArn` with another partition is refused +### v0.1.15: Streams: a `StreamArn` with another partition is refused DescribeStream and GetShardIterator now refuse a client-built `StreamArn` with the `arn:aws-cn:` or `arn:aws-us-gov:` partition with `ValidationException` "Invalid StreamArn", also on a deployment whose `server.region` is a China or GovCloud region. The server issues every stream ARN as `arn:aws:`, so a `StreamArn` taken from DescribeTable or ListStreams is not affected. No catalog migration is required. diff --git a/docs/manuals/14-backup-and-restore.md b/docs/manuals/14-backup-and-restore.md index ce5e180ae..b5024fbc8 100644 --- a/docs/manuals/14-backup-and-restore.md +++ b/docs/manuals/14-backup-and-restore.md @@ -884,7 +884,7 @@ The command prints one line per backup and a summary: ``` migrated arn:aws:dynamodb:us-east-1:123456789012:table/orders/backup/01793991641206-db64fc83 (account 123456789012): 303 items, 3158 bytes -refused arn:aws:dynamodb:us-east-1:123456789012:table/orders/backup/1793254932797-4116998c (account 123456789012): its backup id 1793254932797-4116998c has the 13-digit shape a 0.1.x release issued, and a store prefix carries only the 14-digit shape; restore it (RestoreTableFromBackup) and take a new backup of the restored table, which has a new ARN. Its in-catalog backup is kept +refused arn:aws:dynamodb:us-east-1:123456789012:table/orders/backup/1793254932797-4116998c (account 123456789012): its backup id 1793254932797-4116998c has the 13-digit shape that 0.1.14 and earlier releases issued, and a store prefix carries only the 14-digit shape; restore it (RestoreTableFromBackup) and take a new backup of the restored table, which has a new ARN. Its in-catalog backup is kept === extenddb backup migrate-legacy complete: 1 migrated, 0 finished, 0 already in the store, 0 deleted, 1 refused, 0 skipped, 0 failed === ``` @@ -929,7 +929,7 @@ than `stale_job_after_secs`. What it refuses, keeping the legacy backup as it is. A refusal before the copy writes nothing, and one after it deletes the copy, except where the list says the prefix is left: -- **Every backup a 0.1.x release took.** Their backup ids have the 13-digit shape a 0.1.x release issued +- **Every backup that 0.1.14 or an earlier release took.** Their backup ids have the 13-digit shape those releases issued (13 digits with a hex suffix, or 13 bare digits), and a store prefix carries only the 14-digit shape. Only legacy backups taken by this release line migrate: those of a server without a store, with `kind = "disabled"`, and on Cassandra. - A backup holding an item the item check refuses: a value the wire stores without validating it (#618, diff --git a/docs/versioning.md b/docs/versioning.md index 18add8f69..cfe104a3b 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -4,6 +4,8 @@ ExtendDB follows [Semantic Versioning](https://semver.org/). A release number ha ## What a release can change +These rules apply from 1.0. A 0.x release, 0.1.15 among them, can add configuration keys, CLI flags and backup format versions, can carry breaking catalog migrations, and can raise the minimum Rust version, whatever part of its number changes. 0.1.15 adds configuration keys and breaking catalog migrations, so a rollback from it to 0.1.14 needs the backup taken before the upgrade, not only the 0.1.14 binary (see the [Rollback Procedure](manuals/07-upgrade-manual.md#rollback-procedure)). + - A major release, such as 2.0, can change anything that this policy keeps compatible. Only a major release removes a deprecated item. Its release notes and the [upgrade manual](manuals/07-upgrade-manual.md) give the upgrade path. The 2.0 release upgrades the catalog of any 1.x release. - A minor release can add operations, configuration keys, CLI flags and catalog migrations. It can deprecate an item. It can carry a breaking catalog migration, and its release notes then say so. A minor release can also raise the minimum Rust version that a build from source needs. - A patch release fixes bugs other than the behavior changes under [The DynamoDB API](#what-stays-compatible-within-a-major-version), and it fixes security issues. It adds no configuration key, no breaking catalog migration and no new backup format version. A rollback to an earlier patch release of the same minor release needs only the earlier binary. @@ -41,7 +43,7 @@ A backup in a backup store carries a format version. A release reads each format ## Not covered -- The APIs of the Rust crates, the `Storage` trait among them: the crates are not published, and the trait still changes. +- The APIs of the Rust crates, the `Storage` trait among them: from 0.1.15 the crates are published to crates.io, to build ExtendDB from them, not as a library interface, and the trait still changes. - Preview settings, such as `enable_multipart_keys`. - The fields of a `/metrics` response. - Backends in the experimental [tier](../README.md#storage-backends). diff --git a/packaging/npm/package.json b/packaging/npm/package.json index b629ec979..c078995d5 100644 --- a/packaging/npm/package.json +++ b/packaging/npm/package.json @@ -1,6 +1,6 @@ { "name": "@extenddb/dev", - "version": "0.1.14", + "version": "0.1.15", "description": "ExtendDB dev server launcher: a DynamoDB-compatible database for local development and CI. Spawns the extenddb dev binary (file-backed by default, in-memory with --memory) and hands back an endpoint plus credentials any AWS SDK accepts.", "license": "Apache-2.0", "repository": { @@ -25,10 +25,10 @@ "test": "node test/launcher.test.js" }, "optionalDependencies": { - "@extenddb/linux-x64": "0.1.14", - "@extenddb/linux-arm64": "0.1.14", - "@extenddb/darwin-x64": "0.1.14", - "@extenddb/darwin-arm64": "0.1.14", - "@extenddb/win32-x64": "0.1.14" + "@extenddb/linux-x64": "0.1.15", + "@extenddb/linux-arm64": "0.1.15", + "@extenddb/darwin-x64": "0.1.15", + "@extenddb/darwin-arm64": "0.1.15", + "@extenddb/win32-x64": "0.1.15" } } diff --git a/tests/test_backup_job.py b/tests/test_backup_job.py index 7fb1dc85b..1977aa111 100644 --- a/tests/test_backup_job.py +++ b/tests/test_backup_job.py @@ -4609,8 +4609,8 @@ def test_migrate_legacy_refuses_a_13_digit_id_or_an_item_618_let_in_and_keeps_bo """Three in-catalog backups: one of a table holding three items with an `N` value #618 let in (written into storage, `_seed_stored_items`), one of a table that restores, and (SQLite, PostgreSQL) a copy of the - second's rows under a 13-digit backup id, the shape every 0.1.x release - issued. `migrate-legacy --all` + second's rows under a 13-digit backup id, the shape that 0.1.14 and earlier + releases issued. `migrate-legacy --all` migrates the second and goes on past the other two, each refused with its reason and its way out (the item count, the first item and #618; the id of the 13-digit shape), and exits 1 naming the two. The refused @@ -4665,8 +4665,8 @@ def test_migrate_legacy_refuses_a_13_digit_id_or_an_item_618_let_in_and_keeps_bo refusals = 2 if old else 1 if old: assert ( - f"refused {old} (account {ACCOUNT}): its backup id {_backup_id(old)} has the 13-digit shape a " - "0.1.x release issued, and a store prefix carries only the 14-digit shape; restore it " + f"refused {old} (account {ACCOUNT}): its backup id {_backup_id(old)} has the 13-digit shape that " + "0.1.14 and earlier releases issued, and a store prefix carries only the 14-digit shape; restore it " "(RestoreTableFromBackup) and take a new backup of the restored table, which has a new ARN. " "Its in-catalog backup is kept" ) in res.stdout, out diff --git a/tests/test_backup_store_config.py b/tests/test_backup_store_config.py index 80a485621..5f17a864f 100644 --- a/tests/test_backup_store_config.py +++ b/tests/test_backup_store_config.py @@ -1783,8 +1783,16 @@ def command(*args): finally: conn.close() - res = command("migrate", "--forget", "6", *lh._pg_args()) - assert res.returncode == 0, res.stdout + res.stderr + # A catalog behind the binary: migration 6's ledger row deleted (the + # version row is left as it was; the next run rewrites it). + conn = psycopg2.connect(lh.PG_ADMIN_CONN + "/" + pg_env["db_name"]) + conn.autocommit = True + try: + with conn.cursor() as cur: + cur.execute("DELETE FROM extenddb_migrations WHERE id = 6") + assert cur.rowcount == 1 + finally: + conn.close() for args in ( ("backup", "list"), ("backup", "purge", "--confirm"), diff --git a/tests/test_cli_lifecycle.py b/tests/test_cli_lifecycle.py index b4fbbcdd8..2fb769994 100644 --- a/tests/test_cli_lifecycle.py +++ b/tests/test_cli_lifecycle.py @@ -57,7 +57,7 @@ def test_data_migrations_tracked(self, cli_env): """init writes the legacy data ledger rows in the data DB's schema_history. Migration 1 records every legacy data migration file and the legacy - code migration there, so a release before 1.0 started against this + code migration there, so a release before 0.1.15 started against this catalog finds nothing to replay. """ import psycopg2 diff --git a/tests/test_cli_vector_catalog_migration.py b/tests/test_cli_vector_catalog_migration.py index 127d9c4ea..983bcf289 100644 --- a/tests/test_cli_vector_catalog_migration.py +++ b/tests/test_cli_vector_catalog_migration.py @@ -4,7 +4,7 @@ """Catalog migration tests against a live PostgreSQL deployment. The vector index schema and the backup table definitions are part of -migration 1, which creates the v1.0 catalog on an empty database and brings a +migration 1, which creates the catalog schema on an empty database and brings a released catalog to the same schema, and migration 5 drops the `continuous_backups` table. These tests load a deployment of a release from before the vector index schema, from its committed fixture, and check that @@ -253,7 +253,7 @@ def _load_released_state(cli_env, state): class TestVectorCatalogMigration: - """Migrations from a catalog a release before 1.0 created, on the ledger.""" + """Migrations from a catalog a release before 0.1.15 created, on the ledger.""" def test_init_creates_the_catalog_at_the_current_migration(self, cli_env): """A fresh init records every migration in both ledgers and the version. @@ -298,7 +298,7 @@ def test_migrate_upgrades_a_catalog_a_release_before_1_0_created(self, cli_env): ledger, catalog version 0.0.2, no vector tables. A fresh install with its ledger removed is not the same state: it also holds what later migrations added, which migration 1's check of its result refuses as - not part of the v1.0 schema. + not part of migration 1's schema. """ _init(cli_env) _patch_config_port(cli_env["config_path"], cli_env["port"]) @@ -364,7 +364,7 @@ def test_reconverge_runs_every_convergent_migration_again_on_a_current_catalog( convergent as skipped, names none that does not apply, and leaves the catalog current, with its ledger rows as they were. - This is the command an operator runs after a release before 1.0 wrote + This is the command an operator runs after a release before 0.1.15 wrote to a migrated catalog. Migration 1's check of its result does not run again, because a later migration may have changed what it created. Migration 2 is not convergent: it would rewrite policies written diff --git a/tests/test_resource_tag_migration.py b/tests/test_resource_tag_migration.py index 0fc6a546f..8e8684d0f 100644 --- a/tests/test_resource_tag_migration.py +++ b/tests/test_resource_tag_migration.py @@ -12,7 +12,7 @@ 2. store an inline user policy, a group policy and a permissions boundary using every operator shape of dynamodb:ResourceTag, plus a conditional allow used for the decision check, through the management API. - 3. stop, and make the catalog read as one a release before 1.0 left: an + 3. stop, and make the catalog read as one a release before 0.1.15 left: an empty migration ledger, a dotted catalog_version and the old marker row. 4. run `migrate` without --yes: it lists the pending migrations, the condition-key rewrite included, and exits 3, and nothing on disk changes @@ -20,7 +20,7 @@ 5. run `migrate --yes`: it names each rewritten policy with its key count; restart, and confirm a GetItem gated on the resource tag that was denied before the migration is allowed after it. - 6. write the marker row again, as a release before 1.0 does, and confirm + 6. write the marker row again, as a release before 0.1.15 does, and confirm serve refuses with exit 5 naming `--reconverge`, which repairs it. The reconverge skips the condition-key rewrite, which is not convergent: a policy written through the API after the upgrade keeps its @@ -301,12 +301,12 @@ def deployment(tmp_path): def _as_released_catalog(sqlite_path: str) -> None: - """Make a catalog this binary created read as one a release before 1.0 + """Make a catalog this binary created read as one a release before 0.1.15 left: no ledger rows (the runner reads an empty ledger as it reads a missing one), a dotted catalog_version, the marker row every released baseline seeded, and the baseline's shape for every table migration 1 checks: the objects migration 6 (backup_catalog_index) and migration 9 - (warm_throughput) add are removed, since no release before 1.0 had them + (warm_throughput) add are removed, since no release before 0.1.15 had them and the check after migration 1 refuses a `table_restores` carrying its twelve job columns and a `tables` or `indexes` carrying warm_throughput. The `account_metrics` table migration 10 creates is removed too; migration @@ -431,7 +431,7 @@ def test_resource_tag_migration_wire(deployment): scoped_client.get_item(TableName=table, Key={"pk": {"S": "k1"}}) assert exc.value.response["Error"]["Code"] == "AccessDeniedException" - # 2. Stop, and make the catalog read as one a release before 1.0 left. + # 2. Stop, and make the catalog read as one a release before 0.1.15 left. server.stop() _as_released_catalog(sqlite_path) before_docs = _sqlite_policy_docs(sqlite_path) @@ -487,7 +487,7 @@ def test_resource_tag_migration_wire(deployment): assert again.returncode == 0, again.stdout + again.stderr assert "Up to date" in (again.stdout + again.stderr) - # 6. A release before 1.0 writes the marker row again; serve refuses the + # 6. A release before 0.1.15 writes the marker row again; serve refuses the # catalog with exit 5 and names --reconverge, which repairs it. conn = sqlite3.connect(sqlite_path) try: @@ -636,7 +636,7 @@ def test_resource_tag_migration_collisions(deployment): admin_client.put_item(TableName=table, Item={"pk": {"S": "k1"}}) server.stop() - # A catalog a release before 1.0 left, with both policies stored on it. + # A catalog a release before 0.1.15 left, with both policies stored on it. _as_released_catalog(sqlite_path) same_before = _sqlite_policy(sqlite_path, "hedged-same")