M11.9a (ADR-0130): the repeated-life playtest plan fixes its questions, sample and recording before any session. summarize_cellular_play derives aggregates (population, death causes, lifespans, buds, mutations, variety) from a committed cellular state, and evo-world-clone summary prints them for a region head, read-only and without account data. The roadmap records M11 status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
1.3 KiB
C++
29 lines
1.3 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{};
|
|
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{};
|
|
friend bool operator==(const CellularPlaySummary&, const CellularPlaySummary&) = default;
|
|
};
|
|
|
|
[[nodiscard]] std::expected<CellularPlaySummary, CellularLivesError>
|
|
summarize_cellular_play(const CellularLives& state);
|
|
} // namespace evo::server
|