Add cellular genome revision profile migration
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (checks) (push) Failing after 2m10s
Foundation / checks (postgres) (push) Failing after 10m34s
Foundation / checks (network) (push) Failing after 12m19s
Foundation / checks (tsan) (push) Failing after 2m14s
Foundation / checks (client) (push) Successful in 15m7s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (checks) (push) Failing after 2m10s
Foundation / checks (postgres) (push) Failing after 10m34s
Foundation / checks (network) (push) Failing after 12m19s
Foundation / checks (tsan) (push) Failing after 2m14s
Foundation / checks (client) (push) Successful in 15m7s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
namespace evo::server {
|
||||
inline constexpr std::uint32_t cellular_lives_legacy_format = 1;
|
||||
inline constexpr std::uint32_t cellular_lives_format = 2;
|
||||
inline constexpr std::uint32_t cellular_lives_revision_format = 3;
|
||||
inline constexpr std::uint32_t cellular_lives_rules = 2;
|
||||
inline constexpr std::size_t max_cellular_lives_bytes = std::size_t{16} * 1024 * 1024;
|
||||
inline constexpr std::uint64_t cellular_mutation_surplus_seconds = 60;
|
||||
@@ -135,6 +136,9 @@ class CellularLives {
|
||||
// Detached no-tick representation upgrade. Only a fully restored v1 owner can migrate.
|
||||
[[nodiscard]] std::expected<std::unique_ptr<CellularLives>, CellularLivesError>
|
||||
migrate_to_v2() const;
|
||||
// Detached no-tick v2-to-v3 profile upgrade enabling genome revisions.
|
||||
[[nodiscard]] std::expected<std::unique_ptr<CellularLives>, CellularLivesError>
|
||||
migrate_to_v3() const;
|
||||
|
||||
// Returns a detached post-birth candidate for an allocator-reserved request.
|
||||
// The caller supplies the durable identity; the owner derives founder biology,
|
||||
|
||||
@@ -25,7 +25,7 @@ inline constexpr std::size_t max_primitive_lives = 256;
|
||||
inline constexpr std::int32_t spawn_coordinate_limit_um = 1'000'000'000;
|
||||
inline constexpr std::uint32_t primitive_lives_format = 1;
|
||||
inline constexpr std::size_t max_primitive_lives_bytes =
|
||||
200 + 184 * max_primitive_lives + biology::max_archive_bytes;
|
||||
200 + 184 * max_primitive_lives + biology::max_archive_legacy_bytes;
|
||||
enum class LifeCodecError : std::uint8_t { format, version, checksum, closure };
|
||||
struct NurseryConfig {
|
||||
std::uint64_t world{}, region{}, frame{}, source{};
|
||||
|
||||
Reference in New Issue
Block a user