Early Access. Commands and behavior can change between releases.
.architech/factory/factory.yaml. Both onboarding and architech factory init write this one format, architech/factory/v2.
Example
A Cloud Factory for one GitHub repository. Replace the owner, project number and repository with yours. Configure your Factory has a longer example with a comment on every key.Keys
These are all the top-level keys. Any other top-level key is refused.
Push lists the stored-but-unused fields as accepted, not applied:
metadata.description,
default, issues, every board except the selected one, and mode (pushing, not this field,
makes a Factory a Cloud one).
Context rules
context declares what repositories use when a rule or memory file is missing. Put it here once;
Cloud supplies it to sessions and keeps it when they resume. A repository without a factory file
uses the same block in .architech/context-rules.yaml.
Words for
rules, memory or an individual name:
Mappings also accept lists:
exempt: [testing-rules], required: [coding-rules] and
neighbouring-conventions: [coding-rules]. A named setting wins over its kind, then the quick
exempt. A file the repository already carries still loads. AGENTS.md / CLAUDE.md instructions
always load normally; there is no use: form.
Lookup is ARCHITECH_CONTEXT_RULES → this factory file → .architech/context-rules.yaml →
parent file → default. A later source fills only what an earlier one leaves undeclared.
Only a missing required holds the code-writing step that needs it; reviews never block on
context. Other missing files warn, record a decision and recommend an action. A valid exemption
prints EXEMPT (INFO), not a warning, and is still recorded.
Invalid entries approve nothing: the resolver warns and ignores them, retaining only their
required values. Factory validation refuses invalid blocks, including an exemption or required
without why. approved is optional. An onboarding: top-level key is not supported: onboarding
records intent and setup in .architech/onboarding/context.md instead.
See Context management for a walkthrough and
Memory and rules for warning output.
Status mapping
Map only the columns you have.
dropped is a canonical status too. Unknown keys, blank values
and empty maps are refused.- An unmapped status is not mirrored to the board.
- If you leave
statusMapout, Cloud uses its default map. That is not the same as mapping nothing.
statusMap is left out, Cloud uses:
See all canonical statuses.
Sessions
sessions decides how a run’s stages share sessions and sandboxes. One line per accepted
value:
orchestrator— the Work Session. One sandbox and one owning orchestrator per work item: the first launch of a run starts the session, and every stage of the run works as a lane in it. The session parks while it waits and wakes on the next line; it ends with the run.per-stage— each stage is one short headless session in its own sandbox, torn down when the stage stops.lead-per-item— the build stages of one work item share one lead session, each build launch a lane in it; plan, review and land stay separate sessions.linked-leads—lead-per-itemplus a relay: what the leads of the factory’s other work items finish, ask and take on reaches the live leads as one line each.item— an accepted alias fororchestrator.
sessions out and a run resolves to the Work Session (orchestrator). An explicit
sessions: per-stage stays the per-factory rollback to the stage-by-stage behaviour.
A push that changes its configuration stores a new immutable version of it, and each run pins the version
it starts with, so a run already going keeps the session mode it began with. Comment- or formatting-only
edits don’t create a new version. To adopt Work Sessions, set
sessions: orchestrator and push;
runs already in progress keep their pinned mode.Labels
Each key underlabels is a role; its value is the label name on your board or repository.
Agents use these names instead of inventing their own. Any other key under labels is refused.
“A person” means a GitHub user with write access to the repository. A label added by a bot, an app
or the Factory doesn’t approve anything. See approvals by label.
Triggers
triggers is a flat list. Each trigger has exactly three keys:
Give
run.stage or run.command, not both. A schedule trigger needs run.command.
Without a triggers key, the defaults apply; triggers: [] turns off every trigger from the
file. The language also accepts a board assigned event, which v1 doesn’t support: start work
with the pickup label. See the Triggers and routines for what each event starts, and for routines.
Refused keys
architech factory validate and push refuse these keys and name where the setting lives instead.
Choose models per role
There are five framework roles:orchestrator, architect, developer, llm-whisperer and
reviewer. A role you don’t list runs on the architech harness with your workspace’s default
model. Override a role in the file:
openai-codex provider with a device
code, then name its models as openai-codex:<model>:
provider:model names your workspace lists. The dry run checks each role’s model,
Environment and effort level, and reports any refusal before anything is pushed. You can’t rename
or replace a framework role. agents.repoAgents.allow lists your repository’s own agents, never a
framework role.
To list every field with its type and default, ask the installed CLI:
--remote fetches Cloud’s copy and needs sign-in.
Validate and synchronize
.architech/factory/factory.yaml. A factory name picks
.architech/factory/factory-<name>.yaml; you can also pass a path. Push and pull can commit
changes, so read their result before other Git work.
See configuration drift and warnings.