Search papers, labs, and topics across Lattice.
This paper introduces an AI-native Test-Driven Development (TDD) framework for multi-agent code generation that enforces TDD principles through structured prompt engineering and workflow governance. The framework formalizes TDD principles into a machine-readable manifesto and distributes them across planning, generation, repair, and validation stages. By enforcing phase ordering, bounded repair loops, validation gates, and atomic mutation control, the system enhances stability and reproducibility in LLM-assisted software development.
Enforcing classical test-driven development principles directly within prompt orchestration enables more reliable and reproducible code generation from LLMs.
Large language models (LLMs) accelerate software development but often exhibit instability, non-determinism, and weak adherence to development discipline in unconstrained workflows. While test-driven development (TDD) provides a structured Red-Green-Refactor process, existing LLM-based approaches typically use tests as auxiliary inputs rather than enforceable process constraints. We present an AI-native TDD framework that operationalizes classical TDD principles as structured prompt-level and workflow-level governance mechanisms. Extracted principles are formalized in a machine-readable manifesto and distributed across planning, generation, repair, and validation stages within a layered architecture that separates model proposal from deterministic engine authority. The system enforces phase ordering, bounded repair loops, validation gates, and atomic mutation control to improve stability and reproducibility. We describe architecture and discuss encoding software engineering discipline directly into prompt orchestration, which we think offers a promising direction for reliable LLM-assisted development.