Review Passes recognize reviewed and pushed heads only in comments by the GitHub account thirdshift acts as. When an upper pull request lacks Review run fixes delivered to its base, its comment says it needs updating before merge; the author updates the stack.
Review Passes (review --author) and Fix Passes skip release-* pull requests targeting main, leaving their version-only heads to the Release run. Explicit thirdshift fix <pr-url> --no-merge --no-base-fix still repairs those pull requests.
Review retries recover clean retained worktrees with verified ownership and committed fixes above the same captured PR head. Author Passes skip other local conflicts, notify once per state and continue to later waiting pull requests. An explicit PR URL still fails with preservation advice.
Review runs and pull-request Custom processes record their target PR URL and title before the first session starts. It appears in thirdshift status and the Command log while the run is live, and Command log and Session trace pages show the selected Command's GitHub issue or pull request link and title below the page heading (including a Pickup or Pass run's opened pull requests). Compact Working rows, including Overview, show live Fix and Review targets as clickable PR #number links beside the repository and run type, on desktop and phone, locally and across the Fleet. Explicit and Pass-selected targets appear alike. A Base branch CI repair shows its exact Base branch before publication and keeps it beside the PR link afterwards; older records without a target keep their Command label.
thirdshift fix <PR URL or number> takes an open pull request by a Trusted account, ready or draft, straight through Delivery and the Repair loop against its own Base branch. With no PR target, thirdshift fix [base <branch>] [--author <login>] is a Pass taking the lowest-numbered eligible ready PR with a Merge conflict or CI red, passing over head branches checked out locally with the PR URL and occupying path on stderr. It skips cleanly at the Command limit or when none can be taken, recording occupancy reasons in the Activity log. An explicit PR target still fails and names the occupying worktree. It skips implementation and initial code review, reserves the PR until it ends, and supplies Repairs with trusted PR and linked closing-issue context. Add merge for Self-merge or base-fix for inherited failures; the usual User config defaults apply. Self-merge needs recorded agent review of the adopted head; without it a Fix Pass, or a targeted Fix run asked to merge only by merge.always, repairs the PR and finishes successfully Ready for review, logging the hold. An explicit thirdshift fix <PR> merge still fails with the hold and leaves the repaired PR ready. Other failures preserve work, draft the PR and offer a Fix run retry. Fix runs
A Fix Pass checks every linked closing issue before and after reserving the PR. An in-progress Claim on a Spec or standalone Ticket run's issue, including on another host, makes it skip the PR and name the claimed issue on stderr. It can adopt the PR on a later Pass after the Claim ends. Unreadable links or labels fail closed; explicit PR targets keep their existing behavior.
Without --author, a Fix Pass first checks Base branch CI on origin. A failed first push attempt gets one failed-jobs re-run, then PR selection continues without waiting. Pending or re-running Base checks, an occupied CI reservation, or an existing repair branch or PR skip only Base branch maintenance; stderr and the Activity log record the reason. Persistent or non-rerunnable failures get a CI-fix session on fix-<base>-<short-sha> and a repair PR targeting the Base branch, with every red check its own to fix; that Fix run ends the Pass. Failed opening sessions publish preserved work as draft repair PRs with a Fix Recovery command. An existing repair branch or PR prevents duplicates, including failed drafts. Completed Ticket, Spec and Base CI Deliveries record their exact agent-authored or reviewed heads for later Fix Self-merge. Merge and email flags and User config apply; Self-merge also closes the Base branch's CI-red reports and Base fix issues.
If the Base branch CI-fix session commits nothing, the Fix run pushes no repair branch, opens no PR and exits successfully, with the reason on stderr and in the Activity log. A local Git ref remembers that Base branch and full commit in the Launch repository, so later Passes there skip that CI-fix and can select another PR. No further Check re-run is requested.
Fix CI sessions keep command and test logs in the worktree's Git-excluded .validation-logs/ directory, which cleanup discards. They reproduce with the failing test file or filter before a full suite, without full-suite debug output or sleep-and-tail polling loops. Review sessions check whether the PR is open at most once, immediately before a multi-minute validation suite; thirdshift also checks its state around the session and before Delivery.
After publishing, addressing Review runs and pull-request Custom processes wait for checks and commit statuses on the exact delivered head, including unchanged branches. Up to five CI-fix Repairs validate and publish fixes for the branch's own failures; a Custom process may lower the cap. An unchanged Repair gets one eligible Check re-run. Inherited failures, unreadable CI and unresolved red CI end failed with check evidence in the comment and notification. No ready notification is sent while CI is pending. Concurrent PR changes stop Delivery, and a final merge conflict asks the author to update the branch. Review never rebases the author's stack, and merges only when its command or [review] merge asks for Self-merge. --recommend-only stays report-only.
Every Review run validates its worktree after addressing findings, following the repository's agent instructions and extra commands from review.commands_by_repo in the User config. Its comment names what ran, passed, failed or could not run. A suite invalid from a worktree is reported not run against the branch, never passing. With no extra list, repository final validation still runs; --recommend-only validates after reviewing too. Disposable validation logs stay inside the worktree under .review-logs/, so even a Review run that fails before delivering removes its worktree and local branch when nothing else is left. Failure diagnosis targets the failing test file or filter and reads large logs with bounded streaming tools to limit memory use. If a later Step commits more changes, Delivery repeats validation on the final head before pushing and reports those results. When that report includes private Security review material, the comment says the results were withheld instead of quoting the session.
thirdshift review <PR URL> reviews an open, ready pull request by a Trusted account on its own branch and base, addresses findings and pushes fixes without force. It posts one comment with what it fixed and every Unaddressed finding, using linked closing issues as the Spec or explicitly the body alone. A departure explained only by the body stays unaddressed with that reason and no triage issue. If the branch moves before the push, the comment describes the proposed fixes and says nothing was pushed. Add --recommend-only for findings without fixes. Forks and drafts are refused. A successful unmerged Review run sends its Run notification and stays in Ready for review until the pull request is merged or closed. Review runs
thirdshift skill runs one skill. thirdshift process is experimental: it runs skill, command or catalogue Steps from ~/.thirdshift/processes, including Steps that run together in throwaway worktrees the file names. The catalogue Step run-published-issue starts a Ticket run or a Spec run on the issue the session Step before it published. Its optional process = "<name>" setting selects the child Ticket Process, defaulting to ticket-run; it must exist and declare an Issue-branch worktree. An issue with Tickets still starts a Spec run. An optional Step can fail without stopping the process. Pass issue to give the process an issue, so each session Step works from that issue. A file can name one Issue-branch worktree and a delivery Step: the run holds the Claim, and Delivery leaves a ready-for-review pull request and then removes the Claim. A self-merge Step directly after it merges when merge or the User config asks, and a file can only tighten limits. With no issue, and neither an Issue-branch nor a Spec-branch worktree, it is a Pass: it skips, exiting 0 with no Run notification, while the repository is at its Command limit, and it does not take an Architect run's Ready-issue or Architect-idea gates. With an issue, it is not a Pass. Status, the Console and the Activity log list it as Process <name>, and a failed one is in Needs you. It sends a Run notification under the same email rules as a Ticket run, except a skipped Process sends none. Custom processes.
Add merge or --merge to thirdshift review <PR URL> or review --author <login> for a Self-merge after Delivery. [review] merge = true opts this machine in; the default is false, no-merge overrides it, and merge.always does not apply. Self-merge uses the Fix run’s exact reviewed-head and CI gates and merge-time Repair loop. Required reviews, open PR bases and failed or incomplete Security reviews leave the PR ready with a logged hold: an author Pass exits 0, a targeted merge request exits non-zero. Successful merges report merged, close linked closing issues and delete the branch. --recommend-only with merge is an argument error. Review Self-merge.
For cron, thirdshift review --author <login> takes one author's lowest-numbered eligible open pull request. It skips reviewed or pushed heads, in-progress pull requests and bases that are open pull requests awaiting review at their current head. It also skips PRs whose linked closing issues carry an in-progress Claim or an issue reservation, including Ticket and Spec Delivery on another machine, logging the holding issue and trying the next candidate. Once the hold ends, a later Pass can take the PR; retained reservations need operator recovery. Explicit PR URLs keep their existing behavior. This Pass skips at the Command limit. Review runs reserve their pull request and remove in-progress when they end; the Sweep clears it from closed pull requests.
On a Review run, security-review or [security] review = true adds a Security review after it addresses Standards and Spec findings. It uses security.harness and the usual fallback, pushes its fixes with the others, and lists unfixed introduced Security findings in the comment. no-security-review overrides the setting; --recommend-only skips the Security review.
A Step may name its own Harness, Model and Effort. Each omitted setting inherits the Command's resolved value, including --harness and User config choices. process check prints each choice, its origin and whether the Harness starts. thirdshift process list lists Processes and marks Built-in processes; process show <name> prints a Process file exactly, ready to save under a new Custom process name. The compiled-in ticket-run file runs implement → security-review → delivery → self-merge. Ticket runs execute it by default, including those started by Spec, Architect and Security runs, inheriting the Command's Harness, Model and Effort, Child asks and Limits. The Security review and Self-merge still run only when asked. Inspect it with process show ticket-run, or use process check ticket-run with an issue <issue> argument.
Spec runs execute the compiled-in spec-run file: land-tickets → spec-review → security-review → delivery → self-merge, on a spec-branch worktree. Every starter uses it: an Issue URL, Pickup, Architect and Security runs, and run-published-issue. Dispatch, the Claim, Child asks and Limits stay in front of the file. The run keeps its sessions, progress lines and Spec run name, and records the compiled file's hash. Inspect it with thirdshift process show spec-run or validate it with thirdshift process check spec-run issue <spec>; its name is reserved against Custom processes.
Security runs execute the compiled-in security-run file: security-audit → reproduce-findings → fix-findings → close-findings. The Command limit, the lock of its kind and Ready-issue, failed-fix and unchanged-Base skip gates stay before the file, followed by a check that the repository has Issues turned on: with Issues off, the run fails before any session and says to turn them on or remove its Security schedule. An earlier reproduced finding awaiting an allowed fix makes the first two Steps skip. The run fixes at most one finding and closes only that finding after its fix merges and its proof passes. Sessions, progress, logs, Run notifications and the Security run name stay the same, with the compiled file's hash recorded. Inspect it with thirdshift process show security-run or validate it with thirdshift process check security-run; its name is reserved against Custom processes. A copy under a new name follows the Command limit without a lock of a kind and can fix several findings.
Pickup has no Built-in process file. It selects and reserves a Ready issue, then dispatches ticket-run or spec-run.
A Custom process can instead declare a spec-branch worktree and use land-tickets to gather Tickets in dependency order into a draft Spec PR and its checklist, up to spec.parallel at once. Its process setting selects every child Ticket's Process. A file can declare one Issue-branch or one Spec-branch worktree, never both; the former refuses Specs, the latter requires one, and both require an issue and make the Claim before the worktree. The draft Spec PR keeps its Claim while it waits.
Follow land-tickets with spec-review → security-review → delivery → self-merge on the Spec-branch worktree to deliver the Spec PR. The Spec review reviews the whole Spec with its usual report contract. Delivery restores the Tickets checklist, runs the Repair loop and leaves the PR ready for review, removing its Claim. Security review and Self-merge run only when asked; a refused or incomplete Security review holds the merge.
The implement catalogue Step runs the Ticket run's implementation session on an Issue-branch worktree, starting fresh or continuing existing work. On an ordinary bug issue it diagnoses first; Flaky-test Tickets use recorded evidence directly; if the bug is not reproduced, the Process ends successfully with triage notes and needs-info, skips later Steps and cleans up its Claim and worktree.
The security-review catalogue Step reviews the Issue branch after editing and before delivery, when the command or User config asks. It keeps the Ticket run's Harness fallback, and a refused or incomplete review holds a following Self-merge.
The architecture-review catalogue Step reviews the Base branch in its own throwaway worktree. Follow it with run-published-issue to build a Strong Architect plan. An Architect idea in the repository at origin, or thirdshift process <name> --plan-only, ends the Process successfully and skips later Steps, with the reason recorded. An idea outside that repository is refused before it is viewed or labelled.
security-audit → reproduce-findings audits the Base branch, records findings privately and reproduces each at its audited commit. Each Step takes its own Harness, Model and Effort and keeps completed reproductions. Both skip when a recorded finding awaits an allowed fix; Security runs keep their existing skip gates.
Every session Step gets one Resume when background work was killed as its turn ended. If the Resume leaves work running too, the Process names it and carries on; a later failure names that killed work first. A Resume does not spend a Repair.
The compiled-in architect-run file runs architecture-review → run-published-issue. Architect runs execute it after the Command limit, the lock of their kind and the open-plan, waiting-idea and Ready-or-settling-issue gates. The review Step ends successfully on an idea in the repository at origin, or with --plan-only; an idea outside that repository is refused before it is viewed or labelled. Otherwise the next Step runs the plan. Read it with thirdshift process show architect-run or validate it with thirdshift process check architect-run. A copy under a new Custom process name follows the Command limit without a lock of a kind. Architect runs keep their name, progress, logs and Run notification.
Command records and Session traces keep each run's Process name, whether it is Built-in or Custom, and the SHA-256 hash of its file. Architect runs record the compiled architect-run file. Child Ticket runs record their selected Process independently of their parent, defaulting to ticket-run. Runs awaiting a Built-in file keep their run-type name without a hash; the displayed run names stay the same.
A Custom process can use fix-findings → close-findings to fix reproduced Security findings and close only merged fixes whose proof-of-concept passes against the merged Base branch. The Steps keep private records and the Security run’s fixing and closing permissions. fix-findings can select a child Ticket Process with process; it defaults to ticket-run. Failed fixes and failed rechecks stay with the Day shift. Their sessions and the Ticket runs they start stay off any configured OTLP endpoint, as a Security run's do. The Built-in Security run still fixes at most one finding per invocation.