Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ _Avoid_: task, sub-task

**Ready issue**:
An open issue a **Pickup run** may take: labelled `ready-for-agent`, written by a **Trusted account** or a named author, with its most recent `ready-for-agent` labelling made by a Trusted account and with later title and body edits only by Trusted accounts or the authorized author, with no label that makes an **Unready Ticket** and no **Claim**, not a sub-issue, not a **Base fix**'s or a **Security run**'s fix issue, with no open blocker, either never started (no **Issue branch** and no pull request) or handed back at or after the last **Claim** ended, as recorded in its label history: by the **Day shift** applying `ready-for-agent`, or by thirdshift putting it back on a Spec whose Spec run ended only waiting, which it does only when only Trusted accounts or the authorized author have edited the Spec since its last Trusted `ready-for-agent` labelling, and otherwise labels the Spec `needs-triage`, and only when each of its open Tickets in its repository passes the Trusted account check for Tickets, and otherwise labels it `agent-failed`, left untouched long enough that whoever is shaping it has finished, and, if it is a **Spec**, with a **Startable Ticket** or with every Ticket closed and a resumable **Spec branch** on `origin` (the latest numbered branch, with no PR or an open PR). A hand-back made in the same edit as the Claim's removal counts in either listed order at that timestamp; a Claim applied at the same timestamp leaves the issue Claimed. On a Spec, the label says its Tickets are published. A `ready-for-agent` Ticket inside a Spec is not one: it is reached through its Spec, when the Spec is itself a Ready issue.
_Avoid_: queued issue, backlog item

An open pull request whose latest locally recorded Run ended at a **Self-merge check** hold keeps its issue waiting for the **Day shift**, even after a hand-back.
_Avoid_: queued issue, backlog item

**Trusted account**:
The repository's owner, a member of the organization that owns it, a collaborator on it, or the account thirdshift's own `gh` credentials act as, such as a GitHub App's `<app>[bot]`: an issue author's `authorAssociation` of `OWNER`, `MEMBER` or `COLLABORATOR`, or that login; for an actor with no association field, and for an issue author with an untrusted one, equivalent repository membership or that login. The rule is fixed, with no **User config** setting. A **Spec run** stops before starting the Ticket run of a **Ticket** whose author is neither a Trusted account nor a named author, or whose title or body anyone else edited after the later of the Ticket's and its Spec's last `ready-for-agent` labellings by a Trusted account. A Ticket needs no `ready-for-agent` labelling of its own: the labelling that counts is its Spec's, checked when a **Pickup run** takes the Spec. **Ticket runs** and **Spec runs** check their issue again before a session, **Resume**, push or **Self-merge**. Title or body edits since a few minutes before the run started may come only from Trusted accounts or the issue's authorized author. A **Fix run** accepts only a Trusted account's edits on every linked closing issue (retaining previously linked ones during that run) around every **Repair**, **Resume**, push and **Self-merge**, and a **Review run** or pull-request **Custom process** accepts only a Trusted account's edits on every linked closing issue before writing `.thirdshift-review-input.md`, before and after each **Step**, session, **Repair** and **Resume**, before **Delivery** pushes fixes or posts its comment, and through any **Self-merge**, without drafting the pull request. The named-author exception does not apply to those pull-request checks. A **Review run**, a **Fix run**, or a pull-request **Custom process**, including one started as a **Pass**, also stops before using a linked closing issue unless that issue's author is a Trusted account and no account that is not one has edited its title or body. Each session that works on an issue gets the issue from thirdshift, written into its worktree again before the session starts: its title, its body, and only the comments by Trusted accounts and the issue's authorized author, each other comment replaced by a line saying it was left out. The **Session prompt** and **Factory skills** tell the session to work from that and not to fetch the issue's comments itself.
Expand Down
2 changes: 2 additions & 0 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4492,6 +4492,8 @@ thirdshift pickup trust-author 'intake[bot]' # approve this author for one Pass
Pickup has no Built-in process file. It selects and reserves the Ready issue,
then starts `ticket-run` or `spec-run` as a command on that Issue URL would.

Pickup passes over an open pull request whose latest run on this machine ended at a Self-merge check hold, even if the issue has been handed back. It prints the hold reason and looks for the next Ready issue.

Which end of the issue numbers the pass takes is its order: `lowest-first` by default, `highest-first` with `pickup.order = "highest-first"` in the [User config](#user-config), or for one pass with `lowest-first` or `highest-first` on the command, which wins over the User config. Two schedules working through the same queue from opposite ends, one with each order, collide less often; the reservation below still protects either choice.

Add `skip-author <login>` (or `--skip-author <login>`) on each cron line to pass over issues written by that account, even a **Trusted account**. Repeat it for several accounts; logins match case-insensitively. The Pass logs `#947 passed over: written by alice, whom this Pass skips` and searches for the next Ready issue. A skipped Spec author excludes the whole Spec. A Spec run dispatched by this Pass also stops before a Ticket written by a skipped account, with the same failure handling as an untrusted Ticket author. These choices belong to this Pass, with no User config setting; explicitly running `thirdshift <Issue URL>` still runs the named issue under the usual trust checks. The word never makes an untrusted author eligible.
Expand Down
1 change: 1 addition & 0 deletions site/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4188,6 +4188,7 @@
</code></pre>
<p>Pickup has no Built-in process file. It selects and reserves the Ready issue,
then starts <code>ticket-run</code> or <code>spec-run</code> as a command on that Issue URL would.</p>
<p>Pickup passes over an open pull request whose latest run on this machine ended at a Self-merge check hold, even if the issue has been handed back. It prints the hold reason and looks for the next Ready issue.</p>
<p>Which end of the issue numbers the pass takes is its order: <code>lowest-first</code> by default, <code>highest-first</code> with <code>pickup.order = &quot;highest-first&quot;</code> in the <a href="#user-config">User config</a>, or for one pass with <code>lowest-first</code> or <code>highest-first</code> on the command, which wins over the User config. Two schedules working through the same queue from opposite ends, one with each order, collide less often; the reservation below still protects either choice.</p>
<p>Add <code>skip-author &lt;login&gt;</code> (or <code>--skip-author &lt;login&gt;</code>) on each cron line to pass over issues written by that account, even a <strong>Trusted account</strong>. Repeat it for several accounts; logins match case-insensitively. The Pass logs <code>#947 passed over: written by alice, whom this Pass skips</code> and searches for the next Ready issue. A skipped Spec author excludes the whole Spec. A Spec run dispatched by this Pass also stops before a Ticket written by a skipped account, with the same failure handling as an untrusted Ticket author. These choices belong to this Pass, with no User config setting; explicitly running <code>thirdshift &lt;Issue URL&gt;</code> still runs the named issue under the usual trust checks. The word never makes an untrusted author eligible.</p>
<p>Pickup uses <a href="#named-triage-authors"><code>trust.authors</code></a> for its repository. Add
Expand Down
2 changes: 1 addition & 1 deletion site/how-it-works/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ <h1>How thirdshift works</h1>
<summary class="sec-head"><p class="eyebrow">07 / Where the next issue comes from</p><h2 id="scheduled-title">Choose how the next work starts</h2></summary>
<p>Every Pass checks the machine's GitHub Quota wait, then the quota, before other GitHub work or taking a Command-limit slot. It skips during a wait or below 500 REST requests or GraphQL points, with no stdout or Run notification. Pickup, Architect, Security, Triage without input, Review with <code>--author</code>, Fix without a pull request and issue-less Custom processes all follow this rule, from cron or by hand. The Activity log records each kind's changed reason; <code>status</code> and the Inbox show the wait beside last-fired Passes until reset. Budget Pass frequency per GitHub user across all hosts and repositories sharing that user's quota. After the quota, a Pass reads this machine's <strong>Plan usage</strong>, refreshing a stale Claude, Codex, Muse or agy snapshot with its non-billed read, and skips the same way when every route its sessions may take is held, with a banner in <code>status</code> and the Inbox naming the held routes and the earliest reset.</p>
<div class="guide-content" id="scheduled">
<p>If an issue's pull request is still open and the latest run recorded on this machine ended at a Self-merge check hold, Pickup leaves it for the Day shift and looks for the next Ready issue.</p>
<p>Review Passes (<code>review --author</code>) and Fix Passes skip <code>release-*</code> pull requests targeting <code>main</code>, leaving their version-only heads to the Release run. Explicit <code>thirdshift fix &lt;pr-url&gt; --no-merge --no-base-fix</code> still repairs those pull requests.</p>
<p>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.</p>
<p>A Review Pass also checks the base Spec's issue when the PR targets an Issue branch, including numbered continuations. An <code>in-progress</code> Claim or issue reservation skips the PR with a line naming that Spec. When GitHub links no closing issue, local closing references in the body (<code>Closes #7</code>, <code>Fixes #7</code>, <code>Resolves #7</code>) get the same hold checks, so Ticket PRs into a non-default Spec branch stay with their Spec run.</p>
Expand Down Expand Up @@ -318,6 +317,7 @@ <h1>How thirdshift works</h1>
</div>
<p class="guide-connector">Eligible work ↓ Ticket run or Spec run ↓ reviewed pull request</p>
</figure>
<p>Pickup passes over an open pull request whose latest run on this machine ended at a Self-merge check hold, even if the issue has been handed back. It prints the hold reason and looks for the next Ready issue.</p>
<p>Pickup respects issue readiness, open blockers and the Failure limit: it takes nothing while three open issues, or <code>pickup.failure_limit</code>, carry <code>agent-failed</code> from a failed run, and pull requests waiting for review never count. A run that failed because the host ran out of disk space is no failure of its issue: it puts <code>ready-for-agent</code> back without <code>agent-failed</code>, even with work on <code>origin</code>, and says to free disk space. A <strong>Paused Command</strong>, which no route had Plan usage left for, is none either: it puts <code>ready-for-agent</code> back the same way, unless an untrusted edit leaves <code>needs-triage</code> or it is a Security fix. Any other failed run with work on <code>origin</code>, or a failed Security fix, swaps <code>in-progress</code> for <code>agent-failed</code> and, unless it is a Security fix, posts its Recovery on the issue as a generated comment without local paths or the continue command; putting <code>ready-for-agent</code> back, taking <code>agent-failed</code> off or closing the issue ends the failure, and the Sweep takes <code>in-progress</code> off any open issue that still carries both. Before choosing work, it re-runs failed jobs of the Base branch's latest push CI once, immediately. Green on re-run files a Flaky-test Ticket using the recorded failure as evidence, without requiring reproduction on demand. Red again files an ordinary bug Ticket after 30 minutes from the re-run's completion. Its title, body and later comments leave job names and log lines out, and it waits until you write the task and apply <code>ready-for-agent</code>. An open CI-red Ticket in <code>needs-info</code> does not block a new report; another open CI-red Ticket receives new failing commits as comments. CI read failures warn and let Pickup continue; red Base CI does not hold Self-merges. Architect and Security runs yield to ready human-shaped work. Gates can skip a pass without failure, and unresolved plans, ideas or findings can leave the next decision with the Day shift. This is scheduled CLI work on your machine, using your authenticated tools.</p>
<p>When a Security run fails before its audit starts, its requested Run notification names a fixed Cause for Base branch preparation failures, such as <code>Base branch not found</code>, and points to stderr on the host at the command's start time for diagnostics. <a href="/docs/#security-runs">Security run notifications</a>.</p>
<p>Before dispatch, Pickup reserves its selected issue on <code>origin</code> and checks that it is still Ready. Competing Pickup runs on two machines cannot take the same issue: only the reservation's owner can dispatch it, and the other moves on to the next Ready issue in its order. An Architect run takes the same reservation for the plan it dispatches, and a Security run for its fix, before marking it ready, so a Pickup run beside either never takes it. The reservation's commit message records its host, launch path, process and start time. Before choosing work, every scheduled Pass releases its own orphaned origin reservations only on local proof of death: a missing PID, a process started after the reservation, or a host boot after it. Failed probes count as alive, and an exact observed-SHA lease protects a new owner. Stderr and Activity record the release. A reservation no host can test that blocked work and has been held over a day appears in Needs you with owner, age, blocked work and a release command. The Day shift confirms death before releasing it by hand; no reservation expires on a timer. <a href="/docs/#pickup-runs">Pickup's reservation and readiness checks</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ <h2 id="grows-title">Seven workflows</h2>
<summary><span class="workflow-name">Pickup run</span><span class="workflow-description">Take a Ready issue and put the factory to work.</span></summary>
<div class="workflow-content">
<p>Add <code>skip-author &lt;login&gt;</code> or <code>--skip-author &lt;login&gt;</code> to a Pickup or Triage cron line to leave that author's issues alone, even for a Trusted account. Repeat it for several logins; matching ignores case. Pickup passes over the whole Spec when its author is skipped, and its dispatched Spec run stops before a skipped author's Ticket. Each exclusion logs why. Explicit Issue URL runs keep their usual trust checks.</p>
<p>A <a href="/docs/#pickup-runs">Pickup run</a> takes the lowest-numbered Ready issue by default, the highest-numbered with <code>pickup.order = "highest-first"</code> or <code>highest-first</code>, after it has settled and while the repository is below its Failure limit: fewer open issues labelled <code>agent-failed</code> than <code>pickup.failure_limit</code>, 3 by default. Pickup leaves an issue for the Day shift if the latest run this machine recorded for its open pull request ended at a Self-merge check hold. Other Ready issues can still move ahead. It immediately re-runs failed Base branch push CI once: green on re-run files a Flaky-test Ticket, and red again files an ordinary bug Ticket after 30 minutes. That CI-red Ticket leaves job names and log lines out of its title, body and later comments, and waits until you write the task and apply <code>ready-for-agent</code>. New failing commits are added to an open CI-red Ticket; one in <code>needs-info</code> does not block a new report. A run the host ran out of disk space under gets <code>ready-for-agent</code> back instead, as a host problem, not the issue's, and so does a Paused Command that no route had Plan usage left for, unless an untrusted edit leaves <code>needs-triage</code> or it is a Security fix. Other failed work stays with the Day shift, labelled <code>agent-failed</code> in place of <code>in-progress</code>, with a generated comment giving its cause, where it stopped, what was preserved and the machine, until you hand it back by applying <code>ready-for-agent</code> again, take <code>agent-failed</code> off, or close the issue. A Spec run only waiting on gated, blocked or out-of-repository Tickets is no failure: its Spec gets <code>ready-for-agent</code> back and a comment naming each undone Ticket and what it waits on, and a later Pickup run continues it once a Ticket can start. A run that leaves its pull request ready for review takes <code>in-progress</code> off and puts nothing back.</p>
<p>A <a href="/docs/#pickup-runs">Pickup run</a> takes the lowest-numbered Ready issue by default, the highest-numbered with <code>pickup.order = "highest-first"</code> or <code>highest-first</code>, after it has settled and while the repository is below its Failure limit: fewer open issues labelled <code>agent-failed</code> than <code>pickup.failure_limit</code>, 3 by default. Pull requests waiting for review do not count toward the Failure limit. Pickup leaves an issue for the Day shift if the latest run this machine recorded for its open pull request ended at a Self-merge check hold, then looks for the next Ready issue. It immediately re-runs failed Base branch push CI once: green on re-run files a Flaky-test Ticket, and red again files an ordinary bug Ticket after 30 minutes. That CI-red Ticket leaves job names and log lines out of its title, body and later comments, and waits until you write the task and apply <code>ready-for-agent</code>. New failing commits are added to an open CI-red Ticket; one in <code>needs-info</code> does not block a new report. A run the host ran out of disk space under gets <code>ready-for-agent</code> back instead, as a host problem, not the issue's, and so does a Paused Command that no route had Plan usage left for, unless an untrusted edit leaves <code>needs-triage</code> or it is a Security fix. Other failed work stays with the Day shift, labelled <code>agent-failed</code> in place of <code>in-progress</code>, with a generated comment giving its cause, where it stopped, what was preserved and the machine, until you hand it back by applying <code>ready-for-agent</code> again, take <code>agent-failed</code> off, or close the issue. A Spec run only waiting on gated, blocked or out-of-repository Tickets is no failure: its Spec gets <code>ready-for-agent</code> back and a comment naming each undone Ticket and what it waits on, and a later Pickup run continues it once a Ticket can start. A run that leaves its pull request ready for review takes <code>in-progress</code> off and puts nothing back.</p>
</div>
</details>
<details class="workflow">
Expand Down
Loading
Loading