feat(persistence): admit durable maturing wildlife migrations
Foundation / checks (ecs) (push) Successful in 2m20s
Foundation / checks (deploy) (push) Successful in 4m7s
Foundation / checks (network) (push) Successful in 21m2s
Foundation / checks (client) (push) Successful in 22m21s
Foundation / checks (tsan) (push) Successful in 28m57s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 38m8s
Foundation / checks (checks) (push) Canceled after 38m19s

This commit is contained in:
dingo
2026-10-19 11:57:00 -04:00
parent ae2a2d78ba
commit d3a867a662
25 changed files with 578 additions and 82 deletions
@@ -25,7 +25,7 @@ struct CellularMigrationFailure {
// Verify both complete cuts and the paired biology, retain a verified destination
// replay capsule in the source namespace, then freeze the exact source head.
// Neither candidate is published or activated by this operation.
// Durable migration remains bundle 10/trace 1; portable trace 2 is refused.
// ADR-0161/schema 54: exact bundle 10/trace 1 or bundle 11/trace 2 pairs only.
[[nodiscard]] std::expected<CellularMigrationFreeze, CellularMigrationFailure>
prepare_cellular_migration_freeze(Postgres&, const FilesystemObjectStore& source_objects,
const FilesystemObjectStore& destination_objects,
@@ -42,7 +42,7 @@ struct RecordedPopulationMigration {
// Portable recorded pair, not a receipt or ownership grant. The I/O adapter must
// establish the trusted request against BOTH immutable predecessor manifests and
// digest-checked payloads, then fence/commit both results before activation.
// Portable trace 2 does not extend the durable bundle-10/trace-1 allowlist.
// Durable admission is separate (ADR-0161/schema 54); a trace grants no authority.
[[nodiscard]] std::expected<RecordedCellularMigration, CellularMigrationError>
prepare_migration_trace(const CellularLives&, const CellularLives&,
const CellularMigrationRequest&);