
The Builder Does Not Inspect: Red Team, Blue Team, and AI Agents on a Factory Tool
Four hundred pull requests in, I could no longer review what my AI agents shipped, so I borrowed the factory rule that the person who builds the part does not inspect it.
- Published
- September 25, 2026
- Author
- Hrushiekesh Reddy Kanjula
- Read time
- ~4 min
- Category
- essay

I can no longer review what my AI agents ship. Assembly Hub, the manufacturing tool I run our SMT line on, has four hundred merged pull requests. Somewhere along the way I started skimming and calling it review.
Nothing dramatic happened. No agent deleted production. No board came off the line mirrored. The scale just crept up.
In May I wrote about giving the agents a constitution. The Architect plans and the Worker builds, and one agent never does both. That decided who chooses what gets built. It did not decide who checks that it was built right. Writing code stopped being the bottleneck a long time ago. Knowing the code is right is the bottleneck, and it does not scale with typing speed.
The oldest rule on the floor
A PCBA line solved this decades ago. The person who builds the part does not inspect it. The placement machine does not grade its own placements. AOI does. AOI does not get the final word either. The flying prober checks the electrical truth underneath. Every stage assumes the stage before it is lying a little.
My agents did the opposite. The same session wrote the change, wrote the tests, ran them, watched them pass and reported success. That is not verification. It is a student marking their own exam.
So I split the work into three teams.
| Team | Job |
|---|---|
| Green | Builds from a written plan. Locked to the files the plan names. |
| Red | Attacks the plan before any code exists, then attacks the finished change. |
| Blue | Repairs whatever Red finds. |
I sit above all three as referee.
A finding you cannot argue with
The team names are not what made it work. This rule did: when Red finds a defect, it has to prove it with a failing test.
The test goes into a quarantined folder, where it cannot break the normal build. It stays there, failing, until Blue fixes the code. Blue cannot delete the test, skip it or loosen it. When the fix lands, the test moves into the permanent suite and guards that spot from then on.
This matters because agents are persuasive. Ask one whether a finding is real and you get a well-structured paragraph on why it isn't. A failing test does not care how well the argument is written. The code behaves or it doesn't.

One catch convinced me. A plan came through to change how placement files are exported. These are the coordinates the pick-and-place machine uses to put every part on the board. The plan relied on two code paths that read the same placement table. Red wrote a test showing the two paths disagreed on the sign of the X coordinate for bottom-side parts. One of them would have mirrored every component on the bottom of the board.
That was caught at the planning stage. No code existed and no board had been built. On the floor, a bug like that is a scrapped panel and a quiet conversation with the customer.
What it costs
It is not free. Assembly Hub now has more test code than application code, about 156,000 lines against 102,000. The repository holds fifty Red reports and forty-seven Blue reports answering them. I spent more evenings refereeing agents than I ever spent writing code. I capped the loop at two rounds, because an attacker and a defender will argue forever.
Red also only attacks what it can see. It will find a sign error in coordinate maths all day. It cannot know that our Seica prober writes each re-probe to a separate file. A board that passed on its second try looks like a failure unless you roll the files up by the test time inside them. It cannot know that a Class 2 board can live with a cosmetic defect that a Class 3 board cannot. That knowledge came from four years next to the machines, and none of the agents had it.

The engineer still decides
The agents typed the code, all hundred thousand lines of it. Every decision that mattered was mine. Which machine format is authoritative. Which failure mode deserves a test. When a number is good enough to ship to a production line.
The Red/Blue split did not replace that judgement. It freed time for it. When I look now, I look at arguments that survived a real attack, not at everything.
Quality is a system, not a person trying hard. That holds when the workers are language models too. No one grades their own work, and the evidence is executable.
The full build is on the Assembly Hub project page: 300+ production jobs, about half the programming time, and a test suite that no agent was allowed to weaken.