The path to reliable agentic engineering isn’t waiting for models to stop making mistakes. It’s building a delivery system that catches those mistakes, limits their impact, and learns from them.
When engineers hear that we’re building an agentic factory, many picture the same end state: work goes in, an agent handles everything, and software comes out with no human involvement.
It’s understandable that this sounds unrealistic. Agents make mistakes. They misunderstand requirements, miss edge cases, and can produce tests that confirm the wrong behavior. If a factory means trusting an agent to get everything right, then skepticism is warranted.
But this week I realized we have the problem backwards.
We’re not building the factory because we trust the agents. We’re building the factory so we can trust them.
Without a factory, every change needs a fresh act of faith
An agent can produce a plausible change quickly. But if there’s no reliable way to check that change, someone has to inspect it all manually. The agent speeds up implementation, then moves the bottleneck to review.
And every mistake makes the next change harder to trust. Engineers ask for more scrutiny, more caution, more proof from the agent. The burden falls on people to assess each change from scratch.
That doesn’t scale. Nor does it make good use of what agents can do.
The answer isn’t to pretend agents won’t make mistakes. It’s to build a system that gives us evidence about each change, controls how far it can go, and responds when that evidence turns out to be incomplete.
A factory is a trust system, not an automation finish line
By factory, I mean the connected delivery system around a change: from expressing what should happen, through verification and deployment, to production feedback and recovery.
It’s more than a CI pipeline. And it isn’t a promise that a green build means the software is correct.
A change should earn its way toward production through evidence appropriate to its risk. Requirements describe the intended behavior. Tests check that behavior—not just the agent’s interpretation of it. Static analysis and builds catch other classes of problems. Sensitive changes can require additional review or controls. Staged rollouts, production monitoring, and rollback paths limit the consequences if something still gets through.
No one check proves a change is safe. The point is that we don’t have to rely on the agent’s confidence—or a person’s intuition—alone.
The factory has to learn when something gets through
A factory won’t catch everything. Tests can encode the wrong expectation. Monitoring can miss a new failure mode. Policies can leave gaps.
So the important question isn’t only, “Did the checks pass?” It’s also, “What do we do when a mistake escapes?”
Without a learning loop, the answer is often: ask people to be more careful next time. With one, a defect can leave the system stronger than before:
- A bug becomes a regression test.
- A recurring production symptom becomes an alert.
- A risky kind of change gets a new policy, review step, or rollout safeguard.
- A failure that once required manual investigation becomes easier to detect and recover from.
And that improvement benefits the next agent as well as the next engineer. The lesson isn’t trapped in one person’s memory or one code review.
Trust doesn’t mean handing over every decision
Building a factory doesn’t mean removing people from the process. It means using human judgment where it matters most.
People still define what the software should do, decide which risks are acceptable, and improve the system when real-world outcomes expose its blind spots. Some low-risk, well-understood changes may need little intervention. Changes with greater potential impact may call for deeper review or a more cautious rollout.
That’s a more useful goal than either extreme: manually scrutinising every line an agent writes, or treating a passing test suite as permission to ship anything.
The aim is not blind trust in agents. It’s earned, bounded trust in a process—one that can show why a change is ready, constrain what happens if it isn’t, and improve when it gets something wrong.
I’ve written before about tests as the feedback loop that lets agents move quickly and how AI changes the economics of software verification. This is the broader operational version of that argument: tests matter, but trust comes from the whole loop, including what happens after deployment.
The factory isn’t the idealistic end state of agent adoption. It’s what makes responsible agent adoption realistic in the first place. We don’t wait for agents to become infallible. We build a system in which their mistakes are more likely to be caught, less damaging when they aren’t, and useful to learn from.
Top comments (10)
This reframes the goal in a useful way. The line I would underline is that a change should earn its way toward production through evidence appropriate to its risk. That is a much more workable standard than either "review every line" or "trust the agent," because it admits that a documentation fix and a database migration should not have to clear the same bar.
The learning loop is the part I think teams most often skip. Turning a bug into a regression test helps, but I have seen teams stop there without asking why the existing checks missed it in the first place. The more valuable step in your list is the next one: a risky kind of change getting a new policy, review step, or rollout safeguard, because that changes what the next change has to prove.
One question on calibrating this in practice: when the evidence for a change is expensive to produce, how do you decide between accepting weaker evidence plus a tighter rollout, and blocking the change until stronger verification exists? And who makes that call in your factory, the author, a reviewer, or a policy that is set in advance?
I think the end goal is a combination of feature flags, A/B testing, progressive rollouts, verification debt (a score of level of risk per change) and some polocy that combines all of this with real time analytics.
You write that the lesson is not trapped in one person's memory. Some of it ends up in the agent's instructions, though. A regression test guards the code that was fixed. When the escape was a wrong assumption about a vendor's API, the next change in another module can make the same assumption, so the fix also becomes a sentence the agent reads every session. Nothing runs that sentence. When the vendor changes again, no check fails, and the agent keeps following a rule that is no longer true. The standing rules my own agents load each carry the date they were recorded, and the ones that came from an incident name it. None of them has a date for the next check.
As much as you can should not be in agent instructions and be enforced by architecture, tools and other constraints. The main take away being thag we trust the factory, we dont trust the agents.
The factory moves the trust question onto its own checks. And a learning loop only learns from escapes that something notices, so the quiet failure is a check that drifts from grading content to grading the presence of output.
In a public, signed agent task log we audited, we counted 47 of 48 translation deliveries marked as passed even though each of those deliveries said in its own answer field that no translation had been done. All 10 deliveries that simply echoed the input back passed too. Nothing reached production in the usual sense, so no alert fired. The gap only showed up when we read the verdicts alongside the deliveries they judged. The evidence field was empty in 1,978 of 1,980 verdicts, which left no way to check afterwards what a pass had been based on.
Two cheap fixes: make every pass cite the evidence it used, and periodically plant a deliberately broken change that the factory must reject. A check that can't fail a planted bad change hasn't earned anything yet. How would your factory notice a check that had quietly gone permissive?
The factory framing is the right correction to agent hype, but it has a blind spot: correlated failure. When the same model family writes the code, the tests, and the prototype-as-spec, a wrong assumption survives every layer - 'tests that confirm the wrong behavior' is exactly this mode. Two additions: 1) mutation-test the suite itself - if injecting known bugs never fails the pipeline, your checks are unvalidated instrumentation; 2) seed regression tests from production incidents, never from the agent's reading of the spec. Hard question: when a defect escapes and the loop adds a new check, how do you tell 'agent error' from 'the check was mis-specified'? A green pipeline cannot flag its own wrong expectations.
This framing works because it moves trust from a persuasive narrative to repeatable evidence. The factory still needs an escape analysis, though: when a human overrides a gate, capture the reason and feed it back into a test, policy, or documented exception. Otherwise the same class of failure returns through the manual side door.
This is the useful inversion: the factory exists so you can trust the agent, not because you already do. I have been bumping into the same pattern on the knowledge-answer side. A model can sound sure while inventing an obligation that was never in the source. So we stopped asking it to be careful and put a verifier after it: the model only selects published entries, and a rule check blocks anything it invented before a user sees it. Same idea as your change having to earn its way forward with evidence, not with the agent's confidence. The learning-loop part is the bit I still need to build — a blocked invention should become a missing FAQ entry or a tighter rule, not just another reminder to prompt better.
The idea of treating the factory as a trust system rather than an automation pipeline is important. I'd add one layer to this: the factory itself needs to be tested, because agents can learn to satisfy checks without necessarily satisfying the original requirement.
At IT Path Solutions, when building and stabilizing production AI systems, we pay particular attention to independent acceptance criteria. For example, an agent shouldn't be the only one defining the expected behavior, implementing it, and generating tests that validate its own interpretation. Requirements need an independent source of truth, with regression and integration tests checking the actual outcome.
I also think production feedback should update more than the test suite. If a defect escapes, the system should capture which control failed, whether the requirement was ambiguous, and whether the rollout or monitoring process could have limited the impact. Otherwise, teams keep adding tests without addressing the underlying weakness.
The real measure of a mature agentic factory isn't how many changes it can ship without human involvement. It's how consistently it can produce verifiable changes, contain failures, and turn escaped defects into stronger controls for the next release.
a factory that earns its way to prod with evidence is a better bet than waiting for the model to stop erring. the escape-to-regression-test loop is the part doing the work.