Auditable Agents

Yi Nian, Aojie Yuan, Haiyue Zhang, Jiate Li, Xiyang Hu, Hua Wei, Xiongye Xiao, Chaowei Xiao, Yue ZhaoarXiv 2026

TL;DR

As LLM agents transition from text generators to active systems that execute code, call APIs, and modify databases, pre-deployment alignment is no longer enough to guarantee safety. This paper introduces a formal five-dimensional framework for agent auditability, demonstrating that post-deployment accountability requires a combination of pre-deployment detection, runtime enforcement, and post-hoc recovery mechanisms. The authors propose an "Auditability Card" to standardize how agent systems report their capacity to produce trustworthy, policy-checkable evidence.

What Problem Does This Paper Address?

Current LLM safety research heavily prioritizes alignment and pre-deployment evaluation (e.g., guardrails, red-teaming). However, when an enterprise agent system fails in production—such as accidentally leaking sensitive data via email or executing an unauthorized database query—these methods cannot answer critical post-deployment questions: What exactly happened? Did the system comply with policy? Who or what component was responsible?

The authors argue that no agent system can be truly accountable without being auditable. Currently, most deployed agent systems are "audit-blind": logs are incomplete, execution contexts (like retries and handoffs) are lost, and records are vulnerable to silent modification. This paper establishes the system-level properties required to make an agent's real-world actions answerable.

Methods

The paper approaches auditability from a systems engineering perspective, defining a Five-Dimensional Auditability Framework:

  1. Action Recoverability: Ensuring policy-relevant actions are logged with sufficient fidelity.
  2. Lifecycle Coverage: Recording the full execution context (phases like retries, approvals, and delegations).
  3. Policy Checkability: Ensuring logs contain enough structured information to mechanically determine compliance.
  4. Responsibility Attribution: Tracing actions through multi-agent delegation chains back to the originating principal.
  5. Evidence Integrity: Protecting logs against tampering using cryptographic methods (e.g., digital signatures, hash-chaining).
Figure 1: The auditability framework. An agent system’s actions must be answerable after deployment. Auditability requires five dimensions (center), each corresponding to a necessary condition for a defensible audit verdict (Eq. 1). Evidence Integrity is foundational; Action Recoverability and Lifecycle Coverage jointly enable Policy Checkability; Responsibility Attribution is independently necessary. Three mechanism classes (bottom), i.e., detect, enforce, recover, operating at successive temporal vantage points realize these dimensions in practice. No single mechanism class suffices (Table 2).

The authors show that satisfying these dimensions requires three distinct mechanism classes operating across the system lifecycle:

  • Detect (Pre-deployment): Static analysis tools (like agent-audit) that inspect code and configurations to flag structural auditability gaps.
  • Enforce (Runtime): Interception layers (like the Aegis firewall) that evaluate live actions against policy, gate execution, and emit signed, tamper-evident records.
  • Recover (Post-hoc): Techniques (like Implicit Execution Tracing) that reconstruct behavior and attribute tokens to specific agents even when explicit metadata or logs are missing or redacted.
Figure 2: Information-and-intervention asymmetry across the three mechanism classes. Each box details what the class can observe (Sees) and what lies beyond its reach (Cannot), explaining why no single temporal vantage point can satisfy all five auditability dimensions (Table 2). Figure 1 introduces the classes at a high level; this figure unpacks their operational constraints.

Datasets

Rather than introducing a single new benchmark dataset, the paper evaluates its position using three distinct empirical layers:

  1. Ecosystem Scan: A static security scan of 6 prominent open-source agent repositories: OpenHands, Generative Agents, SWE-agent, Gorilla, MLAgentBench, and CodeAct, alongside a platform-level scan of OpenClaw.
  2. Runtime Evaluation: A dataset of 48 curated attack instances spanning 7 OWASP categories and 500 benign tool calls evaluated across 14 agent frameworks.
  3. Recovery Experiments: Evaluation of multi-agent topologies (chain, star, tree) consisting of 4–6 agents under various log degradation conditions (identity removal, boundary corruption, redaction).

Key Insights and Ideas

  • The "Undecidable" Log State: A single missing field in a log schema doesn't just make a detail unknown; it can render an entire class of structural policies completely undecidable ($\bot$), regardless of how many total gigabytes of logs are collected.
  • Asymmetry of Vantage Points: No single tool can solve auditability. Pre-deployment tools can't see realized behavior; runtime tools can't access logs once they leave the system boundary; post-hoc recovery cannot retroactively secure log integrity. Robust auditability requires all three.
  • Accountability is a Derived Property: Accountability is not a standalone feature or a "sixth dimension"—it is an emergent property that only exists when all five core dimensions of auditability are simultaneously satisfied.

Key Results

  • Widespread Ecosystem Gaps: The static scan of 6 major open-source agent projects uncovered 617 security findings (44% classified as critical severity), with Tool Misuse dominating at 64% of all findings, proving that current public defaults are fundamentally audit-blind.
  • Low-Overhead Enforcement: The Aegis pre-execution firewall successfully blocked 48/48 curated attacks with a tiny 8.3 ms median overhead per interception, proving that generating tamper-evident, signed records at runtime is highly practical.
  • Resilient Post-Hoc Recovery: Using Implicit Execution Tracing (IET) via watermarking, the authors demonstrated that even when all explicit agent identifiers and turn boundaries are completely stripped, they could achieve a 0.95 token attribution accuracy and a 0.93 segment overlap (IoU) to reconstruct what happened.

Limitations and Future Work

  • Tool Provenance: All three evaluation blocks rely on tools developed by the authors (agent-audit, Aegis, and IET), highlighting the need for independent replication and external tool development.
  • Structural vs. Semantic Policies: The current framework and metrics are strictly limited to structural, machine-checkable policies (e.g., "Tool X requires approval"). Extending auditability to rich, context-dependent semantic policies (e.g., "Do not disclose customer-identifying information") remains an open challenge.
  • Privacy vs. Auditing Tension: High-fidelity auditing naturally requires capturing detailed execution context, which can directly conflict with data-minimization principles (like GDPR). Reconciling these two opposing forces via privacy-preserving mechanisms is left to future work.

Summary updated

BibTeX
@misc{nian2026auditable,
  author = {Yi Nian and Aojie Yuan and Haiyue Zhang and Jiate Li and Li Li and Xiyang Hu and Hua Wei and Xiongye Xiao and Chaowei Xiao and Yue Zhao},
  title = {{Auditable Agents}},
  year = {2026},
  eprint = {2604.05485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.05485},
}
Figure