Assert starvation preserves reserve energy
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (checks) (push) Failing after 38s
Foundation / checks (postgres) (push) Failing after 50s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

This commit is contained in:
dingo
2026-10-10 21:58:06 -04:00
parent 9984f78940
commit d5ffade82a
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -6013,9 +6013,9 @@ or durably publish the heat ledger, lineage outcome, habitat, or action result.
Executed locally: warning-as-error MSVC 19.44 Debug and Release/NDEBUG direct
compile/run of the focused region-step regression; the regression confirms
same-tick death, exact body/reserve transfer, separate heat output, no patch
mutation, and unchanged all-or-nothing handling of duplicate identities;
and `git diff --check`. `clang-format` and `clang-tidy` were not installed or
same-tick death, exact body and energy/matter reserve transfer, separate heat
output, no patch mutation, and unchanged all-or-nothing handling of duplicate
identities; and `git diff --check`. `clang-format` and `clang-tidy` were not installed or
available on PATH in this Windows environment. CTest, Linux sanitizer/CI
qualification, durable heat ownership, lineage and checkpoint publication
remain pending.
+3 -2
View File
@@ -80,7 +80,7 @@ void refusal_never_returns_partial_tick_state() {
CHECK(!repeated && repeated.error() == CellularRegionStepError::duplicate_life_id);
auto starved_life = CellularLifeStepInput{
2, {0, 0}, 20, {}, {{0}, {{{1}, {2}, {3}, {4}}}}, {{0}, {{{1}, {1}, {1}, {1}}}},
2, {0, 0}, 20, {}, {{0}, {{{1}, {2}, {3}, {4}}}}, {{7}, {{{1}, {1}, {1}, {1}}}},
{{17}, {}}, budget()};
auto starved_budget = budget();
starved_budget.maintenance = {1'000};
@@ -90,7 +90,8 @@ void refusal_never_returns_partial_tick_state() {
CHECK(result);
CHECK(result->begin_tick == 4 && result->end_tick == 5);
CHECK(result->lives.empty() && result->starved.size() == 1);
CHECK(result->starved[0] == CellularCorpseCandidate{2, {0, 0}, {{0}, {{{2}, {3}, {4}, {5}}}}});
CHECK(result->starved[0] ==
CellularCorpseCandidate{2, {0, 0}, {{7}, {{{2}, {3}, {4}, {5}}}}});
CHECK(result->heat_released.value == 17);
CHECK(result->patches.empty());
CHECK(map->patches()[0].stock == Inventory{{5}, {{{2}, {2}, {2}, {2}}}});