The Factory
Describe a change in plain English. It is built in its own cloud sandbox, graded by a command you choose, and pushed as a pull request a human accepts. Never merged on its own.
The loop
| State | What is happening | Who acts |
|---|---|---|
pending | Filed, waiting for a runner | nobody |
building | An agent is working in a fresh sandbox | the agent |
ci | Your verify command, then your CI | the machine |
review | Branch and PR exist, nothing merged | you |
done | Accepted — the PR is open for merge | nobody |
failed | Verify or CI refused it; the note feeds a retry | you, if it is worth retrying |
The verify command is the whole quality gate
Each registered repo carries a shell command. If it exits non-zero the work does not reach review, no matter how confident the agent is about it. That makes the command the most important thing you configure.
npm run typecheck && npm run lint
Dependencies make it a graph, not a list
Items can declare that they depend on other items, so a batch is a DAG rather than a queue. Independent work runs in parallel; dependent work waits for what it actually needs instead of for everything filed before it.
Rejecting is more useful than cancelling
A rejection takes a note, and that note is fed to the retry. "You changed the wrong component — it is the one in apps/web" produces a better second attempt than cancelling and re-describing from scratch, because the agent keeps the context of what it already read.
What it costs, and how it stops
- Each item runs in a metered sandbox; spend is tracked per day against a cap.
- When the cap is reached the floor stops accepting work rather than silently slowing.
- The board states this at the top — a factory that quietly stopped looks exactly like a factory with nothing to do.
Who can do what
Filing work and merging work are deliberately different permissions. A collaborator proposes; an owner accepts. Same control you would want between a contractor and your main branch.
| Action | Collaborator | Owner |
|---|---|---|
| See the board | yes | yes |
| File work items | yes | yes |
| Retry / cancel own items | yes | yes |
| Cancel someone else's item | no | yes |
| Accept or reject | no | yes |
| Repo allowlist, settings, spend cap | no | yes |