Predeclare the M11.9 playtests and add account-free play telemetry
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>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "evo/server/lifecycle/cellular_batch.hpp"
|
||||
#include "evo/server/lifecycle/cellular_lives.hpp"
|
||||
#include "evo/server/lifecycle/cellular_play_summary.hpp"
|
||||
#include "evo/server/lifecycle/wildlife_controller.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
@@ -610,6 +611,13 @@ void rules_three_owner_resolves_engulf_and_detritus() {
|
||||
++steps;
|
||||
}
|
||||
CHECK(owner.lives().empty() && owner.corpses().size() == 2);
|
||||
// 11.9 telemetry (ADR-0130): account-free aggregates from the state alone.
|
||||
const auto ended = summarize_cellular_play(owner);
|
||||
CHECK(ended && ended->owned == 0 && ended->deaths == 2 && ended->starved == 2 &&
|
||||
ended->engulfed == 0 && ended->owned_deaths == 2 && ended->lifespan_min > 0 &&
|
||||
ended->lifespan_min <= ended->lifespan_median &&
|
||||
ended->lifespan_median <= ended->lifespan_max && ended->buds == 0 &&
|
||||
ended->living_genomes == 0);
|
||||
for (const auto& corpse : owner.corpses())
|
||||
CHECK(corpse.cause == evo::biology::CellularDeathCause::starved &&
|
||||
corpse.predator_life == 0 && corpse.inventory == Inventory{});
|
||||
@@ -710,6 +718,9 @@ void rules_four_owner_buds_wildlife() {
|
||||
child.mutation == CellularMutationProgress{});
|
||||
CHECK(child.growth.realized_per_thousand < 1000 && child.reserve.energy.value > 0);
|
||||
CHECK(owner.archive().living_carriers(parent_genome).value_or(0) == 2);
|
||||
const auto counted = summarize_cellular_play(owner);
|
||||
CHECK(counted && counted->owned == 1 && counted->wildlife == 1 && counted->buds == 1 &&
|
||||
counted->living_genomes == 1 && counted->deepest_lineage == 1 && counted->deaths == 0);
|
||||
CHECK(owner.last_tick_feedback().front().bud == CellularBudResult::budded &&
|
||||
owner.last_tick_feedback().front().bud_life == identity);
|
||||
CHECK(owner.current_total() == owner.opening_total());
|
||||
|
||||
@@ -552,6 +552,16 @@ void cellular_v4_provisioning_uses_the_presence_bundle() {
|
||||
const auto manifest = decode_manifest(head->manifest);
|
||||
CHECK(manifest && manifest->cellular_versions == cellular_v6_versions &&
|
||||
manifest->history_profile == cellular_revision_history_profile);
|
||||
// 11.9 (ADR-0130): the read-only summary reports account-free aggregates of the head.
|
||||
Child summary{{env("EVO_WORLD_CLONE_BIN"), "summary", "--world", "9769", "--region", "1",
|
||||
"--pg-host", env("PGHOST"), "--pg-port", env("PGPORT"), "--pg-database",
|
||||
env("PGDATABASE"), "--pg-user", env("PGUSER"), "--objects", r.root.string()}};
|
||||
CHECK(summary.wait_exit(30s) == 0);
|
||||
const auto lines = summary.lines();
|
||||
CHECK(has(lines, "cellular summary world=9769 region=1 sequence=0 tick=0") &&
|
||||
has(lines, "living owned=0 wildlife=0 lingering=0 suspended=0") &&
|
||||
has(lines, "deaths total=0 starved=0 engulfed=0 unrecorded=0 owned=0 wildlife=0") &&
|
||||
has(lines, "evolution buds=0 mutations=0 living_genomes=0 deepest_lineage=0"));
|
||||
}
|
||||
|
||||
void cellular_provisioning_survives_a_build_promotion() {
|
||||
|
||||
Reference in New Issue
Block a user