arXiv:2610.37830cs.AIOct 2026

Manuscript Offprint

arXiv:2610.37830

Measuring Where Intent Gets Lost in Agentic Smart Contract Synthesis

Abhinav Goel, Agostino Capponi, Alfio Gliozzo, Chaitya Shah

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM agents can turn a plain-English description into code that compiles, but whether the code behaves as required is rarely measured with validated instruments. We study this for smart contracts, the programs behind Web3 applications that move funds and cannot be changed once deployed. Starting from 600 existing contracts, we have an LLM describe each and measure implementation fidelity, the share of replayed transactions on which a generated contract behaves like the original. Three findings concern measurement. LLM judges, static analysis and LLM-based testers fail on planted mistakes, an answer key written from function names alone catches most conventional ones, and scoring only the functions all systems share, or adapting calls to each contract, hides omissions. Under exact replay, information supplied before generation matters most. Answers from a simulated client that reads the original contract raise fidelity by 19 to 23 points for three generator families, an optimistic estimate of what real authors would provide, and three to five well-chosen questions recover 60 to 75% of that gain. Stages after generation add at most about one point, and an automated security-repair loop costs 12.8 points. An elicitation-first pipeline reaches 72.9% on 500 held-out contracts, against 53.9% for one-shot generation and 39.3% for the original pipeline. We release the harness, tasks and scores.

CCS Concepts

• Software and its engineering → Software verification and validation; • Computing methodologies → Artificial intelligence.

References (20)