M11-PT-001: name the owner's refusal when a cellular tick stalls
Foundation / checks (ecs) (push) Successful in 2m22s
Foundation / checks (deploy) (push) Successful in 4m6s
Foundation / checks (tsan) (push) Successful in 11m26s
Foundation / checks (network) (push) Successful in 19m48s
Foundation / checks (client) (push) Successful in 21m2s
Foundation / checks (checks) (push) Successful in 45m36s
Foundation / checks (postgres) (push) Successful in 45m54s
Foundation / postgres-tools (push) Successful in 24s
Foundation / server-image (push) Successful in 30s
Foundation / image (push) Successful in 3m33s
Foundation / checks (ecs) (push) Successful in 2m22s
Foundation / checks (deploy) (push) Successful in 4m6s
Foundation / checks (tsan) (push) Successful in 11m26s
Foundation / checks (network) (push) Successful in 19m48s
Foundation / checks (client) (push) Successful in 21m2s
Foundation / checks (checks) (push) Successful in 45m36s
Foundation / checks (postgres) (push) Successful in 45m54s
Foundation / postgres-tools (push) Successful in 24s
Foundation / server-image (push) Successful in 30s
Foundation / image (push) Successful in 3m33s
The session batch builder reported every refusal of the owner's own step or restore as "biology", which cannot tell a resume problem from any other. It now keeps the CellularLivesError behind that, and the stall line prints it as lives=N (-1 when the refusal was not the owner's). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -234,9 +234,16 @@ std::expected<void, CellularSessionBatchError> CellularSessionBatchBuilder::appe
|
||||
|
||||
auto next = CellularLives::restore(working_->snapshot(), working_->world(), working_->region(),
|
||||
working_->frame(), working_->tick());
|
||||
if (!next ||
|
||||
!(*next)->advance_tick_with_mutations(prepared->intents.lives, prepared->intents.mutations))
|
||||
if (!next) {
|
||||
last_lives_error_ = next.error();
|
||||
return std::unexpected{CellularSessionBatchError::biology};
|
||||
}
|
||||
if (const auto advanced = (*next)->advance_tick_with_mutations(prepared->intents.lives,
|
||||
prepared->intents.mutations);
|
||||
!advanced) {
|
||||
last_lives_error_ = advanced.error();
|
||||
return std::unexpected{CellularSessionBatchError::biology};
|
||||
}
|
||||
|
||||
std::vector<CellularTickIntents::Birth> accepted_births;
|
||||
std::vector<CellularBirthRefusal> refused_births;
|
||||
|
||||
Reference in New Issue
Block a user