arXiv:2609.01931cs.CRSep 2026

Manuscript Offprint

arXiv:2609.01931

Agent Flight Recorder: Tamper-Evident Audit Trails with On-Chain Anchoring for Long-Horizon Tool-Using Agents

Laurent Bindschaedler, Quentin Botha, Christoph Siebenbrunner

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

Laurent Bindschaedler*, Quentin Botha†, Christoph Siebenbrunner†

*Max Planck Institute for Software Systems

bindsch@mpi-sws.org

†Research Institute for Cryptoeconomics, Vienna University of Economics and Business

{quentin.botha, christoph.siebenbrunner}@wu.ac.at

Abstract—Long-horizon agents execute thousands of actions, resulting in sequential failures rather than isolated errors. When a coding agent deletes a production database or a prompt injection spreads across agents, the incident raises questions of causality, authority, and non-repudiable third-party verification.

The Agent Flight Recorder captures each agent action as a structured, canonically serialized event binding eight semantic fields from intent through execution to provenance. Hash chaining and Merkle batching provide tamper evidence and compact inclusion proofs. For cross-organizational disputes where no party's infrastructure qualifies as neutral ground, periodic on-chain anchoring of epoch roots lets any verifier with the disclosed payload and Merkle proof check the record independently, without pre-agreeing on a trusted intermediary. The on-chain footprint is minimal: each anchor stores a 32-byte epoch root and a back-pointer, and no event content touches the chain.

We evaluate the system across five cumulative ablation configurations on synthetic agent workloads. The full system adds ~48 µs median per-event latency and 512 bytes per event. L2 anchoring costs $2.30 per 100K events at 100-event epochs. The full integrity stack detects edit, delete, reorder, and fork tampering at 100% with zero false positives. Structured forensic queries achieve 1.0 precision on guardrail and delegation lookups where unstructured text search yields 0.013 and 0.077 respectively.

Index Terms—autonomous agents, audit trail, tamper evidence, blockchain anchoring, Merkle tree, flight recorder, prompt injection forensics, agent safety

I. INTRODUCTION

Long-horizon tool-using agents now operate as autonomous software operators, executing thousands of tool calls over hours or days [1]. They read documents, call APIs, mutate databases, and delegate tasks to other agents. The dominant failure mode is a wrong sequence of actions, not a wrong answer: a destructive command that ran in production [2], a prompt injection that propagated across agents [3], or an unauthorized privilege escalation [4]. These failures create operational and legal questions that demand verifiable answers.

Current agent observability stacks (OpenTelemetry spans, vendor dashboards like LangSmith and Langfuse, framework callback logs) help cooperative operators debug failures. They assume mutable internal logs and a single party that both produces and consumes telemetry. They do not provide tamper-evident, externally verifiable records suitable for disputes where the operator itself may be compromised or incentivized to rewrite history.

The Agent Flight Recorder closes this gap with a tamper-evident audit architecture built around an agent-semantic event schema. Each event binds intent, policy evaluation, human approval, execution, effects, context provenance, code provenance, and delegation provenance into a single canonically serialized record. Hash chaining provides per-event ordering and tamper evidence. Merkle batching enables compact inclusion proofs. On-chain anchoring of epoch roots provides a public commitment: any third party holding the disclosed payload and Merkle proof can verify the record independently, with no trust in the operator, no pre-agreed intermediary, and no challenge window.

We evaluate the system across five ablation configurations (Baseline through Full) on synthetic workloads and real SWE-agent [5] traces from SWE-bench, deploying the anchoring contract to Base Sepolia and measuring gas from 100 on-chain transactions. We measure per-event latency, storage overhead, tamper detection rates for four attack classes, and forensic query effectiveness on three incident-response scenarios.

The full system adds 48 µs median latency per event, detects edit, delete, and reorder attacks at 100% with zero false positives, and anchors 100K events on an L2 for $2.30. On-chain anchoring is the only evaluated configuration that enables neutral third-party verification without a pre-agreed intermediary.

This paper makes three contributions: 1) An agent-semantic event schema and tamper-evident audit architecture binding intent through execution into canonically serialized, hash-chained entries with Merkle batching and on-chain anchoring for cross-organizational dispute resolution (Section III); 2) A trust-model analysis comparing five anchoring mechanisms and identifying when on-chain anchoring provides unique value over signed digests, transparency logs, and timestamping authorities (Section IV); and 3) An empirical evaluation across five ablation configurations measuring overhead (including validation on real SWE-agent traces), tamper detection, on-chain anchoring cost (measured on Base Sepolia), and forensic query effectiveness (Section VI). The cryptographic primitives are standard. We integrate them into an agent-semantic system that produces an evidentiary settlement architecture, not an observability tool, separating this work from prior tamper-evident logging systems.

References (29)