Repository navigation
Closed
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
When a Run is given the base-fix flag (or --base-fix) and meets an Inherited failure it would otherwise fail on, thirdshift starts a Base fix instead (see ADR 0008 and CONTEXT.md):
- It writes an issue from a fixed template: title
CI red on <base>: <check>[, <check>…]; a body naming the checks, their URLs, the Base branch and short sha, and the Run's pull request; labelsbase-fixandready-for-agent. No agent session writes it. - It starts a child
thirdshiftRun on that issue from the same Launch directory, as a Merge run into the Run's Base branch, whatever the Run's own goal, the way a Spec run starts Ticket Runs (ADR 0006). The Base fix sends no Run notification, never treats a check as an Inherited failure, and never starts a Base fix of its own. - The Run waits for it. Once the Base fix merges (its Self-merge closes its issue), the Run merges the Base branch in again and watches CI.
- A Run gets one Base fix. If the Base fix fails, or the checks are still Inherited failures after it merged, the Run is a Failed run whose cause names the Base fix issue URL.
Progress lines say when a Base fix starts and when the Run is waiting on it. The Run's own Run notification reports the Base fix. The fake gh gains issue creation with labels.
Acceptance criteria
- With
base-fix, a Run meeting an Inherited failure creates the Base fix issue with the template title, body and both labels. - The Base fix runs as a Merge run into the Base branch, sends no Run notification, and with the Base branch red on the same check repairs it rather than failing as an Inherited failure.
- After the Base fix merges, the Run merges the Base branch, watches CI again and can finish green (and Self-merge in a Merge run).
- A failing Base fix makes the Run a Failed run whose cause names the Base fix issue.
- Checks still Inherited failures after a merged Base fix fail the Run (no second Base fix), naming the Base fix issue.
- Without
base-fix, behavior is exactly as in Inherited failures fail the Run without a Repair #103. - Tested through the binary with the fake
ghandclaude.
Blocked by
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
JacobStephens2 commentedon Oct 1, 2026
Closed by #236, merged into issue-221 by a thirdshift Merge run.