Skip to content

Targeted Fix run on an open pull request (thirdshift fix <PR>) #1794

Closed

Description

@JacobStephens2

Parent

#1784

What to build

Add the thirdshift fix <PR URL or number> Command and its fix-run Built-in process (delivery followed by self-merge) so the Day shift can take an open pull request by a Trusted account straight through the Repair loop against its Base branch without re-running implementation or code review.

When started on a pull request URL or bare pull request number from a Launch directory passing Origin match, thirdshift reserves the pull request on origin and labels it in-progress, checks out its head branch in a Worktree, writes the trusted pull request and linked closing-issue context file for Repair sessions, and enters Delivery's publication and Repair loop (merge Base branch → conflict Repair → push → mark ready → CI watch → CI-fix Repair → optional Base fix → optional Self-merge).

Acceptance criteria

  • thirdshift fix <PR URL> and thirdshift fix <PR number> accept an open pull request (ready or draft, with or without a linked closing issue) in the repository at origin authored by a Trusted account, and refuse pull requests outside the repository, closed/merged pull requests, fork pull requests, or untrusted authors before starting work.
  • thirdshift fix supports merge / --merge, no-merge / --no-merge, base-fix / --base-fix, no-base-fix / --no-base-fix, harness <name>, model <name>, effort <level>, email [<address>], email-unless-merged [<address>], and no-email, falling back to merge.always, base.fix, email.always, email.unless_merged, and the default Harness/Model/Effort in the User config.
  • fix-run ships as a Built-in process (delivery followed by self-merge) visible in thirdshift processes, and records its Command record, Command log, Activity log lines, and Run notification as a Fix run.
  • Every pull request Fix run reserves the pull request across machines (refs/thirdshift/reservations/<pr> + in-progress label on the pull request) while running and releases both when it ends.
  • Conflict Repairs, CI-fix Repairs, and Foreign-commit review Repairs in a Fix run receive the pull request's title, body, any linked closing issues, and Trusted account comments on the pull request and its closing issues via the worktree context file.
  • When the Repair loop succeeds, the pull request is marked ready for review (if it was a draft) and either left ready for review (PR <url> is ready for review) or merged via Self-merge (PR <url> is merged) according to the command and User config.
  • When a Fix run fails or is interrupted, thirdshift commits any uncommitted work as thirdshift: failed fix run (<reason>), pushes, converts the pull request back to a draft (unless it is already mergeable and green and only Self-merge was refused), and ends with Recovery offering thirdshift fix <PR URL> (preserving the command's flags).
  • GLOSSARY.md defines Fix run and includes it under Command and Base branch, and generated prompts (prompts/ and site/prompts/index.html) are updated and verified.

Blocked by

None (can start immediately).

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 5, 2026
  2. JacobStephens2 commented on Nov 5, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1799, merged into issue-1784 by a thirdshift Ticket run with Self-merge.

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

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions