Back to Blog
Software FactoryOpen SourceCode ReviewAgentic Workflows

Where Most Open Source Software Factories Get It Wrong

John Kennedy
11/25/2026
9 min read

Most open source software factories are the same product: a kanban board with a skill attached to each column. A ticket enters on the left, an agent plans it, an agent builds it, an agent reviews it and a person clicks approve on the right.

That design demos well and fails in production. It automates the visible stages of a software team and leaves out everything that made those stages trustworthy.

Mastra's workshop on building a software factory is a clear example of the pattern. The agent writes the plan, the review stage is one skill, team norms live in whichever skills someone remembered to edit, one harness runs every stage and scheduled work is not built in yet. We are not singling out one project. The same choices appear across most of the open source factories we track, and the seven sections below explain why each choice is wrong.

1. One review skill is review theatre

A single reviewing agent that reads the diff and reports "looks good" is a rubber stamp. A rubber stamp is worse than no review, because everyone downstream believes someone looked.

Starting the reviewer in a fresh session does not fix this. A fresh session removes the builder's context. It does not add a second opinion.

Review in a factory needs three properties:

  • Many lanes with different jobs. One lane checks security, one checks tests, one checks the change against the architectural decisions of the codebase. Three copies of "review this pull request" find the same things three times.
  • More than one model family. In the community pull request workflow we wrote about, review quality came from disagreement between lanes that ran on different model families.
  • A deterministic score at the end. The lanes produce findings. Code, not a model, turns the findings into pass or fail, so the same pull request gets the same answer twice.

The person at the end is not a substitute for any of this. In our latest developer survey, 61% of developers spend under 5% of their coding day reviewing code. A factory that counts on a careful human read of every pull request is counting on something that has already stopped happening.

2. A plan the agent wrote and a person skimmed is not a plan

Most open source factories hand planning to the agent. The agent reads a one-line ticket, writes four pages and waits for a person to approve them. The person skims the four pages and approves, because the plan is long and plausible and the queue is full.

That approval is worth nothing. The agent filled every gap in the ticket with a guess, and the guesses are now the specification.

Put a planning gate in front of the factory. A ticket enters only when it states the outcome, the constraints and how the result will be checked. An incomplete ticket goes back to a person and does not go forward to an agent. The agent can draft and the agent can ask questions. The person decides what gets built.

Some factories also ship a mode that removes approvals completely. Without gates, nothing checks the agent's work before it merges.

3. Norms scraped from Slack are not rules

Ask most factory builders how an agent learns that the team uses one logging library, or never calls the billing service directly, and the answer is "put it in a skill". The roadmap answer is a memory store that picks up norms from chat threads and pull request comments.

Both answers are wrong for the same reason. Nobody approved the norm, nothing checks it and nothing retires it when the codebase changes.

An architectural decision is the most valuable thing an engineering team produces now that agents write the code. An architectural decision deserves a real record:

  • Written before the code. The rule exists when the plan is made, so the plan follows it.
  • Short, scoped and checkable. The rule says where it applies, what it requires, how to check it and why it exists.
  • Read three times. The same rule is read at planning, at implementation and at review.
  • Approved by a person. The system can detect a pattern and propose a rule. An engineer decides whether the pattern is a decision or an accident.

A memory store that absorbs a Slack thread cannot tell a decision from a complaint. An agent that treats both as rules will enforce the complaint.

Rules also go stale. A rule that was true in March can be false in June, and an agent that follows a false rule does more damage than an agent with no rule. A factory needs a system of work for decisions beside it that keeps the rules current. A folder of skills does not do that work.

4. Your factory should not choose your harness

Several open source factories run on one harness, usually the one the same vendor built. The argument is that harnesses are a commodity, so the choice does not matter.

If harnesses were a commodity, the factory would let you swap them. Teams already run Claude Code, Codex and Gemini CLI side by side. Each team has tuned rules files, permissions and skills for the harness it uses. A factory that requires its own harness asks the team to throw that work away and start again.

A factory is a coordination layer. It should start whichever harness the stage calls for and stay out of the way.

5. A board column is not state

In a board-shaped factory, the state of the work is the column the card sits in, plus whatever the agent session remembers. When the session dies, the memory goes with it. The card stays in "Build" and nobody knows whether the work is half done or not started.

A factory needs state that survives the death of any single agent:

  • Work items in a tracker agents can read and write. That can be an agent-native queue or the issue management system the team already uses. The session is never the record.
  • Durable messages between agents. A handoff, a question or a rejection is recorded and delivered even if the receiver was not running when the message was sent.
  • A supervisor that outlives the laptop. Heartbeats and stall detection find the agent that stopped an hour ago.

Agents fail silently. A factory without durable messages finds out the next morning, when a person asks why nothing merged.

6. Merged pull requests per week is not a process metric

Factory projects publish the same three numbers: time to triage, cycle time and merged pull requests per week. Those numbers tell you that the factory is busy. They do not tell you where the factory is wasting money or where it is about to break.

Meter tokens by stage and by ticket. When one stage costs five times what the others cost, the fix is nearly always a workflow change and not a model change: the stage is researching something the previous stage already knew.

Every factory should also expose four signals: queue depth, run durations, live sessions and the event log. One break is an anomaly. Ten breaks in the same place are a workflow change waiting to be proposed, and the logs are where the proposal comes from.

A chat-first factory can get by with a thin interface. A factory that runs unattended cannot get by without these signals.

7. A factory that waits for tickets is half a factory

Most open source factories start work in one way: a person files a ticket. The work that hurts teams most is the work nobody files a ticket for.

Scheduled jobs are a core part of a factory. Run a security scan every night, a dependency audit and a progress report every week and a sweep for stale work overnight. Put the slow tests on a clock so that every pull request does not wait for them.

Low-risk work also needs an express lane. A fix that a scanner filed, with tests, does not need a person to plan it or six lanes to review it. Give it two lanes and one approval. If every ticket pays the full price of the standard lane, the team routes the small work around the factory, and the factory loses the work it is best at.

What to build

The open source factories got the outline right: stages, gates, a sandbox for each task and a person at both ends. What they left out decides whether a team can trust the output:

  1. Review with many lanes and more than one model family, and end in a deterministic score.
  2. Put a planning gate in front of the factory and send an incomplete ticket back to a person.
  3. Record architectural decisions as rules before the code is written, and read each rule at planning, implementation and review.
  4. Run the harnesses your team already uses.
  5. Keep state in a tracker and coordinate with durable messages.
  6. Meter tokens by stage and by ticket, and fix the workflow before the model.
  7. Schedule the slow and boring work, and open an express lane for low-risk fixes.

We build and teach with Gas City and Beads. We teach the full design in the Software Factory Intensive.


Actual AI builds an architecture agent that works beside a software factory, not inside it. It discovers the architectural decisions in your codebase, puts them in front of an engineer for review, filters the rules for each task and enforces them on every pull request.

More Articles