From 85fcbcf0a5f97072e8411e8719a939089062b107 Mon Sep 17 00:00:00 2001 From: dingo Date: Mon, 12 Oct 2026 04:45:02 -0400 Subject: [PATCH] Fund cellular publication fixture birth --- docs/engineering/VALIDATION.md | 5 +++++ tests/cellular_publication_tests.cpp | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/engineering/VALIDATION.md b/docs/engineering/VALIDATION.md index 370188b..9dea50e 100644 --- a/docs/engineering/VALIDATION.md +++ b/docs/engineering/VALIDATION.md @@ -7100,3 +7100,8 @@ that constructed a tick-0 cellular genesis from a primitive life born at tick 1. now provisions an empty v1 genesis and publishes its first life through the allocator-backed control and birth path, retaining the action publication and restart assertions. PostgreSQL CI and Harbor image publication remain pending. + +CI run #329 verified the test compiles but rejected replay because the newly +empty nursery had no energy reserve to fund its first birth. The fixture now +keeps the canonical primitive endowment while starting with no cells. PostgreSQL +CI and Harbor image publication must rerun. diff --git a/tests/cellular_publication_tests.cpp b/tests/cellular_publication_tests.cpp index b336853..cfc083b 100644 --- a/tests/cellular_publication_tests.cpp +++ b/tests/cellular_publication_tests.cpp @@ -361,7 +361,12 @@ void run_cellular_publication_tests() { constexpr RegionKey key{9756, 1}; - auto primitive = PrimitiveLives::create({key.world, key.region, 1, 17, {}, {{0, 0}}}); + auto endowment = evo::biology::primitive_endowment(); + CHECK(endowment); + auto funding = endowment->body; + funding.energy.value = endowment->reserve.energy.value + endowment->construction.value; + auto primitive = + PrimitiveLives::create({key.world, key.region, 1, 17, funding, {{0, 0}}}); CHECK(primitive); auto habitat = evo::biology::CellularHabitat::create({key.world, key.region, 1, 1'000, 1'000, {}});