一句话:ReqEvolve 结合自动需求工程与测试驱动开发,将高层用户请求在运行时转化为可执行功能,实现用户驱动的软件自演化。
软件自演化系统虽能在运行期自主扩展与重构自身能力,但其输入通常是技术规格,而新功能请求多来自最终用户且以非技术语言表达,必须由开发者转译为技术规格后才能演化,这阻碍了用户在开发者验证之前直接观察并验证所请求的行为。为弥合这一鸿沟,本文提出 ReqEvolve:一个运行时代码生成系统,接受高层用户请求,通过澄清、规格分解、测试生成与运行时集成等步骤,把自动需求工程(RE)与测试驱动开发(TDD)融合,将用户请求转化为可执行功能。作者在 18 个项目的 72 个软件演化案例上,与面向需求工程的代码生成方法 SpecFix 及本系统的消融变体进行对比。ReqEvolve 达到 89.2% 的 Pass@1,分别高出 SpecFix 18.8%(p < 0.01,r = 0.79,大效应)和消融基线 32.6%(p < 0.001,r = 0.88,大效应)。结果表明,用户驱动的自演化是一种可行范式,可在开发者验证之前加速需求验证。
The paradigm of software self-evolution enables systems to autonomously extend and reconfigure their own capabilities during execution in response to technical specifications. Yet requests for new functionality often originate from end users and are rarely expressed in technical terms. As a result, developers must translate user needs into technical specifications before the system can evolve, delaying early validation of the requested functionality by preventing users from immediately observing the resulting behaviour. To address this gap, we present ReqEvolve, a runtime code generation system that enables user-driven self-evolution by accepting high-level user requests. The system integrates automatic requirements engineering (RE) and test-driven development (TDD) to transform these requests into executable functionality through clarification, specification decomposition, test generation, and runtime integration. We evaluate ReqEvolve on 72 software evolution cases across 18 projects against two baselines: SpecFix, an RE-focused code generation approach, and an ablation variant of our system. ReqEvolve achieves 89.2% Pass@1, outperforming SpecFix by 18.8% (p < 0.01, r = 0.79, large effect) and the ablation baseline by 32.6% (p < 0.001, r = 0.88, large effect). These results provide initial evidence that user-driven self-evolution is a viable paradigm for autonomously extending software capabilities from user requests, thereby accelerating requirements validation prior to developer verification.