Manuscript Offprint

arXiv:2610.23996

Agentic Interpretation: Harness-Governed Evidence Construction for Software Agents

Yifeng He, Yanjun Wang, Siwei Cui, Aritra Sengupta, Murali Krishna Ramanathan

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

YIFENG HE*, University of California, Davis, USA

YANJUN WANG, AWS AI Labs, USA

SIWEI CUI, AWS AI Labs, USA

ARITRA SENGUPTA, AWS AI Labs, USA

MURALI KRISHNA RAMANATHAN, AWS AI Labs, USA

Software agents answer behavioral questions about code, such as whether a patch will pass its tests or which lines caused an observed failure. These tasks require gathering and combining evidence across a repository, yet most agent scaffolds leave intermediate findings in a free-form trajectory, making them difficult to reuse and easy to disconnect from the final answer. We present Agentic Interpretation (AGINT), a framework for harness-governed evidence construction. The model proposes typed records, while a deterministic harness governs their admission, grading, and persistence, reports unresolved requirements, and licenses an answer under task-specific rules. The resulting certificate gives the model persistent external state for subsequent reasoning and leaves an auditable record of the decision. Formally, append-only certificate states form a grounding lattice ordered by record inclusion, and each admitted record extends the state by union; the model still chooses what to investigate and when to propose an answer.

We evaluate AGINT with four models on SWE-bench-Live and DeepSWE for patch acceptance and Defects4J and GitBug-Java for fault localization. AGINT leads the plain agent and Agentic Code Reasoning on every reported patch-acceptance metric and generally ranks responsible lines higher while inspecting fewer irrelevant lines in fault localization. For GLM-5, reject-class F1 rises from 0.256 to 0.543 on SWE-bench-Live, All@1 rises from 0.140 to 0.400 on Defects4J, and wasted inspected lines fall from 31.5 to 11.7 on GitBug-Java. A matched-template control separates the mechanism: the persistent scaffold carries most of the fault-localization gain, while the certificate body and gate drive patch-acceptance calibration. With execution licensed, AGINT produces harness-reproduced witnesses for 293 of 475 null-dereference candidates versus 253 for a matched shell agent, and 62 of 117 resource-leak candidates versus 58. Across the reported efficiency measurements, it uses 35% fewer executions and reduces cost per candidate by 59%.

1 Introduction

Interpreting program behavior, rather than merely retrieving or modifying code, underlies change review, fault localization, and warning triage. Software agents increasingly answer the same questions on our behalf, and anyone who acts on an agent's verdict must judge it by the evidence the agent gathered. That evidence rarely sits in one place, since the path that decides a question may span tests, callbacks, libraries, configuration, and several files. A fixed query rarely traces this path; a language-model agent can choose sources to inspect, form a hypothesis, and revise it as evidence arrives. For these tasks, reliable reasoning requires not only proposing a conclusion but retaining the evidence gathered along the way.

Language-model agents extend earlier reasoning methods by gathering evidence from an external environment. Chain-of-thought, self-consistency, and thought search organize or explore intermediate model text (Wang et al., 2023; Wei et al., 2022; Yao et al., 2023b), but they gather no new evidence. An agent instead proposes a tool call, and a harness executes it and returns an observation (Luo et al., 2025; Martin, 2026; Yang et al., 2024b; Yao et al., 2023a). The trajectory is

∗^{*}This work was done during an internship at AWS.

Authors' Contact Information: Yifeng He, yfhe.cs@gmail.com, University of California, Davis, Davis, California, USA; Yanjun Wang, yanjunw@amazon.com, AWS AI Labs, USA; Siwei Cui, siweicui@amazon.com, AWS AI Labs, USA; Aritra Sengupta, aritras@amazon.com, AWS AI Labs, USA; Murali Krishna Ramanathan, mkraman@amazon.com, AWS AI Labs, USA.

He et al.

therefore no longer a generated explanation but an accumulated record of claims, actions, and observations. Because the harness mediates every action and records its effect, that record opens an auditable surface.

Current software agents nevertheless organize gathered evidence as a free-form trajectory: the model decides what to claim, how observations support those claims, and when to stop (Wu et al., 2025; Yang et al., 2024b; Yao et al., 2023a). A harness may constrain tool calls, preserve the transcript, or check individual steps, but without shared state and transition rules it does not define which records are admissible, how their evidence composes, or when the record licenses a verdict. Agentic Code Reasoning (acr) introduces a task-specific semi-formal certificate template, but leaves its construction semantics open (Ugare and Chandra, 2026). We argue that the harness, not the model, should set these rules, and that two rules suffice. We call this harness design Agentic Interpretation (AGINT). The model proposes typed records for a task-specific certificate. STEP admits a proposal only when deterministic checks accept it, grades its evidence, and appends it to the certificate. CLOSE returns an answer only when the certificate meets the obligations that answer owes. Admitted evidence, rather than model thoughts, thus becomes the agent's state, and the model's prose can neither grade its own evidence nor license its own verdict. After each step, the harness returns the certificate and its unresolved obligations, so the model builds its next proposal on durable state instead of recovering its investigation from a transcript. The certificate also outlives the session, so a third party can recheck the verdict without rerunning the model. Because both rules are deterministic harness code, we can also state and check properties of the certificate independently of the stochastic model policy, as operational semantics and program-analysis frameworks do for programs (Cousot and Cousot, 1979).

These two rules also determine the harness-visible state space. Because STEP only appends immutable records, the pre-close states are sets of records ordered by inclusion. They form a powerset lattice, which we call the grounding lattice, and each admitted record extends the state by union. This structure adapts two ideas from abstract interpretation to agent reasoning: ordered, monotone state and a worklist-like frontier of unresolved obligations (Cousot and Cousot, 1977; Cousot and Cousot, 1979). The harness reports that frontier and joins admitted records into persistent state, while the model chooses what to investigate, which record to propose, and when to attempt a verdict. AGINT thereby brings the state organization of program analysis into an agent harness while retaining model control over search and answer timing.

To isolate the gain that the scaffold itself delivers, we first evaluate AGINT without code execution, on patch acceptance (Wang et al., 2021; Xiong et al., 2018) and fault localization (Kang et al., 2024; Wong et al., 2016), and then on execution-enabled bug witnessing. Across four models and four labelled datasets, AGINT raises GLM-5's patch accuracy by eight points and reject-class F1 from 0.256 to 0.543 on SWE-bench-Live; it raises fault-localization MRR from 0.323 to 0.633 on Defects4J and cuts wasted inspected lines from 31.5 to 11.7 on GitBug-Java. The gains are largest where the plain agent is weakest: on SWE-bench-Live, Qwen3-Next-80B's reject-class F1 rises from 0.032 to 0.496. A matched-template ablation preserves AGINT's scaffold while substitutingacr's unchanged certificate body, separating the scaffold's persistence and progress guidance from the redesigned body and gate. In bug witnessing, every positive carries a concrete witness reproduced by the harness. Against a matched shell-agent baseline, AGINT witnesses 293 of 475 pooled null-dereference candidates versus 253, and 62 of 117 resource-leak candidates versus 58. Our contributions are:

  • A simple, principled harness design for agent evidence collection, in which two rules, STEP and CLOSE, move admission, evidence grading, and verdict licensing out of the model and into deterministic harness code (Section 3).

  • A grounding-lattice semantics for append-only evidence state, together with an obligation-guided agent loop that adapts worklist organization to model-directed investigation (Section 3.1, Section 3.3).

  • Structural guarantees that follow from this design (bounded grade ascent, order-independent rechecking of a fixed certificate, and harness-reproduced witnesses), with a replay audit of rechecking on real trajectories (Section 3.2).

• Controlled patch-acceptance and fault-localization results, including a matched-template ablation (Section 4.2).

  • A bug-witnessing evaluation in which every positive is backed by a harness-reproduced input (Section 4.5).

References (58)