Lights Out: What Happens When We Stop Watching the Factory
I will love the light for it shows me the way, yet I will endure the darkness for it shows me the stars.
Every conversation I have about AI in engineering eventually arrives at the same question. Once we've built the tooling, the pipelines, and the guardrails that let agents do real work, how far do we let them go?
For most teams today, the answer is "not that far." A human still writes the spec, reads the diff, and clicks merge. The agent is a very fast pair of hands, but a person is still steering.
The real question is what happens when nobody is. What happens when the system gets good enough that the human steps away from the work entirely and just keeps feeding it?
The industry has a name for that place now. It's called the dark factory. And I want to walk through it slowly, because I think it's the most important idea in software right now, and I'm not sure any of us fully understand what we're building.
From harness to factory
The term comes from manufacturing. The Japanese robotics company FANUC became famous for a plant where robots build robots, running for long stretches with no humans on the floor. No people means no need for light. So the lights go off.
In January 2026, Dan Shapiro, the CEO of Glowforge, borrowed that image for software. He published a short framework called The Five Levels: from Spicy Autocomplete to the Dark Factory, modeled on the levels of self-driving cars. At the top of his ladder sits a software process that isn't really a process anymore. It's a black box that turns specs into software.
The idea grows naturally out of agent harnesses. A harness makes an agent a citizen of your development environment: same pipelines, same reviews, same compliance checks as a human. A dark factory is what you get when the harness becomes so trustworthy that the humans stop doing the reviews. The agent isn't a citizen of the environment anymore. It is the environment.
That sounds like science fiction. It isn't. Within weeks of Shapiro's post, a real company was publicly operating this way, and shipping security software. We'll get to them. First, the ladder.
The five levels
Shapiro calls it five levels, but like the driving scale it starts at zero, so there are really six rungs. The useful way to read them isn't "how much code does the AI write." It's "what is the human's job at this level?" Watch that job change as you climb.
Level 0: Spicy autocomplete. You write the code. The AI suggests the next line, or you paste a snippet from a chat window. The human's job is programming. Nothing has really changed.
Level 1: The coding intern. The AI writes the small, boring pieces: boilerplate, a test, a utility function. You review all of it. The human's job is still programming, with a little delegation on the side.
Level 2: The junior developer. You pair with the model. It writes real code alongside you, and you read every line. This is where most developers I meet actually live, whatever they say on LinkedIn. The human's job is programming and supervising.
Level 3: The developer. The AI writes most of the code. You've become a full-time reviewer. Here's the first uncomfortable moment on the ladder: a lot of engineers discover they don't love this job. Reading diffs all day isn't why they got into the field. The human's job is reviewing.
Level 4: The engineering team. You stop reading code line by line. You write specs, argue with the agent about the specs, plan the work, then step away and come back to see whether the tests pass. You're managing a team that happens to be made of agents. The human's job is specifying and validating outcomes.
Level 5: The dark factory. Specs go in. Software comes out. No human writes the code, and no human reads it. The human's job is designing, feeding, and monitoring the system that does the work.
Notice what happened between Level 3 and Level 5. The code didn't just get written by someone else. It disappeared from human view. At Level 3 you still look at everything. At Level 5 there's nothing to look at, by design.
That's the moment the lights go out.
Most established enterprises are not anywhere near this. In my experience, the typical large engineering org has pockets of Level 2, a few brave teams at Level 3, and a leadership deck that describes Level 4. That gap is fine. It's honest. What isn't fine is skipping the rungs, because each one builds the trust and the infrastructure the next one needs.
What a dark factory actually runs on
In February 2026, a three-person team at StrongDM, a company that builds access management and security software, published how they work. Their charter has two rules: "Code must not be written by humans. Code must not be reviewed by humans."
Read that again, and remember what they sell. Security software. Not a marketing site. Not an internal dashboard.
So how does that not end in disaster? The answer is the part I want every executive to sit with. The factory doesn't run on code. It runs on three things that surround the code.
The spec becomes the control plane. When no human reads the code, the spec is the only place human intent lives. It stops being reference material and becomes the actual steering wheel. A vague spec doesn't produce a vague first draft that a reviewer catches. It produces vague software, shipped.
Scenarios replace review. Instead of a person reading a diff, the system is judged by behavior. StrongDM keeps scenarios the agents can't see in advance, the way a teacher keeps the final exam out of the textbook, so the agents can't simply write code that passes the tests they were shown.
Digital twins replace the outside world. They built working clones of the third-party services they depend on, like Okta and Slack, so the agents can test against something that behaves like reality as many times as they want, without touching reality.
None of those three is exotic. A spec is governance written in words. Scenarios are governance written as code. Twins are the harness extended to the outside world. The dark factory isn't a leap away from good engineering infrastructure. It's what that infrastructure becomes when you trust it enough to leave the room.
What this means for engineers
Let's make this personal, because the five levels aren't only a map of organizations. They're a map of careers.
At every rung, some skills get cheaper and some get more valuable. Typing speed and syntax recall went first. Knowing a framework's API by heart went next. What's getting more valuable is harder to name, but I'd describe it as two things.
The first is intent: the ability to say precisely what you want, why you want it, and how you'll know you got it. This is harder than it sounds. Most of us have spent our careers letting the code clarify our thinking. You start typing, you hit an edge case, you realize what you actually meant. In a dark factory, nobody hits the edge case while typing. You have to find it in your head, before the spec goes in.
The second is systems design for the factory itself: building the scenarios, the twins, the guardrails, the feedback loops. Some people have started calling this harness engineering. It's the work of designing the machine that builds the software, rather than the software.
Here's the question nobody has a good answer to yet. How does anyone learn to do either of those things?
Every senior engineer I know earned their judgment by writing a lot of bad code and living with the consequences. Junior work was the apprenticeship. If the factory does the junior work, where does the next generation of seniors come from? I don't think the industry has thought hard enough about this. A factory that can't train its own supervisors is borrowing against a future it isn't paying for.
If you're an individual engineer reading this, my honest advice is to climb the ladder on purpose. Get good at Level 3 and Level 4 work now, while there's still a human in the loop to learn from. Write specs that an agent can't misread. Build one scenario suite that actually catches something. The people who understand how the factory works will be the ones trusted to run it.
Responsible for the pipes
There's a version of this story that's purely triumphant, and I don't believe it. So let me say the bittersweet part out loud.
For most of software's history, engineers were responsible for the water. You wrote the thing. You could point at a function and say I made that, and know why every line was there. The craft was in the making.
In a dark factory, engineers become responsible for the pipes. We design the flow, set the pressure, install the filters, and watch the gauges. The water moves through without us touching it. If the pipes are good, clean water comes out the other end. If they're bad, we often don't find out until someone downstream gets sick.
That's real, important, skilled work. Civilizations run on plumbing. But it's a different job, and pretending otherwise does a disservice to the people living through the change. Many engineers fell in love with this field because of the making. The quiet satisfaction of a clean abstraction. The puzzle of a bug at 11 p.m. finally giving way. Some of that is going to fade, and it's okay to grieve it a little.
And there's a subtler shift underneath. When you own the water, you understand it. When you own the pipes, you understand the pipes. Responsibility for the output stays with us, but direct knowledge of the output doesn't. We're becoming accountable for things we have never read.
That's not an argument against the factory. It's an argument for taking the pipes seriously, because they're now the only place our judgment lives.
What's in the dark?
Here's the thing about turning the lights off: you stop seeing what's on the floor.
In a physical dark factory, that's fine. A robot welding a car frame is doing something we fully understand, thousands of times, with physics that doesn't change. Software is different. Every run of the factory produces something slightly new, and the world it ships into keeps moving.
A writer at O'Reilly put a name to one risk: comprehension debt, the growing gap between how much code exists and how much any human still understands. A dark factory doesn't pay that debt down. It takes it on as fast as it can, with every test green the whole way. Green tests tell you the software does what you thought to check. They say nothing about what you didn't think to check.
And here's the bigger question I can't stop asking.
The dark factory works today partly because so much of software is already solved. Most business needs are variations on patterns we've built thousands of times: a login flow, a billing system, a CRUD app, an integration between two APIs. The models learned from decades of humans solving those problems in public. When the spec describes a known shape, the factory has a map.
But we don't know how the world is going to evolve from here. New regulations. New kinds of hardware. New threats. Business models that don't exist yet. Problems with no public history of solutions for the models to learn from. What does a factory do when the spec describes a shape nobody has drawn before? Does it reason its way there? Or does it confidently produce the median of the past, dressed up as the future?
I genuinely don't know. Neither does anyone else, whatever their keynote says. And that's the warning at the center of this essay. The dark factory is an extraordinary machine for producing answers to questions we already know how to ask. The questions we don't know how to ask yet are exactly the ones that will matter most in the next decade. They will need people who still understand what's happening on the floor.
So turn the lights down, by all means. Just be careful about turning them all the way off. Keep a light somewhere. Keep someone who can walk the floor.
What to ask on Monday morning
If you lead engineering at an established company, here are three questions for your next leadership meeting.
First, what level are you actually at? Not what the deck says. Pick three teams at random and ask what share of their code a human still reads line by line. That number tells you which rung you're on, and the next rung is the only one worth funding.
Second, if no human read the code, what would catch a mistake? Name the specific scenarios, twins, and checks. If the honest answer is "the reviewer," you're not ready to turn any lights off, and that's fine. Now you know what to build.
Third, who in your organization still understands the floor? Identify the people who could walk into the factory and explain why it made the choice it made. Protect them. Pair your juniors with them. They're your light in the dark.
The lights, and who keeps them
The dark factory is coming. For some kinds of software, it's already here. I don't think that's something to fear, and I don't think it's something to celebrate blindly either. It's something to understand.
The factory doesn't take the work away so much as move it. We build the machine, the guardrails, and the checks, then step back and watch it run. Our job is shifting from the work to the system that does the work. From the water to the pipes.
That's a smaller job in one sense and a much larger one in another. Because when the lights go out, the only things still guiding the factory are the specs we wrote, the checks we designed, and the judgment we kept. Everything else is in the dark.
We should be very sure about what we leave in there.