Specification-Centric AI Development (SCD)

The “Fix the Factory” Paradigm

Process Improvement of Prompt Generators for Deterministic AI Code Production

Version: 1.1 (Research Draft)
Date: [TBD]
Author: [TBD]


1. Executive Summary

Most AI-assisted development today follows an implicit pattern:

This paper proposes a different model:

Do not fix the product. Fix the factory.

Specification-Centric Development (SCD) treats AI not as an autonomous agent, but as a deterministic compiler whose behavior is governed by explicit prompt generators.

When a defect is discovered:

No manual coding is permitted.

The hypothesis:

Software quality in AI-driven systems is a function of specification and generator clarity, not iterative patching.

This research evaluates whether structured prompt generators can be improved through a formal process improvement loop, resulting in measurable reduction in defect recurrence.


2. The Problem: The Auditability Gap in AI Development

AI coding workflows suffer from three structural weaknesses:

When a defect occurs, the natural tendency is to adjust the code.

This creates:

SCD reverses this logic.

The generator, not the code, becomes the unit of improvement.


3. Research Objective

This research aims to determine:

The focus is not on AI creativity, but on AI repeatability.


4. Experimental Constraint

To isolate variables, the experiment is constrained to:

These constraints:

This is not a limitation of the methodology, but an experimental boundary.


5. The Multi-Layer Specification Model

SCD divides instruction into three explicit layers:

Layer

Type

Purpose

Essential Functional Requirements

Domain

What the system must do

Domain Quirks / NFRs

Domain

Safety, ordering, privacy nuances

Architectural Standards

Technical

Stack-specific implementation constraints

Each layer is versioned and externalized.

No implementation code is considered authoritative.


6. Prompt Generators as Factories

Rather than writing a single prompt, SCD uses structured generators:

Each generator:

The generators collectively constitute the factory.


7. The Diagnostic Generator (The “Coroner”)

The Diagnostic Generator is the core research instrument.

Inputs:

Process:

This enforces factory-level correction.


8. The Regeneration Loop

The SCD loop operates as follows:

No manual code edits are allowed.


9. Data Collection

Each defect is logged:

TBD:

This data forms the empirical backbone of the study.


10. Hypothesis

Primary Hypothesis:

In AI-driven backend generation, most defects are instruction gaps, not stochastic generation errors.

Secondary Hypothesis:

Process improvement of prompt generators reduces recurrence of defect classes over successive regenerations.


11. Deliberate Non-Goals

This research does not attempt to:

The focus is narrow:

Can structured prompt generators be hardened like production systems?


12. Contribution to the AI Landscape

Current AI discourse focuses on:

This research shifts attention to:

If successful, SCD offers:


13. Current Status

Implemented:

In Progress:

TBD:


14. Conclusion

SCD reframes AI coding from:

“Generate and patch”

to:

“Specify, generate, diagnose, regenerate.”

The research does not ask whether AI can write code.

It asks:

Can AI systems be improved by refining the instructions that generate them?

If so, prompt generators become production assets subject to continuous improvement.

And AI becomes not an agent — but a compiler.