Diagram · Published 4 November 2026 · Drawing as of 6 November 2026
Anatomy of an Autonomous Agentic Software Factory
An autonomous agentic software factory is a delivery line where AI agents plan, build, test, review and release software on their own, under deterministic gates. A person decides at grooming, when each task is formulated; from then on the line runs on its own, asynchronously, for days, and the person may, by choice, decide once more at its end. The drawing on this page shows the whole line once, with Rational Trains as the worked example.
The whole line
Two parts: how an idea becomes a release train, and how the line is built. Every box is an agent, a tool or the person; every arrow is a handoff. Open it at full size to read the labels; the parts follow below, one by one.


Open the full-size drawing · 2600 pixels wide, on a page of its own, in the theme you are reading in. Solid parts are built and in daily use; dashed grey parts are planned, as of 6 November 2026. The terms are defined on What is an AI software factory?; the method behind the line, independent of any product, on What is Rational Delivery?
This drawing is Figure 1 of the experience report What the ratchet did not see (DOI 10.5281/zenodo.24169186 (opens in a new tab)); the poster is 10.5281/zenodo.24169190 (opens in a new tab). Both, and how to cite them, on Research.
Who is on the line
Three lanes, and each AI agent sits in the lane of the one who decides.
- Product owner
- Brings the idea, decides at gate A, optionally at gate B, and sees the line. In the drawing: the logo’s lane yellow.
- AI conductor
- Runs the train: hands out the cars to the lanes, holds every gate, reads no code, and asks the dispatcher for the next version when the lines are free.
- AI dev agents
- One car each, in its own copy of the code, on parallel lanes: as many as the machine carries. They deliver evidence: a pull request, the tests, a green run.
- The tools
- Deterministic programs with no opinion: the dispatcher, the gate before a car, the watchdog, the cloud run, the release queue, the board, the journal.
- The other agents
- The planning agent, the external voice (a different model), the cross-model check, the reviewers, the close-out, the train report. Green, the factory’s colour, every one of them.
Sources and the backlog
Everything the factory builds starts on a shelf.
The sources are the tracker’s ideas, issues and epics, with the discussions and decision records behind them; the known issues, every verified minor finding the reviews left; the depot, the manual steps still open by hand after a train arrived; the journal, what the last train did and where its time and money went; and the retrospectives, every train’s last word. A repository map, the code’s dependencies crawled together with the tracker, is planned.
The backlog frames each of them as a car: one issue, at most about 250 code lines, an effort with its reason, the files it touches read from the code, what it depends on, and a check against the product’s goals, doctrine and rules. A car bigger than that is split before any train is formed.


Candidates and the pick
Candidates are compared as trains, not as tasks.
How many cars, how many lanes they can use at once, the critical path through the cars that share files, the external voice’s serious findings on the plan, the manual tail of database changes and deployments, and the risk: money, schema, authentication. The pick is one release train with its version and a preliminary scope of work: the cars it will carry, one issue each, as many as fit.


Groom, build, measure
The pick becomes a train in a conversation, and the person’s part ends at gate A.
Groom is a session with the planning agent: questions answered, the cars in order, the version, the manual tail. The external voice, a different model, reads the plan against the code until the two agree. Gate A is the person’s: the boxes ticked, asynchronously, for one feature or several at once. The train is ready to go, its version assigned, and the dispatcher takes the next ready train, lowest version first, with no person needed.
Build runs the parallel lanes, each car through its own gates, then the whole train through its checks, and makes one release to the main branch behind a feature flag. Measure writes every run, review, finding and cost as a row in the journal, and the conductor writes the train report and the retrospective. Gate B, the closing, is optional: the manual tail by hand, the feature verified behind its flag, then opened to users. Metrics and retrospectives become the next source.


What shrinks the funnel
Three criteria decide what rides, and in what order.
- Size
- What fits one car: at most about 250 code lines, one issue, read whole by its reviewers. Bigger is split before the train is formed.
- Parallelism
- What can run at once: cars whose files do not meet run in parallel lanes, as many as the hardware allows. A shared file means a chain, and the critical path decides the night.
- Risk
- What needs the heavier read: money, schema, authentication, infrastructure. The external read before the go, two models at the close-out, a person at production.
Idea, car, train: cars are sized and compared, grooming shapes the pick into one train, and gate A authorises it. Several trains groomed and finalised run one after another, lowest version first, without the person.
The line, and how to read it
The second half of the drawing. The idea comes from outside the factory; the shipped feature leaves it. The labels on the arrows are the handoffs.
- AI agent
- An agent that reads, plans, writes or judges. Green, the factory’s colour; a green box “decides” within its brief.
- Tool
- A deterministic program: the dispatcher, the watchdog, the cloud run, the release queue, the board. Outlined in ink.
- Person
- The product owner, in the logo’s lane yellow, and the two gates that are theirs: A, grooming finalised, and B, the closing.
- Gate
- A deterministic gate on the dark board: a number against a threshold. The same code gives the same answer every time.
- Planned
- Dashed grey: not built, as of 6 November 2026.
- Event
- A dashed green box: a message, not a decision. The release is one.
- Pickaxe
- A manual step: direct human involvement.
- Eye
- Observation: the owner watches, nothing waits for them.
- Arrows
- Ink for a handoff with its label; dashed green for a message; dashed amber, the brake’s colour, for a verified finding sent back to be fixed.
- Scope
- Per car or whole train: what a check reads.
Plan, challenge, go
From the shelf to a train with a version, with the person at the end of it.
An idea, an epic or a task comes from the backlog, outside the factory, with its goal. The planning agent runs the grooming session: questions answered, cars sized from the code, checked against goals, doctrine and rules. The external voice, a different model, reads the plan against the code, read-only, and sends findings; a separate session, the cross-model check, confirms or rejects each one; plan and findings go back and forth until the two agree.
The grill report reaches the person, and gate A is the one act the factory cannot do: grooming finalised, the train ready to go with its version number. The dispatcher, a tool, starts the next ready train, lowest version first, on green: usage windows, reserves, the last train in. The station, one writer of every train state so that no tool reads tracker text, is planned.


Build, test, review
Parallel lanes, deterministic gates, and a review that must be verified before it counts.
The conductor hands out the cars in parallel lanes, as many as the machine carries, and holds every step’s conditions; it reads no code. Before each car a gate waits for a free lane, for the car’s dependencies to be done, and for the usage window to reset when the reserve is short; a car never blocks the line. Each dev agent takes one car, one worktree, one pull request: code and tests.
The cloud run is deterministic: the worktree pushed, every test run, every analyser counted; a count above its ratchetfails the car. Quality is numbers: lint, type errors, duplication, dead code, secrets, vulnerable dependencies, cyclomatic and cognitive complexity, with maintainability measured but not gated. The reviewer gates the merge while shadow reviewers read for statistics; the cross-model check confirms or rejects each finding against the code, and a verified serious finding goes back to the dev agent to fix. Every test run, metric and finding is a row in the journal.
The watchdog heartbeats through every stage and pushes a stall or a release to the phone; the owner’s board, session and push say when to step in. The cars under construction, in the dashed frame, are the release train, version N.


Ship and verify
The train arrives on its own; the person closes it only by choice.
A car that is ready for deployment goes to the release queue, which merges it into the train branch in order. When the last car is merged, the close-out reads the whole train: two models over all the cars together, end-to-end flows, a mobile sweep. A verified serious finding becomes a fix car on the same train; a minor one leaves for the backlog as a known issue.
The train arrives: one merge into the main branch, the notes, production verified. The release is an event, not a decision: a message to the watchdog, which tells the dispatcher that the lines are free and to take version N+1. The train report and the retrospective are written from the journal.
For the person, the manual tail, if there is one: database changes and deployments by hand, never in auto mode, with the depot inspection listing every arrived train’s open manual steps. The feature is released behind a flag the owner alone sees. Gate B, the closing, is optional: verified, then opened to users, and out of the factory.


The journal and the backlog
Two places the whole line writes to and reads from.
- The journal
- Every test run, review round, finding, car event, train event and cost is one row, in a cloud warehouse or a local file on the machine. The views on it give the scorecard, the cost per car and per train, the delivery speed, and what each reviewer found and missed. The grooming session, the train report, the weekly report and the ambulance read from here; nobody parses the tracker’s text for state.
- The backlog
- Issues, epics, known issues, retrospectives: a shelf under the factory. Every idea starts here, and every verified minor finding comes back here, from a car’s review or a train’s close-out, until a train or the ambulance takes it. Groomed from here, never parsed from here.
Where the person is needed
The idea and the go. The closing only by choice.
- Gate A
- The one act the factory cannot do: the owner decides at grooming, when each task is formulated, and finalises the grooming after a session, for one feature or for several at once, asynchronously. Each train then has its version.
- Between the gates
- Nothing. The dispatcher takes the next ready train, lowest version first. From then on the trains run on their own, for days if several are groomed: each one built, read, released behind a feature flag and measured.
- Gate B
- Optional: a manual tail only where a database change or a deployment needs a hand, never in auto mode, and the feature verified behind its flag before it opens to users.
- Seeing the line
- The board shows every train and car with its cost and quality figures. The conductor runs in a live session the owner can open and ask: what is running, why a car waits, what to change. A push reaches the phone when a train starts, arrives or stalls. The window and the remote cockpit are planned, not built.
The ambulance train
Technical debt does not grow. No stabilisation sprint, no swelling backlog.
Every week a special train takes the open minor defects the reviews left and every retrospective, reads the journal’s metrics, costs and failures, and brings its own proposals: what to fix in the code and what to change in the process. The owner picks which ride; the ambulance runs through the same gates as any train. Debt is paid in the same rhythm it is made, never saved up for a sprint of its own, and the ratchets make sure the counts only fall.
Questions about the drawing
Short answers, in the words people search with.
What is an autonomous agentic software factory?
A delivery line where AI agents do the planning, coding, testing, reviewing and releasing, and deterministic gates decide what moves on: lint, tests, static analysers and a quality ratchet, not an AI’s opinion. A person decides what goes in and, by choice, what reaches users. Rational Trains is one such factory; the drawing on this page is its anatomy.
Where does a person step in?
Twice, and the second time only by choice. The person decides at grooming, when each task is formulated, and at gate A finalises it: the release train is ready to go and has its version. From then on the trains run on their own, asynchronously, for days if several are groomed. Gate B is optional: a manual tail where a database change or a deployment needs a hand, and the feature verified behind its flag before it opens to users. At least one human is currently needed; the drawing says so.
What checks a plan before it is built?
Check every task before it is built. Shape each task in a grooming conversation, then check it before any code exists, in three layers, and let the person decide at that moment. A task that is wrong at the input is built wrong, however well it is reviewed later. Against the plan. A new task is reconciled with the project’s living plan: what is already decided is not added again, and a contradiction becomes one question to the person. Today this is a working habit becoming a rule; it is not a gate. Against the product’s rules. The product’s doctrine, the few rules every change keeps, and its word list where it has one, are checked when the task is shaped, again in the code by a test, and again on the release text. Against the code. An independent read-only session, preferably on a model from another vendor, with a fresh session of the same model as the fallback, reads the plan against the code, and a second session verifies every finding before anything changes. The person decides here. At grooming, when the task is formulated, not at the start of a release. From then on the work can run on its own, asynchronously, for days. In the drawing this is the challenge station: the external voice and the cross-model check under it.
What is a deterministic gate, and how is it different from an AI review?
A deterministic gate is a check with a number and a threshold: the tests pass or not, a count of lint errors, duplicated lines, type errors or complexity holds or breaks its ratchet. The same code gives the same answer every time. An AI review finds problems and must quote the code it is about; a second model confirms or rejects each finding; only a verified finding counts. Reviews find, gates decide.
What happens to the findings of a review?
A verified serious finding (P1 or P2) goes back as work on the same train: to the dev agent for its car, or, at the close-out, as a fix car. A minor finding (P3) leaves the factory into the backlog as a known issue. Every week an ambulance train takes the open known issues and the retrospectives, so technical debt is paid in the same rhythm it is made and never saved up for a stabilisation sprint.
How many agents work at once?
As many parallel lanes as the machine carries. Each car is built in its own copy of the code, a git worktree, so cars never step on each other; cars whose files meet run one after another, and the critical path decides how long the train takes. The conductor hands out the cars and holds every gate; the dispatcher starts the next ready train, lowest version first, with nobody needed.
What on the drawing is built, and what is planned?
Solid parts are built and in daily use. Dashed grey parts are planned, as of 6 November 2026: the read-only window and the remote cockpit for the owner, the station that would be the one writer of every train state, and the repository map as a source for grooming. Everything else, from the funnel to the ambulance train, runs today.