Assay: Using Content-Addressed Evidence Graphs to Constrain Invalidation of AI Coding Agents' ClaimsAssay: Claims That Decay With the Code. Content-Addressed Evidence Graphs for Accountable AI-Assisted Software Delivery
The authors use Assay to bind code assertions to dependency-cone hashes; in scripted evaluation, the merge gate blocked 9/9 adversarial behaviors.
A scripted doer modifies code and submits assertions, possibly omitting evidence for dependents, using stale evidence, self-approving, forging the ledger, or weakening tests. Assay checks evidence at the merge gate; the signing key must be in a location inaccessible to the agent. The paper does not use box-model terminology.
- Code agents need to locate where to modify and also need evidence for completion claims. The authors believe that code indexing and review processes are separate, making it difficult to determine by dependency relationships whether subsequent changes invalidate existing approvals.
- Assay binds each assertion to the dependency-cone hash of the covered modules, using a single graph to compute context, evidence invalidation, and change blast radius. A signed ledger, independent review, and mechanical merge gate are responsible for checking evidence.
- The experiments did not involve a language model. When randomly editing 4 modules in fastapi, cone binding re-verified 7.9% of assertions (Table III); the gate rejected 9/9 scripted adversarial behaviors and allowed 3/3 honest paths (Table IV and VI-E).
- The authors note that dependency extraction may miss edges, directory granularity is coarse, the gate does not judge evidence sufficiency, and it does not enforce isolation of the signing key. Real agent task completion rates, token costs, and hidden test results are left for future work.
- Benchmarks
- ExpressFlaskGinAxumFastAPIAssaytwelve-file Python project with a real pytest suiteprivate TypeScript Electron application
- Metrics
- Tokens required to orient an agentBuild time in millisecondsRe-verification costSelf hash missesGate decisionSingle-module blast radiusObligation level
Assay binds each claim of an AI coding agent (tests pass, no key leakage, behavior unchanged) to a Merkle hash covering its code dependency cone, so that a claim becomes invalid as soon as the code or its dependencies change. On five public repositories, a 600-token brief saves 14x to 114x compared with an exploratory agent, and hot rebuild is up to 5x faster than cold rebuild; cone binding requires re-verifying only 7.9% to 81.9% of claims, whereas module-based binding misses 23% to 68% of claims that should be invalidated.
Related events and news
1 events · 0 news mentions
- This event's paper
Assay:内容寻址证据图验证AI编码Agent
Paper analysis
What problem does this paper attempt to solve?
The authors unify code location and evidence validity on a dependency graph, avoiding approval records becoming detached from actual code content.
The core question is: after code changes, how to determine by dependency relationships whether an agent's existing completion assertions remain valid.
- Scenario and motivation: The authors believe that code agents both spend context searching for code locations and may claim success without evidence when the task is difficult; both involve repository structure.
- Separation of existing tools: Repository maps record current dependencies but not when tests verified those dependencies; task reviews record approvals but do not precisely associate the modules covered by the approval.
- Core observation: Binding only the module itself misses dependency changes, while binding the entire repository causes unrelated edits to trigger re-verification. The authors propose using the content hash of the dependency cone as an intermediate granularity.
- Threat model: The paper does not use terms like black-box; the evaluation targets are scripted doers and reviewers.
- Goals and capabilities: The doer can modify code and submit assertions; scripted scenarios include missing or stale evidence, self-approval, forged ledger, and weakened tests.
- Protected process: Assay checks coverage, evidence freshness, signatures, exit codes, and review status before merging.
- Trust conditions: The signing key must be held by a supervisory execution process inaccessible to the agent; the paper does not specify the attacker's knowledge of the system implementation.
- Proposed system: Assay places content binding, risk-tiered evidence requirements, independent review protocols, and mechanical gates on the same dependency graph; the authors position it as an evidence floor that does not rely on model judgment.
What related research exists?
Assay combines repository indexing, the Liza review protocol, and content addressing to bind review conclusions to dependency content.
Related work is organized around context compression, agent accountability, content addressing, and argument structure.
Context and code location
- Aider, Repomix, Stacklit—provide repository maps, code packaging, or structured indexing, respectively. The authors adopt Stacklit's commit-based indexing, Merkle skip-rebuild, and MCP interface, and note that these maps do not carry verification status.
- SCIP, AutoCodeRover, Agentless—provide code intelligence indexing, structure-aware retrieval, or simplified location processes; the authors categorize them as work reducing the tokens an agent needs to locate code.
- Liu et al. (2024)—studies long-context degradation; the paper cites it as another motivation for context compression.
Agent frameworks and accountability
- MetaGPT, ChatDev, AutoGen, CrewAI—assign roles and route messages; Spec Kit and BMAD emphasize explicit specification artifacts, while SWE-agent and OpenHands shape the actions an agent can execute.
- Cemri et al. (2025), Sharma et al. (2024), Denison et al. (2024)—discuss multi-agent failures, sycophancy, and reward tampering, respectively; the paper uses these to argue that results need independent verification.
- Liza—constrains workflows with separation of duties, binding review conclusions, restricted state transitions, and blackboard records. The authors directly borrow its review protocol, with the difference that Assay binds conclusions to content rather than merely re-reviewing after rebase.
Content addressing, build, and provenance
- Merkle, Nix, Bazel—provide content addressing or caching foundations; Mokhov et al. (2018)'s verifying traces give the paper terminology for treating the ledger as an "assertion build cache."
- in-toto, SLSA, Ekstazi—address supply chain execution proofs, provenance, and regression test selection, respectively. The authors analogize Assay assertions to in-toto links with the dependency cone as the input set.
- Baseline methods and data—experiments compare full dump, exploration proxy, full index, and brief, as well as repo/self/cone bindings; using Express, Flask, Gin, Axum, FastAPI, and Assay itself, without running the above agent frameworks as performance baselines.
Argument structure
- Toulmin (1958)—the paper maps evidence, code state binding, and rebuttal to data, warrant, and rebuttal, respectively; binding drift means the original warrant is invalid.
The authors position their distinction as: using the same dependency graph to serve both code context and review evidence, and turning the validity of conclusions into content comparison.
How does the paper address this problem?
Assay manages assertion validity with dependency-cone hashes, then uses risk tiers, a signed ledger, and independent review to control merges.
Assay puts "what the code is now" and "what content was verified" into the same content-addressed evidence graph. Code changes trigger hash comparisons, and the gate then checks whether the corresponding evidence meets requirements.
Dependency graph and content binding
- Module partitioning: Repositories are partitioned into modules by directory and configurable depth; module content hashes come from sorted paths and file hashes. Import relationships form a directed dependency graph.
- Dependency cone: coneS(m)={m}∪{m′:m→∗m′}. It contains the module itself and all reachable dependencies, and is the input content covered by assertion bindings.
- Cycle handling: Strongly connected components are first contracted into a DAG, then Merkle hashes are computed in reverse topological order; modules within the same cycle share a cone hash.
- Formal conclusions: The authors give propositions for soundness, minimality, and blast radius equal to the invalidation frontier, ignoring hash collisions; dependency extraction omissions affecting the actual implementation are separately listed as limitations.
Assertions and risk-tiered evidence
- Assertion records: Each claim contains a predicate, a non-empty set of subject modules, cone/self/repo scope, binding hash, evidence, prover, and time. Evidence includes execution commands, exit codes, output hashes, sizes, durations, and identifiable test counts.
- Freshness: fresh(c,S′)⟺∀ s∈ Sc, β(s)=ĥS′(s). Fresh means each subject's current dependency-cone hash is still identical to what it was at forensics time.
- Risk inputs: The risk score combines commit count over the past 90 days and fan-in, saturating at 20 commits and fan-in of 10 respectively, each contributing half; evidence tiers also consider blast radius proportion, absolute size, and maximum risk within the radius.
- Four-tier requirements: L0 requires testing the changed module, L1 extends to the entire blast radius; L2 adds lint, secrets scan, and adversarial review of the changed module; L3 adds human-approved. Languages without test runners use build and typecheck instead, and thresholds can be overridden per repository.
Independent review and ledger
- Separation of duties: doer, reviewer, and human can all prove; only reviewer and human can issue review conclusions, and neither may approve their own assertions. Human proofs no longer require another reviewer.
- Dispute process: A reviewer can accept, raise a finding, reject, or escalate; provers must respond to findings, and when arguing they must state the specific harm the requested change would cause. Three counters automatically escalate, and only a human can resolve.
- State computation: State is derived from ledger history, not stored directly; stale assertions cannot be accepted, refuted and superseded are terminal states, and failed executions are also retained as evidence.
- Signing and append-only: The JSON-lines ledger is append-only, with each line signed using HMAC-SHA256. The authors describe a deployment where the key is held by a supervising execution process and invisible to agents.
Mechanical gate
- Decision inputs: The gate computes evidence obligations from the index, ledger, and changed modules, and finds available assertions for each required predicate and module combination; it passes only if all combinations are qualified and signatures verify.
- Evidence plausibility: Test commands must match the subject language's test runner and produce output; test counts for overlapping subjects must not be lower than prior evidence, unless there is a fresh human-approved assertion covering that subject.
- Evidence monotonicity: The test count check is used to constrain claiming success after deleting tests. The authors explicitly state it is a lower bound and does not judge whether the test suite is sufficient.
Implementation and context interface
- Indexer: Python uses the standard library AST, and other supported languages use conservative regex extraction of imports and exports; hashes and parse results are cached by file size and modification time, then the dependency graph and activity information are recomputed.
- Brief and interface: The default 600-token brief contains repository structure, change blast radius, evidence obligations, and review status. The implementation provides a CLI, git hooks, and an MCP server; the paper reports 2,313 lines of Python, no runtime dependencies, and 30 tests.
What experiments did the paper conduct?
Five groups of experiments without model participation measure context cost, reconstruction, evidence invalidation, gates, and change impact scope.
The experiments test Assay's mechanical behavior and costs, and do not measure real language model agent task performance.
Experimental setup
- Objects under test: Assay indexing, binding policies, and gates; no language model is run, and there is no LLM judge.
- Repository data: Express, Flask, Gin, Axum, FastAPI are all shallow clones with 90 days of history, plus Assay itself; the module counts listed in Table I are 35, 16, 7, 90, 195, and 5 respectively.
- Context comparisons: full dump, directory listing plus exploration proxy of the 10 most imported files, full index, modules section, and default budget brief; all counted uniformly with tiktoken/cl100k_base.
- Binding comparisons: repo hash, self hash, cone hash; one assertion per module, edited module counts of 1, 2, 4, 8, 16, 32, with 100 random sets drawn per available condition.
- Gate scenarios: a 12-file Python project with a real pytest suite, each scripted scenario starting from a clean copy; the gate decides after scripted doer and reviewer actions. The paper does not report the number of repetitions for these scenarios or timing experiments.
- Metrics and supplementary runs: token counts, millisecond timings, re-verification rates, the proportion that should invalidate but remain fresh, PASS/FAIL, and blast radius are reported. Additionally, one real change, independent review, and gate pass were completed on a private TypeScript Electron application.
Main results
Per Table III, the following are all random edits to 4 modules, 100 sets per condition; the denominator of the last column is assertions whose dependency semantics require invalidation.
Swipe horizontally to read the table
Repository Repo re-verification Cone re-verification Self re-verification Self missed invalidation express 100% 16.6% 11.4% 27.8% flask 100% 66.7% 25.0% 45.7% gin 100% 81.9% 57.1% 29.3% axum 100% 66.3% 4.4% 67.6% fastapi 100% 7.9% 2.1% 22.7% assay 100% 87.4% 80.0% 7.4% - Authors' explanation: The authors attribute differences across repositories to dependency structure, describing FastAPI as broader and shallower, and Axum workspace crates as forming deeper chains.
- Figure and text boundaries: Figure 4's legend is repo, cone, self, and self missed invalidation, with the x-axis as edited modules k and the y-axis as claims re-verified. The current text cannot read curve positions; specific comparisons use Table III.
- Precision of summary: The main text summarizes external repository self missed invalidation as 23% to 68%; the table above retains the original table numbers and does not adopt this rounded range.
Context costs and incremental indexing
- Default brief costs: In Table I, express, flask, gin, axum, fastapi are 635, 595, 592, 621, 599 tokens respectively; exploration/brief Gains are 28×, 78×, 14×, 73×, 114× respectively. These are text agent costs, not real agent usage.
- Warm rebuild: In Table II, fastapi has 1,142 files total, with cold, single-file edit, and no-change builds at 508, 106, 93 ms respectively; corresponding Gains are 4.8× and 5.4×. The authors report that single-file edits only re-parse that file.
- Use the table as authoritative: The main text summarizes no-change warm rebuild as 2× to 5×; in Table II express is 1.9×, gin is 1.7×, axum is 1.8×, and fastapi is 5.4×, so the main text range should not be treated as a precise table conclusion.
Scripted adversarial behaviors and honest paths
- Overall judgment: Table IV and VI-E report 9/9 adversarial behaviors rejected and 3/3 honest paths passed; these are scenario counts, and the paper does not report success rates over multiple random runs.
- Rejection mechanisms: coverage gaps and missed dependencies are caught by coverage; staleness, self-approval, and forged ledgers are handled by freshness, separation, and signature respectively; the rest correspond to exit codes, plausibility, monotonicity, and review.
- Honest and escalation paths: leaf module L1 edits, hub module L3 edits with additional evidence and human signing pass; the three-round dispute escalation scenario passes after human resolution, and the authors report it is blocked when unresolved.
Single-module change blast radius
- Distribution differences: In Table V, fastapi blast radius median is 0.5% and p90 is 1.0%; axum is 1.1% and 91.1%; gin is 57.1% and 71.4%. The authors attribute Axum's tail distribution to a few hubs.
- Evidence tier counts: In Table V, fastapi L0/L1/L2/L3 module counts are 149/38/0/8, axum is 66/0/0/24, gin is 1/1/1/4; the authors argue evidence obligations should be allocated by blast radius.
- Diagram boundaries: Figure 1 describes app assertions becoming stale after editing core while util assertions remain fresh; Figure 2 describes the assertion lifecycle. They are design illustrations, not standalone experimental results.
Other ablations and analyses
- Assay's own context: In Table I, brief is 434 tokens, exploration is 24,430 tokens, Gain is 56×.
- Other repository rebuilds: Table II single-file edit Gains: express 1.9×, flask 3.0×, gin 1.7×, axum 1.6×, assay 1.8×.
- Hypothetical FastAPI edit: Figure 3 text lists blast radius 177/195 modules (91%), maximum risk 1.00, and L3; this is a brief example.
- Private application run: VI-A reports one real change exposing two evidence obligation defects, fixed in the released version; no timing or token cost for that run is reported.
What are some points that can be further explored?
The authors list dependency resolution, evidence sufficiency, key isolation, and real model participation as future priorities.
The authors explicitly leave dependency graph accuracy, evidence sufficiency, and real agent effectiveness as future work.
Limitations and future directions identified by the authors
- Parsing and granularity: Section VIII notes that regex extraction is the main source of implementation unreliability; they plan to replace it with tree-sitter or authoritative dependency sources and report edge recall; directory granularity is coarse, can be extended to files, and symbol-level requires real call graphs.
- Evidence sufficiency: Section VIII notes that the gate only checks plausibility; future work considers change-line coverage differences and per-test identity, the latter enabling precise monotonicity checks.
- Key location: Section VIII notes that the system relies on the signing key being in a location inaccessible to the agent, but only describes deployment, not enforced isolation.
- Application extensions: Section VIII proposes extending binding to documents, lockfiles, infrastructure plans, and monorepo federation, and organizing pull requests by assertion and impact scope.
- Model-involved research: Section VIII plans to compare conditions with and without brief and gate on benchmarks similar to SWE-bench Verified, measuring completion rate, tokens to correct patch and gate pass, and interception rate of hidden-test-failing patches; the authors state they have designed and plan to pre-register.
- Evaluation validity: Section VI-G notes that exploration is a behavioral agent, conditions share a tokenizer, and E4 scenarios are written by the gate designer, so independent red teaming is needed; risk and obligation thresholds are policy choices.
Experimental coverage
- Mechanical experiments: Section VI reports five groups of scripted experiments without model participation, covering five public repositories and Assay itself; model task completion rates are not part of these results.
- Random set sizes: E3 uses 100 random module sets per edit count condition; Table III shows results for editing 4 modules.
- Gate samples: E4 includes 12 scripted scenarios, 9 adversarial behaviors and 3 honest paths, all run on the same 12-file Python project.
- Real change run: Section VI-A also reports one change to a private TypeScript Electron application, using the project's own typecheck and build commands.
- Unreported information: The paper does not report dependency edge recall, timing, or repetition counts for gate scenarios, nor does it provide results from real model-involved experiments.
Summarize the main content of the paper
Assay provides evidence management that invalidates with dependency content; existing evidence comes from mechanical experiments, and real agent effectiveness remains to be tested.
Assay is a content-addressed evidence system for AI-assisted software delivery, focusing on whether assertions such as tests passing, no secrets, or behavior preservation can still be used to approve a merge after code changes.
- Problem framing: The authors argue that code maps and review records respectively describe current structure and past verification, but do not share precise content bindings, making it difficult to distinguish unrelated modifications from dependency changes that invalidate approval.
- Design points: The system binds assertions with dependency-cone Merkle hashes, then uses risk tiers to determine evidence obligations; an append-only signed ledger, independent review, and mechanical gates check freshness, coverage, and evidence plausibility.
- Re-verification results: With random edits to 4 modules, fastapi's cone re-verification rate is 7.9%, repo is 100%; axum's self binding misses 67.6% of necessary invalidations (Table III).
- Cost results: fastapi default brief is 599 tokens, exploration agent is 68,215 tokens (Table I); warm build after single-file edit on 1,142 files is 106 ms, cold is 508 ms (Table II).
- Gate results: Scripted evaluation rejects 9/9 adversarial behaviors and passes 3/3 honest paths, including the path after human resolution escalation (Table IV and VI-E); no language model is involved.
- Conclusion boundaries: The authors argue assertions should invalidate as dependency code content changes, while explicitly stating the gate does not guarantee evidence sufficiency. Dependency extraction, key isolation, and real agent completion rates remain listed as future directions by the authors.