diff --git a/apps/evo-world-clone/main.cpp b/apps/evo-world-clone/main.cpp index dc2d086..5fa6a00 100644 --- a/apps/evo-world-clone/main.cpp +++ b/apps/evo-world-clone/main.cpp @@ -73,6 +73,7 @@ #include #include #include +#include #include #include #include @@ -501,7 +502,7 @@ int provision(const Options& o) { return 4; } auto opening = server::CellularLives::create( - **primitive_opening, std::move(*habitat), + *primitive_opening, std::move(*habitat), {{*o.cellular_width_um, *o.cellular_height_um}, 0, *o.cellular_temperature_mk}); if (!opening) { std::printf("cellular opening refused %u\n", static_cast(opening.error())); @@ -550,8 +551,9 @@ int provision(const Options& o) { } if (primitive) { const std::array retained{manifest->build}; - auto recovered = persistence::recover_primitive_checkpoint(*db, *store, o.source.key, - retained, timeout); + auto recovered = persistence::recover_primitive_checkpoint( + *db, *store, o.source.key, std::span{retained}, + timeout); if (!recovered || recovered->state->snapshot() != primitive_opening->snapshot()) { std::puts("provision refused existing opening mismatch"); return 4; diff --git a/docs/engineering/VALIDATION.md b/docs/engineering/VALIDATION.md index 126900c..00e7704 100644 --- a/docs/engineering/VALIDATION.md +++ b/docs/engineering/VALIDATION.md @@ -6726,3 +6726,9 @@ used `CHECK` macros to guard nested `optional::value()` calls. Clang-tidy cannot prove that macro is a control-flow guard. The test now uses explicit throwing precondition branches before unwrapping, preserving the same assertions. Run 246's network job stopped at those diagnostics before network tests ran. + +Run 247 reached the PostgreSQL build and found two stale `evo-world-clone` +provision calls: a double dereference of the owned primitive-life state and an +array passed to an explicit retained-build span parameter. The primitive owner +is now dereferenced once, and the retained digest array is passed as an explicit +span. Run 247's PostgreSQL job stopped before its linked tests.