Repository navigation
Description
This was generated by AI during triage.
From a 2026-11-11 check of the fleet's Needs you items (thirdshift 0.27.2).
Agent Brief
Category: bug
Summary: When a Fix run Pass's Base branch CI-fix session commits nothing, the run still pushes the repair branch and tries to open a pull request. GitHub refuses it (No commits between main and fix-main-<sha>), so the Command fails into Needs you and leaves an empty repair branch on origin.
Current behavior:
On test, thirdshift fix base main merge, cron at 10:35 EST:
- Base branch CI on
mainat895f4b7was red (console-test, site-test). The Pass created worktreethirdshift-fix-main-895f4b7fromorigin/mainand ran the CI-fix session. - The session made no commit. At 10:51 the run pushed
fix-main-895f4b7, still pointing at895f4b7, cleaned up, and then rangh pr create … --draft, which failed twice withGraphQL: No commits between main and fix-main-895f4b7 (createPullRequest). - The Command failed and appeared under Needs you.
refs/heads/fix-main-895f4b7is still onorigin, and the guide says an existing repair branch prevents another repair attempt for that commit.
main's next commits (2dc95dd, acb42c1, 482507a, b02e7ae) all passed CI, so the red was not a lasting failure.
For a pull request, the Repair loop already handles this case: a CI-fix Repair that leaves the head unchanged gets one Check re-run (ADR-0010). Base branch maintenance has no equivalent.
Desired behavior:
When the Base branch CI-fix session leaves no commit:
- The run pushes no repair branch and opens no pull request.
- It ends without a failure, and records in the Activity log and on stderr that the CI-fix found nothing to change on
<base>at<sha>. Optionally it re-runs the failed checks once, as ADR-0010 does for a pull request. - Later Passes don't retry a repair for that same commit, as now, without needing an empty branch on
originto say so.
Key interfaces:
src/fix/base_ci.rs: after the CI-fix session, before pushing and Delivery.- The record that stops a second repair attempt for the same Base branch commit.
docs/guide.md, Fix runs: the Base branch CI paragraph.
Acceptance criteria:
- With red Base branch CI and a CI-fix session that commits nothing,
thirdshift fix base mainpushes no branch, runs nogh pr create, exits0, and logs the reason. - A later Pass on the same red Base branch commit doesn't start another CI-fix session.
- A CI-fix session that commits still opens
Fix CI on <base>: …as now. - Tests run through the CLI against the fake
gh.
Out of scope:
- Deleting the existing
fix-main-895f4b7branch onorigin, which is a one-off cleanup.
Activity
JacobStephens2 commentedon Nov 11, 2026
Verified against
origin/mainand fleet traces (testhostfix-20261111-103503,fix-main-895f4b7).The
## Agent Briefin the issue description is ready for implementation, with the optional re-run point resolved:GitHub::fix_base_tipalready re-runs failed jobs once whenrun_attempt == 1before starting the CI-fix session, so by this point the workflow has already failed twice).gh pr create, record the attempted Base-branch commit locally so later Fix Passes do not spin up another CI-fix session for that same<base>commit, log that the CI-fix found nothing to change on<base>at<sha>, and exit0.Moving to
ready-for-agent.JacobStephens2 commentedon Nov 11, 2026
This comment was generated by AI.
thirdshift's Run on this issue failed, so it waits for the Day shift.
issue-2042on origin, with pull request Avoid empty Base branch CI repair pull requests #2057Put
ready-for-agentback to retry.Skip remembered Base CI attempts before check reruns (#2042)