Repository navigation
Closed
Labels
enhancementNew feature or request
Description
This was generated by AI during triage.
Part of #1315.
Agent Brief
Category: enhancement
Summary: A Pickup run files one "CI red on main" Ticket when the Base branch's latest push run has stayed red.
Current behavior:
Nothing reacts when the Base branch's push CI fails. On 2026-10-25, main stayed red for about 15 merges. Runs kept self-merging on their own PRs' green checks until a human noticed. #275 and #559 were filed by hand for the same situation.
Desired behavior:
- Before choosing a Ready issue, a Pickup run reads the Base branch's latest completed push workflow run on
origin. - If that run failed and finished more than a short grace period ago, the Pickup run files one Ticket. The grace period lets a fix that's already merging get there first; 30 minutes is a sensible default.
- Title:
CI red on <base>: <failed jobs>. - Labels:
bugandready-for-agent. - Body: the failing commit, the failed jobs, and the failing test names it can read from the job logs, with a link to the run.
- Title:
- At most one such Ticket is open per repository. If one is open, no other is filed, and a later failure may add a comment to it.
- The Ticket is then an ordinary Ready issue. The same pass, or a later one, takes it by the usual rules.
- Self-merges are not held while the Base branch is red. That was decided on main's CI goes red and stays red while Runs keep merging #1315.
- This filing never runs in a Spec run, a Ticket run or an Architect run.
Key interfaces:
- The Pickup pass, before Ready-issue selection.
- The GitHub client's workflow-run and job reads.
gh api repos/<repo>/actions/runs?branch=<base>&event=pushand.../jobs/<id>/logsare the reads used by hand.
Acceptance criteria:
- With the latest push run on the Base branch failed past the grace period and no such Ticket open, a Pickup run files one, labelled
bugandready-for-agent, naming the failed jobs and the run URL. - With one already open, no second Ticket is filed.
- A green or in-progress latest push run, or a failure younger than the grace period, files nothing.
- Failing to read CI doesn't stop the Pickup run, and files nothing.
-
docs/guide.md's Pickup section, and GLOSSARY.md if it gains a term, describe this.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity