Guards

What keeps a job from steering the pipeline, passing a failing build, or rewriting the agents that judge it. None of this removes the risk. It narrows it.

The label

Only issues with the factory label run. Adding a label needs triage or write access. That is the trust boundary: whose words the factory will build.

Issue text is data

Issue text reaches agents only inside issue.md, which every prompt calls quoted data. The orchestrator never pastes it into a prompt. This lowers the risk of an issue steering an agent. It does not remove it.

Limiting intake

Intake reads an issue nobody has reviewed. Each tool can limit what it may do.

Checks are a script

No agent's opinion can pass a build whose checks fail. [checks].commands run in order in the job's worktree. The first command that exits non-zero fails the step. They run at the gate step, and again in the merge step after the base branch is merged in, when that step is on.

A command must not rewrite files. Use prettier --check, not prettier --write.

Protected paths

The checks fail any branch that touches factory/ (or a root factory.toml from an older install), .factory/, a generated agent or skill file, or a path in [paths].protected. A job cannot change the pipeline, the checks, or its own judges. This holds whatever the check commands say, and whatever protected lists.

* in a pattern also matches /. A job may add new files that match a protected pattern. It may not change or delete one that already exists.

Merge and replies

The factory merges only when the merge step is on. By default that step is off: a maintainer merges, and a hand merge continues from the merge step's MERGED edge. When the step is on, the script merges only after the base branch is merged in and the checks pass again. The factory never deploys and never merges a revert.

A reply to a human step counts only from the issue's author, from someone with write access, from the operator, or from named logins, depending on the step. replies = "tool" ignores comments and takes the reply from the coding tool. Comments from anyone else are ignored.

The dashboard

The dashboard changes nothing. It answers only on 127.0.0.1, refuses requests with another Host header, serves only .md and .log files from .factory/jobs/, and has no route that writes. Its page loads nothing from elsewhere and builds itself without ever turning text into markup, because job and issue text comes from GitHub and Jira. Agent activity sends the tool name and a short label only, not tool output, file contents, or assistant replies.

The Board's Jira and GitHub blocks are read by the server, only when the page asks, through a short cache and with each project's own settings. The Jira token stays in the server's environment: it never reaches the page, a file, or an error message.

What is untested