Solution · Autonomous software delivery
The Dark Software Factory
A written specification goes in and a pull request comes out. AI agents do the work between, and a person approves at each gate. This is how one developer can build a prototype with your customer in weeks and keep it running. A run that did not do what it claimed cannot report success.
Live orchestrator v0.2.97, read from the running containers on 4 September 2026. Four production projects, one Compose stack.
What the machines do, and what people still do
When machines write, review, test, deploy and document the code, the person who used to do those jobs moves to the gates. Approving at the gates becomes the job. So ask three things of any autonomous pipeline. Where are its gates? What can a person see when a gate opens? Does the system report truthfully what happened after the gate?
This pipeline starts with a spec, a markdown document that describes one unit of work. An orchestrator built on DBOS and Postgres dispatches Claude Code agents with one role each: plan, write, review, audit security, test, deploy and document. An eighth agent, off the main line, turns a plan into specs. Every step is checkpointed, so a restart resumes at the last completed step and does not pay for the same model call twice. Four projects run on it. One is the quoting engine at eBatt.ai.
Calling a model seven times was not the hard part. The hard part was making the sequence survive restarts, redeploys and expired credentials. Making it report truthfully was harder still. Each failure in the evidence below looked like success at first, and each now has a named check in front of it.
I first wrote it as terminal panes and a polling loop, and it lost state every time the laptop slept. The rebuild did not remove the person. It gave the person a shorter list of better questions. The automation may work fast, but it must not treat its own report as proof.
The pipeline and its gates
There are eight agents, two lanes and three locks. No agent can name the security stage as its successor, so no agent can route work to it or around it. The deployer’s claim of success is checked against the remote before the docs agent is allowed to run. Click any node to see what it does and what it is not allowed to do.
One attempt, including the failure
The steps below come from the orchestrator’s own dispatch log for 28 July 2026, with the project anonymised. The first twenty seconds show a good run. The last seven show a false signal from the same morning. Because of it, the next release added an attempt number to every idempotency key.
Live demo
Eight agents, one human approval.
One real attempt, taken from the orchestrator's own log. It shows eight agents, one human gate and one check that reads the remote and does not rely on the agent's report. It ends with a failure: a cancelled worker kept running. The timestamps are real, and the project is anonymised.
- DBOS
- Postgres
- Claude Code
- Docker Compose
- GitHub
- Cloudflare
- ntfy
- Honcho
agent.trace
Live tool calls
The evidence, including the failures
- 424 of 533
- merged eBatt.ai pull requests came from factory branches, since 26 April 2026
- 141
- merged pull requests on the orchestrator itself, the last on 3 September
- 3,011
- structured handoffs across 255 specifications in the handoff store
- 444
- of those handoffs went to a human, not to the next agent
- 13
- named halt reasons, counted from the code
- 15 to 25 min
- elapsed time for a full run of the pipeline
The numbers above are counts, not estimates, and none of them is a promise about the next run. The orchestrator has 39 documented API operations and nine scheduled monitors. Its test suite stood at 1,768 passing on 30 August 2026. Of the handoffs in the store, 2,522 ended in success, 54 failed, 63 were blocked and 72 were partial.
The failures are worth reading. Each now has a named check.
- The workflow engine’s status row says SUCCESS for a run that halted, because a halt is a normal return. So only the marker on disk counts.
- Four green rehearsal runs in a row reported writing a file that never existed. Rehearsals now prove the shape of a prompt and nothing about an agent.
- A deployer wrote “success” while the code never reached the remote. The orchestrator now reads the remote’s tree itself.
- On 28 July an attempt died in 86 seconds without launching a model, because an idempotency key carried no attempt number.
- On 30 July a telemetry lane went silent for 53.67 hours and the dead-man switch did not notice. The diagnosis records that the gap “would not page today”.
What still needs a person
The list is written in the operating documents, and it is short. The watchdog that detects a stalled dispatch sends an alert but does not restart anything. A false positive once cancelled a healthy pipeline and wasted six paid-for dispatches. Stranded workflows are detected and reported, not restarted. There is also no migration tool. Tables create themselves at boot with idempotent statements. That works, but it cannot express a destructive change, so the first destructive change will need a proper tool and a person to run it.
Deploy approval
This is the one place where a person is required by default. The run waits up to twenty-four hours, and the wait survives an orchestrator restart. The person answers with one tap on a notification that carries a low-privilege token, not the API key. A destructive database migration turns this gate on whatever the other settings say.
Reading the spec
In programme work, an agent writes each specification from the plan and from facts gathered from the specs already finished. Nothing advances until a person has read the staged spec and approved it. A gate can wait for a week at no cost, and a redeploy cannot strand it.
Plan revision
Only the operator can change a programme's plan. The system has no way to apply a change automatically, and this gate cannot be turned off.
Persistent disagreement
A reviewer may send work back to the builder twice. A third disagreement halts the run so that a person can read it. There is no fourth attempt.
Want a factory of your own?
The runtime is Apache 2.0 and you can host it yourself. If you want one for your own team, I can help you decide where its gates go and set it up, starting from the failure record above.