Preprint
Article

This version is not peer-reviewed.

Tool Contracts and Output Defenses Under Agent Faults: A Pre-Registered Replication and τ²-Bench Extension

Submitted:

18 November 2026

Posted:

19 November 2026

You are already at the latest version

Abstract
LLM agents act through tools, and tools fail. A write can succeed while its reply is lost, and a tool result can contain text that tries to redirect the agent. Earlier sandbox studies found that agents avoid duplicate writes when they can look up the outcome, and that the tool's retry rules matter more when they cannot. I test these findings in a pre-registered study (OSF: https://osf.io/fe67v) in a 30-task simulated support store with bursty faults and, through a fault-injection plug-in, on the public τ²-bench benchmark. At 20% faults in the support store, idempotency keys added by the harness raised task success over retries alone by 9–19 percentage points across four models. On τ²-bench, the keys produced no detectable gain for any of the four models: the Claude models never repeated a write there, and the open-weight models rarely did. For prompt injection, Sonnet 5.5 followed none of 280 undefended attacks. Detectors that withheld a flagged tool output cut legitimate task completion under attack to 14–41% with no observed security benefit, while redacting only the flagged passage kept it at 100%. When attacks were placed in tool error messages, which the harness passed on unfiltered, Sonnet 5.5 carried out none of them; with no defense, it still completed 11 points fewer legitimate tasks than with ordinary error messages. On Gemma 4, which followed 38–61% of attacks with no defense, an LLM-judge detector had zero observed successful attacks both when withholding and when redacting, while task completion was 14% with withholding and 100% with redaction. When the attack shared a paragraph with the customer's request, redaction kept 49%. The environment, plug-in and redacted traces are available at https://github.com/ankitgoelcmu/faultline-agent.
Keywords: 
;  ;  ;  ;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.