Represent cellular profile migration manifests
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (checks) (push) Failing after 11m27s
Foundation / checks (network) (push) Failing after 9m31s
Foundation / checks (client) (push) Successful in 13m14s
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 1m57s
Foundation / checks (tsan) (push) Canceled after 1m49s

This commit is contained in:
dingo
2026-10-11 04:59:25 -04:00
parent d652291126
commit beffec40d7
5 changed files with 90 additions and 4 deletions
+12 -3
View File
@@ -880,9 +880,18 @@ CellularLives::restore(std::span<const std::uint8_t> bytes, std::uint64_t world,
const auto genome = archive->find(life.identity.genome);
if (!genome)
return std::unexpected{CellularLivesError::archive};
const auto generated =
biology::mutation_candidates(*genome, life.mutation.offer->context);
if (!generated || *generated != *life.mutation.offer)
const auto& offer = *life.mutation.offer;
if (life.mutation.event_index == 0 || life.mutation.offer_tick == 0 ||
life.mutation.offer_tick > saved_tick || offer.parent != life.identity.genome ||
offer.context.seed != mutation_seed(saved_world, saved_region, life.identity.life,
life.mutation.event_index) ||
offer.context.stream != cellular_mutation_stream ||
offer.context.event_index != life.mutation.event_index ||
offer.context.environment.temperature_millikelvin !=
config.ambient_temperature_millikelvin)
return std::unexpected{CellularLivesError::noncanonical};
const auto generated = biology::mutation_candidates(*genome, offer.context);
if (!generated || *generated != offer)
return std::unexpected{CellularLivesError::noncanonical};
}
}