Show, Don't Tell: Making Execution Evidence a Prerequisite for Tool Use

Chuanqi ShiarXiv 2026

TL;DR

When an AI agent pays an invoice or merges a pull request, it relies on the tool’s text description to know if a retry will double-charge or if a "preview" actually mutates data. If that prose is wrong, no amount of clever prompting can save the agent—it’s an information-theoretic dead end. WITNESS solves this by running proposed actions on an isolated replica first and blocking any real-world commit unless the execution evidence proves it safe under every possible backend behavior.

What Problem Does This Paper Address?

Language-model agents increasingly act in the real world through tool protocols (like the Model Context Protocol) where tool providers supply both the callable schema and a natural-language description of what the tool does. Safety often hinges on hidden backend facts: Does a timed-out payment retry deduplicate? Does a failed batch roll back? Is a "dry-run" truly read-only? Does a message stay private?

Current safeguards—whether they ask a second LLM to judge risk, simulate effects in prose, or enforce control-flow rules—all assume the tool's description is telling the truth. The authors show this is a fundamental information deficit: if two backends (one safe, one harmful) share the exact same schema and description, any guard that only reads text cannot tell them apart. Even worse, running an audit and handing the true outcome back to the agent as text fails whenever harm happens on the very first call (like a "preview" that immediately transfers money), because the damage is already done before the agent reads the warning.

Methods

The authors introduce WITNESS, a commit-time gate that makes execution evidence a prerequisite for action:

  1. Version-Space Certification: Instead of trusting prose, WITNESS maintains a version space of all backend behaviors consistent with the tool's schema and observed audit outcomes. Using Wald's maximin criterion, it only allows an action to commit if it is admissible under every surviving backend assignment.
  2. Isolated Auditing: When an action is unresolved, WITNESS runs an audit query—either executing the call on an isolated replica (e.g., a database snapshot) or performing a certified effect-free production read.
  3. Scope Validity: To prevent time-of-check to time-of-use races, WITNESS conditions the final commit on the exact scope version captured during auditing (analogous to a compare-and-swap).
Figure 2. Version-space certification. The region shows backend semantics consistent with the tool schema; green and red mark admissible and harmful assignments, and the dot is the true backend. (a) Before any witness, the set overlaps both regions and the action is unresolved. (b) An uninformative witness rules out incompatible assignments but leaves harmful ones inside the surviving set, so the gate defers. (c) A sufficient witness rules out all harmful assignments and certifies commitment.

Crucially, WITNESS's certification logic never reads the tool's description. An adversarial description can trick the agent into proposing a bad action (forcing the gate to defer), but it can never trick the gate into committing harm.

Datasets

The authors evaluate WITNESS across 10 language models (plus 5 additional models on subsets) in four environments:

  • AgentDojo (banking, Slack, and workspace suites): Simulated backends testing four false safety claims—idempotency, atomicity, read-only execution, and visibility.
  • AppWorld: Agents writing Python against database-backed apps, where probes copy the databases.
  • GitLab (via TheAgentCompany): An unmodified live GitLab instance running in a micro-VM, with an isolated second VM restored from a snapshot as the replica.
  • Stripe Test API: A live production payment API in test mode, using isolated test customers as the replica.

Key Insights and Ideas

  • Textual guards hit a hard wall: Using Le Cam's two-point bound, the paper proves that description-only defenses cannot reliably separate safe and harmful backends. Across 11 existing defenses (including AgentDojo's built-in guards), every single one leaves at least a third of harm on some property.
  • Informing the agent isn't enough: Injecting ground-truth audit results into the agent's context cuts retry harm, but leaves 100% of first-call harm (read-only and visibility violations) intact. Evidence must gate the commit, not just inform the model.
Figure 1. Execution evidence delivered as text or enforced. The runtime runs the same audit in every condition: Note appends the outcome to the description, Rewrite replaces the false claim as text, Enforced blocks uncertified commits, and WITNESS both rewrites and enforces. Ten models; 84–200 episodes/bar; Wilson 95% CIs.
  • One snapshot isn't always enough: If a timed-out write is still in flight, a snapshot won't show it. WITNESS's channel-fiber analysis pinpoints when a single snapshot suffices versus when the gate must wait (e.g., a 2-second bound on Stripe) and perform a read-after-write consistent lookup.

Key Results

  • Zero Harm: Across all 10 models and all four environments, WITNESS commits 0% harmful calls.
  • Preserved Utility: Task completion matches or beats undefended agents—for example, 62.5% vs. 62.1% on idempotency, 56.4% vs. 0% on read-only tasks (where blocking the premature transfer rescues the task), and 99.1% vs. 100% on visibility.
  • Live Services: On Stripe's test API, undefended agents double-charge in 82% of episodes; WITNESS charges once in all 200 episodes while completing 93% of tasks when the first call is lost (compared to 0% for never retrying). On GitLab, WITNESS commits 0 harmful calls across 595 gated episodes and lifts visibility task completion from 8.2% to 56.6%.

Limitations and Future Work

WITNESS only certifies properties explicitly modeled by its audit family; authorization overreach and complex multi-tool interactions remain out of scope. It also relies on faithful, isolated replicas and valid scope at commit time—without conditional writes, services like GitLab still have a tiny (0.16 ms) race window between a pre-commit re-read and the commit itself. Finally, while the authors show an LLM (gpt-5.4-mini) can automatically infer identity keys for 16 write tools, fully automating probe synthesis remains an open problem.

Summary updated

BibTeX
@misc{shi2026show,
  author = {Chuanqi Shi},
  title = {{Show, Don't Tell: Making Execution Evidence a Prerequisite for Tool Use}},
  year = {2026},
  eprint = {2612.01175},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.01175},
}
Figure