Overview
On this page
Open Factory Floor is an open framework for running a repository as a software factory.
AI agents can now write most of a change. What is still missing is the line the change travels down afterwards: the tests, the independent review, the trial run, the decision about whether it may be released without a person, the release itself and the watch that follows. Open Factory Floor describes that line in one file, enforces it, and records every step so that people can see what happened.
Open Factory Floor is an open-source project created by The AI Engineers for the community. Guides are at openfactoryfloor.org, and hosted floors at openfactoryfloor.com.
Status: early, and usable. Every station Open Factory Floor itself provides now runs: the independent review check, the release decision, the watch afterwards with undo, and the record. They have been proven on throwaway projects and run beside one production system; none has long real use yet. The specs are still drafts.
#What runs today
The independent-review gate. It reads the risk rules from your factory.yml, works out whether a pull request needs a review, and sets a commit status that passes only when a reviewer has recorded a pass for the exact head commit. See docs/REVIEW_STANDARD.md for the record a reviewer leaves, and the comment at the top of .github/workflows/review-gate.yml for the few lines that add it to a repository.
This repository runs on itself: its own factory.yml and gate judge its pull requests.
The record as a page. python -m factory.page --out record.html writes the factory's record as one self-contained page a person can read: every change as a row, its journey as a run of marks, each send-back with the review's own plain-words summary. See docs/RECORD_PAGE.md.
The release gate's rules. factory/release_gate.py answers, for one line, whether what has been merged since the last release may go out without a person. factory/release.py and the reusable workflow release-gate.yml put it to work in a repository's own release workflow: they gather the facts from GitHub, write go, and open the one issue that tells a person about a hold. A repository that already decides its own releases can run the gate beside them first, reporting only (release-gate-beside.yml). See docs/RELEASE_GATE.md and docs/RELEASE.md.
The watch after a release. factory/watch.py keeps asking a project's own check whether the live system is well, runs the project's own undo if it is not, tells a person and holds later releases. See docs/WATCH.md.
A repository's own judge. Where paths cannot say how risky a change is (which function of a large file changed, whether a migration only adds), the factory file can name the repository's own script to decide, with the factory's safeguards kept on top. See docs/JUDGE.md.
The automatic reviewer. An optional station that does the review: when a change's tests pass, a model reads it against your standard and records pass or findings. It uses your own Claude subscription or API key, has no tools, and by default leaves high-risk changes to a person. A scheduled health check opens an issue when its credential stops working. See docs/AUTOMATIC_REVIEWER.md.
The record of every step. One command writes out what happened to each change (opened, tested, reviewed, sent back, a person needed, merged, and then released, held or undone) as events, from what GitHub already holds. See docs/EVENTS.md.
Hoppers and the bin. Where requests wait before they become a change, and where work lands when the line could not sort it, named in factory.yml and reported, each hopper with its own rule for whether work may start without a person. A hopper review has a model suggest what to do next, and the builder picks up an item its hopper lets start and opens a pull request for the line to judge. See docs/HOPPERS.md.
Seeing the factory. python3 -m factory.app opens a page on your own machine that draws the factory as a factory: hoppers as funnels, a conveyor through the tests and the review, a return belt for work sent back, a barrier gate on each release line, the bin, and each change as a crate. It shows today's work and replays the last week's history. It looks and changes nothing, and is built on an API by which the factory describes itself and its state. See docs/APP.md and docs/API.md.
What it costs. python3 -m factory.cost says what a project's factory cost to run over the last days: the machine minutes of every workflow, and what the model calls spent, at list prices. See docs/COST.md.
How the factory is getting on. One command says, in plain words, what is waiting for review, what was sent back and why, and what was accepted lately; an agent can run it to answer the question. See docs/STATUS.md.
Asking from an agent. A small connector (an MCP server that runs on your own machine and only reads) lets your agent answer "how's the factory getting on?", tell the story of one change, and say what was sent back and why. See docs/CONNECTOR.md.
#Setting it up
Most people will set this up with an agent. Two guides are written for that, and a person can follow them too:
- Readiness check: what a repository needs before a factory can run on it, most of which is the project's own (its tests above all). It reads, changes nothing, and ends in a report saying which stage the repository can reach today.
- The parts that are yours: what a project builds itself (its tests, its trial run, its release, the check and the undo), how the factory meets each, and how little is needed to start.
- Setup guide: stage 1, step by step, with the three decisions that belong to the owner marked. Starter files are in starter/, and
python3 -m factory.previewshows what a set of rules would have said about changes that have already merged. - Setup guide: the release half: the release decision, the release, the watch and the record, for a project with one live environment or with a test copy as well. Starter workflows and scripts are in starter/.
To run the tests: python3 -m pip install --require-hashes --only-binary :all: -r requirements.txt, then python3 -m unittest discover -s tests.
#The idea in one picture
shared belt production lines
┌────────────┬─────────┬──────┐ ┌─ api ──── staging ─ gate ─ shipping ─ evaluate ─▶ live
│ production │ testing │ QA │─ merge ─┼─ website ─ publish ───────────────────────────────▶ live
└─────▲──────┴─────────┴──┬───┘ sort └─ cli ───── publish ───────────────────────────────▶ live
└──── rework ───────┘
#Vocabulary
| Term | Meaning |
|---|---|
| Factory | An organisation or product: all of its repositories together |
| Building | One repository |
| Production line | One release path to one destination, such as an API to production or a package to a registry. A building can hold several |
| Station | A step on a line: testing, QA, staging, release gate, shipping, evaluate |
| Change | A pull request moving along the shared belt |
| Sorter | The moment of merge, when a change is split onto each line it feeds |
| Shipment | A release on one line. It can carry several changes |
| Gate | The station that decides whether a shipment may leave without a person |
| Hold | A shipment waiting for a person, with a stated reason |
#The four contracts
Everything else is built against these, so they are specified separately from any code.
| Contract | What it defines | Status |
|---|---|---|
| Event format | One record for each thing that happens on a line | Draft 0.1. Written out for a change and its review: docs/EVENTS.md |
| Factory file | The factory.yml that describes a building's lines, stations and rules | Draft 0.1 |
| Station interface | How a step joins a line and answers pass, send back or hold | Not yet written |
| Platform adapter | Deploy to staging, promote, check health, roll back | Not yet written |
An example factory file is in examples/factory.yml.
#What comes next
- Long real use: the release half deciding for a production system, not only running beside one.
- Somewhere to send the record, and a workflow that writes it out.
- The front of the line beyond seeing it: a rule for each hopper, an agent that reviews a hopper, and one that picks work up.
- Hosts other than GitHub.
#Contributing
The specs are drafts and will change. Open an issue to discuss a change to either one before sending a pull request.
#Licence
Apache 2.0. See LICENSE.
This guide is README.md in the repository, and this page is made from it. Something wrong or unclear? Open an issue or send a pull request. Next: Readiness check.