基于提示工程的测试驱动开发治理:用于多智能体代码生成 / TDD Governance for Multi-Agent Code Generation via Prompt Engineering
1️⃣ 一句话总结
本文提出了一种通过提示工程将传统测试驱动开发(TDD)原则转化为结构化的流程约束,从而让AI代码生成更稳定、可靠且易于管理的方法。
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.
基于提示工程的测试驱动开发治理:用于多智能体代码生成 / TDD Governance for Multi-Agent Code Generation via Prompt Engineering
本文提出了一种通过提示工程将传统测试驱动开发(TDD)原则转化为结构化的流程约束,从而让AI代码生成更稳定、可靠且易于管理的方法。
源自 arXiv: 2604.26615