Harness Hub
All papers

Shuttle: Dependency-Attributed Workflow Evolution for Smart Contract Auditing

Yue Xue, Yi Rong, Ziqiao Kong, Ronghui Gu, Dan She, Yuannan Yang, Zhiju Yang, Yuqiang Sun

Verdict: Useful

Provenance-graph attribution and ledger-based edit pruning are concrete ideas that transfer to any multi-stage harness tuned from eval feedback. The evaluation is weaker than the abstract suggests: single-run default baselines, one evolution trajectory, large unexplained re-run swings, a short single-trajectory ablation, and an LLM-only judge.

  • Novelty

    3 out of 5
  • Rigor

    2 out of 5
  • Reproducibility

    1 out of 5
  • Relevance to harnesses

    3 out of 5

TL;DR

Shuttle evolves a multi-step LLM auditing workflow (LucidScan) over eight rounds. It locates lost clues on an artifact read-write dependency graph, protects the sources of stable hits, and prunes merged edits with a node-level ledger. Validation C/H/M recall rises from 28.6% to 70.3%. However, external baselines get one default run each, the root-cause judge is an LLM, and everything rests on a single evolution trajectory.

Adversarial review by Harness Hub · Nov 27, 2026 · read full text · Suggest a correction

Original abstract (authors’ text, select to expand)

In LLM-based smart contract auditing, detection quality depends on both model capability and workflow design. While coding agents can revise workflows from execution feedback, unconstrained rewrites rarely yield stable gains. Cross-function vulnerabilities require multi-step state tracking and boundary reasoning that coarse pipelines miss. End-to-end outcomes hide which step lost a clue, so direct rewrites regress existing hits or discard valid edits under coarse aggregate scoring. Repeatedly iterating on a small project set also adds case-specific heuristics that bloat prompts and hurt generalization. We present Shuttle, a constrained workflow-evolution system, and LucidScan, the auditing framework it evolves. Shuttle centers on provenance-graph attribution: it expands each run into an instance-level dependency graph, locates the node where a clue was lost via forward search, and traces existing hits backward into a protected set. After evaluating a merged batch, Shuttle drops dragging edits via a node-level provenance ledger, falling back to cache-reusing local re-runs only when early-round edits overlap on the same node. For localized bottlenecks, Shuttle generates edits under task decomposition, progressive refinement, and generality blind review. On 10 training projects, Shuttle evolves LucidScan from $G_0$ (28.7% per-project average C/H/M recall) to $G_8$ (82.1%). On 13 held-out validation projects under the same model, average recall rises from 28.6% ($G_0$) to 70.3% ($G_8$), above Pashov and Codex Security. In an anonymized live public audit contest with 896 researchers (Nov. 2026), the evolved scanner tied for #1 in High-severity recall (6/8, 75.0%), ranked #2 in scored H/M clusters (34/72, 47.2%) with 92.9% validity (78/84), and finished #3 overall.

Authors’ note

15 pages, 9 figures, 11 tables

Filed undercoding-agentsagentsllm

Summary

The paper has two parts. Shuttle is an offline optimizer that revises an LLM-based smart contract auditing workflow. LucidScan is the workflow it revises. How the graph is built: the Loom runtime records each task instance's input and output artifacts with content hashes. This produces a dependency graph for every run. How attribution works: - For ground-truth issues hit fewer than 2 times in 3 runs, a forward search finds the node where the clue goes from covered to uncovered. A program advances the search and an agent judges each node. - For issues hit 2 or more times, the matching candidate ID is traced backward to its earliest producer, with no model call. These producers form a protected set. How edits are made and kept: - A proposer sees only aggregated step-level bottlenecks. It never sees source code or ground truth. - The proposer suggests text or graph edits. A blind reviewer rejects edits that are case-specific. - After a merged batch is evaluated, a node ledger assigns hits to edits. Edits with net gain <= 0 or protected-set regressions are dropped. - Cache-reusing leave-one-out re-runs are used only when edits share a node. Reported results: - Training (10 projects): 28.7% to 82.1%. - Validation (13 projects): 28.6% to 70.3%, same scanning model (Luna high). - Per-scan cost: USD 4.92 per validation project. - Anonymized live contest: #3 overall, tied #1 in High recall (6/8).

Key findings

  • Validation per-project average C/H/M recall rises from 28.6% (G0) to 70.3% (G8), both 3-run means under Luna high (Table 5). The best external baseline is Pashov (Son.) at 44.3% from a single default run.
  • Validation three-run union coverage rises from 36.8% (G0) to 78.9% (G8) (Section 6.2). No union figure exists for external tools, which were run once.
  • Training recall goes from 28.7% to 82.1% over eight rounds, and pooled training hits from 64 to 182 out of 237 (Table 7). The train/validation gap at G8 is 82.1% vs 70.3%.
  • Early-round ablation (Table 6): M_full reaches 64.1% at G4. M_guide falls to 18.8% at G3, M_trace to 24.2% at G4, and M_miss to 22.1% at G4. Each configuration has a single trajectory.
  • Ledger pruning on G2->G3 dropped a threat-model rewrite (net -14). Re-run hits went from 122 (all merged) to 136. A plain-log analyst agent chose to roll back all edits (Table 8).
  • On G6->G7, dropping two edits the ledger scored at 0 moved hits from 154 (all merged) to 173 on re-run (Table 8, Appendix A.3).
  • The weakly constrained pilot M_weak, which had no blind review, reached 88.5% development recall with 26.6x per-project token inflation. Its validation recall ranged from 31% (Morpho) to 96% (Aimeta) (Section 6.3).
  • G8 direct API cost is USD 4.92 per validation project per run and USD 3.97 across all 69 scans. Offline evolution cost is excluded (Table 11).
  • In the live contest, 78 of 84 submissions were valid (92.9%), finding 6/8 High and 34/72 scored H/M clusters, for #3 overall (Table 9). LucidScan was paired with scope filtering, deduplication and PoC verification.

The paper at a glance

01Run LucidScanworkflow on Loomruntime (3 runs perproject)02Buildinstance-levelartifact read-writedependency graph03Forward search onmisses to find thecoverage-flipbreakpoint node04Backward ID tracingon stable hits tobuild the protectedset05Proposer edits fromstripped step-levelbottlenecks plusexperience log06Generality blindreview rejectscase-specific edits07Evaluate mergedbatch on trainingset08Node-ledger pruning(or cachedleave-one-outre-runs if editsare coupled)09Accept G_{t+1} orkeep G_t
  1. Run LucidScan workflow on Loom runtime (3 runs per project)
  2. Build instance-level artifact read-write dependency graph
  3. Forward search on misses to find the coverage-flip breakpoint node
  4. Backward ID tracing on stable hits to build the protected set
  5. Proposer edits from stripped step-level bottlenecks plus experience log
  6. Generality blind review rejects case-specific edits
  7. Evaluate merged batch on training set
  8. Node-ledger pruning (or cached leave-one-out re-runs if edits are coupled)
  9. Accept G_{t+1} or keep G_t
Fig. 1 — How the paper works, step by step (arXiv:2611.31929).
LucidScan G0 (Luna, 3-run mean)28.6%Shuttle-evolved LucidScan G8 (Luna, 3-run mean) (thispaper)70.3%Pashov (Son., single run)44.3%Pashov (Ter., single run)42.7%Pashov (Luna, single run)24.4%Codex Security (Terra, single run)31.9%Codex Security (Luna, single run)8.3%
Fig. 2 — Validation per-project average C/H/M recall (13 projects), higher is better. Source: Table 5, arXiv:2611.31929.
Data table
Validation per-project average C/H/M recall (13 projects)
Method%
LucidScan G0 (Luna, 3-run mean)28.6%
Shuttle-evolved LucidScan G8 (Luna, 3-run mean) (this paper)70.3%
Pashov (Son., single run)44.3%
Pashov (Ter., single run)42.7%
Pashov (Luna, single run)24.4%
Codex Security (Terra, single run)31.9%
Codex Security (Luna, single run)8.3%

Why it matters

The domain is smart contract auditing, but the part harness builders can reuse is general. Each step of a multi-agent pipeline declares the artifacts it reads and writes, and every artifact keeps content-hashed provenance. That graph is then used to find which step dropped a signal and to credit or blame individual edits in a merged change. Anyone tuning a multi-stage coding or review harness from eval feedback faces the problems the paper names: end-to-end scores hide where a failure happened, and a merged batch of edits can mask a regression. Three mechanisms are cheap to try: a protected set of stable-hit sources, ledger-based edit attribution, and keeping task specifics away from the proposer. The evidence that these beat simpler loops is thin. It rests on one evolution trajectory, a four-round single-trajectory ablation, and an LLM judge. Treat this as a design pattern to test in your own harness, not a validated result.

Issues (9)

  • High severity

    The baseline comparison is unequal. G0 and G8 are 3-run means, while Pashov and Codex Security get a single run with default settings. LucidScan was optimized for eight rounds against the C/H/M root-cause target. The headline 'above Pashov and Codex Security' therefore mixes optimization budget and run count with method quality. Union coverage is reported for G0 (36.8%) and G8 (78.9%) but cannot be computed for single-run baselines. The paper also never identifies the underlying models (Son., Ter., Terra, Luna), so it is unclear whether external tools were run under the same model; only Pashov (Luna) and CS (Luna) clearly share it.

  • High severity

    Re-run swings are large compared with the pruning effects claimed. On G6->G7, removing two edits the ledger scored at 0 net gain moved pooled hits from 154 to 173 (+19). Removing zero-gain edits should not produce a 19-hit jump, which points to substantial between-evaluation variance. The paper gives no paired variance for these re-runs. The G3 (122->136) and G7 'damaged hits all restored' results therefore do not establish that the ledger decisions were correct rather than noise.

  • High severity

    The ablation cannot isolate the claimed components. It covers only G1-G4, has one trajectory per configuration, and reports no variance across evolution runs. M_guide stops at G3. The full configuration also benefits from ledger pruning, while the graph-free variants 'advance from each round's merged output', so attribution and pruning are confounded. Section 8 confirms only one mainline G0->G8 trajectory was run. Generality blind review is never ablated on the same split: M_weak used a different, chronologically collected set of 10 development projects (226 security GTs) and 4 validation projects.

  • Medium severity

    Root-cause matching is done by an LLM (Sol high), and attribution and proposal use the same model family (Sol medium). Judge agreement was checked against another model on 60 samples (58/60, kappa 0.933), not against human experts. Evolution selected versions by this judge's hit verdicts, so the workflow may have drifted toward report styles the judge accepts.

  • Medium severity

    Per-project averaging over tiny denominators makes the headline sensitive to a few issues. Several validation projects have 1-3 C/H/M GTs: Bunni 1, WooFi 1, Hann 2, Uni_ai 2, Very Liquid Vaults 2, Bankroll 3, Idols NFT 3. Each project carries 1/13 of the average. Hann (17% -> 100%) and Very Liquid Vaults (17% -> 100%) each rest on 2 issues.

  • Medium severity

    The live contest result cannot be attributed to LucidScan alone and cannot be checked. The submission pipeline added scope filtering, deduplication and PoC verification. The paper does not state whether humans took part or how many raw findings were filtered. The project and platform are anonymized, so the rank, the 92.9% validity and the 896-researcher figure cannot be verified.

  • Medium severity

    Reproducibility is weak: - No code or data URL is printed. - Models are referred to by pseudonyms. - Part of the benchmark comes from unpublished internal audits. - The total cost of offline evolution (attribution agents, proposals, leave-one-out re-runs) is not reported; only the final G8 per-scan cost is given.

  • Low severity

    The KnowDit comparison uses only 5 projects under all-severity ground truth (61.9% vs 24.9%), and KnowDit's Hann run hit a USD 400 budget cap. It is a different metric and subset from the main comparison.

  • Low severity

    Possible contamination is not discussed. Benchmark projects come from 2026 public Sherlock and Yieldoor contests, and the paper does not report scanning-model knowledge cutoffs.

Questions for the authors

  • What do the training and validation curves look like if the full G0->G8 evolution is repeated from scratch with a different proposer sample?
  • What is the run-to-run spread of pooled training hits for a fixed version? Is the +19 hits from dropping two zero-gain edits on G7 within that spread?
  • How do Pashov and Codex Security score with 3 runs each and with configuration comparable to the C/H/M target?
  • What is the total API cost of the eight-round offline evolution, including attribution agents and leave-one-out re-runs?
  • How often does forward search end in 'unknown' or exhaust its query budget, and how are those GTs passed to the proposer?
  • What does a human-expert audit of the Sol-high root-cause matches show for G8 versus the external tools?
  • In the live contest, which post-LucidScan steps involved humans, and how many raw findings were filtered before the 84 submissions?
  • Does removing only generality blind review on the same 10/13 split reproduce the divergence seen in M_weak?

Related in the directory

Open-source projects

The paper evaluates a tool named Codex Security as an external baseline in Table 5. The paper does not describe it further, so the mapping to this entry is assumed.

More tools on the same problem

Products and open-source projects in the directory closest in meaning to this paper.

The open-source governance layer for AI agents.
Alibaba's hybrid deterministic-plus-agent code review CLI.
Debug, evaluate and monitor agentic workflows.
Open-source reviewer that checks agent code changes before push

AI coding agents increasingly work inside a harness: rule files such as AGENTS.md, on-demand skills, runtime hooks and automated checks. Most studies of harnesses look at a single point in time or at short benchmark runs. I report a six-week case study of my personal system of record, a plain-markdown repository that three AI agent tools edited daily under one shared rule set. I built a ledger of 118 agent failures, their fixes and whether they came back. I also tested the system's monthly LLM documentation audit against 47 known stale statements and 20 planted errors. Finally, I replayed five past failures in isolated git clones, with and without their fixes. All results come from one repository with three runs per condition, so I report them as exploratory. Stale documentation (drift) was the largest failure class (48 of 118), although 35 of those were found on one audit day. A single audit run found about half of the known drift (Claude Sonnet 5.5 mean: 50%), and at least 93% of its findings were correct. On Sonnet 5.5, the agent finished four of the five replayed tasks. In three of those four, the failure did not happen, with or without its fix. Only the stale-count failure came back without its check, and the check stopped it in every run. On older models, an agent drafted an em-dash once while the em-dash lint check was active, and the check rejected it. A written rule on run-time estimates did not change Sonnet 4.5's overestimates. These results suggest that harness lessons can outlive the failures they were written to fix, while drift persists and still needs mechanical checks. Tools that evolve a harness add lessons faster than they retire them, so they should re-test their rules from time to time and retire the obsolete ones.

Hassan Hassanzadeh Aliabadi

Pull requests written by coding agents can pass a project's test suite while omitting a guard or a validation step. To find the missing condition, a reviewer currently relies on static analysis of the final code. An agent-generated change, however, is accompanied by a development history that a human commit does not provide. The agent's trajectory records each edit together with the agent's stated assumptions, and structural differencing shows how each changed function evolved. We present TRACER, a workflow that uses this development history as evidence for security review. TRACER tracks changes at the symbol level, treats the agent's recorded rationale as claims to be verified against the current code, accepts a repair only after assessment and functional validation, and attaches to each accepted repair an executable check that later changes must satisfy. On the SusVibes benchmark, symbol-level tracking places the vulnerable symbol in the review scope for 94.6% of agent patches, compared with 13.4% for the primary scanner warning. With two investigator models, the configuration that includes the agent's rationale yields the largest number of verified security repairs while preserving functionality, and adding AST history to it does not increase that number. A funnel analysis identifies where the remaining candidates are lost. In a study of structural-biology software, the combination of repair memory and a boundary check allows a subsequent feature request to succeed in nine of ten tasks without reintroducing the repaired vulnerability, whereas functional feedback alone succeeds in four and reintroduces the vulnerability in three.

Prateek Kumar Rajput, Shahzeb Khan +4

Frontier coding agents increasingly exhibit overeagerness, taking surprising, sometimes reckless actions beyond a user's mandate --- reported in recent system cards from frontier model developers. These cases are surfaced through internal deployment monitoring, which requires private traffic and is out of reach for open-weight models and independent evaluators. Automated alignment audits are the natural alternative, but capable models increasingly recognise the synthetic setup and adjust their behaviour. We introduce Continuation Audits, a pipeline that grounds the auditor on a prefix drawn from a real coding-agent transcript and directs it to continue the trajectory toward a seeded behaviour. Because the prefix is drawn from a real session, the auditor only needs to maintain a realistic setting rather than manufacturing it. We validate the method on SWE-Chat prefixes: on a paired subset of 90 audits a judge cannot reliably distinguish continuations from their source sessions (realism win rate 0.42 vs.\ 0.43), and across all 900 audits verbalized eval-awareness does not exceed the rate observed in the unaudited real sessions. Applying the pipeline to three recent models across three seeds, we find each model leads a different seed --- DeepSeek~V4~Pro on colleague-credentials misuse, GPT-5.6~Terra on file-permission bypasses, and Kimi~K3 on treating diagnostic questions as instructions. Kimi~K3 additionally continues to bypass file-permission protections after an explicit CLAUDE.md prohibition while the other two stop entirely, corroborating Moonshot's own report of excessive proactiveness.

Sean Lim, Clement Neo

Agentic systems using retrieval-augmented generation (RAG) must repair their own answers by gathering more evidence, testing alternative policies and deciding if, when, and what repairs are needed. Yet how do we know if a system's repairs are working when metrics like accuracy can be misleading? We present RagHarnessDebugger, a framework that records every repair decision in a Jev-guided harness for contract inference and audits the record to facilitate complete debugging of all decisions taken during a RAG repair journey. RagHarnessDebugger checks that each trace is intact, that each validation applies to the candidate it is counted for, and which answers the acceptance rule can reach. We tested our approach on ContractNLI non-disclosure agreements with two reader models and a replication set of separate contracts. Our debugger's audit layer exposed failure patterns that were hidden under aggregate metrics, policies acceptance cost of repairs vs regressions and policy acceptance gap of 77% and 76% of available but unrealised repairs on development and replication sets. Our audit, together with a labeled error analysis and replay mechanism, allowed following the execution path all the way to the terminal decision - uncovering where missing repairs became lost. Our revised harness improved accuracy over the initial BM25-only baseline by 3.6 points on development contracts and 3.7 points on the replication set, and even improved our full contract access reference score by 1.1 on development and 2.4 on replication set. While our work here demonstrates how the debugger can conduct decision root-cause analysis for missed repairs, the true value lies with providing this debugger for judgment visibility serving continuous improvement of RAG decisions and their explainability. Keywords: agentic RAG, AI evidence repair, harness explainability, counterfactual replay, Jev, ContractNLI

Moriya Dechtiar, Daniel Martin Katz +3

Many defects violate project rules that the code itself does not reveal, such as layering constraints or required tests. We study whether LLM coding agents repair such violations better when an external checker reports them, with their location and a repair goal. Three models, a small, medium and large model, driven by an AI agent, worked on 25 pull requests with 31 planted defects in ten open-source projects, plus 5 correct controls, five times alone and five times with findings from CodeAssure (CA), a commercial checker. We also compare with GitHub Copilot code review, and compare CodeAssure's detection with nine free static-analysis tools run out of the box, including Semgrep and SonarQube Community. Counting a run as repaired only when the repaired code also compiles and keeps its feature, CA findings raised the repair rate from 26% to 69% for the smallest model, from 46% to 90% for the medium model and from 45% to 93% for the largest model (pull-request-level p < 0.001), and from 39% to 84% over all runs. Every Java, TypeScript and Python repair compiled. We found that agents often cleared a defect by deleting a newly added file. Metrics based on whether the defect is gone count feature deletion as a success. The largest model alone did so in 44 of 125 runs. CA includes a check for deleted files that largely prevents this. In an ablation with the check turned off, removals rose from 9 to 65 out of 375 runs and the repair rate fell to 54% (small), 70% (medium) and 85% (large model). The CA workflow also outperformed Copilot code review (p < 0.001). Together, the free tools detected 8 of the 31 defects, and CA detected all 31. With CA, the medium model repaired 90% of runs, against 45% for the largest model alone, at about one fifth of the mean cost per run ($0.17 against $0.91).

Laura Wynter

Long-horizon LLM agents across codebases, web browsers, and enterprise infrastructure rely on an execution harness to move state between the working context, session history, persistent memory, and external environment. While conventional execution traces log model prompts and tool calls, critical security and reliability failures occur during state transfers: a transfer can admit unchecked content (indirect prompt injections, unverified memory writes), rewrite state lossily (context compaction dropping user constraints, memory consolidation stripping source authority), or restore state incompletely (workspace rollbacks leaving aborted KV state active on the inference server). Because current traces omit what crosses these boundaries, failure attribution and runtime monitors fail on multi-step trajectories. We present a state-transfer audit architecture for the agent harness. At each transfer boundary, we define an audit point specifying the minimal hash-chained record the harness emits, separating low-overhead deterministic checks from model-based semantic checks and binding internal context, memory, and inference-server cache state to external actions. We show that the same transfer records required for causal failure attribution supply the durable state needed by runtime security controls, including least-privilege capabilities, replay-resistant authorization outside the prompt, information flow control, obligation monitors, and transactional recovery across multi-agent and infrastructure pipelines. Finally, we analyze multimodal GUI adaptations and implement and evaluate a reference harness middleware across 240 multi-step fault-injection trajectories, showing that transfer records localize root causes and catch cross-transfer violations missed by lifecycle and tool-only logs at microsecond deterministic overhead.

Deep Shah, Nehal Kathrotia

The Harness Hub newsletter

New harness companies, projects, releases and the monthly State of Harness report, in your inbox.