Gonçalo Borrêga
← Writing

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

One Loop, Made Fast

Share

Part 4 of 8 in a series, Factories, Loops and the New Orchestrators. Previously: Part 1, Vibe Coding Built the Prototype. Who Builds the Next Hundred?, Part 2, One Factory Is Not Enough, Part 3, Success Is the Compiler.

Scroll through any feed this year and you will find the same demo. A dashboard with dozens of agents, sometimes hundreds, each one lit up green, each one working on its own branch. The caption says something like "this used to take a team a quarter."

It is a great demo. It is also a picture of a problem.

Because the demo ends where the work begins. Somebody has to review those hundred changes. Somebody has to merge them, resolve the conflicts between them, and decide which of two contradictory approaches is the one the business wants. That somebody is a person, and that person has the same eight hours a day they had before the agents arrived.

Agents scaled. Human attention did not.

The slowest hiker sets the pace

In 1984, Eliyahu Goldratt published The Goal, a novel about a plant manager trying to save a failing factory. The book's most remembered scene is a hike. A troop of boys walks a trail, and the line keeps stretching out behind the slowest kid, Herbie. Speeding up the boys at the front makes the gap grow. The troop only arrives faster when Herbie moves faster, or when his load is lifted.

That is the Theory of Constraints in one image. Every system has one bottleneck, and the output of the whole system is the output of that bottleneck. Improving anything else is an illusion. You get busier machines and a bigger pile of unfinished work in front of the one that matters.

Now look at an agent-driven software process honestly. Generating a change is no longer the slow step. It used to be, so we spent decades optimizing it. The slow step now is the person who has to understand the change, trust it, and say yes. Add a hundred agents and you have sped up the boys at the front of the line.

Little's law, applied to your review queue

There is a second, even more plain piece of arithmetic. Little's law says that the average time something spends in a system equals the amount of work in progress divided by the rate at which work leaves. If your reviewers can clear a fixed number of changes a day, then every extra change you start does not finish sooner. It just waits longer.

Parallel lanes feel like throughput. Measured at the exit, they are inventory.

Lean manufacturing learned this long before software did. Toyota's production system pushed hard toward small batches and one-piece flow, because work sitting between stations hides defects, ties up capital and delays feedback. A half-finished car on the floor is a liability. So is a half-reviewed pull request.

Within a factory, serialize

In the first essay of this series I described the factory as a production line for one type of system: agents do the work, people own intent, policy and gates, and an outer loop steers each change toward a measured result. The rule I want to add is simple.

Inside one factory, one change moves through the loop at a time. From intent, through the gates, to production, and back into learning. Then the next one.

This sounds like a step backward. It is the opposite, for three reasons.

First, parallel lanes in one system collide. Two agents touching the same code, the same data model or the same integration produce merge conflicts, and a merge conflict is a decision that someone has to make, usually with less context than either author had. Multiply lanes and you multiply those decisions.

Second, parallel lanes compete for the same people. Review queues grow, and the reviewer starts skimming. A gate that is skimmed is not a gate. The most dangerous failure mode of a fast agent fleet is a human who approves because the queue is long.

Third, and most important, a serial loop compounds. Change two is built on the real, shipped result of change one. It inherits the new tests, the corrected assumption, the lesson from the failed gate. Parallel lanes are all built on the same stale picture of the system, and they diverge from it together. A fast serial loop produces learning. Parallel lanes produce entropy.

How to go faster: shorten the loop

If you cannot add lanes, how do you get more done? You attack the length of the loop itself. Four levers do most of the work.

Better context. Much of the time in a loop is spent on questions. An agent that lacks the intent behind a requirement, or does not know how the system is actually structured, either stops and asks a person or guesses wrong and is caught three steps later. Both are expensive. A living map of the business and the system (the context I wrote about in "Context Is the Chassis") is the cheapest way to cut that time, because every question an agent does not need to ask is a minute returned to a human.

Faster, more automated gates. A gate that takes two days is a loop that takes two days. Tests, policy checks and validation against the success measures should run in minutes and run without anyone remembering to start them. The human should see a result that has already passed everything a machine can check.

Autonomy earned with evidence. Not every step needs a person forever. An agent that has proven itself on a class of change, first in a sandbox, then drafting while a person watches, then acting with approval, can move toward spot checks. Evidence moves the line; optimism does not. Any incident moves it back. Each step that leaves the human's plate shortens the loop without removing control.

Smaller changes. Small changes are easier to review, easier to test, faster to roll back and less likely to conflict with anything. The reviewer can hold the whole change in their head. A change that fits in one head gets a real decision. A change that does not gets a signature.

None of these adds a lane. All of them make the one lane shorter.

Where parallelism does belong

I am not arguing against parallelism. I am arguing about where it goes.

It belongs across factories. A portal for customers and a back-office workflow system have different owners, different constraints and different gates. They do not share a review queue, because they do not share a bottleneck. Ten factories running side by side is scale. Ten lanes inside one factory is contention.

It also belongs inside a single change. Ask several agents to explore several ways of solving the same problem, let them argue it out, then collapse the results into one proposal that a human reviews once. The parallel work is real, but it exits the loop as a single item. The reviewer sees one decision, not five.

So here is the decision test I use:

Does this add a second concurrent change stream to the same factory? If yes, split it into a second factory, or make the loop faster instead.

The honest tradeoff

Some work is big and will not fit in one lane. A large program touching many parts of one system, with a hard date, is a real thing, and pretending otherwise would be dishonest.

When it happens, resist the urge to run more lanes in the same factory. Cut the system along its natural seams (Conway's law will tell you where they already are), give each part its own factory, and put a clear contract between them: interfaces, data ownership, who decides what when two parts disagree. Parallelism then lives between factories, where the boundaries absorb the conflict, instead of inside one, where the people absorb it.

It costs you design time up front. It is still cheaper than a hundred branches and one tired reviewer.

Questions worth asking right now

  • How long is your review queue today, and is it growing or shrinking?
  • How long does it take for one change to go from intent to production?
  • How many decisions does one person face in a day, and how many of them have enough context behind them to be real decisions?
  • Which gates are still manual because nobody has automated them, and which are manual because nobody has earned the trust to remove them?
  • When two changes touch the same system at once, who resolves the conflict, and with what information?

If you cannot answer the first two, you are not measuring the constraint.

The loop is the product

Speed in an agentic factory is not the number of agents you can start. It is how quickly one well-understood change can travel from intent to production and teach the next one something.

Design for the human who sits at the end of that loop, because that human is the bottleneck, and the bottleneck is where the leverage is.

A hundred agents in parallel is a hundred reasons for one person to say yes without reading.

Key takeaways

  • The scarce resource in an agent-driven process is human attention, not agent capacity. Optimizing anywhere else is an illusion (Goldratt), and extra work in progress just lengthens cycle time (Little's law).
  • Inside one factory, serialize: one change at a time from intent to production. A serial loop compounds learning; parallel lanes multiply conflicts, queues and competing decisions.
  • Go faster by shortening the loop: better context, faster and more automated gates, autonomy earned with evidence, smaller changes.
  • Put parallelism across factories, and inside a single change where options collapse into one reviewed result. Test: does this add a second concurrent change stream to the same factory?

I'd love to hear where your review queue is the real limit, and what you have done about it.

#AgenticAI #SoftwareEngineering #TheoryOfConstraints #AIAgents #ProductStrategy


Earlier in this series

Related reading from me

← All writing