Skip to content

Show, don't tell: making execution evidence a prerequisite for tool useShow, Don't Tell: Making Execution Evidence a Prerequisite for Tool Use

Chuanqi Shi
University of California San Diego
arXiv: 其他 AI 安全论文arXiv:2612.01175Originally published Indexed by this site · 17 hr agoDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose WITNESS, which audits and constrains tool-call submission using isolated replicas; on the four attribute categories in AgentDojo, the aggregate harm across ten models is 0.0%.

Threat modelThe attacker can modify operational claims in tool descriptions, but cannot modify the user request, schema, backend implementation, trusted observation mechanism, or task constraints; instruction attacks and compromised backends are out of scope. The defense obtains evidence before submission using an isolated replica or an authenticated side-effect-free read, and submits only calls that are admissible under all remaining backend semantics.

Questions
The agent can only see the tool description, but cannot use it to confirm backend facts such as retry deduplication, read-only preview, failure rollback and message visibility. The authors focus on the submission safety of irreversible calls under incorrect descriptions, and on the problem that text defenses cannot distinguish safe from unsafe backends.
Methods
WITNESS executes the proposed call on an isolated replica, or uses a certified side-effect-free production read, maintaining a set of backend semantics consistent with the audit results. A call is submitted only if it is permissible under all remaining semantics; otherwise auditing continues or submission is deferred, and it checks whether the evidence scope is still valid.
Experiments and results
The experiments cover AgentDojo, AppWorld, GitLab and the Stripe test interface. In Table 1, WITNESS's harm rate on all four attribute categories is 0.0%; text rewriting still leaves first-call harm. Experiments breaking assumptions such as replica infidelity, stale evidence and probe errors also showed corresponding failures.
Limitations and future work
The authors say the certificate covers only effects observed by the audit family; authorization overreach and multi-tool interactions are out of scope, and automated probe synthesis remains to be studied. Stripe uses a fixed task template and ten customer-amount combinations; GitLab auditing requires pausing production, with a median pause time of 17.3 seconds in the main run.
Experimental setupclaude-haiku-4.5、gemini-3.8-flash et al. · AgentDojo、AppWorld et al. · harm rate、completion et al.
AI summaryThe paper proposes the WITNESS defense, which dry-runs an agent's proposed tool calls on isolated replicas and commits only operations that are admissible under all surviving backends. The paper notes that tool protocols hand backend facts (such as whether retries deduplicate, whether calls are preview-only, and whether failed batches roll back) to the agent as unverified textual descriptions, while the operations it governs are irreversible; guardrails based on read-only descriptions cannot distinguish a safe retry from a backend that double-charges, and returning real execution results as text cannot handle cases where harm occurs on the first call. Evaluation of ten models on AgentDojo, AppWorld, GitLab and Stripe test APIs shows that each of eleven description-based defenses leaves at least one-third of the harm on some property, whereas replica-gated commits leave no harm with unchanged completion rates.

The paper proposes the WITNESS defense, which dry-runs an agent's proposed tool calls on isolated replicas and commits only operations that are admissible under all surviving backends. The paper notes that tool protocols hand backend facts (such as whether retries deduplicate, whether calls are preview-only, and whether failed batches roll back) to the agent as unverified textual descriptions, while the operations it governs are irreversible; guardrails based on read-only descriptions cannot distinguish a safe retry from a backend that double-charges, and returning real execution results as text cannot handle cases where harm occurs on the first call. Evaluation of ten models on AgentDojo, AppWorld, GitLab and Stripe test APIs shows that each of eleven description-based defenses leaves at least one-third of the harm on some property, whereas replica-gated commits leave no harm with unchanged completion rates.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Make the basis for tool-call submission verifiable execution evidence, rather than unverified descriptions of backend behavior.

    The core question is: when tool descriptions cannot prove backend semantics, how can the agent be prevented from submitting irreversible harmful calls while preserving tasks that can be completed safely?

    • Problem setting: Whether retries deduplicate, whether previews write, whether batch failures roll back, and whether messages are public all depend on the backend, which the agent cannot see. The authors use payment, scheduling, and messaging tools to show that these facts determine whether an operation can be undone, yet cannot be verified from text.
    • Shortcomings of existing methods: The authors argue that prompts, policies, LLM reviewers, or simulators based on read-only descriptions cannot distinguish safe from unsafe backends when both produce the same input; returning audit results as text also cannot keep up with the irreversible effects already produced by the first call.
    • Core observation: Reliable submission requires a backend-dependent observation channel. The authors use a two-point lower bound to characterize the information limits of description-based strategies, and use channel fibers to distinguish cases where a single snapshot suffices, runtime reads are needed, or a wait upper bound applies.
    • Proposed defense: WITNESS audits on an isolated replica, maintains a semantic version space, and submits only calls that are admissible under all remaining semantics; if evidence is insufficient or stale, it defers, and falsified descriptions can be rewritten as audit facts.
    • Threat model:
      • Goal: Prevent submissions that violate the established effect constraints, while preserving admissible operations as much as possible.
      • Attacker knowledge: The paper does not further specify whether the attacker knows the defense implementation; the adaptive description experiment selects text according to the harm rate of the undefended agent.
      • Attacker capability: Can modify operational claims in tool descriptions, but cannot modify the user request, schema, backend implementation, trusted observation mechanism, or task constraints.
      • Victim system and boundaries: LLM agents that pay, schedule, transfer, and send messages through tools; instruction attacks and compromised backends are out of scope.
  2. What related research exists?

    Related work covers text risk judgment, permission control, pre-execution sandboxing and injection detection; this paper turns to submission certification.

    Model judgment and simulated defenses

    • Wang et al. (2023), Yuan et al. (2024): Self-Consistency aggregates decisions through multiple sampling; R-Judge evaluates agents' safety risk awareness. The paper summarizes model-based defenses as scoring based on text and simulated trajectories, without querying the real backend.
    • Ruan et al. (2024), Xiang et al. (2025), Chen et al. (2025): Respectively study LM-simulated sandboxes, GuardAgent's knowledge-reasoning defenses, and ShieldAgent's verifiable safety policy reasoning, extending checks to simulated environments and safety specifications.

    Permissions, parameters, and control-flow constraints

    • Shi et al. (2025), Tsai & Bagdasarian (2025), Debenedetti et al. (2025): Progent, context-based policy formulation, and work that resists injection by design, enforcing parameter or control-flow invariants. The paper notes that these methods, in the scenarios discussed in this paper, assume the semantics stated in the description hold.
    • Mitchell (1982), Shannon (1956), Wald (1950): Respectively provide version space, zero-error channel, and maximin decision tools; they are the foundation of this paper's formalization, not agent defense baselines.

    Pre-execution sandboxes and injection research

    • Li et al. (2026): ToolShield executes tools before submission, but returns trajectories as text; the paper says it still leaves first-call harm.
    • Greshake et al. (2023), Zhan et al. (2024), Radosevich & Halloran (2025), Abdelnabi & Bagdasarian (2026): Study indirect prompt injection, tool-integrated agent injection, and malicious tool descriptions. The authors position this work as a detection problem, whereas this paper studies submission certification.

    Experimental baselines and benchmarks

    • Baselines: Eleven description-based defenses, including AgentDojo's Spotlighting, Repeat User Prompt, Tool Filter, Injection Detector, as well as Context-Faithful Prompt, Capability Policy, Self-Consistency, Emulator Check, Abstain-if-Unsure, Simulated-User Confirmation, Judge Gate; also compared are Oracle Description, text audit, self-service probe, and single-snapshot execution.
    • Benchmarks: AgentDojo, AppWorld, TheAgentCompany's GitLab service and Stripe test interface. The authors position this paper as maintaining a semantic version space within the submission gate, and explain the applicable conditions for snapshots, runtime reads, and wait upper bounds respectively.
  3. How does the paper address this problem?

    WITNESS narrows the set of backend semantics through isolated auditing, and submits only calls that are safe under all remaining semantics.

    WITNESS moves the safety judgment from tool text to deployment-fixed constraints and trusted execution evidence: audit first, then certify, and finally submit under the scope version at audit time.

    Problem setting and trust assumptions

    • The context z contains the user goal, authorization, execution constraints, and the set of candidate calls; the local parameters θ represent the backend facts needed to judge a candidate. The core predicate is Γz(s,x,θ)∈{0,1}, indicating whether call x satisfies the effect constraints under state s and semantics θ.
    • The initial set Θ0 must contain the true semantics θ*, and the representation must suffice to evaluate the constraints. The audit must faithfully reproduce the relevant behavior in an isolated environment; old evidence becomes invalid when the state, parameters, permissions, implementation version, or failure conditions change.
    • Descriptions affect only the initial proposal, cost, and query order, and do not participate in defining the certification set. The certificate covers only modeled properties and does not cover unmodeled harm.

    Evidence update and submission gate

    • Each query returns a finite result or unknown; a non-unknown result retains only the semantics consistent with that result, and unknown certifies no fact. The certification set is CN(s,z)={x∈ Az:Γz(s,x,θ)=1 ∀θ∈ΘN}.
    • When the certification set is non-empty, a candidate is selected under Jz, the weighted sum of the cost of deviating from the proposal and the execution cost; it is submitted only if the cost does not exceed the user interruption cost ci, otherwise auditing continues or the submission is deferred.
    • Algorithm 1 binds the audit scope version at submission, similar to compare-and-swap. It defers when the budget is exhausted, no query can distinguish semantics, or the evidence set is empty.
    • After the audit falsifies a description, the runtime can replace that claim with the audit fact, affecting subsequent proposals; the certification logic itself does not read descriptions.

    Theoretical bounds and probe design

    • Proposition 3.1 gives ru + rs ≥ 1 − TV(Ps, Pu): if the pre-submission information is identically distributed under two backends, harmful acceptance and admissible rejection cannot both be eliminated. The authors use this to distinguish description-based strategies from evidence-augmented strategies.
    • Theorem 3.5 gives submission admissibility under the above assumptions; with finite semantics and exact queries, the number of certification queries is bounded by the smaller of |Q| and M − |[θ*]Q|. Proposition 3.6 discusses the conditions under which in-flight writes cannot be certified and a wait upper bound restores decidability.
    • Appendix D defines five classes of tests: duplication, read-only, visibility, failure atomicity, and state facts; evidence records scope, property, and pass/fail/unknown. Appendix C uses sequential testing to handle stochastic results and control the probability of excluding the true semantics.

    Experimental implementation

    • The common setting is a single candidate and a single probe; multi-fact batching adds two candidates, "resubmit all" and "submit only the remaining items." Properties, probes, and admissibility rules are fixed in advance, and there is no language model inside the gate.
    • Probes cover all tools that could produce the tracked effects. AgentDojo uses an in-process state replica, GitLab uses a separate micro-VM, and Stripe uses an isolated test customer within the same account.
    • The implementation includes a 327-line core gate, 59 lines of probe and constraint logic across four property classes, and adapters for each environment; a separate automatic identity key experiment tests an alternative to hand-written rules.
  4. What experiments did the paper conduct?

    The experiments compare text-based and submission-gate defenses, and test the assumptions about replicas, freshness, probe errors, and real services.

    Experimental setup

    • Main model pool: claude-haiku-4.5, gemini-3.8-flash, glm-5.3-flash, gpt-5.4-mini, gpt-5.6-luna, kimi-k2.6, llama-4-scout, minimax-m3, mistral-large-3, qwen3.8-flash, all at temperature 0.
    • Supplementary models: deepseek-v3.2, qwen3-next-80b-a3b-instruct, qwen3-next-80b-a3b-thinking, claude-sonnet-5.5, claude-opus-5.5, run only on some experiments, not merged with the main pool.
    • Environments and properties: AgentDojo banking/Slack/workspace, AppWorld, GitLab micro-VM, Stripe test interface; testing idempotency, atomicity, read-only, visibility.
    • Determination method: Harm is determined by the final backend state, respectively duplicate transactions, duplicate partial batches, created transfers, or visible messages; completion rates use benchmark utility checks or environment state checks, not agent self-reports.
    • Baselines and judging: Compares eleven description-based defenses and backend access variants. Judge Gate and Emulator Check use a second model, but the paper does not specify its exact model; simulated user and Capability Policy are fixed to gpt-5.4-mini.
    • Sample sizes: AgentDojo cells in Table 1 are 20–200 episodes, the self-service audit part is 20–63, in-flight experiments n=30; Stripe is usually 100 per cell, WITNESS is 200. Most results are single-run counts; the probe error experiment uses 6 models, 3 seeds.

    Main results

    The table below is based on Table 1, all being harm rates (%) of the ten models under poisoned description; "–" means not reported in the paper.

    Swipe horizontally to read the table

    DefenseIdempotencyAtomicityRead-OnlyVisibility
    Context-Faithful Prompt45.520.5100.0100.0
    Tool Filter22.57.085.547.4
    Judge Gate5.120.078.25.5
    Oracle Description9.110.09.116.4
    Audit Outcome Rewrites Claim6.210.0100.0100.0
    Forced Ground-Truth Probe28.6–100.0100.0
    Execute-and-Check (recorded)0.00.0––
    WITNESS0.00.00.00.0
    • Text is not equal to gating: The authors say rewriting can enter the context before retry, but the first call has already been submitted before the audit; forcing injection of real probe results also did not eliminate read-only and visibility harm.
    • Completion rates: In Table 7, WITNESS vs. no defense is 62.5% vs. 62.1% for idempotency, 39.0% vs. 40.0% for atomicity, 56.4% vs. 0.0% for read-only, and 99.1% vs. 100.0% for visibility.
    • Statistical tests: The per-model sign test one-sided p values on the four properties are 3.9×10−3, 0.016, 9.8×10−4, 9.8×10−4; the completion rate Fisher test p values on idempotency, atomicity, visibility are 1.0, 0.90, 1.0, and less than 10−20 on read-only.

    Description variation and multi-fact queries

    • Description sensitivity: In Table 8, no-defense idempotency harm under correct, absent, poison, adaptive descriptions is 7.3%, 10.6%, 40.9%, 58.3% respectively; visibility is 23.1%, 20.0%, 93.8%, 96.9% respectively. The corresponding WITNESS cells are all 0.
    • Adaptive text boundary: Adaptive text is selected from eight candidates based on the harm rate of no-defense agents on three models; the authors explicitly did not run experiments selecting descriptions separately against Judge Gate.
    • Query order and budget: In Table 16, both two-query orders have 0/200 harm, with completion rates 64.5% and 63.5%; with deduplication-first, B=1, the completion rate is 27.5%, refusal rate 46.0%, and 132 of 188 decision points are deferred.

    Assumption violations and real services

    • Snapshot applicability: In Table 20's asynchronous idempotency, execute-and-check has 20/30 harm, WITNESS 0/30; in the synchronous setting both are 0/30. The authors map this to whether in-flight writes are distinguished by the snapshot.
    • Replicas and evidence invalidation: In Table 15, when replicas are deduplicated and report the same version, harm is 71/200 (35.5%); when versions differ or the recipient is missing, harm is 0 in both cases, but refusal rates are 50.0% and 49.0% respectively.
    • Races and probe errors: In Table 18, without version checking there are 14/176 duplicate payments, WITNESS 0/177. In Table 19, with optimistic corruption and nominal p=1, idempotency harm is 41/90, and conservative corruption is 0 at all levels.
    • Stripe: In Table 3's Executed state, no-defense harm is 82%, WITNESS 0; in the Lost state, WITNESS safely completes 93%, Never Retry 0%. Retrying after reading the search index still has 78% harm, while reading the payment list is 0%.
    • GitLab: In Table 22, no-defense harm on the three properties is 35/100, 89/99, 98/98, and WITNESS is 0/100, 0/98, 0/99 respectively. The median production pause across 914 audits in the main run is 17.3 seconds.

    Other ablations and analyses

    • AppWorld idempotency: In Table 13, no defense 43/100, text rewriting 49/133, WITNESS 0/138; completion rates are 8.0%, 9.8%, 32.6% respectively.
    • AppWorld visibility exception: Four models with five episodes each, all conditions have 0/20 harm; 186 of 188 payment calls explicitly pass private=True.
    • Indistinguishable probe: In Table 14, the single-call probe has 0/200 harm, 44.0% refusal, 60.5% completion; of 127 timeouts, all 88 retry attempts are refused.
    • Property selection: In Table 17, the proportion of models missing the relevant property under correct and poisoned descriptions is 39/600 (6.5%) and 429/600 (71.5%).
    • Automatic identity key: In Table 26, 490 episodes have 0 harm, 55.1% completion; the handwritten key control is 0/100 harm, 62.5% completion.
    • Isolation checks: Of 6,280 probes, 1,000 network isolation spot checks all have 0 outbound connections; ten GitLab audits capture 8,450 frames, with 0 outbound attempts in both replicas and production.
  5. What are some points that can be further explored?

    The authors bound the certificate's coverage and leave the probe synthesis problem open; the real-service experiments also involve task templates and pause costs.

    Limitations and future directions noted by the authors

    • Coverage is bounded: The Impact Statement states that the certificate covers only the effects observed by the audit family under isolation and fidelity assumptions, and deployers need to assess coverage.
    • Attribute scope: Section 5 explicitly writes that WITNESS certifies only modeled attributes, and authorization overreach and multi-tool interactions remain out of scope.
    • Probe automation: Section 5, after the automatic identity key experiment, writes "Automating probe synthesis remains open".
    • Independent replica requirement: Section 5 points out that if the same third party provides both the description and the sandbox, a silent fork leaves no runtime signal; deployment needs to run an independent replica, or fix a scope fingerprint covering all predicate dependencies.
    • Evidence freshness: Section 5 emphasizes that evidence must still be valid at submission; GitLab's unconditional-write implementation can only compress the race to a sub-millisecond window, while Stripe requires a 2-second wait.

    Experimental coverage

    • Models and tasks: The ten models in the main pool appear in the main tables, and another five models run only a subset; GitLab has ten tasks per attribute, Stripe uses a fixed template and ten customer-amount combinations, and Appendix E calls it a mechanism case study rather than a task-diversity study.
    • Real-service cost: In the GitLab main run of 914 audits, the median production pause was 17.3 seconds, and the median for full audit, clone, probe and teardown was 43.2 seconds.
    • Adaptive attack scope: The adaptive description is based on selection by a no-defense agent; Appendix E explicitly states that no experiments were run on descriptions selected against Judge Gate.
    • Probe error scale: Figure 5 and Table 19 use six models and three seeds; the remaining main tables mainly report episode counts and intervals, and the paper does not report the number of repeated runs for these main tables.
    • Baseline implementation: The prompts for Judge Gate and Capability Policy were written by the authors; Appendix E does not state the name of the second model used by Judge Gate and Emulator Check.
  6. Summarize the main content of the paper

    The paper gates tool submission on execution evidence and tests its boundaries with theory, fault injection and real services.

    This is a study of agent tool-call defense: when descriptions may be wrong or manipulated, WITNESS requires obtaining backend-relevant evidence before submission, rather than letting the agent or a reviewer model judge from text alone.

    • Method: Execute the proposed call on an isolated replica, or use an authenticated side-effect-free read; maintain a set of backend semantics consistent with the evidence, submit only candidates that satisfy the constraints under all remaining semantics, and verify evidence scope and version.
    • Theory: The authors use a two-point lower bound to characterize the information limits of description-based strategies, and use channel fibers to give the conditions under which a single snapshot, runtime reads, or a wait upper bound apply; the guarantee assumes initial coverage, isolation fidelity, and valid scope.
    • AgentDojo main results: In Table 1, WITNESS's ten-model aggregate harm rate is 0.0% for idempotency, atomicity, read-only, and visibility; text rewriting remains 100.0% on the latter two.
    • Utility and description changes: In Table 7, the idempotency completion rate is 62.5%, versus 62.1% with no defense; in Table 8, no-defense idempotency is 58.3% under adaptive descriptions, versus 0 for WITNESS.
    • Real environments: In the Stripe Executed state, WITNESS has 0/200 duplicate charges, and safely completes 93% in the Lost state; for GitLab, the three properties are 0/100, 0/98, and 0/99 harmful submissions respectively.
    • Boundary evidence: When replicas deduplicate and versions are not distinguished, 71/200 harm occurs; in a race experiment without version checks, 14/176 duplicate payments occur, versus 0/177 for WITNESS.
    • Authors' conclusion: Reliable submission requires a backend-dependent channel, and trust thereby shifts to replica fidelity and the deployment-fixed admissibility predicate; the certificate does not cover unmodeled properties, and automatic probe synthesis remains future work.

Research lineage

4 foundations · 0 follow-ups in library
Explore in knowledge graph →

Hover or focus a connected paper to inspect the citation context.

Related papers

Show 3 more papers
Read originalarxiv.org