Repository navigation
Description
Parent
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>andthirdshift fix <PR number>accept an open pull request (ready or draft, with or without a linked closing issue) in the repository atoriginauthored 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 fixsupportsmerge/--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>], andno-email, falling back tomerge.always,base.fix,email.always,email.unless_merged, and the default Harness/Model/Effort in the User config. -
fix-runships as a Built-in process (deliveryfollowed byself-merge) visible inthirdshift 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-progresslabel 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 offeringthirdshift fix <PR URL>(preserving the command's flags). -
GLOSSARY.mddefines Fix run and includes it under Command and Base branch, and generated prompts (prompts/andsite/prompts/index.html) are updated and verified.
Blocked by
None (can start immediately).
Activity
JacobStephens2 commentedon Nov 5, 2026
Closed by #1799, merged into issue-1784 by a thirdshift Ticket run with Self-merge.