Early Access. Commands and behavior can change between releases.
.architech/factory/factory.yaml. Commit it and review changes to it
like code. Never put credentials in it.
Two ways to create the file
Onboarding
Writes your
factory.yaml while it sets up the project.Starter file
Writes a commented
factory.yaml offline, with no project setup.A complete file
This file runs a Cloud Factory for one repository. Every key is explained in a comment; thefactory.yaml reference lists every allowed value. Replace
acme, the project number and the repository with yours, and use a model your workspace lists.
framework pin, so you never type the
digest.
Connect your existing board
boards lists your boards and board picks one. A GitHub reference has an owner (an
organization or user) and a project (the project number). List repositories separately, under
repos.
Map only the columns you have. An unmapped status is not mirrored to the board, so you don’t
need to create every canonical column.
statusMap are canonical statuses. Values are your board’s
exact column names and can’t be blank. Leaving statusMap out is not the same as a partial map:
Cloud then uses its default map.
Cloud supports GitHub and Linear boards. A local file can also name jira or none, but Cloud
doesn’t run those.
What starts work
Triggers decide which events start work: a board label or status, failed CI, or a schedule. The Triggers and routines page shows every event, what it starts, and how the stages chain. Without atriggers key, a pickup label starts plan, and failed CI on a
factory/* branch sends the work back to build. Assigning an item doesn’t start work in v1.
Whatever the trigger, a board item also needs every pickup label and no hold label, and an
item in triage never starts a run. A trigger starts work; it never approves a gate.
Context rules
Onecontext: block says what each repository uses when its rules or memory files are missing.
The example above requires web to carry its own coding and testing rules. Without a strict
required declaration, a missing file proceeds with a warning, a decision hint, a recorded entry
and a recommended action. Only the code-writing step that needs a missing required file is held;
reviews always give a verdict.
A generated SDK can instead declare exempt: all: no rules, no memory and no repository context
are needed. The repository’s own AGENTS.md / CLAUDE.md instructions still load normally.
Cloud accepts this block with the rest of the factory file and supplies it to sessions, including
sessions that resume later. Push a changed configuration to use it for new runs; runs keep the
version they started with. You don’t need to copy the block into every checkout. Without a factory
file, a repository uses .architech/context-rules.yaml.
See Context management for generated SDK, strict-repository
and temporary-exemption examples, or the field reference.
Lean plans
By default, a plan’s parts are filed as sub-issues on your board, and each one gets its own build and pull request. Setplan.subItems: none to keep the board to the item you labelled:
plan.subItems: board is the default.
Limits
limits caps how much work runs at once and what it may spend. Work over a cap waits; it is never
dropped.
architech factory cost shows spending against these caps.
Approvals by label
A run waits for you twice: after the plan, and before the merge. You answer both with a label, in the issue or pull request sidebar or on the board. You don’t type a command.- Only a person counts. The label must be added by a GitHub user with write access to the
repository. Labels added by a bot, an app or the Factory itself are ignored. The approval is
recorded as
github:@login. - Labels are used once. After reading
factory:approved,factory:changesormerge:changes, the Factory removes it.merge-readystays on the pull request until the merge, and is removed if new commits are pushed: approve the new head again. - Hold wins.
merge:holdstops pickup and merge, whatever other labels are present.merge:yololets a person merge withoutmerge-ready, never past a hold. - Moving a card doesn’t approve. The board can’t tell who moved it, so the Factory replies with a comment asking for the label instead.
- Typing
/approvewith text is refused. A bare/approvecomment is still accepted. Anything after it, such as/approve but add tests, is refused with a reply: put corrections in a comment and add the changes label. - Gate labels work in the repository the board is bound to, on GitHub boards.
labels.
From the shell, architech factory runs approve <run> --gate plan approves a plan too.
Which gates apply
- Plan approval is required before any build at
calibratingandstandardautonomy. - Review is done by the
reviewerrole, not the developer who built the change. It can send work back tobuildup to two times. - Merge approval is required at
calibratingautonomy (the default), and at any autonomy when a change touches a protected path (repos[].zones.protected). - The merge itself always waits for a person’s approve or loosen label on the pull request, at every autonomy level and with every merge preset.
- Four eyes. The reviewer’s notes are posted on the pull request when it opens the merge gate. The person who adds the approve label is the second pair of eyes: read the notes and the diff first.
- Autonomy (
calibrating,standardorautonomous) is set inpolicy.autonomy.
Validate before pushing
factory.yaml reference.