Hand-offs, stopping and resuming
Nobody watches a Run, so it has to end well when something goes wrong: a Ticket it cannot finish, a subscription or an API key that runs out, a human who wants it to stop, a machine that disappears. Each of these leaves the Ticket where a later Run can pick it up, on this Host or another. That Run does not pay again for Stages already done, and no human has to unpick labels first.
At a glance
| Ending | Caused by | Leaves behind |
|---|---|---|
| Merge | a green pass through every gate | a closed issue; branch and state file gone |
| Hand-off | a failure the fix budget cannot cover, or a green pass on a Target that merges by hand | ready-for-human, a comment (none when nothing failed and no criterion was unverifiable), a draft pull request (ready for review when nothing failed); work and state kept |
| Release | the subscription or API rate limit, a transient API failure, an API key out of budget, a failing base branch, or GitHub or the git remote failing | ready-for-agent, no comment on the Ticket; work and state kept |
| Stop | ticket-runner stop (SIGTERM) | nothing new |
| Kill | Ctrl+C, SIGKILL, a vanished Host | the claim; work as last pushed, and state |
After a merge or a Hand-off the Run refills the Lane, and while another Lane is busy a free Lane also looks at the Frontier again at intervals (Running). After a Release, a Stop or a Hand-off GitHub or the remote cut short it claims nothing more, and the busy Lanes finish what they hold. A kill ends it on the spot.
Each Ticket that is still unfinished then comes back by one road. The board decides which:
Hand-off
A Hand-off gives a Ticket to a human. It is how every ending goes that is neither a merge nor a Release: a second failure after the fix budget is spent, a Stage that timed out, CI that never finished, a branch in the way at setup. On a Target that merges by hand it is also how a green Ticket ends (When nothing failed).
A Hand-off leaves you:
- a draft pull request of the branch's work, where there is work to push; a pull request already open goes back into draft, except when nothing failed
- the hand-off comment below, saying where the Ticket failed and why; when nothing failed, only if a criterion was unverifiable
ready-for-humanin place ofin-progress, and no assignee- each Stage's command line and transcript, kept on the
ticket-runner/statebranch or on the Host, askeepTranscriptsdecides (What stays where)
Its state file is kept, so a relabel resumes the Ticket (Handing a Ticket back), except where no Stage of this Run could have left work (below). It records the branch's head too, so the Run that takes the Ticket back can tell whether you committed on it.
The comment follows docs/templates/handoff-comment.md:
<!-- ticket-runner:handoff -->
**Handed off.** Failed at **verify**, after the fix budget was used.
- Failure: 1 of 6 criteria unmet
- Branch `agent/8-rate-limit-release` on the remote · worktree `.worktrees/ticket-8` · PR #31 (draft)
- Transcripts: `ticket-8/2026-09-17T09-00-00-000/` on the `ticket-runner/state` branch
<details><summary>Evidence</summary>
…
</details>The Transcripts line names where they are. On a Target that keeps them off its remote, it reads `.ticket-runner/runs/<runId>/<n>/` on the Host, kept off the remote on a workstation, and says they go with the VM on a cloud Host.
The Failure line says what stopped the Ticket. What it asks of you:
| Failure | What to change before handing it back |
|---|---|
| A Stage ran past its minute limit, or hit its turn limit | Raise that Stage's maxMinutes or maxTurns in stages, or split the Ticket |
| implement left no commits | Read the reason the Stage gave in the hand-off comment, or its transcript when it gave none, then make the Ticket smaller or clearer |
| fix left no new commits | Read the reason the Stage gave in the hand-off comment, or its transcript when it gave none, then take the decision it asks for or mend the code by hand on the branch |
| Uncommitted work, a criterion or CI still failing after the fix | Read the evidence in the comment, then mend the code by hand on the branch, or, for a criterion, rewrite it as the next row says |
| Criteria unmet after the fix, or no evidence | Mend the code by hand, or rewrite the criteria so a session can check them by running or reading code (Acceptance Criteria) |
| No CI ran on the pull request, and no criterion is met | Set up CI that runs the commands the criteria left to it name, or rewrite those criteria so a session can check them by running or reading code |
| CI timed out | Raise ciTimeoutMinutes |
| The pull request is conflicting | Nothing: the next Run rebases it again, and the conflict Stage takes the conflict |
| The base branch could not be pulled | Clear what is in the way in the main checkout (Running) |
| The merge failed | Put right the repository setting GitHub's refusal names, such as a branch protection rule |
| A branch in the way, or copies that have parted | Run the command the Failure line names |
| A git or GitHub step failed: pushing, opening or un-drafting the pull request, the rebase's git, or setting up the worktree | Put right what the error in the Failure line names, on the Host that ran it for git, then hand it back. A pull request someone closed by hand means the work should stop |
| Any other Stage failure, such as a non-zero exit or an answer its schema rejected | Read that Stage's transcript (What stays where) |
When a Hand-off does less
A Hand-off at setup pushes nothing: there is either nothing to push, or what is in the way may be a human's work or another Host's.
| Case | Draft pull request | State file |
|---|---|---|
| Started fresh, with nothing to resume, and failed before its worktree existed | none: nothing to push | removed: nothing was branched |
| Started fresh, and a local branch of that name exists | none | removed: no Stage of this Run worked there |
| Resumed, this Host's branch has parted from the remote's | none opened; an open one goes to draft | kept: both copies are the pipeline's |
| Any failure after the worktree was ready | opened, or an open one back to draft | kept |
The comment names a worktree wherever there is one: this Run's, or the one the branch in the way is checked out in. The failure line says what to do, for example delete it with git branch -D <branch> if the work on it is abandoned, or finish it by hand, then relabel the Ticket ready-for-agent.
When nothing failed
On a Target that sets merge to false, a Ticket whose CI is green is handed off at merge rather than merged. Nothing failed, so this Hand-off:
- leaves the pull request as the Run published it: ready for review, its title and body unchanged
- when a criterion was unverifiable, comments that the pull request passed every gate and waits for you to merge it, with no Failure line or evidence, and lists each unverifiable criterion with its evidence
- when every criterion was met, posts no comment: the label, the progress comment and the linked pull request already say it
- keeps the state file but no transcripts, and ticks no criteria
<!-- ticket-runner:handoff -->
**Handed off.** PR #31 passed every gate and waits for a human to merge it: this Target merges by hand.
- Branch `agent/8-rate-limit-release` on the remote · worktree `.worktrees/ticket-8` · PR #31
**Unverifiable criteria:**
- The guide shows the new table — no wiki build runs on this HostIts progress comment's merge row reads 👤 left to a human. Tickets it blocks wait until it merges. End it as any handed-off Ticket (Handing a Ticket back).
What stays where
The Host a Ticket was worked on may be gone by the time a human looks, for example a cloud Host's VM. So everything a later Run needs is on the Target's remote, and so are a handed-off Ticket's transcripts where keepTranscripts keeps them there.
| What | Where | Lasts until |
|---|---|---|
| The Ticket's commits | branch agent/<n>-<slug> on the remote, or agent/<n> where it was never named | the merge deletes it |
| State file | ticket-<n>.json on ticket-runner/state | the work merges or leaves the pipeline (below) |
| Handed-off Stages' transcripts, kept on the remote | ticket-<n>/<runId>/ on ticket-runner/state | the state file goes |
| Handed-off Stages' transcripts, kept off it | .ticket-runner/runs/<runId>/<n>/ on that Host | a human deletes it, or the cloud Host's VM goes |
| Worktree | .worktrees/ticket-<n> on that Host | the merge, or a human deletes it |
| Every Stage's files (transcript, stderr and command line) | .ticket-runner/runs/<runId>/<n>/ on that Host | a human deletes it |
The state branch is rewritten on every change, so read transcripts kept there from a fetch rather than a local branch:
git fetch origin ticket-runner/state
git ls-tree -r --name-only FETCH_HEAD ticket-8/
git show FETCH_HEAD:ticket-8/2026-09-17T09-00-00-000/verify.transcript.jsonlEvery Stage that commits pushes the branch. .worktrees/ and .ticket-runner/ are safe to delete whenever no Run is running: everything a Run needs is on the remote, and the next Run remakes a worktree from it. Transcripts kept off the remote go with .ticket-runner/.
Handing a Ticket back
A handed-off Ticket is yours to end one of four ways:
| You | Then |
|---|---|
| Change the Ticket, its criteria or the config, and hand it back | The next Run grades it against what the issue says then |
| Push commits to its branch on the remote, and hand it back | The next Run brings its copy up to that tip, and a pr Stage revises the pull request's prose for your commits once verify passes. A rewritten history parts the copies instead |
| Finish it yourself: merge its pull request. A draft's body describes the Hand-off rather than the change, so rewrite it and mark it ready first; one handed off with nothing failed is ready already, with the body the Run published | The issue closes. Take ready-for-human off yourself, and delete the worktree and local branch on the Host that made them |
| Drop it: close the issue | The pull request and the branch stay until you close and delete them |
gh issue edit 8 --remove-label ready-for-human --add-label ready-for-agent # hand it backTo hand a Ticket back, move its label from ready-for-human to ready-for-agent. The next Run finds it on the Frontier, reads its state file and carries on from what it reached. A Ticket that reached implemented goes straight to verify, so the implement Stage is not paid for twice.
A few things differ from the Run that handed it off:
- Fix budget: fresh. The Ticket went through a human's hands, and whatever they did is what the new budget is for. The old comment still says the budget was spent, because it was. A criterion you add in a comment before relabelling gets one fix of its own besides, which spends none of the budget, once each time you hand the Ticket back (Criteria added after a Hand-off). A criterion edited into the body does not.
- Pull request prose: revised for your commits. When the branch's head is not the one the Hand-off recorded, a pr Stage rewrites the title, body, problem and solution for the whole branch once verify passes, once each time you hand the Ticket back. Editing the pull request's body by hand does not last: each publish rewrites it from the state file.
- Draft pull request: taken out of draft before CI is awaited, since a draft often runs no workflows and the wait would read "no checks". One that will not come out of draft, such as a pull request a human closed, is a Hand-off at
pr: closing it said the work should not go on. - Hand-off comments: each is marked
_Taken again by a later Run; this hand-off is history._under its marker, which notifies nobody. - Progress comment: a new one. The comment the human read is left exactly as they read it. A Ticket handed off with no comment carries on in its progress comment instead, below the section you read, which stays as it was: with no hand-off comment, nothing tells the Run a human held it.
Until the relabel, the state file is inert. No Frontier offers a ready-for-human Ticket, the sweep passes over it without a word, and a Run given its number skips it as not-ready. Once the issue closes, the next Run's sweep removes the file and its transcripts.
Release on a rate limit or an API failure
A Stage that hits the rate limit has failed at nothing, and neither has one the API stopped on its own side. Handing the Ticket off would make a human relabel a Ticket nothing was wrong with, and a fix Stage would only meet the same limit or the same outage. So the Ticket is released instead: it goes back on the board, and the next Run resumes it from the last Stage it finished, with its fix budget as it was.
On a Run started without --api-key the limit is the subscription's; on one started with it, the API's. A transient API failure is an API error with a 5xx status or none, such as 529 Overloaded, which the CLI had already retried, so the Stage is not retried in place; any other error is the Stage's own. How each is told from the session is under ClaudeAgentRunner.
What the Release does:
- writes a
⏸ rate limitedor⏸ API failurerow in the progress comment, which is the whole report - brings the state file up to date, to
claimedif the implement Stage was stopped andimplementedif a later Stage was, and keeps the fix budget as it was, except that a fix Stage stopped this way spends nothing - undoes the claim: adds
ready-for-agent, removesin-progress, and unassigns - posts no comment of its own and opens no draft pull request. Its row notifies watchers only when it opens a new progress comment: when the stopped Stage is the first to report on the Ticket, or the Ticket was taken back from a human after a hand-off comment
The Run then claims nothing more, because what stopped one Stage would stop the next. The busy Lanes finish their own Tickets, and the Run ends without waiting for the limit to reset. Its last line says why, and when the limit resets where the CLI said (The summary). A released Ticket counts as taken, so the exit code is 0 unless something was handed off.
Start a Run yourself, or through an Operator, once the limit has reset or the API has recovered, and the Ticket is back on the Frontier, resumed from its state file.
Release out of API budget
A Stage of a Run started with --api-key can be refused because the key's organization is out of credit, or because its workspace reached the spend limit set in the Console. Either comes back as a 400 whose message names the credit balance or the workspace's usage limits, and the two are one cause, since what you do next is the same. Neither is the Ticket's doing, so the Ticket is released as on a rate limit, with these differences:
- The progress row is
⏸ out of API budget, and the Run's last lineOut of API budget.. - The summary does not say when access returns, though the spend limit's message does: look at the Console, then start the next Run.
Release over a failing base branch
A red CI is inherited, not brought, when the pipeline runs the Check commands in a clean worktree at the branch's merge-base with the base branch and one fails there too (A failure the base branch shares). The Ticket is released as on a rate limit, with these differences:
- the progress row reads
⏸ `<command>` fails on the base branch, and the Run's last line names the command and the merge-base - the pipeline posts one Note on the standing Notes issue with the tail of the command's output at the merge-base, and beside it the branch's own failure; the Ticket itself gets no comment
- the next Run rebases the branch onto the base branch first, before verify, and logs
#<n> rebased onto <base> first
The fix budget stays as it was, spent or not: a Ticket whose budget is already spent is released, not handed off. An open pull request stays open, and the next Run updates it.
Read the branch's part of the Note before mending anything: the merge-base failed a Check command, and the branch's CI may have gone red over something else. A branch whose failure is its own is released by every Run until the base branch passes the Checks, and mending the base branch's failure alone does not free it to merge, only to reach a fix Stage.
Mend the Check on the base branch, then start a Run. Each released Ticket is rebased onto the mended base branch first; a rebase that conflicts goes to the conflict Stage, and one it cannot resolve spends the fix budget, as at the Landing. A Run started before the base branch is mended releases the Ticket again.
Release over a GitHub or remote failure
GitHub failing on its own side, or git unable to reach the remote, is no more the Ticket's doing than a rate limit, and every Ticket after it would meet the same failure. The pipeline reads which it is from what gh and git print:
| Fault | What counts | Progress row |
|---|---|---|
| GitHub | a 5xx status, or an answer that is not complete JSON | ⏸ GitHub failure |
| The remote | git unable to connect or log in: Permission denied (publickey), Could not resolve host, Authentication failed, a refused or timed-out connection, a 5xx from the remote | ⏸ remote unreachable |
A GitHub read, a write that sets a state (a label, an edited comment) and opening a pull request are first tried again, with backoff, for about a minute. Posting a comment or opening an issue is not, since a second try could post it twice. Only a failure that outlasts the tries releases the Ticket, as over a failing base branch:
- the row is written at the step the Ticket was on,
setup,rebaseandprincluded, and the Run's last line names the command and the first line it printed - the state and the fix budget stay as they were, and the next Run resumes from there, with no rebase owed
- a pull request the failed attempt opened all the same is found on the branch and used, not opened twice
- if GitHub will not take the claim off either, the Ticket stays claimed, and the next Run resumes it as a Stranded Ticket. One whose assignee came off but whose
in-progresswould not is back on the Frontier, and resumes from there as any released Ticket
The same fault can meet a Hand-off's own writes: the draft pull request, the comment, in-progress off, ready-for-human on, the assignee off. It stops the Run the same way, with the same last line. Where the Hand-off kept the state file and the Ticket still wears in-progress and its assignee, which is a fault at one of the first three writes, the Ticket is reported released and the next Run resumes it as a Stranded Ticket. Anywhere else nothing picks it up by itself, so its row is handed, ending hand-off cut short · GitHub failure (or remote unreachable), and it counts toward exit code 1. What it can leave, and what you finish by hand:
| Cut short | What it can leave | Finish by hand |
|---|---|---|
At any write of a Hand-off that keeps no state, such as one at setup over a branch already present | the claim, in-progress and the assignee; no state file; no comment if the comment failed | Read the failure in the handed row, or in the Run's log where no comment was posted. Swap in-progress for ready-for-human and take the assignee off |
At ready-for-human or the assignee, in a Hand-off that keeps state | the comment, the draft pull request and the state file; no in-progress, still assigned, and no ready-for-human if that failed | Put ready-for-human on and take the assignee off |
Everything else is handed off as before: a GitHub 4xx, and a git failure that will not pass with time, such as a pull refused over uncommitted changes in the main checkout or a base branch that really diverged. Released, those would come back every Run without a word.
Read the last line before starting the next Run. A gateway that was down for a while needs nothing; an authentication failure needs a key or a login on the Host first.
Stop and kill
A Run can end early in two ways, and they leave opposite things behind (ADR-0006).
| Stop | Kill | |
|---|---|---|
| Sent by | SIGTERM, from ticket-runner stop or the Operator | Ctrl+C, SIGKILL, out of memory, a vanished Host |
| Busy Lanes | finish, to merge, Hand-off or Release | end with the Run |
| New Tickets | none, from the Frontier or the Stranded Tickets | none |
| Left behind | nothing stranded | a Stranded Ticket per busy Lane, and the Run lock |
| Written to the board | nothing | nothing; the claims simply stay |
| Exit code | the outcomes', as usual | none |
ticket-runner stop works only on the Run's own Host; on a cloud Host the Operator sends the signal. A lock a kill left behind is taken over by the next Run on the same Host by itself; from another Host it waits for a human (The Run lock).
A Stop cannot be taken back: the lock stays held until the Lanes are back, and starting a new Run is how to carry on. A narrowed Run stopped before it took any of its Tickets exits 2.
Ctrl+C stays a kill on purpose (ADR-0006): end a Run gently with ticket-runner stop.
Stranded Tickets and the sweep
A killed Run releases nothing. Its Tickets keep their claim, and their work stays on the remote as of the last push. That is why the state file is written as part of the claim, not by the Release: a killed Run would never get to write it.
A Stranded Ticket is one whose state file is still there while it still carries this pipeline's claim (assigned to the current gh user, and labelled in-progress). No Frontier offers it, because it is claimed. So every Run sweeps the state files before it looks at the Frontier:
| The state file's Ticket | What the sweep does |
|---|---|
| still carries this user's claim | stranded: queued and resumed in place. Claim untouched, nobody notified. |
Claim has come off (ready-for-agent or ready-for-human) | nothing. The Frontier picks up the first; the second waits for a human. |
| has closed | removes the state file and any kept transcripts |
| is assigned to someone else | logs #<n> is resumable, but <user> holds it now and leaves it |
| the tracker cannot be asked about it | logs it and leaves it. A Run never resumes, or forgets, a Ticket on a guess. |
| the state file cannot be read | logs #<n> has a state file this version cannot use, written by <version>; leaves the file and the claim alone |
An unreadable state file was probably written by a newer pipeline.
Stranded Tickets fill free Lanes before anything the Frontier offers (Running), each resumed by whichever Host's Run swept it, from the copy Resuming into a worktree picks. A narrowed Run resumes only the Stranded Tickets among those it was given.
A kill still costs more than a Stop. Whatever the Stage had not yet committed and pushed is lost. A worktree left in the middle of a rebase is aborted back to the branch tip before anything grades it.
The state file
Without a record of how far a Ticket got, a released or stranded Ticket would start over when it came back: its implement Stage paid for again, and a spent fix budget fresh again. The state file is that record.
The file is JSON a human can read without the pipeline:
{
"ticket": 8,
"branch": "agent/8-rate-limit-release-and-resume",
"state": "implemented",
"fixUsed": false,
"addedCriteriaFixUsed": true,
"pullRequest": 31,
"title": "feat: release a rate-limited Ticket",
"body": "## Summary\n\n...",
"problem": "A rate-limited Stage handed its Ticket to a human.",
"solution": "The Ticket is released and resumed from its state file.",
"rebaseFirst": true,
"handoffHead": "4f1e2d3c5b6a79880a1b2c3d4e5f60718293a4b5",
"prStageOwed": true,
"runId": "2026-09-17T09-00-00-000",
"version": "0.5.2",
"updatedAt": "2026-09-17T10:14:02.511Z"
}| Field | Meaning |
|---|---|
ticket | the Ticket, repeated so the file reads on its own |
branch | where the work is, used as-is rather than derived from the title again |
state | claimed (the implement Stage has not finished) or implemented (its work is on the branch) |
fixUsed | whether the fix budget is spent. Resuming buys no second chance, except after a Hand-off. |
addedCriteriaFixUsed | present only once a Ticket handed back has had the fix that criteria added in a comment after its Hand-off get without spending the fix budget, so a Run resuming after a Release does not buy it twice. A Hand-off clears it. |
pullRequest | the pull request already open, so a resumed Run does not open a second one |
title | the latest title the implement, fix or pr Stage gave for the whole branch, which names the pull request |
body | the latest pull request body they gave, written below Closes #<n> |
problem, solution | the latest problem and solution they gave, which open the squash commit |
rebaseFirst | present only after a Release over a failing base branch: rebase onto the base branch first |
handoffHead | the branch's head at the last Hand-off, present while no pr Stage has answered for the commits after it. A Hand-off records it, unless one is already there; the Run that takes the Ticket back compares it with the branch's head before any Stage runs, and forgets it when the head did not move or once the pr Stage has run |
prStageOwed | present only once the Run that took the Ticket back found the head moved: a pr Stage is owed, which a Run resuming after a Release or a kill still runs. A Hand-off clears it, leaving the next Run that takes the Ticket back to settle it again |
runId, version, updatedAt | which Run and which version wrote it, and when |
There are only two states. Everything after the implement Stage (verify, rebase, pull request, CI, merge) is run again from verify by a Run that resumes at implemented.
The file is written as part of the claim and updated as the Ticket advances. It goes when the Ticket merges, its issue closes, or its branch is in neither the worktree here nor on the remote, and at a Hand-off at setup that leaves no work of the pipeline's.
The ticket-runner/state branch
The state lives on the Target's remote, off the board, so a Run on any Host can resume a Ticket another Host left (ADR-0004). Each change rewrites the branch as one snapshot commit (GitWorkspace). Never commit to it by hand while a Run is running.
The Run lock
One Run at a time holds a Target, whichever Host it is on, through a lock on the Target's GitHub repository: off the board, but where every Host and every human can see it (ADR-0008). A Run holds it from start to end, and it covers the whole Target, where a claim covers one Ticket.
It is lock.json at the tip of the ticket-runner/lock branch. That branch always exists once a Run has started. The file names the holder: host (kind, id, name), pid, command, runId, startedAt, and the process's start time as the OS reports it. Otherwise it reads { "held": false }. The commit message says the same thing in words, for example Held by run 2026-09-17T09-00-00-000 on the workstation `desk`: ticket-runner run or Free.
Unlike the state branch, the lock keeps its history, so GitHub shows who held the Target and when. Each take and each release is a new commit on the tip the Run last read, pushed with a lease on that tip, so nothing is ever deleted and a take succeeds only from the state its taker last saw. How two Runs racing for it are told apart is under GitWorkspace.
What a Run makes of a held lock depends on where the holder is:
| Holder | Standing | The new Run |
|---|---|---|
| on this Host, its process alive, start time matching | running | refused: Another ticket-runner is running on this Host: … |
| on this Host, its process gone (or its pid reused by another program) | abandoned | takes the lock over by itself, so a Run ended by Ctrl+C costs nothing |
| on another Host | elsewhere | refused, never presumed dead |
Nothing on one Host can see another Host's processes, so a lock left from another Host stays until a human releases it. The lock's last commit on GitHub names its holder, Held by run <id> on <host>: …; look on that Host, and release the lock only once its Run is gone. Ask an Operator, or commit a lock.json that reads { "held": false } to the branch on GitHub, and only when no Run is running. A Run killed on a cloud Host, by a time limit or a reclaimed VM, costs such a release only when the next Run starts from another session: a Run started again from the same session is on the same Host, and takes the lock over by itself.
A cloud Host is told apart by its session id; one that names no session gets a random id, so even its own later Runs see its lock as a stranger's. A Run that cannot release the lock when it ends says so, and keeps its own exit code.
Resuming into a worktree
The branch on the remote carries a Ticket's work between Hosts, so a resumed Ticket starts from it rather than from whatever this Host has.
Before resuming, a rebase that a killed Run left in progress is aborted. Then the pipeline compares this Host's copy with the remote branch:
"Parted" means each side holds commits the other lacks: another Host moved on while this one held work it never pushed. The pipeline does not pick a side silently. The Hand-off names both copies and the two ways to make them one: throw this Host's copy away with the command it gives, or force-push it over the remote's from its worktree (git push --force-with-lease origin <branch>). Then relabel the Ticket. Both copies are the pipeline's work, so the state file stays, and the next Run resumes from whichever side the human kept.
Related pages
- From Ticket to merge: the lifecycle, the fix budget and the Landing that these endings interrupt
- Running:
run,stop, a narrowed Run, the summary and exit codes, and the Operator on a cloud Host - Configuration: Stage limits and timeouts, which decide when a Stage "did not finish"
- Internals: the
Workspaceport that keeps the state and the lock, and the ADRs behind this page
References
src/orchestrator.ts:takeTicket,resumable,owesPrStage,ResumeRecord,rebaseFirst,release,undoClaim,noteFailingBase,handOff,cutShortsrc/failing-base.ts:BaseBranchCheckssrc/outside-fault.ts:OutsideFault,faultSidesrc/adapters/gh-tracker.ts:GITHUB_RETRY_DELAYS_MSsrc/run.ts:processRunsrc/stranded.ts:strandedTickets,holdsClaimsrc/resume.ts:readStateFile,STATE_BRANCH,localStateTicketssrc/handoff.ts:markHandoffsTaken,carriesCurrentHandoffsrc/stop.ts:requestStop,StopSignal,listenForStopsrc/lock.ts,src/host.ts,src/start.ts:startRunsrc/adapters/git-workspace.ts:worktreeFromRemote,changeState,acquireLock,keepTranscriptssrc/adapters/claude-agent-runner.ts:rateLimited,outOfBudgetsrc/run-log.ts:transcriptFilesdocs/templates/handoff-comment.md,docs/templates/draft-pr-body.md,docs/templates/stop-report.txt- ADR-0004, ADR-0006, ADR-0008