Skip to content

A Base fix, when the base-fix flag is given #222

Closed

Description

@JacobStephens2

Parent

#221

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

  1. 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; labels base-fix and ready-for-agent. No agent session writes it.
  2. It starts a child thirdshift Run 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.
  3. 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.
  4. 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 gh and claude.

Blocked by

Activity

  1. added
    ready-for-agent
    on Oct 1, 2026
  2. JacobStephens2 commented on Oct 1, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #236, merged into issue-221 by a thirdshift Merge run.

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions