feat(cellular): session v14, bundle 15 and rules-13 wildlife
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m29s
Foundation / postgres-tools (push) Successful in 24s
Foundation / server-image (push) Successful in 4m33s
Foundation / image (push) Successful in 4m59s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m29s
Foundation / postgres-tools (push) Successful in 24s
Foundation / server-image (push) Successful in 4m33s
Foundation / image (push) Successful in 4m59s
Session v14 carries the rules-13 revamp: a body block in the owner's view (members, emergence threshold, exclusions, Emerge open, payable energy, mass and the 20 traits), become, emerge and channel exclusions on actions, become on mutation choices, catalog offers (id, chance, cost) and the emerged ending. Older sessions never see a v14 field. The client shows Stay / Become offspring offers named from the shared catalog, continuing as a bud, the organism and its Emerge button, kept channels, the body and the emerged end screen. Bundle 15 (rules 13 on owner format 11) is durable: schema 60 admits it raw-only, stores become as bit 15 of the choice's operator, widens the action input and mutation results, and publishes the 14 -> 15 revamp profile migration. evo-world-clone opens cellular-v10 (cellular-v9 plus the revamp upgrade from --revamp-tuning), resumable and recoverable. Wildlife counts reserve matter as energy, waits for the bud fee, grows organisms one short of emerging, and hunts by the region step's rules-13 engulf test. The play summary adds organisms, offers and the spent pool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,6 +61,8 @@ struct CellularActionRecord {
|
||||
struct CellularMutationActionInput {
|
||||
std::uint64_t life_id{}, event_index{}, offer_tick{};
|
||||
std::uint16_t operator_id{};
|
||||
// Rules 13: continue as the split's offspring. Stored as bit 15 of the operator (schema 60).
|
||||
bool become{};
|
||||
friend bool operator==(const CellularMutationActionInput&,
|
||||
const CellularMutationActionInput&) = default;
|
||||
};
|
||||
|
||||
@@ -239,6 +239,7 @@ struct CellularLifeTickFeedback {
|
||||
CellularPresence presence{CellularPresence::active};
|
||||
bool resume_blocked{};
|
||||
accounting::Picojoules light{}; // Rules 11 (ADR-0175): light captured this tick.
|
||||
std::uint8_t exclude{}; // Rules 13: the matter channels kept from burning this tick.
|
||||
auto operator<=>(const CellularLifeTickFeedback&) const = default;
|
||||
};
|
||||
// Which owner version a new region starts on. Offers: format 2, rules 2 (the M11.3/11.4
|
||||
@@ -280,6 +281,10 @@ enum class CellularLivesError : std::uint8_t {
|
||||
checksum,
|
||||
noncanonical
|
||||
};
|
||||
// Rules 13 (reproduction plan section 6): the genome an organism of `members` cells develops
|
||||
// as (the target size times its members); the genome itself for a single cell.
|
||||
[[nodiscard]] std::expected<biology::Genome, CellularLivesError>
|
||||
cellular_organism_genome(const biology::Genome& genome, std::uint32_t members);
|
||||
|
||||
// In-memory authoritative cellular owner. It consumes funded profile-3 opening
|
||||
// state but never mutates or reinterprets that checkpoint. Each tick is applied
|
||||
@@ -310,6 +315,8 @@ class CellularLives {
|
||||
[[nodiscard]] const biology::LineageArchive& archive() const noexcept;
|
||||
[[nodiscard]] accounting::Inventory nursery() const noexcept;
|
||||
[[nodiscard]] accounting::Inventory heat() const noexcept;
|
||||
// Rules 13: burned matter and kill remainders waiting to drip back as bubbles.
|
||||
[[nodiscard]] accounting::Inventory spent() const noexcept;
|
||||
[[nodiscard]] accounting::Inventory opening_total() const noexcept;
|
||||
[[nodiscard]] accounting::Inventory current_total() const noexcept;
|
||||
[[nodiscard]] const CellularBoundaryLedger& boundary_ledger() const noexcept;
|
||||
|
||||
@@ -22,6 +22,10 @@ struct CellularPlaySummary {
|
||||
std::uint64_t lifespan_min{}, lifespan_median{}, lifespan_max{};
|
||||
// Reproduction and evolution: buds so far, mutations applied, living variety.
|
||||
std::uint64_t buds{}, mutations{}, living_genomes{}, deepest_lineage{};
|
||||
// Rules 13: living organisms and the largest one's cells; offers waiting for a choice and
|
||||
// offers earned by the living; matter in the spent pool.
|
||||
std::uint64_t organisms{}, largest_organism{}, offers_pending{}, offers_earned{};
|
||||
std::uint64_t spent_matter_fg{};
|
||||
friend bool operator==(const CellularPlaySummary&, const CellularPlaySummary&) = default;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user