Gonçalo Borrêga
← Writing

Part 2 of 8 · Factories, Loops and the New Orchestrators

One Factory Is Not Enough

Share

Part 2 of 8 in a series, Factories, Loops and the New Orchestrators. Previously: Part 1, Vibe Coding Built the Prototype. Who Builds the Next Hundred?.

A car plant and a pharmaceutical plant share a word and almost nothing else. Different tolerances, different inspections, different regulators, different people on the floor, different consequences when something slips through. Nobody walks into a board meeting and proposes "the factory", singular, as if one line could make both.

Yet that is how the software market talks right now. "The software factory." As if a company buys one, switches it on, and every piece of software flows out of it.

In Part 1, I defined a software factory as a purpose-built production line for one type of system: agents do the work, people own intent, policy and gates, and an outer loop steers every change toward measured success. The key words are "one type of system". This piece follows that definition to its consequence.

An enterprise needs many factories.

The singular is the tell

Think about what a large company actually builds.

A customer-facing portal in a regulated industry. It needs strict change management, security review, evidence for auditors, careful releases. A back-office workflow app that five people use and that should exist by Thursday. A legacy modernization, where the success test is "behaves exactly like the old system", which is a very different test from "users like the new screen". A departmental app built by someone in finance who has never opened a code editor.

These are four different production problems. They need different gates, different cadences, different people in the loop, and different evidence at the end.

Saying "software factory" for all four is like saying "vehicle" for a bicycle, a bus and a bulldozer. True, and useless for deciding what to build.

What one pipeline does to you

Suppose you ignore this and build one universal pipeline. It will fail in one of two directions.

If you tune it for the critical case, it becomes too heavy for the small ones. The finance analyst needs a Thursday deadline met and the pipeline wants three approvals and a security review. So people route around it. Shadow vibe coding comes back, quietly, on personal accounts and unmanaged tools. You built governance and got a bypass.

If you tune it for the small cases, it becomes too loose for the critical ones. The gates that make sense for a team dashboard are not the gates a regulator expects for a payments flow. Risk accumulates where you can least afford it.

Most universal pipelines try to split the difference and end up as a compromise nobody likes: heavy where it should be light, light where it should be heavy.

There is a decision test I find useful, and it fits on a sticky note:

What type of system, under what constraints, does this factory exist to deliver?

If the answer is "anything", it isn't designed yet.

A good answer is specific. "Customer-facing portals under financial regulation, evolving for years, with audit evidence on every change." That sentence already tells you the gates, the people and the cadence. "Anything" tells you nothing.

Factory first, at any size

A natural objection: surely not everything deserves a factory. A small change should just be a small change.

I'd push the other way. Factory first, at any size.

Some factories are long-lived. You evolve a portal for years, and the factory accumulates context, tests, gates and earned trust the whole time. Its value compounds.

Others are short-lived. One feature, or one migration. You set the factory up, deliver the work, and then retire it cleanly: runtime, memory and access all removed. Nothing lingers. Nobody finds a forgotten agent with live credentials eighteen months later.

Short-lived does not mean ungoverned. It means governed for a short time, then gone.

This only works if setting up a factory is cheap. It should take hours, from a template, not weeks. If standing up a factory is a platform-team project with a queue and a ticket, people won't do it. They'll go back to prompting in a chat window and hoping. The cost of creating a factory has to be lower than the temptation to skip it.

That sounds like a small point. It's the one that decides whether this whole idea survives contact with a real organization.

Then comes sprawl

Now you have what you wanted. Many factories, each built for purpose.

You also have a new problem. Ask a few questions and see how far you get.

Which factories exist right now? Who owns each one? What gates does each enforce, and were they the right gates last quarter? What does each one cost to run? Does it still earn its keep, or is it a line that nobody has used since the project ended?

This is a familiar movie. A few years ago, the industry broke monoliths into microservices. Splitting things into small services was the right call. Then the operational reality hit: nobody could say what talked to what, who owned it, or what happened when it failed. The services were fine. The trouble lived between them.

That was the argument in "The Mesh Beats the Nodes". The value, and the risk, live between the nodes. Factories are nodes too. A hundred good factories with no shared layer between them is a hundred separate islands, each with its own idea of what "approved" means.

The factory of factories

So the interesting question is one level up.

The factory of factories is the layer where you set up, run, govern, evolve and retire factories. It lets them share templates, context and governance, while each factory stays specific.

Read that last clause twice. Shared where sharing helps: the template that gets a new factory running in hours, the context about the business that every factory needs, the governance rules that no factory is allowed to skip. Specific where specificity helps: the gates, the cadence, the people and the success measures of each factory.

I want to keep this a concept, not a blueprint. What matters for a leader is the list of things this layer has to answer for:

  • Set up. Can a team get a new factory, with the right defaults for its type of system, in hours?
  • Run. Is there one view of every factory, its state, its owner and its cost?
  • Govern. Are the non-negotiable rules enforced by the platform itself, rather than by whoever remembered to write them in a prompt?
  • Evolve. When one factory learns something useful, can that improvement be tested and offered to the others?
  • Retire. When a factory has done its job, can it be shut down completely?

The word "factory" also stretches further than code. The same primitives (intent owned by people, gates, an outer loop tied to measures) can run a go-to-market motion, a delivery operation or a service desk. Software is the first place this pattern is obvious, and I don't think it is the last. I'll come back to that in Part 7.

Where this goes wrong

I should be honest about the failure modes, because there are two.

The first is too many factories. A factory for every team, every quarter, every whim. You get duplication, inconsistent gates and a maintenance burden that eats the gains. Splitting is not free.

The second is that the factory of factories becomes bureaucracy: a central committee that approves every new factory, which brings back the weeks-long queue that made people skip the whole thing. If setting up a factory needs a meeting, the layer has failed.

A few heuristics for when to split and when to reuse:

Split when the gates differ. If a regulator or an auditor expects different evidence, you need a different factory.

Split when the people differ. A factory built for professional engineers and one built for citizen developers have different review needs and different trust levels.

Split when the cadence or blast radius differs. Something that ships hourly and can be rolled back in seconds is a different animal from something that ships quarterly and touches money.

Reuse when only the subject differs. A different business domain, language or team, with the same gates, the same people and the same evidence, is not a reason for a new factory.

And a simple test to finish: if you cannot say in one sentence how two factories' gates differ, merge them.

Questions worth asking right now

If you lead a technology organization, try these this week:

  • Can you name every place where AI is producing software in your company today, and who owns each one?
  • For your most critical system, what gate would stop a bad change? Is it enforced by the platform, or by good intentions?
  • How long does it take a team to stand up a properly governed way of building something new? Hours, weeks, or "we'd have to raise a project"?
  • When a piece of work is finished, what gets shut down?
  • Which of your pipelines would you describe as serving "anything"?

One factory is a project. Many factories, run well, are a discipline.

Key takeaways

  • A software factory is built for one type of system. Real enterprises have several types, so they need several factories.
  • One universal pipeline ends up too heavy for small cases, which brings shadow vibe coding back, or too loose for critical ones, which brings risk.
  • Factory first, at any size: long-lived and short-lived factories both need to be set up in hours from a template, and short-lived ones must retire cleanly.
  • Many factories create sprawl. The factory of factories is the layer that sets up, runs, governs, evolves and retires them, and it should stay light.

I'd love to hear how you're thinking about this: how many distinct types of system does your organization really build?


Earlier in this series

Related reading from me

← All writing