> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mutagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Boards and runs

> Connect your board to a Software Factory, start a run from an issue, follow it through its stages and gates, and recover when it stops.

> [!NOTE]
>
> **Early Access.** Commands and behavior can change between releases.

A Software Factory works from your board. Each issue it picks up becomes a **run**: the run plans
the change, builds it, has it reviewed and lands it, and waits for you at the gates your policy sets.
This page is the map; each section links to the full guide in the Factory docs.

## Connect a board

The board is named in `.architech/factory/factory.yaml`, together with your repositories and policy.

* **A GitHub Project owned by an organization.** Address it by `owner` and project number, and map
  the Factory's statuses to your Project's columns with `statusMap`.
* **A repository's issues.** A Project owned by a personal account can't be bound to a Cloud
  Factory, so a personal account uses the repository's issues as the board. Status then lives in
  `status:*` labels.
* **A Linear team.** On Mutagent Cloud a board can also be a Linear team. Connect the Mutagent
  app for Linear with `architech factory integrations connect linear --wait`, and map the
  Factory's statuses to the team's workflow states; the code still goes through GitHub. See
  [Linear](https://docs.mutagent.io/integrations/linear.md).

An item in `triage` never starts a run, so don't map `triage` to the column new work lands in. On
Cloud, `architech factory push` binds the board and links the repositories the GitHub App can reach.

> [card] [Configure your Factory](https://docs.mutagent.io/factory/configuration.md)
>
> Boards, status maps, repositories and labels in `factory.yaml`.

> [card] [Factory on Mutagent Cloud](https://docs.mutagent.io/factory/cloud.md)
>
> Connect GitHub, push the file, bind the board and turn the Factory on.

## Start a run

A board event starts a run at `plan` when it matches an enabled trigger of an enabled Factory (by
default, adding a pickup label or assigning the item to the Factory) and the item is eligible:

* it is open and on the bound board, outside `triage`;
* it carries every pickup label (`factory:pickup` by default), or the fast-lane label in their place
  (on a Linear board, an assignment or delegation to the Mutagent app also takes their place when an
  active, non-app member of the bound team makes it and its webhook reaches the Factory);
* no prerequisite check blocks it, such as an issue it depends on, and it is not already part of a
  running dispatch.

The Factory records why an event started nothing; on a GitHub board, an item parked in `triage` or
missing from the board gets a comment saying so. To start a run without a board item, name the
request and a repository from your Factory configuration:

```bash theme={null}
architech factory runs start "Add validation to the contact form" --repo acme/web --factory web-factory --json
```

Other events can start work too, such as failed CI on a pull request branch. See
[Routines and triggers](https://docs.mutagent.io/platform/factory/routines-and-triggers.md).

## Follow a run

```bash theme={null}
architech factory runs list --factory web-factory --json
architech factory runs show "$RUN_ID" --json
architech factory runs logs "$RUN_ID" --follow --json
```

`runs show` lists each stage and any open questions. In the web app, the **Factory** page shows the
Factory's overview, analytics, board and fleet, and **Inbox** shows what is waiting on you.

By default, a work item keeps one shared **work session** from plan to land. When its sandbox is
idle, the session can park, and the Factory wakes the same conversation when a later stage or your
answer needs it.

> [card] [Operate the Factory](https://docs.mutagent.io/factory/operating.md)
>
> Follow a work item from pickup to merge, and know when the Factory needs you.

## Gates

| Gate | What you do |
| - | - |
| Plan | Read the plan on the issue. Add `factory:approved` to build it, or comment with the correction and add `factory:changes` to revise it. |
| Pull request | Approve the reviewed pull request, or ask for changes. Review can also send the work back to build on its own. |
| Land | The Factory checks merge authority before it merges, separately from your approval. |

The default policy, `calibrating`, waits for a person on each ordinary plan and before every merge.
A task of a spec a person already signed doesn't wait for another plan approval. A qualifying
[fast-lane](https://docs.mutagent.io/factory/gates.md#the-fast-lane) plan doesn't either: the run was started by the fast-lane
label, applied by a person (see [who can decide](https://docs.mutagent.io/factory/gates.md#who-can-decide)), and its first plan
is small, with one part and no planned path in a protected zone. A fast-lane label from someone who
doesn't count as a person still starts
the run, but its plan waits for a person, and so does a revised plan. Other presets let small plans start on their own, or merge a reviewed pull request
once CI is green on its exact head. See [Approvals and merge controls](https://docs.mutagent.io/factory/gates.md).

## When a run stops

A stopped stage asks a question with the actions it offers, such as retrying the stage, skipping a
sub-item, resuming the session or rolling back to the last complete checkpoint. Answer with one of
them:

```bash theme={null}
architech factory escalations answer "$ESCALATION_ID" "Retry the stage" --json
```

The hold label (`merge:hold` by default) is for an item already picked up and worked on, with a
pull request: it blocks the merge until a person removes it.

To stop new work, `architech factory disable <factory-id> --json` turns off trigger-based pickup;
runs already started continue. `architech factory runs cancel "$RUN_ID" --force --json` ends one run.

> [card] [Answer a question](https://docs.mutagent.io/factory/escalations.md)
>
> Give a decision, wait for a dependency, or defer planning.

> [card] [Troubleshooting](https://docs.mutagent.io/factory/troubleshooting.md)
>
> Missed GitHub events, waits, provider problems and recovering work.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.