
Before Toyota built cars, it built looms.
That sounds like a piece of company trivia until you realize that one of the most important ideas in modern manufacturing came from a very simple problem inside one of those machines.
A thread would break.
The loom would keep running.
And unless someone noticed quickly enough, it would continue producing defective fabric.
More output. More waste.
The machine had no idea that the work it was doing was already wrong.
That problem eventually helped produce the idea we now know as Jidoka, and I think its history becomes even more interesting when you look at what we're starting to build with autonomous software factories.
Because more than 100 years later, we're running into almost exactly the same problem.
Except the broken thread is now a bad assumption.
The idea started before Toyota made cars
Sakichi Toyoda spent much of his life working on weaving machinery.
By the late 1890s, his power looms included mechanisms that could detect problems like a broken or exhausted thread and automatically stop the machine.
That was a much bigger deal than it sounds.
A normal power loom could continue operating after something went wrong. The machine was technically still running, but every additional movement could create more defective fabric.
The only reliable solution was having someone watch it.
One operator. One machine.
Sakichi changed that relationship.
If the loom could recognize an abnormal condition and stop itself, a person didn't have to stand there constantly watching for failure.
One operator could supervise several machines instead.
That is the part of Jidoka I find most interesting.
The automatic stop didn't make the machine less autonomous.
It made greater autonomy possible.

The important invention wasn't just automation
Sakichi kept improving the idea.
In 1924, the Toyoda Automatic Loom Type G was completed. It could automatically change shuttles without slowing down, but it also included mechanisms for stopping when warp or weft threads broke.
It was an extremely capable machine for its time.
But its value wasn't simply that it could do more work automatically.
It could also recognize some of the conditions where continuing that work no longer made sense.
There's an important difference there.
Automation says:
Keep doing this work without requiring a person.
Jidoka adds:
Keep doing this work without requiring a person until something happens that requires attention.
Those are very different systems.
The second one scales much better.
You don't need a human approving every movement of the loom.
You don't need someone staring at it just in case something breaks.
The machine simply works.
The human becomes involved when the system has a reason to involve them.
That's a surprisingly modern idea.
From the loom room to the Toyota Production System
The idea eventually moved from textile machinery into automobile manufacturing.
Taiichi Ohno, who became one of the main architects of the Toyota Production System, had previously worked around Toyoda's loom operations. Toyota traces the Jidoka pillar of TPS directly back to the stopping mechanisms developed for those machines.
During the late 1940s and 1950s, Toyota developed the production system that eventually became famous around the world.
Two ideas sat at the center of it:
Just-in-Time dealt with flow.
Produce what is needed, when it is needed, in the amount needed.
Jidoka dealt with quality and abnormality.
When something goes wrong, don't allow the process to blindly continue producing defects.
Machines could stop automatically.
Workers could signal problems.
Andon boards made those problems visible so someone could respond to the exact place where the abnormal condition occurred.
The important part wasn't simply stopping production.
It was stopping close to the source of the problem.
Because every additional step after the original defect makes the problem more expensive.

Software already learned the easy version of this
We've actually had a very basic form of Jidoka in software for a long time.
A compiler fails.
The build stops.
A test fails.
CI turns red.
A deployment health check fails.
The rollout gets cancelled.
These systems are doing something very similar to Sakichi's loom.
Something abnormal happened.
Stop before the defect moves farther down the line.
The difference is that traditional software had relatively easy abnormal conditions to recognize.
The code compiles or it doesn't.
The test passes or it doesn't.
The process exits successfully or it doesn't.
AI changes the shape of the problem because the machines aren't only executing instructions anymore.
They're making decisions throughout the work.

A broken thread is now an assumption
Imagine an agent gets a task to change part of a large application.
It reads the issue.
It inspects the repository.
It decides which files are relevant.
It forms an assumption about how the system works.
Then it starts building.
The code might compile.
The tests might pass.
The implementation might even look good.
But what happens if the assumption it made twenty minutes ago was wrong?
Now the factory has a broken thread.
Except nothing necessarily crashes.
The machine keeps running.
The agent writes another file.
Then another.
It updates tests based on its interpretation.
Maybe another agent picks up the work afterward and assumes the first agent knew what it was doing.
Eventually you've got a perfectly reasonable-looking pile of software built around something that should have caused the process to stop much earlier.
That's the AI version of the loom continuing to weave after the thread broke.
Modern software factories need better abnormality detection
A software factory built around agents needs to recognize a much larger set of abnormal conditions than a traditional CI pipeline.
A failing test is still one of them.
But so is an unsupported assumption.
Missing context.
A change outside the authorized scope.
An architectural boundary being crossed.
An agent repeatedly trying variations of the same failed approach.
A conclusion that doesn't have enough evidence behind it.
An evaluation score dropping below the standard we agreed on.
A requirement that conflicts with another requirement.
A tool returning something materially different from what the agent expected.
A task changing shape enough that the original plan is no longer valid.
None of these necessarily produce an exception.
That's what makes them interesting.
The system has to understand something about the work being performed, not just whether the process is still running.

This changes what "human in the loop" should mean
This is also why I don't think the future of autonomous development is humans approving everything agents do.
Imagine applying that approach to Sakichi Toyoda's loom.
The machine moves the shuttle.
Approve?
Yes.
The machine moves it again.
Approve?
Yes.
Thread tension adjustment.
Approve?
Yes.
At that point you've technically automated the loom while somehow making the human's job worse.
Jidoka took the opposite approach.
Let the machine operate.
Bring the human in when the machine detects something abnormal.
That feels much closer to the right model for software factories.
The human shouldn't necessarily be in every loop.
The human should be reachable by the loops that discover they no longer have enough information, authority, evidence, or confidence to continue safely.
That's a very different architecture.

The software factory needs its own Andon
The Andon is one of my favorite parts of the Toyota system because of how simple the idea is.
A problem shouldn't be buried inside the process.
Make it visible.
Show where it happened.
Give someone enough information to respond.
Modern software factories need the same thing.
If an agent stops because it crossed a boundary, I want to know which boundary.
If an evaluation failed, I want the evidence.
If an assumption can no longer be supported, I want to know what changed.
If the agent has tried the same solution four times, I don't need another retry hidden somewhere inside a three-hour session.
Turn the light on.
Show me the abnormal condition.
Let me deal with the thing that actually requires judgment.
Then let the machine go back to work.
Toyota describes Jidoka as giving machines and operators the ability to detect abnormalities, stop immediately, and prevent defects from continuing farther into production. Andon systems make those conditions visible so they can be addressed at the source.
The implementation is different in software.
The principle barely changes.

More agents make this more important, not less
There's a lot of excitement right now around running bigger agent swarms.
Five agents, twenty agents, a hundred agents working in parallel.
Eventually that will probably be normal.
But parallelism multiplies whatever your production system allows through it.
Good work gets multiplied just like bad assumptions do too.
Ten agents moving quickly from the wrong premise aren't a software factory operating at ten times the productivity.
They're ten looms weaving defective fabric at the same time.
Before I'm interested in how many agents a system can run, I'm much more interested in what happens when one of them encounters something abnormal.
Does it know?
Does it stop?
Does it preserve what happened?
Can another agent understand why it stopped?
Can the system distinguish something it can repair automatically from something that actually requires escalation?
Can the factory contain the problem before another workstream inherits it?
Those capabilities are what make parallelism useful.
This also changes how I think about software factories
I used to think about the idea of a software factory mostly in terms of production.
You give the system work.
Agents plan it.
Other agents implement it.
Tests run.
Reviews happen.
Artifacts move through the pipeline.
Software comes out the other side.
That's still part of it.
But studying Jidoka has changed what I think the important part is.
A factory isn't impressive because machines are running everywhere.
A good production system has mechanisms for understanding the state of the work moving through it.
It knows what normal looks like.
It recognizes some classes of abnormality.
It contains defects.
It records evidence.
It exposes problems instead of burying them.
And it knows when human judgment actually becomes valuable.
That's the environment I want around autonomous agents.

The productivity lesson from Jidoka is easy to miss
There's another part of Sakichi Toyoda's loom story that maps almost perfectly onto what we're doing now.
Once the loom could detect its own abnormalities, one person could operate multiple machines.
Think about what changed.
The operator didn't become faster at staring at looms.
The machine became better at deciding when it actually needed the operator.
That is where the productivity gain came from.
And I think we're going to see the same thing happen with software development.
The biggest productivity jump won't come from one developer typing prompts faster.
It will come from one person being able to supervise many capable software-producing systems because those systems don't require constant supervision.
One person might eventually have ten workcells running.
Most of them shouldn't need anything.
They should plan, implement, evaluate, test, correct recoverable problems, document what happened, and finish the work.
Your attention should go toward the one that turned its Andon light on.
That's a software factory.
This is why I keep coming back to Jidoka with Kujo
A lot of what I'm building around Kujo starts making more sense to me through this history.
Workcells create isolated places where work can happen.
Eval gives us a way to determine whether results meet an expected standard.
Fence gives the work architectural boundaries.
Watchdog observes what's happening while it runs.
RunLedger preserves what actually happened instead of leaving us with only the final answer.
Those are different primitives, but they're all moving toward the same production model.
Let the machines work.
Make the boundaries clear.
Detect abnormal conditions early.
Preserve evidence.
Surface the problem.
Then involve people where their judgment is actually useful.
That's much closer to the original spirit of Jidoka than simply putting approval gates everywhere.
Jidoka was never anti-automation
That's probably my biggest takeaway from learning more about its history.
Jidoka can sound restrictive when you first hear about it.
Stop the machine, stop the line, and don't let the process continue.
But the stopping mechanism wasn't there because Sakichi Toyoda distrusted automation.
It was the thing that allowed him to trust automation more.
The loom didn't need someone watching every movement anymore.
It knew when something important had changed.
More than a century later, that's becoming one of the most important problems in AI development.
We're building machines capable of doing more work with less supervision than we've ever had before.
The answer isn't to stand beside every one of them watching everything they do.
We need to build the equivalent of the broken-thread detector.
The equivalent of the Andon.
The equivalent of stopping close to the source of the defect before fifty more decisions get built on top of it.
Because the most useful autonomous system isn't simply one that knows how to keep working.
It's one that knows when the work has changed enough that it should stop.
That was true for a loom in the 1890s.
I think it's going to be just as true for the software factories we're building now.
Learn more at kujolang.ai
