tickets
Where your tickets live, and which board shows them.
tickets:
type: github
board: 1
columns:
backlog: Backlog
refining: In refinement
ready: Ready
building: In progress
review: In review
done: Donetypeis the ticket system. Onlygithubis built, and it is the default.boardis your board's number. On GitHub Projects it is the last part of its address, such as1ingithub.com/users/your-name/projects/1. The default,none, means no board.columnssays which of the board's columns shows each state, and a board needs it: seetickets.columns.labelsrenames the labels the factory puts on tickets: seetickets.labels. Most repositories leave it out.
Without a board, factory status still shows every ticket's state, which
the factory records on the ticket. Builds then start only when
you run /factory-build N in a session.
One board can show tickets from several repositories. Give each
repository the same board. Each repository's board sync,
factory status, and poller only touch that repository's own tickets.
factory board check reads your board and says what the factory will do
with it.
tickets.columns
The board has one column for each of the six
states a ticket goes through. This block
says which of your board's columns shows each state, and it names all
six. factory init writes it for you, from the board you choose: see
You already have a board.
There is no default: your board's column names may not be the
factory's, and a guess would put tickets in the wrong column without
telling you.
A new board on GitHub Projects starts with only Todo, In Progress, and Done, so its settings would be:
tickets:
board: 7
columns:
backlog: Todo
refining: none
ready: none
building: In Progress
review: none
done: Done
builds:
trigger: manualWhen init creates your board, or adds columns to one, it gives them the factory's own names:
| Key | Name of the column init creates |
|---|---|
backlog |
Backlog |
refining |
In refinement |
ready |
Ready |
building |
In progress |
review |
In review |
done |
Done |
-
Capitals don't matter, so "In progress" finds your "In Progress".
-
nonemeans your board has no column for that state. A ticket in that state stays in the column of the state before it. Withreview: none, a ticket whose pull request is in review stays in In Progress. Every state can benoneexceptbacklog. -
A state can take a list of columns, when more than one of yours means it. Init never writes a list, so add one to the block yourself. A ticket in any of the columns is in that state. When the factory moves a ticket into the state, it uses the first, and a ticket already in any of them stays where it is:
tickets: board: 7 columns: backlog: Todo refining: none ready: none building: In Progress # When a pull request opens, its ticket moves to Code review. # One you moved to QA stays there. review: [Code review, QA] done: Donereadytakes one column, since only a ticket you approved goes there.A list for
donekeeps the columns that come after the merge, which are your team's: the factory moves a merged ticket to the first column in the list, here Done, and never moves one out of any of them.done: [Done, UAT, Released] -
A ticket never stays in the ready column unless you approved it. With
building: none, a ticket being built would stay in ready's column, so it stays in refining's column instead. On a board with the factory's columns andbuilding: none, it shows in In refinement. -
With
ready: none, nothing on the board approves a build, so you needbuilds.trigger: manual, and you start each build by asking a session. -
A ticket in a column no state uses is left alone. The board sync doesn't move it or fill in its fields, and nothing builds it.
factory config check stops, naming the key, when columns has:
- no
boardbeside it, or aboardwith nocolumns; - a state left out, naming each one;
- a state it doesn't know;
backlog: none;- one column for two states;
- an empty list, or a list for
ready; ready: nonewhilebuilds.triggerisn'tmanual, since then a build starts only from the ready column.
Such as:
.claude/factory.yaml: tickets.columns: building and done have no column: give each a column, a list of columns, or none, or run factory init to choose themfactory config check doesn't read your board. factory board check
does, and says which of the columns you named the board lacks.
tickets.fields
The factory fills in fields of its own in two places: on your board,
to show what is happening to a ticket, and on the ticket itself, to hold
the result of refining it. This block maps each of these factory fields
to the field of yours that holds it: a board field, or a ticket field
set on the ticket itself. factory init sets up both the board fields
and the ticket fields, so most repositories write nothing here by
hand.
tickets:
board: 7
fields:
# Factory fields on the board
session: Agent # fill in your existing "Agent" field instead
cost: none # never fill in a cost
# Factory fields on the ticket
decisions: none
spec: Acceptance criteria
acceptance-criteria: Acceptance criteria
for-the-builder: Design notesOn the board, besides moving a ticket between columns, the board sync fills in three factory fields so you can see at a glance what is happening to a ticket:
session: which session is working on the ticket, or "Waiting on you".runs-in: whether that session is on someone's machine or in the cloud.cost: roughly what refining and building the ticket has cost so far.
factory init adds board fields called Session, Runs in, and Cost. Name
a board field here only when your board already has one you want used
instead, or write none to stop the board sync filling one in.
- These three need
board. - A board field you name must exist, holding the right kind of
value: text for
session, a single select with the options Local and Actions forruns-in, and a number forcost. If it doesn't, the board sync stops and says which field is wrong. - When you name nothing, the board sync looks for board fields called Session, Runs in, and Cost, fills in those it finds, and skips the rest with a note.
- It never overwrites a field of yours. If your board has a field
called Cost that holds text, the board sync stops rather than write
over it, and asks you to name another field or write
cost: none. - The column itself is the board's own Status field, which has to be
a single select with an option for each column in
tickets.columns.
On the ticket, refining a ticket writes four factory fields into its description, each under its own heading. Each can go instead in a ticket field that holds text, which on GitHub Issues is an issue field: see Your tickets already have fields, which also says why a board field can't hold one.
| Key | What the factory field holds |
|---|---|
decisions |
Decisions: the questions refinement settled, and what was chosen |
spec |
Spec: what a change your users will notice must do, line by line |
acceptance-criteria |
Acceptance criteria: what must be true for any other ticket to be done |
for-the-builder |
For the builder: how to build it, as a design and a list of tasks |
repositories |
Repositories: which repositories a ticket changes, and the order they merge in, when it names more than its own |
factory init asks your coding agent to suggest the ticket fields, and
you confirm them.
nonekeeps the factory field in the description, and so does leaving its key out. Unlike the board's three, a factory field never goes in a ticket field just because the names match.- A ticket field is named as the ticket system shows it, capitals included.
- These keys don't need a board, since the ticket field belongs to the ticket.
- The ticket field must exist and hold text. One that doesn't, such
as a single select, fails the checks
factory doctorand init print, and refining a ticket stops, naming it, and writes nothing. - Two factory fields can't name the same ticket field, except
specandacceptance-criteria, since a ticket has only one of them.factory config checkstops on any other pair. - A heading of your own, such as one
a refiner of your own writes, can go in a ticket
field too: write it in lowercase, with hyphens for spaces, so
## Proposed docsisproposed-docs. - Changing a line affects tickets refined afterwards. A ticket refined before keeps its factory fields where they were written.
tickets.labels
The names of the three labels the factory puts on tickets. Most
repositories never set them: leave the block out, and the factory uses
the default names. To rename a label on pull requests instead, see
code-host.labels.
Each label has a key and a name. The key is what you write on the left, and never changes. The name is what your ticket system shows, and is what you set:
tickets:
labels:
spec: needs-spec # refinement adds needs-spec, not spec| Key | Default name | What the label marks |
|---|---|---|
spec |
spec |
A change your users will see, so refinement writes a Spec into the ticket |
factory |
factory |
A ticket the factory works on: Which tickets are the factory's |
- Write only the keys you change. A key you leave out keeps its
default name.
factory initdoesn't ask about labels, and doesn't write this block. - You don't create the label. The factory creates it in the ticket system the first time it adds it to a ticket.
- Two labels can't share a name, and capitals don't make two names
different, so
Specandspecare one label. Where the ticket system keeps its labels with the code host's, as GitHub Issues does, a name here can't match one undercode-host.labelseither, since one repository's labels serve its tickets and its pull requests. - Quote a name with
:in it, such asspec: "kind: spec". Without the quotes, YAML can't read the file.
To rename a label:
-
Write the new name under
tickets.labelsin.claude/factory.yaml. -
If tickets already carry the label, rename it in the ticket system to the same name (GitHub Issues says where). That moves every ticket that has it. The factory finds tickets only by the name in your settings and never renames a label, so until you do, it doesn't see them: a ticket still labeled
specis built without its Spec. Renamingfactoryhides every ticket that carries the old name until you rename the label in the ticket system too. -
Check the file and sync, as for every setting:
$ factory config check ✓ The settings are valid. $ factory sync wrote .claude/factory.lock -
Commit
.claude/factory.yamland.claude/factory.lock.
factory config check names a label it refuses, and why:
.claude/factory.yaml: tickets.labels.spec: must not be empty
.claude/factory.yaml: tickets.labels.spec: "factory" is already tickets.labels.factory. Give each label its own nameIt worked when factory config explain shows your names under
tickets.labels, without # default after them, and
factory ticket view N on a ticket with the label shows it with its
key, such as labels: needs-spec (spec).