Repository navigation
Description
This was generated by AI during triage.
What happened
The Run for #683 Self-merged #684 into main with site-test red. main has been red since then (fixed in #685).
From the Run's command log (times EDT):
09:06:58 CI failed on da91de5: site-test
09:07:00 CI red; starting Repair 1 of 5
09:11:13 repair-1: session ended (no commit; head still da91de5)
09:11:15 re-running the failed checks on da91de5: site-test
09:11:18 CI passed on da91de5 <- 3 s after the request
09:11:20 merging the PR into main
GitHub's record of the same workflow run (38400243958): attempt 3 of site-test started at 09:11:21 and failed at 09:11:59, forty seconds after the merge.
Why
The Check re-run counts the new attempt as started once GitHub no longer lists the attempt-before's failed check runs, and the checks listing is non-empty. That condition only proves the old runs disappeared. GitHub stops listing the failed check run as soon as a re-run is requested, before it lists the queued job. During that gap the listing holds only the green checks, so the watch that follows finds nothing pending and nothing failed, and reports CI passed.
The guard was also stale here. The attempt-before ids came from the watch that started the Repair. The Repair session had already re-run the job itself (gh run rerun, attempt 2), so attempt 1's check run was gone before thirdshift asked. The guard passed on its first poll.
This breaks the CONTEXT.md rule for Check re-run: "Checks that cannot be read or disappear after known failures cannot establish success."
Expected
After a successful re-run request, CI on the head can only count as passed once every re-run check name is listed again with a check run that is new since the request: an id not seen before it, finished and passing. If any re-run check name is missing when the watch ends, the result is not green. Use the same rule if the Repair (or anyone) re-ran the jobs before thirdshift's request.
Evidence
- Run log:
~/.thirdshift/logs/JacobStephens2/thirdshift/commands/issue/683-20261013T082006-0400.log - Attempts: https://github.com/JacobStephens2/thirdshift/actions/runs/38400243958 (3 attempts,
site-testfailed on all three) - Failing
mainpush run: https://github.com/JacobStephens2/thirdshift/actions/runs/38402984545
Activity
JacobStephens2 commentedon Oct 14, 2026
Agent Brief
Category: bug
Summary: A Check re-run must never report CI passed until each re-run check has a new, finished, passing check run listed.
Current behavior:
After a successful re-run request, the CI watch treats the new attempt as started once the checks listing is non-empty and lists none of the attempt-before's failed check runs. GitHub stops listing a failed check run as soon as its re-run is requested, before it lists the queued job, so the listing can briefly hold only green checks. The watch then reports
CI passedand a Merge run Self-merges. The attempt-before ids come from the watch that started the Repair. If the Repair re-ran the jobs itself, those ids are already gone, and the guard passes at once.Desired behavior:
None), neverCi::Passed. A check name that disappears during the watch after known failures cannot count as green.Key interfaces:
ci::rerun/ itsOutside-driven core: the new-attempt condition.Check,ActionsJob { check_run, workflow_run }: identity for "new since the request".Outsidetest double scripts listings per poll.Acceptance criteria:
Ci::Failed.FailedChecksis stale (a later attempt is listed, failed) when the request is made; the result still waits for a check run newer than the one listed at request time.Nonewith the existing progress line.citests still pass;cargo test,cargo clippy --all-targets -- -D warnings,cargo fmt --checkpass.Out of scope: