Skip to content

Measuring Where Intent Gets Lost in Agentic Smart Contract Synthesis

Oct 2026 · 0 citations · 32 references
Computer Science

TL;DR

This is the first study in smart contract synthesis to gather missing requirements before generation and check the result against an independently written executable model, and proposes an elicitation-first architecture.

Abstract

AI agents can now write software from a plain-English description, but code that runs is not the same as code that does what was asked. This gap matters most for smart contracts, the programs behind Web3 applications that move money on a blockchain and cannot be fixed once deployed. We ask how to check whether an AI-written contract behaves as it should, and where the requested behavior gets lost. We design an evaluation built on execution rather than opinion. We replay the same transactions on an AI-written contract and on the original it should reproduce and measure how often they agree. We test every grading tool on planted mistakes, compare against an answer key written without the description, and audit our own scorer until known wrong answers cannot pass. Common methods, such as AI judges and standard analysis tools, miss obvious mistakes, and scoring choices matter too. Checking only the functions every system includes hid about half the difference between pipelines. We then propose an elicitation-first architecture. Before writing code, the agent asks the client a short checklist of questions, checks the contract against an independently written executable answer key, and returns disagreements to the client instead of silently rewriting code. Asking first matters far more than reviewing or patching afterwards, across three AI models, while automated security fixes often break requested behavior. A few well-chosen questions recover much of what a short description omits, and their value can be estimated without the original contract. To our knowledge, this is the first study in smart contract synthesis to gather missing requirements before generation and check the result against an independently written executable model. The lessons extend to any setting where AI agents turn requests into programs. We release our tools, 600 tasks and all results.

View source

Similar papers

#artificial intelligence Preprint Oct 2026

Agentic process evidence

The way software gets built is changing dramatically. AI agents now create pull requests, select dependencies, refactor codebases, interpret test failures, and execute infrastructure changes across the entire Software Development Life Cycle (SDLC). AI agents are autonomous team members, but unlike human engineers, they...

Yuval Kainan, Carmit Hershman · 0 citations
Conference Sep 2026

Don’t Just Test It, Prove It: Verifying AI-Written Rust

AI coding agents can write code faster than humans can meaningfully review it. Tests exercise selected cases; formal verification can establish whether specified properties hold within stated assumptions and bounds. This talk explores a workflow in which humans define the contracts, agents implement against them, and p...

Alexander Kalankhodzhaev · 0 citations
Preprint Sep 2026

Tracekit: Tamper-Evident Intent-Reasoning-Action Auditing for AI Agents

This work presents Tracekit (open source, MIT, version 1.4.1), which turns each agent run into evidence a third party can check offline, which turns each agent run into evidence a third party can check offline.

Bravish Ghosh · 2 citations
Review Oct 2026

Your Wish Is My Commit: Over-Compliant Refactoring in AI Coding Agents

Large language models are known to be sycophantic, over-complying with users even when doing so is unproductive. When these models act as coding agents, this can be costly: an agent that keeps editing after no edit improves the code writes churn, technical debt, and review burden into the codebase. Yet the consequences...

Hao Jiang, Sadra Sabouri, Sepand Haghighi et al. · 1 citation
#artificial intelligence Preprint Oct 2026

What Counts as the Same Task? Executable Contracts for Robustness Evaluation of Tool-Using Agents

Robustness tests for tool-using agents often change the agent's environment, for example by hiding a hostile note in an invoice, and then judge the agent by what it does. The result tells us about the original task only if the changed test case is still a valid test of that task. Many evaluations decide this with weak...

Shaikh Akib Shahriyar, Md. Akil Raihan Iftee, Armon Barton et al. · 0 citations
Review Sep 2026

Tracekit: Tamper-Evident Intent-Reasoning-Action Auditing for Autonomous Coding Agents

Tracekit is an open-source, dependency-free system that captures three channels for every agent session: what the human asked (intent), what the model said of its reasoning (self-report), and what it actually executed (actions).

Bravish Ghosh · 2 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.