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>
35 lines
1.7 KiB
C++
35 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "evo/server/lifecycle/cellular_lives.hpp"
|
|
|
|
#include <cstdint>
|
|
#include <expected>
|
|
|
|
// M11.9 (ADR-0130): bounded, account-free play telemetry from one committed cellular state.
|
|
// It reads only what the checkpoint already holds and reports aggregates: no account,
|
|
// session, position or per-player history leaves the region.
|
|
namespace evo::server {
|
|
struct CellularPlaySummary {
|
|
std::uint64_t tick{};
|
|
// The living population by kind and presence (presence is rules 5).
|
|
std::uint64_t owned{}, wildlife{}, lingering{}, suspended{};
|
|
// Every death so far, by recorded cause (unrecorded below rules 3) and by kind.
|
|
std::uint64_t deaths{}, starved{}, engulfed{}, unrecorded{};
|
|
// Rules 13: single cells that became organisms, and organisms that emerged.
|
|
std::uint64_t merged{}, emerged{};
|
|
std::uint64_t owned_deaths{}, wildlife_deaths{};
|
|
// Lifespans in ticks of the dead (born to death), from the archive.
|
|
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;
|
|
};
|
|
|
|
[[nodiscard]] std::expected<CellularPlaySummary, CellularLivesError>
|
|
summarize_cellular_play(const CellularLives& state);
|
|
} // namespace evo::server
|