arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.14867cs.SEcs.AI
收藏

Vibe-Coding:基于反馈的自动验证无需人工代码检查,可行性研究

Vibe-Coding: Feedback-Based Automated Verification with no Human Code Inspection, a Feasibility Study

Charles University Prague(布拉格查理大学)

Michal Töpfer, František Plášil, Tomáš Bureš, Petr Hnětynka

AI总结:

本文研究了在集体自适应系统中基于反馈的自动验证方法,探讨了反馈精度对LLM生成代码可靠性的影响,证明精细反馈能有效生成有效适应管理者。

摘要:

Vibe编码本质上假设通过反馈循环迭代改进LLM生成的代码。尽管在传统软件任务中有效,其在运行时自适应系统中的可靠性尚不明确,特别是当生成的代码未经过人工检查时。本文研究了反馈基于自动验证LLM生成的适应管理者在集体自适应系统(CAS)中的可行性。我们关注验证循环中的关键挑战:如何在运行时检测生成代码的故障,以及如何精确报告这些故障以使LLM修复它们。我们结合适应循环与vibe-coding反馈循环,其中正确性通过(i)通用架构约束和(ii)用功能约束逻辑(FCL)形式化的功能约束进行检查,FCL是一种新颖的一阶时态逻辑,适用于潜在有限的轨迹。通过Dragon Hunt CAS案例研究,我们表明细粒度约束违规提供可操作的反馈,通常在几次迭代内生成有效的适应管理者,而简单的粗粒度度量反馈常导致停滞。我们的发现表明,反馈精度是可靠vibe编码的关键因素,特别是在由领域专家设计且无编程技能的系统中,从而消除了对人工代码检查的需求。

英文摘要:

Vibe coding inherently assumes iterative refinement of LLM-generated code through feedback loops. While effective for conventional software tasks, its reliability in runtime-adaptive systems is unclear -- especially when generated code is not manually inspected. This paper studies feedback-based automated verification of LLM-generated adaptation managers in Collective Adaptive Systems (CAS). We focus on the key challenges of verification in the loop: how to detect failures of generated code at runtime and how to report them precisely enough for an LLM to fix them. We combine the adaptation loop with a vibe-coding feedback loop where correctness is checked against (i) generic architectural constraints and (ii) functional constraints formalized in Functional Constraints Logic (FCL), a novel first-order temporal logic over potentially finite traces. Conducting the Dragon Hunt CAS case study, we show that fine-grained constraint violations provide actionable feedback that typically yields a valid adaptation manager within a few iterations, while simple coarse metric-based feedback often stalls. Our findings suggest that feedback precision is the dominant factor for reliable vibe coding in systems designed by domain experts with no programming skills, thereby obviating the need for human code inspection.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑