How a run goes
A run is one pass of a pipeline over one report. This page explains what the runner does between the moment a run starts and the moment it ends, so a run’s page reads clearly. The runner is the part of the server that carries out pipelines. Start a run and Follow and answer a run cover what you do.
A run starts from a report
Section titled “A run starts from a report”A report has a title and a body. It can also carry an issue number, a link and an author. Starting a run creates a task titled with the report’s title, assigned to the pipeline’s agent, on one repo of the team, and a run that points at the pipeline’s current version. The pipeline’s room gets a post, Started a run on "<title>", from <trigger>.
A pipeline’s file lists its triggers, and its forge and cron triggers start runs by themselves. The run’s page says which one did, as from manual, from forge, from webhook or from cron.
The runner finds a machine
Section titled “The runner finds a machine”A pipeline runs either in a box or on its agent’s home machine.
- In a box, the runner claims a free box for the run. While none is free, the run waits and says
Waiting for a free box.If the server has no Claude login for boxes, the run stops and says so. - On the home machine, the run stops with
The agent <name> has no home machine.when the agent has none.
On the machine, the runner makes a workspace with the repo cloned on a branch named task/<pipeline>-<six hex digits>. Until the workspace is ready, the stage list reads Waiting for a machine…. Then the first stage starts.
Each stage ends with an outcome
Section titled “Each stage ends with an outcome”An outcome is a word, such as passes, approved or fixed. The pipeline file maps each outcome to what comes next. That is another stage, the end of the run with a note, or a hand-off to a person. A stage that ends in an outcome the file does not map hands off too.
A run’s page lists its stages in order. Each row shows the stage’s name, try 2 or higher when it has run before, its kind, its outcome, its start time and its summary. The kinds the page names are Agent, Check, Forge, Gate and Hand-off. A stage with a session has a Steps button that opens the session.
An agent stage
Section titled “An agent stage”The runner sends the stage’s prompt to the agent in a Claude session on the run’s machine, with an instruction to call the report_result tool once. The agent passes an outcome from the list the stage allows, a summary, and any details the prompt asked for. The stage ends with that outcome.
If the agent ends its turn without reporting, the runner sends one reminder in the same session. A second miss fails the stage. A stage that runs again returns to its own session, so the agent remembers its earlier tries.
A stage may list tools the agent can use without asking. A tool outside that list waits for a person, as in any session.
Tries and hand-offs
Section titled “Tries and hand-offs”An agent stage or a check stage runs at most 3 times unless its file sets maxAttempts. Other kinds have no limit. A stage that reaches its limit, or that fails, hands off to a person. A stage fails when:
- the agent’s session stops, or the agent misses its report twice
- it runs longer than 60 minutes, which
AGENTS_STAGE_TIMEOUT_MINchanges - the workspace could not be set up, or the stage’s agent does not exist
A hand-off asks, <reason> Should the pipeline try <stage> again, or stop here so a person takes over? The run waits on a person, and the room gets the question. Try again runs the stage once more past its limit. Stop, I will take over ends the run as stopped with the note Handed off to <login>.
A pipeline can also name a hand-off for an outcome, such as bug-fix when its agent cannot reproduce a bug. Then the question starts with the pipeline’s words, followed by the first line of the stage’s summary, cut to 300 characters.
A gate pauses the run until a person answers. The run reads waiting on a person, the room gets the gate’s question, and the run’s page shows a Needs a decision box with Approve and Reject. A gate can name its buttons for what they do, such as Send back. Anything you type in the note goes with the answer and shows in the stage’s summary, as <login> said approve: <note>. A later stage can read that note.
Limits
Section titled “Limits”Each pipeline sets a spend cap in dollars. Before each stage starts, the runner adds up what the run’s sessions have cost. At the cap, the run stops with Stopped at the spend cap: $<spent> of $<cap>. The agent’s own session budget is what is left of the cap. A check stage’s command times out after 600 seconds.
If a step of a run fails in the runner itself five times in a row, the runner stops the run and says The runner kept failing, followed by the error.
Pause, resume and cancel
Section titled “Pause, resume and cancel”Pause stops the run’s agents at once, and the runner leaves the run alone until Resume. A turn that the pause cut short starts again in the same session on resume, and does not count as a try. Cancel run ends an active or paused run and closes its open gates. The room gets a post for each of these, naming the person.
How a run ends
Section titled “How a run ends”A run ends as done, stopped or cancelled, with a note. It is done when the pipeline reaches a succeeded ending. It is stopped when the pipeline reaches a failed ending, hits a cap, or a person ends a hand-off. The page then shows the time the run took, what it cost, how many stages ran and how many hand-offs it had. The room gets Finished:, Stopped: or Cancelled: with the note, the box is released, and the run’s sessions stop.
Replays
Section titled “Replays”A replay is a run of an earlier report, made to score a proposed change. In a replay every gate approves itself, every action skips with Skipped <action>, since a replay changes nothing., and a hand-off ends the run. Replays stay out of the Runs list and out of a pipeline’s run counts. How coach and improve prove a change explains why they exist.