M12.4: isolate continued population replay after transfer
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m23s
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 14m44s
Foundation / checks (checks) (push) Canceled after 14m44s
Foundation / checks (network) (push) Canceled after 14m43s
Foundation / checks (postgres) (push) Canceled after 14m42s
Foundation / checks (tsan) (push) Canceled after 14m43s

This commit is contained in:
dingo
2026-10-17 22:07:47 -04:00
parent 1e207b5ee4
commit 89f29fef3a
13 changed files with 209 additions and 10 deletions
+11
View File
@@ -159,6 +159,17 @@ void manifests() {
require(!restore_cellular_payload(population->snapshot(), next),
"population mislabeled as cellular");
auto future = checked(population->migration_upgrade_candidate(), "future portable envelope");
const auto member = std::ranges::find_if(
future->state().lives(), [](const auto& life) { return life.account == LifeAccount{}; });
require(member != future->state().lives().end(), "future trace fixture lacks wildlife");
auto future_conversion = checked(
prepare_population_conversion(*future, header(*future, 0), {member->identity.genome, true}),
"future portable conversion");
require(future_conversion.batch.format_version == 2,
"future owner recorded historical population trace");
auto legacy_replay = replay_population_batch(*population, future_conversion.batch);
require(!legacy_replay && legacy_replay.error() == CellularPopulationError::unsupported,
"new trace reinterpreted for old owner");
auto mislabeled = next;
mislabeled.payload_bytes = future->snapshot().size();
auto refused = restore_population_payload(future->snapshot(), mislabeled);