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

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:
dingo
2026-10-16 13:36:35 -04:00
co-authored by Claude Opus 5.5
parent 521372607a
commit 44e748f055
4 changed files with 22 additions and 7 deletions
+6 -4
View File
@@ -932,13 +932,13 @@ int serve_cellular(Options& o) {
// A tick that cannot be built is retried every 50 ms; name each distinct cause once.
std::optional<std::pair<std::string_view, server::CellularSessionBatchError>> stalled;
const auto report_stall = [&](std::string_view where, server::CellularSessionBatchError error,
std::uint64_t tick) {
std::uint64_t tick, int lives_error = -1) {
if (stalled && stalled->first == where && stalled->second == error)
return;
stalled.emplace(where, error);
std::printf("cellular tick stalled tick=%llu at=%.*s error=%u\n",
std::printf("cellular tick stalled tick=%llu at=%.*s error=%u lives=%d\n",
static_cast<unsigned long long>(tick), static_cast<int>(where.size()),
where.data(), static_cast<unsigned>(error));
where.data(), static_cast<unsigned>(error), lives_error);
};
const auto set_ready = [&](bool now) {
if (ready != now) {
@@ -1129,7 +1129,9 @@ int serve_cellular(Options& o) {
tick, baseline, actions, held_births, host.queued_mutations());
}
if (!appended) {
report_stall("append", appended.error(), tick);
const auto lives = builder->last_lives_error();
report_stall("append", appended.error(), tick,
lives ? static_cast<int>(*lives) : -1);
bridge->dropped(actions, true);
} else {
stalled.reset();