diff --git a/apps/evo-world-clone/main.cpp b/apps/evo-world-clone/main.cpp index 97447c0..a08a018 100644 --- a/apps/evo-world-clone/main.cpp +++ b/apps/evo-world-clone/main.cpp @@ -492,12 +492,17 @@ int provision(const Options& o) { primitive_opening = std::move(*opening); } if (cellular) { + // The provision parser requires these for cellular-v1, but keep this + // execution boundary safe if an incomplete Options value is ever passed. + const auto cellular_width_um = o.cellular_width_um.value_or(0U); + const auto cellular_height_um = o.cellular_height_um.value_or(0U); + const auto cellular_temperature_mk = o.cellular_temperature_mk.value_or(0U); biology::CellularHabitatConfig habitat_config{}; habitat_config.world = o.source.key.world; habitat_config.region = o.source.key.region; habitat_config.frame = primitive_frame; - habitat_config.width_um = *o.cellular_width_um; - habitat_config.height_um = *o.cellular_height_um; + habitat_config.width_um = cellular_width_um; + habitat_config.height_um = cellular_height_um; habitat_config.patches = o.cellular_patches; auto habitat = biology::CellularHabitat::create(std::move(habitat_config)); if (!habitat) { @@ -506,7 +511,7 @@ int provision(const Options& o) { } auto opening = server::CellularLives::create( *primitive_opening, std::move(*habitat), - {{*o.cellular_width_um, *o.cellular_height_um}, 0, *o.cellular_temperature_mk}); + {{cellular_width_um, cellular_height_um}, 0, cellular_temperature_mk}); if (!opening) { std::printf("cellular opening refused %u\n", static_cast(opening.error())); return 4; diff --git a/docs/engineering/VALIDATION.md b/docs/engineering/VALIDATION.md index 16a02b8..015ee9e 100644 --- a/docs/engineering/VALIDATION.md +++ b/docs/engineering/VALIDATION.md @@ -6994,3 +6994,11 @@ CI run #300 did not rerun the client suite: the path selector omitted irrelevant. The client selector and its offline regression fixture now include that test source. The next CI run must execute the diagnostics before its client result can be used to unblock the server image. + +CI run #301 passed the client lifecycle suite and deploy selector fixture, but +the PostgreSQL-enabled analysis rejected three unchecked cellular provisioning +optionals at `apps/evo-world-clone/main.cpp:509`. The execution path now uses +safe `value_or(0)` reads for those parsed values; valid `cellular-v1` options are +still required by the parser. The run failed before the dependent server-image +and Harbor publication jobs could start. CI must validate this repair on the +next push.