You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The boot sweep reported seat finishes that were days to weeks old #1192
On 2026-11-11 at 01:01 UTC, eight <j5_seat_finished> notices landed in four Captain threads within about 15 seconds. They were for seat runs that had completed days to a month earlier, between 2026-10-11 and 2026-11-09, in Crews that were still live but long finished. The Captains correctly treated each one as stale. Each one still started a Captain turn, and one ended in a provider error.
Evidence (live install, read-only)
Seat
Run reported
Run completed
Notice posted
builder (Crew A)
ordinal 108
2026-10-12 05:56
2026-11-11 01:01:48
research seat (Crew B)
ordinal 5
2026-10-11 04:22
2026-11-11 01:01:42
builder (Crew C)
ordinal 112
2026-11-09 04:10
2026-11-11 01:01:53
Each seat's earlier runs had produced one notice at most. The final run was never reported when it finished.
None of these seats had an open Exchange, so they owed no reply.
The timing fits a server restart: CrewSeatFinishNotifier.reconcile, the boot sweep, reports a live seat's latest completed or failed run when no notice matches it.
Questions for whoever picks this up
Why did the live notifier not report these runs when they finished?
Why did earlier restarts between 2026-10-12 and 2026-11-11 not report them, while this one did?
Should the boot sweep report a finish that is days old at all, or only one that finished while the server was down?
Related: once only failed runs post a notice (#1191), stale completed notices stop. A stale failure would still wake a Captain, so this stays worth answering.
1. The live notifier didn't miss these runs. It suppressed them on purpose. Before #914, a completed-run notice carried no seat reply. Its text was the same for every completed run of a seat: status, seat, Crew, ids and handoff state. Each seat's first notice became the baseline, and latestSeatNotice treated every later completed run as "unchanged" and posted nothing. For example, the builder in "Squadron fold" got one notice at run 4 on 10-08, then nothing for runs 5–55. All 8 seats show the same pattern.
2. Only the 11-11 restart reported them because it was the first restart on a build with #914.#914 (merged 11-06) changed the notice format: it added <seat_reply> and removed the handoff lines. The first release carrying it was v0.0.52-nightly.20261110.16, published 11-10 22:20 UTC. The previous nightly (11-03) lacks it. The live server restarted onto it at 11-11 01:01. The boot sweep then built each live seat's newest completed run in the new format and compared it with the old-format baseline. The texts differed, so all 8 posted. Earlier restarts ran builds whose text still matched the baseline.
3. Should the sweep report a days-old finish? For completed runs, the question goes away: #1191 (PR #1193) posts nothing for them, live or in the sweep. For failures, yes. A failure the Captain never heard about is still worth telling, which is the reason the sweep exists (a failed dispatch, or a failure while the server was down).
A stale failure notice now needs three things in a row:
a seat fails twice with word-for-word identical facts, so the second is silenced as unchanged;
the notice format changes later;
the server restarts.
The same run reported twice can't happen, because the command and message ids derive from the run. On the live install, crew seats have run 2,941 times in total, and only 6 of those runs failed, 2 of them first turns covered by the launch report. Under AGENTS.md ("error out instead of building machinery for rare cases"), I'm not adding a guard. I'll close this when #1193 merges.
Update: after review, #1193 also adds a run_id: line to each failure notice (5a78b8e), so every failed run gets its own notice and nothing is silenced as a repeat of an earlier run. That removes the leftover path described above. The boot sweep can now only post a failed run that was never posted. A run that was posted keeps the same command id, so a later format change can't re-post it. #1193 fixes this issue completely; I'll close it when #1193 merges.
Fixed by #1193: completed runs post nothing, and each failed run's notice names its run, so a format change can't re-post a run that was already reported.
Activity
Jacksondr5 commentedon Nov 23, 2026
Root cause (live install, read-only)
1. The live notifier didn't miss these runs. It suppressed them on purpose. Before #914, a completed-run notice carried no seat reply. Its text was the same for every completed run of a seat: status, seat, Crew, ids and handoff state. Each seat's first notice became the baseline, and
latestSeatNoticetreated every later completed run as "unchanged" and posted nothing. For example, the builder in "Squadron fold" got one notice at run 4 on 10-08, then nothing for runs 5–55. All 8 seats show the same pattern.2. Only the 11-11 restart reported them because it was the first restart on a build with #914. #914 (merged 11-06) changed the notice format: it added
<seat_reply>and removed the handoff lines. The first release carrying it wasv0.0.52-nightly.20261110.16, published 11-10 22:20 UTC. The previous nightly (11-03) lacks it. The live server restarted onto it at 11-11 01:01. The boot sweep then built each live seat's newest completed run in the new format and compared it with the old-format baseline. The texts differed, so all 8 posted. Earlier restarts ran builds whose text still matched the baseline.3. Should the sweep report a days-old finish? For completed runs, the question goes away: #1191 (PR #1193) posts nothing for them, live or in the sweep. For failures, yes. A failure the Captain never heard about is still worth telling, which is the reason the sweep exists (a failed dispatch, or a failure while the server was down).
What's left after #1193
A stale failure notice now needs three things in a row:
The same run reported twice can't happen, because the command and message ids derive from the run. On the live install, crew seats have run 2,941 times in total, and only 6 of those runs failed, 2 of them first turns covered by the launch report. Under AGENTS.md ("error out instead of building machinery for rare cases"), I'm not adding a guard. I'll close this when #1193 merges.
Jacksondr5 commentedon Nov 23, 2026
Update: after review, #1193 also adds a
run_id:line to each failure notice (5a78b8e), so every failed run gets its own notice and nothing is silenced as a repeat of an earlier run. That removes the leftover path described above. The boot sweep can now only post a failed run that was never posted. A run that was posted keeps the same command id, so a later format change can't re-post it. #1193 fixes this issue completely; I'll close it when #1193 merges.Jacksondr5 commentedon Nov 23, 2026
Fixed by #1193: completed runs post nothing, and each failed run's notice names its run, so a format change can't re-post a run that was already reported.