feat(persistence): admit durable retained offspring plans
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 1m11s
Foundation / checks (checks) (push) Canceled after 1m13s
Foundation / checks (postgres) (push) Canceled after 1m8s
Foundation / checks (ecs) (push) Canceled after 1m13s
Foundation / checks (network) (push) Canceled after 1m14s
Foundation / checks (deploy) (push) Canceled after 1m18s

This commit is contained in:
dingo
2026-10-19 15:04:30 -04:00
parent 39509ecd40
commit c60cdf8e19
20 changed files with 850 additions and 46 deletions
@@ -273,6 +273,12 @@ migrate_cellular_maturation_profile(Postgres&, const FilesystemObjectStore&, con
const CommittedCheckpoint&, Uuid commit,
const Sha256Digest& build, std::chrono::milliseconds timeout,
const PublishHooks& hooks = {});
// ADR-0168: explicit raw-only bundle 11 -> 12, retaining complete source evidence.
[[nodiscard]] std::expected<CommittedCheckpoint, CellularProfileMigrationFailure>
migrate_cellular_inheritance_profile(Postgres&, const FilesystemObjectStore&, const LeaseGrant&,
const CommittedCheckpoint&, Uuid commit,
const Sha256Digest& build, std::chrono::milliseconds timeout,
const PublishHooks& hooks = {});
// Verify the recorded no-tick operation under current authority, replaying its
// entire source/target payload. Version upgrades and profile transitions retain
// separate evidence; neither is inferred solely from the target tuple.
@@ -89,6 +89,13 @@ population_envelope_version(const CellularVersionBundle& b) noexcept {
b == cellular_v6_versions || b == cellular_v7_versions || b == cellular_v8_versions ||
b == cellular_v9_versions || b == cellular_v10_versions || b == cellular_v11_versions;
}
// Exact raw trace version for admitted cellular tuples; bundle 12 has its own semantics.
[[nodiscard]] constexpr std::uint32_t
cellular_checkpoint_trace_format(const CellularVersionBundle& b) noexcept {
return b == cellular_v12_versions ? server::cellular_batch_inheritance_format
: cellular_revision_bundle(b) ? server::cellular_batch_format
: server::cellular_batch_v2_format;
}
// Batch evidence bound by manifest v2 (ADR-0063); all zero at genesis.
struct BatchDigests {