W. Edwards Deming: Father of The Quality Movement

The Foundry Model

Why the future of AI-Generated Systems looks a lot like 1950s Manufacturing.

In 1950, W. Edwards Deming arrived in Japan to help rebuild an industrial base. He didn’t tell them to work harder; he told them to stop inspecting quality and start designing it. He shifted the primary focus from the product to the process.

Fast forward 75 years. We are standing at a similar precipice with AI-generated software. We are obsessed with the output (the code), but we are largely failing to control the machine that stamps it (the generator).

The Problem: "Fixing the Output Doesn't Fix the Process" 

When an AI generates an API that fails a test—perhaps it missed a sorting requirement or a state-machine cooldown—the instinct is to "patch" the code.

This is a category error. In an industrial model, the code is a disposable artifact. Patching the code is like trying to file down a dented car door instead of fixing the hydraulic press that stamped it. If you fix the door, the next thousand doors will still be dented.

The Solution: The AI Software Foundry Model

To scale AI-driven development, we must move from sculpting code by hand to calibrating the generative process that produces it. This is the AI Software Foundry model — a four-pillar framework for autonomous quality:

1. The Oracle (The Master Die)

The human signs off on the "Gold Master"—the requirements and constraints (NFRs). This is the only part of the system we "own." Whether it is an OpenAPI spec or a custom manifest, it is the law of the system.

2. The Generator (The Machine Tool)

The AI isn't a coder; it’s a Machine Tool. It consumes the Oracle to synthesize logic. When the output fails, we don't debug the code—we recalibrate the generator. We update the "tooling" instructions (the templates or the prompts) so the error never repeats.

3. The Gauge (The Measurement System)

Automated orchestration measures the process capability of the generator.

Testing isn't a check; it is measurement.

When the Gauge detects a deviation, the system may temporarily repair the artifact to stabilize execution. These repairs are not maintenance—they are diagnostic telemetry that measure how far the generator deviated from the Oracle.

Repair frequency, repair size, regeneration rate, and verification stability become indicators of the generator’s process capability.

When capability drifts outside acceptable limits, the Foundry recalibrates the Oracle or Generator and regenerates the artifact.


4. Modular Design for Verification and Regeneration

Components must be designed so they can be independently specified, independently verified, and independently regenerated. A component that is entangled with its neighbours cannot be Gauged in isolation and cannot be regenerated without cascading. Modular design is what makes the Cascade Boundary enforceable. It is the architectural discipline that the Factory model depends on.

Proactive Design vs. Reactive Measurement

The key to making this work is Modularized Design for Verification.

The Path Forward

For non-critical systems, the cost of a "Regeneration Cycle" is near zero. By applying Deming’s principles, we can achieve Correct-by-Construction software that evolves as the "Tooling" (the generator) improves.

Stop debugging the artifact. Start controlling the process.