Software factory: AI made code cheap. Confidence is the part you have to build.

By Lawrence DanielsPublished Updated 7 min read

A software factory is the system around your AI coding agents: who decides what gets built, who builds it, who checks it, and what proof exists before it ships. Enterprises need one because agents now write code faster than people can read it. Volume stopped being the hard part. Knowing the work is right is the hard part. A factory that only adds speed gives you more code you cannot trust. A factory built for confidence starts with a written intent, keeps each builder in its own lane, has someone who never built the work check it, and keeps the evidence. We designed ours that way, and we are building it now.

For executives whose teams already use AI coding tools and who have to sign off on what ships.

  • AI made writing code cheap. Reviewing it and trusting it did not get cheaper.
  • A person glancing at AI output is not a control. A tired reviewer agrees with the machine.
  • Small error rates compound. A 95% success rate per step falls to about 36% over 20 steps.
  • Confidence needs four things: clear intent, guide rails, independent checks, and evidence. Miss one and you have none.
  • The SXG factory is designed around those four. It will be a paid add-on to the SX Structure template, and included with a done-with-you build.

What is a software factory?

A software factory is the full line that turns a request into shipped code: the written plan, the builders, the checks, the approvals and the records. With AI agents doing the building, the factory is mostly rules about who may do what, in what order, and what proof has to exist before the next step.

  • It is not one AI coding tool. A tool is a machine on the line, not the line.
  • It is not "more code, faster." Speed without checks just moves the pile-up to review.
  • It is not a way to remove people. People set the intent and give the final yes.

Where this comes from

The framing comes from a talk by Tariq Shaukat, CEO of Sonar, on the AI Engineer channel. We checked what we could and left out what we could not.

  • Credited, not copied. The car-factory comparison and the four parts of confidence are his. We name him and link the talk.
  • Only checkable facts. We kept the METR reliability point because METR publishes it. We dropped survey and customer figures we could not trace to a public source.
  • Math you can redo. The compounding-error figure is arithmetic. 0.95 multiplied by itself 20 times is about 0.36.
  • Our side, stated plainly. Our factory is designed and approved. It is being built, not yet running for clients, and this post says so.

What does a 1980s car have to do with AI code?

Shaukat opens with cars. In the 1980s you could buy a good car whose panels still left gaps you could fit a finger in. The fix was not one better part. It was a factory engineered for quality: build it right the first time, fix the system instead of the symptom, and let anyone on the line stop it.

Software already borrowed those ideas. Agile, kanban, continuous integration all trace back to that way of running a factory. Then agents arrived and broke the balance. The machines on the line now produce faster than the inspectors can inspect.

Why doesn’t “a human checks it” work anymore?

Ask most companies about their AI controls and you hear the same answer: don’t worry, a human is in the loop. That worked when a person wrote the code and another person read it. It does not work when an agent writes in an hour what a reviewer needs a week to read.

Volume is half the problem. The other half is people. A reviewer buried in output starts agreeing with the machine, because the machine is usually right and checking takes effort. Shaukat calls it cognitive surrender. A rubber stamp is not a control.

Why do long AI tasks go wrong even when each step looks fine?

Because small misses multiply. If an agent gets each step right 95% of the time, a 20-step task comes out right about 36% of the time. Every step looks fine on its own. The finished thing is a coin flip, or worse.

METR, a research group that measures what AI agents can do, reports task lengths at two reliability levels: 50% and 80%. The longest tasks an agent can finish half the time are much longer than the ones it can finish four times out of five. A demo shows the 50% number. Your business runs on the 80% one.

Can’t another AI just check the work?

Partly. An AI reviewer is useful, but it is not a judge you can rely on alone. Ask it the same question twice and you can get two answers. Push back with “are you sure?” and it can change its mind.

So a checker has to be independent of the builder, run against a written standard, and leave a record a person can read. One model grading its own homework is the same problem with extra steps.

What does a factory need to ship work you can trust?

Shaukat breaks confidence into four parts and multiplies them. If any one is zero, confidence is zero. We agree, and our factory is built around the same four.

  • Intent. A written description of what is being built and how you will know it works, agreed before anyone builds.
  • Guide rails. Rules that keep an agent on the road, not only barriers for when it leaves it.
  • Independent verification. Checked by someone who did not build it, and problems fixed, not noted for later.
  • Evidence. Proof tied to the exact version that ships, that a stranger could read and repeat.

How is the SXG factory designed to run?

We will not publish the internals. Here is the shape. One feature moves through the line at a time, with one owner who sets the scope and gives the final yes.

Nothing gets built until a written package exists: the plan, the spec and the tests that define done. The spec and tests freeze once approved. If the work needs to change, the change gets written down and approved too. Calling it “polish” does not count.

Builders work in their own lanes, each owning its own files, in separate workspaces. Backend and frontend are built by different agents. Work that is ready keeps moving. Work that is waiting on something stays visibly blocked instead of guessing.

Then the checks run, in order, and none can be skipped. Automated review. Then a separate reviewer that never builds checks the whole feature. Then the owner approves the exact version, not “the latest one.” A pass on an old version does not carry over to a new one.

When something fails, the line stops for that work, the failure gets recorded, and the fix goes back through the same checks. Correction rounds are limited, and running out of rounds never means the work ships anyway.

  • One question, one answer. When the line needs a person, it asks one specific question about one specific version. An answer to an old question cannot move new work forward.
  • Unknown means unknown. If a status is missing, the dashboard shows unknown, not a green check.
  • Restore the job, not just the code. Code lives in Git. The questions, approvals and evidence get backed up too, so a restore does not invent authority that was never given.

How do you get the SXG factory?

It is being built now. When it is ready, it will be a paid add-on for companies that buy the SX Structure template, because the factory runs on top of that structure. Companies that choose a done-with-you build get it included.

How does a confidence-built factory compare?

Three ways teams run AI coding today.

How does a confidence-built factory compare?
Agents with a human glanceSpeed-first factoryConfidence-built factory
What it optimizesGetting startedCode volumeWork you can sign off on
Who checksWhoever has timeThe builder, or a model like itAn independent reviewer, then the owner
What gets approvedWhatever looks fineThe latest buildOne exact version, with its evidence
When something failsNoticed later, if at allRetried until it passesLine stops for that work, fix gets rechecked
What you can show a boardNothing writtenActivity chartsA record tied to what shipped

Who needs a software factory?

Teams already shipping AI-written code:

you have the volume. The factory gives you the checks.

Leaders who sign off on releases:

you need proof tied to what shipped, not a feeling.

Companies on SX Structure:

the factory plugs into the structure you already have.

Who this is not for

  • Teams that use AI only for one-off questions. A chat tool is enough.

Frequently asked questions

What is a software factory in simple terms?

It is the whole line that turns a request into shipped code. That covers the plan, the builders, the checks, the approvals and the records.

Why isn’t human review enough for AI-written code?

Agents write faster than people can read. Reviewers under that load start agreeing with the machine, so review turns into a stamp.

Is the SXG factory available now?

Not yet. It is designed and approved, and we are building it. It will be a paid add-on to the SX Structure template and included with a done-with-you build.

Is SXG affiliated with Sonar?

No. We credit Tariq Shaukat’s talk for the framing. Sonar has not reviewed or endorsed this post or our factory.

Where should I start?

Pick the last AI-written change your team shipped. Ask three questions: what was it supposed to do, who checked it that did not build it, and where is the proof. If any answer is “nobody” or “nowhere,” that is where your factory starts.

Sources

  1. Shaukat, T. "Why Humans Can’t Keep Up With AI-Written Code." Talk, AI Engineer (YouTube).
  2. METR. "Task-completion time horizons of frontier AI models" (50% and 80% time horizons).

About the author

Lawrence Daniels

Founder, Savage X Growth Solutions

Lawrence founded Savage X Growth Solutions. He worked as a digital marketer for small and local businesses from 2013 to 2019, then drove a truck as a CDL driver before coming back to build AI systems that make each person on a team worth more.

Follow on LinkedInFollow on X

Stay engaged

Keep reading

Build confidence into the line

AI Discovery Call with SXG