AssureCode:面向可信智能体编码的结构化论证依据
AssureCode: Structured Justification for Trustworthy Agentic Coding
AI总结:
本研究提出AssureCode方法,将结构化论证引入AI辅助软件开发,以生成可验证的论证依据,提升AI生成代码的正确性保障能力。
摘要:
AI工具在软件开发中的使用正快速改变软件生产方式,可在有限人工实现工作量下生成大量代码,但这带来了确保生成产物与开发者意图一致并经适当验证的根本挑战。本研究提出在AI辅助软件开发中采用结构化论证,借鉴安全关键系统保障工程技术,定义了结构化可验证的论证依据语言,明确关联非形式自然语言提示、形式规范、开发者意图假设与程序分析证据。随后描述了AssureCode,这是一种工具支持的方法,用于在智能体代码生成过程中创建此类依据。我们对实现进行了实证分析,研究其为AI生成代码的正确性提供有依据保障的能力。
英文摘要:
The use of AI-based tools in software development is rapidly changing how software is produced, enabling large volumes of code to be generated with limited human implementation effort. However, this raises fundamental challenges for ensuring that generated artifacts are aligned with developer intent and have been appropriately validated. In this work, we propose the use of structured argumentation in driving AI-assisted software development. Inspired by techniques from assurance engineering for safety-critical systems, we define a language of justification rationales that explicitly relate informal natural language prompts, formal specifications, assumptions about developer intentions, and program analysis evidence in a structured and verifiable format. We then describe AssureCode, a tool-supported methodology for creating such rationales as part of agentic code generation. We provide an empirical analysis of our implementation where we investigate its capacity to contribute towards justified assurance of correctness for AI-generated code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。