Add funded cellular birth candidate
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (ecs) (push) Successful in 1m54s
Foundation / checks (postgres) (push) Failing after 51s
Foundation / checks (tsan) (push) Failing after 32s
Foundation / checks (network) (push) Failing after 3m4s
Foundation / checks (client) (push) Failing after 4m35s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (ecs) (push) Successful in 1m54s
Foundation / checks (postgres) (push) Failing after 51s
Foundation / checks (tsan) (push) Failing after 32s
Foundation / checks (network) (push) Failing after 3m4s
Foundation / checks (client) (push) Failing after 4m35s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -50,6 +50,9 @@ enum class CellularLivesError : std::uint8_t {
|
||||
identity,
|
||||
invalid_config,
|
||||
invalid_life,
|
||||
life_exists,
|
||||
no_placement,
|
||||
insufficient_funding,
|
||||
duplicate_life,
|
||||
invalid_tick,
|
||||
invalid_intents,
|
||||
@@ -98,6 +101,13 @@ class CellularLives {
|
||||
CellularLivesError>
|
||||
perceive(std::uint64_t life_id) const;
|
||||
|
||||
// Returns a detached post-birth candidate for an allocator-reserved request.
|
||||
// The caller supplies the durable identity; the owner derives founder biology,
|
||||
// funding, source and the first unoccupied provisioned site. Birth must occur
|
||||
// at the current checkpoint tick, after that tick's existing-life step.
|
||||
[[nodiscard]] std::expected<std::unique_ptr<CellularLives>, CellularLivesError>
|
||||
birth_candidate(LifeRequest request, LifeAllocation allocation) const;
|
||||
|
||||
[[nodiscard]] static std::expected<std::unique_ptr<CellularLives>, CellularLivesError>
|
||||
restore(std::span<const std::uint8_t> bytes, std::uint64_t world, std::uint64_t region,
|
||||
std::uint64_t frame, std::uint64_t tick);
|
||||
|
||||
Reference in New Issue
Block a user