#pragma once #include "evo/server/lifecycle/cellular_lives.hpp" #include #include // 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 summarize_cellular_play(const CellularLives& state); } // namespace evo::server