arXiv:2610.33350cs.SEOct 2026

Manuscript Offprint

arXiv:2610.33350

EVM-Anchored Provenance for AI-Assisted Code Evolution: A Smoke-Scale Deployment Report

Einar César Santos

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

Einar César Santos

Universidade Federal de Catalão

einar@ufcat.edu.br

Abstract—We report a smoke-scale deployment of an EVM-anchored provenance framework for the state stream produced by AI-assisted code generation. The system comprises codebase-state-manager, an open-source Model Context Protocol (MCP) server (MIT, v0.2.1) that exposes codebase state, transition, and reward operations to any MCP-compatible assistant, and CODEBASESTATEREGISTRY, a Solidity contract deployed on Base Sepolia that emits per-state commitment events. Payloads are pinned to the InterPlanetary File System (IPFS) and indexed through a rebuildable SQLite mirror that resynchronizes by replaying contract events. We delimit precisely what anchoring does and does not attest (existence, ordering, and non-equivocation by the committer key; never truthfulness or fabrication-prevention) and outline the orthogonal supply-chain controls required to close that gap. Under an author-produced synthetic workload on a local Anvil simulator, the median commit costs 103,282 gas, modeled at US0.0018–0.0035inrollupfeespercommit(US0.0018–0.0035 in rollup fees per commit (US17.9–34.8 per 10,000 states), and simulator latency for the create operation is 539.8 ms (p50p_{50}) and 725.0 ms (p95p_{95}) under loopback storage and instant mining. The live deployment holds 14 StateCommitted events verifiable on-chain; the last consumed 98,977 gas at 1gwei (about US$0.30). All empirical figures are descriptive quantiles from a single author run; no testnet latency is reported, and no claim of superiority is made against any baseline. A receipts-trie consumption mechanism, a BountyEscrow use case, and a FAIR-aligned dataset publication pattern are specified as outlook and are not implemented. A property-by-property comparison against OpenTimestamps, Sigstore Rekor, Centrifuge AnchorRegistry, in-toto/SLSA, Radicle, and Lalli et al. places this work relative to the surrounding provenance landscape.

Index Terms—Ethereum, Blockchain, IPFS, Provenance, Model Context Protocol, AI-assisted Software Engineering.

I. INTRODUCTION

Coding assistants and autonomous software agents are now embedded in daily development workflows. Each interaction produces a transition in the underlying codebase: a prompt maps to an edit, the edit is applied, the new state is validated, a reward may be computed. At scale, this (prompt, diff, reward) stream is a substrate for auditing and, prospectively, training workflows. The Model Context Protocol (MCP) standardizes how assistants discover and invoke external tools [1]. The first artifact of this paper, codebase-state-manager [2], is an open-source MCP server exposing codebase state management (states, transitions, rewards, and compact LLM-oriented context) to any MCP-compatible assistant, with pluggable persistence backends.

Persistence alone does not serve all audit interests. An operator-controlled database yields fast queries, but parties that do not trust the operator cannot independently verify it. Anchoring entire states on a public blockchain would solve verifiability, yet on-chain payload storage scales poorly: small diffs sit near the economic boundary, while larger states become prohibitive on L1 and L2 alike (quantified in Section V-C). The second artifact, and the focus of the evaluation, is an EVM-anchored commitment layer that resolves this trade-off by emitting only canonical commitments on-chain, delegating payloads to IPFS, and indexing queries through a local mirror. It is integrated into codebase-state-manager as an additional persistence mode (db_mode=evm); for the supported lifecycle subset the assistant-facing tool surface is unchanged, and operations outside that subset raise a documented NotImplementedError (Section IV-C).

We delimit the guarantee purchased. Anchoring attests existence at commit time, ordering, and non-equivocation by the committer key: post-hoc rewriting, back-dating, and silent deletion become detectable by any third party. It does not attest truthfulness of the committed content; an operator can fabricate tuples before committing them. Section III-A delimits the answerable audit questions and the orthogonal supply-chain controls required beyond them.