Skip to content

The boot sweep reported seat finishes that were days to weeks old #1192

Closed

Description

@Jacksondr5

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

  1. Why did the live notifier not report these runs when they finished?
  2. Why did earlier restarts between 2026-10-12 and 2026-11-11 not report them, while this one did?
  3. 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.

Activity

  1. added
    bug
    on Nov 23, 2026
  2. Jacksondr5 commented on Nov 23, 2026

    @Jacksondr5
    OwnerAuthor

    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 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).

    What's left after #1193

    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.

  3. Jacksondr5 commented on Nov 23, 2026

    @Jacksondr5
    OwnerAuthor

    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.

  4. Jacksondr5 commented on Nov 23, 2026

    @Jacksondr5
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions