面向智能合约翻译和质量评估的端到端代理流程
An end-to-end agentic pipeline for smart contract translation and quality evaluation
AI总结:
本文提出端到端智能合约翻译与质量评估框架,通过代理团队实现结构化输出与多维度质量评估。
摘要:
我们提出了一种端到端框架,用于系统评估由自然语言规范生成的智能合约的质量。该系统将合同文本解析为结构化模式,生成Solidity代码,并通过编译和安全检查进行自动化质量评估。利用类似CrewAI的代理团队进行迭代优化,该流程能够生成带有完整溯源元数据的结构化成果。质量在五个维度上进行测量,包括功能完整性、变量保真度、状态机正确性、业务逻辑保真度以及代码质量的综合评分。该框架支持与真实实现的配对评估,量化对齐程度并识别系统性错误模式,如逻辑遗漏和状态转换不一致。这为智能合约合成质量的实证研究提供了可重复的基准,并支持扩展到形式验证和合规检查。
英文摘要:
We present an end-to-end framework for systematic evaluation of LLM-generated smart contracts from natural-language specifications. The system parses contractual text into structured schemas, generates Solidity code, and performs automated quality assessment through compilation and security checks. Using CrewAI-style agent teams with iterative refinement, the pipeline produces structured artifacts with full provenance metadata. Quality is measured across five dimensions, including functional completeness, variable fidelity, state-machine correctness, business-logic fidelity, and code quality aggregated into composite scores. The framework supports paired evaluation against ground-truth implementations, quantifying alignment and identifying systematic error modes such as logic omissions and state transition inconsistencies. This provides a reproducible benchmark for empirical research on smart contract synthesis quality and supports extensions to formal verification and compliance checking.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。