The law asks for a log. It does not ask for a secure one.
Article 12 of the AI Act, on record-keeping, runs to three paragraphs. Paragraph 1 sets the general rule:
High-risk AI systems shall technically allow for the automatic recording of events (logs) over the lifetime of the system.AI Act, Article 12(1)
Paragraph 2 states the purpose of these logs: identifying situations that may present a risk, facilitating post-market monitoring and letting the deployer monitor the operation of the system. Paragraph 3 sets a minimum content for one specific category of systems, namely the remote biometric identification systems referred to in Annex III, point 1(a). Article 19 sets the retention period for providers, and Article 26(6) sets it for deployers: six months at least, to the extent the logs are under their control.
These provisions contain no term about cryptographic integrity, resistance to forgery or immutability. The regulation requires that the log exist, that it serve risk monitoring and that it be kept. It leaves it to the provider and the deployer to stop an operator or an attacker from rewriting it after an incident.
NIST states this requirement outright in its February 2026 framing document on agent identity:
How can we ensure that agents log their actions and intent in a tamper-proof and verifiable manner?NIST NCCoE, concept paper, February 2026, section Auditing and non-repudiation
A log is judged by its ability to resist its own author. A trace that its operator can rewrite without leaving a clue proves nothing to an auditor, a regulator or a judge.
How long must an agent's logs be kept?
The text answers in two places, and they address different people. Article 12(1) obliges the system to record. Article 26(6) obliges whoever operates it to keep:
Deployers of high-risk AI systems shall keep the logs automatically generated by that high-risk AI system to the extent such logs are under their control, for a period appropriate to the intended purpose of the high-risk AI system, of at least six months, unless provided otherwise in applicable Union or national lawAI Act, Article 26(6)
Six months is a floor, not a duration. The actual period must be "appropriate to the intended purpose" of the system, and the same paragraph reserves the applicable law, "in particular" that on the protection of personal data. An agent's log contains what the agent read, and so often personal data: retention is settled against the GDPR, not beside it. Financial institutions keep these logs within the documentation that Union financial services law requires.
Two practical consequences follow. The clause "to the extent such logs are under their control" makes control of the log a condition of the obligation: a log that only your provider can read escapes your retention without escaping your responsibility. And Article 12(2)(c) ties the recording to the operational monitoring provided for in Article 26(5): the log is there to monitor, not only to archive. These obligations target high-risk systems; their application to Annex III is set at December 2, 2027 by Regulation (EU) 2026/1744.
The log is also the central exhibit when an incident occurs: it is what you hand to the regulator, the insurer and the judge. The chapter on responding to an agent incident describes how this chain of decisions becomes the evidence file, and in what order to produce it.
Who the log must hold up against
An ordinary operations log protects against forgetting and technical failure. An evidentiary log answers a different threat model: the operator itself, or an attacker who has taken over its administrator privileges. This framework was formalized in 2009 by Scott Crosby and Dan Wallach in Efficient Data Structures for Tamper-Evident Logging (USENIX Security). Their abstract studies the case of an untrusted logger, kept honest by auditors able to challenge its proofs. The introduction names the adversary:
Malicious users, including insiders with high-level access and the ability to subvert the logging system, may want to perform unlogged activities or tamper with the recorded history. While tamper-resistance for such a system might be impossible, tamper-detection should be guaranteed in a strong fashion.Crosby and Wallach, Efficient Data Structures for Tamper-Evident Logging, USENIX Security 2009, section 1
The distinction is sharp. Nobody claims to physically prevent every rewrite on a server the administrator controls. The goal is to guarantee that any alteration becomes detectable by a verifier who does not trust the writer. For a software agent, this threat takes two forms: the attacker who compromises the agent or its host, and the operator who, after a disaster, would have an interest in changing the recorded timeline.
What does chaining prove, and what does it not?
The basic building block is the hash chain. Each entry incorporates the cryptographic hash of the previous entry. Crosby and Wallach write it as Ci = H(Ci-1 ‖ Xi). Any change to an old entry alters its hash, which invalidates the next hash and carries through to the end of the file. A verifier who recomputes the chain sees the break at once.
Linear chaining proves only one thing, however: the internal consistency of the entries presented, to someone who already holds a reference hash. Two limits follow from this construction.
- The author of the log can recompute the whole end of the chain. If the operator changes a past entry, nothing stops it from recomputing all the following hashes. The new chain becomes mathematically consistent again. The fraud shows only if a third party kept, outside, a hash from before the rewrite.
- The log can be split into competing branches. Crosby and Wallach describe the so-called forking attack: a dishonest logger restarts from an old point of the log, builds a second branch containing other events, and abandons the original branch. Two auditors, each receiving a hash from a different branch, detect the deception only if they compare their references.
The countermeasure rests on signed commitments. At regular intervals, or at each decision the system takes, the logger digitally signs the current state of the log, and the recipients keep that signature. Any later version of the log must extend the commitment already handed over, or the contradiction becomes provable. Crosby and Wallach formalize for this purpose the consistency proof between two commitments: the mathematical demonstration that a recent state extends an old state exactly, without rewriting or deleting a single event.
This mechanism underpins today's monitoring of TLS certificates on the Internet. RFC 9162 (Certificate Transparency, version 2.0) sums it up in one sentence: Merkle consistency proofs prove the append-only property of the tree. The log is structured as a Merkle tree, and any outside observer can require the operator to prove that today's tree faithfully extends yesterday's.
The signed receipt, or proof that travels
A complete log attests an entire timeline. In the practice of an inspection, an auditor, a customer or a court often seeks to verify one isolated fact: this specific action was evaluated by this system, on this date, and received this decision. That need calls for a standalone piece lighter than the full log: the signed receipt.
A signed receipt gathers the decision made, its timestamp, the identifier of the action and its position in the log, all covered by a digital signature. The choice of algorithm determines how simple the offline check is. The Ed25519 algorithm, standardized by RFC 8032, produces 32-byte public keys and 64-byte signatures. Its signatures are deterministic: the same message signed with the same key always produces the same sequence of bytes. Verification requires only the public key. It needs no access to the server that issued the receipt, no user account and no network connection.
For an audit, the consequence is direct. The auditor retrieves the receipt and the public key passed through a separate channel. They run the verification on their own machine, without querying the operator's infrastructure. The leap of faith disappears in favor of two factual checks: the public key does belong to the declared issuer, and the matching private key has not been compromised.
A receipt that can be verified offline takes the proof out of the operator's hands and entrusts it to a public key and a reproducible calculation.
What an agent's log must contain to count as evidence
For an autonomous agent, the cryptographic integrity of the container is not enough. The content of each entry must also allow the causal chain of the action to be reconstructed. Three rules apply.
- Write before executing. The decision is entered in the log before the tool call leaves for the outside, never after. A log fed after execution can omit the very action that caused the incident. When the write conditions the departure of the action, the absence of an entry proves the action did not cross the barrier.
- Record the immediate cause. An agent's act can be interpreted only against the data that entered its context just before the decision. A trace that says sent file X to address Y without specifying after reading invoice Z does not let you decide between a legitimate request from the operator and a hostile instruction hidden in an attachment. The article on the AI Act details, to this end, the four fields essential to an evidentiary entry: the action the agent was about to execute, the content it had just read, the decision taken and the identity of whoever stopped it.
- Identify the person who validates. When a human operator authorizes an action held for approval, their identity appears in the matching entry, tied to the exact parameters they approved. NIST requires this link between the agent's action and the human authorization; human oversight loses all legal weight if it leaves no verifiable trace of what was put before the validator.
Finally, the log must remain under the direct control of the organization responsible for the agent. Article 26(6) of the AI Act prescribes keeping logs "under their control". Traces stored and signed at an external provider that holds the technical power to modify them do not meet the threat model Crosby and Wallach lay out. The architectural consequences of this requirement are detailed in the article on sovereignty.
What an auditor must be able to do alone
The golden rule of an integrity audit fits in one sentence: the inspector must not depend on the inspected entity to verify the documents. The auditor needs only three things.
- The signing public key, delivered through a channel independent of the audited system.
- The individual receipts or the log export, delivered as standard files.
- A verification program with public, inspectable rules, which recomputes the chain hashes, verifies the Ed25519 signatures and checks the continuity of the sequence numbers.
As soon as one of these operations requires logging into the operator's interface, the check goes back to being a declaration on one's honor. The article on auditing an agent lists in full the checks an external auditor must be able to carry out end to end.
SentinelOS writes every decision into an append-only chained log, together with what the agent had just read. Each decision produces an Ed25519-signed receipt, verifiable offline with the public key alone: your auditor runs their checks fully on their own.
A log the auditor can redo alone
- They make the action depend on the write. The decision is recorded in the log before any external call, and no action without a prior entry goes out on the network.
- They chain and sign the entries. Each event incorporates the hash of the previous one, and the state of the log is covered by signed commitments. Any later alteration becomes demonstrable against a signature already handed over.
- They isolate the signing key. The private key stays out of reach of the agents and of everyday administrators, while the public key is distributed through a separate channel.
- They archive the decision context. Each entry keeps the trace of the documents the agent read and of the origin of the request.
- They organize adversarial checks. Each quarter, someone outside the administration of the system checks a sample of receipts offline with the public key alone.
- They host their evidence within their own perimeter. The logs and signing keys stay in the exclusive custody of the company, on its infrastructure.
- They observe before filtering. A listening mode that logs and signs all calls without blocking them lets them test the chain of evidence before turning on any blocking in production.
SentinelOS judges every action of your agents before it leaves, holds the ones that matter for a person, and signs every decision. Installed on your premises.
Discover SentinelOSSources
- Regulation (EU) 2024/1689 (AI Act), Articles 12, 19 and 26. eur-lex.europa.eu
- NIST NCCoE, "Accelerating the Adoption of Software and AI Agent Identity and Authorization", concept paper (draft), February 2026. nccoe.nist.gov
- S. A. Crosby and D. S. Wallach, "Efficient Data Structures for Tamper-Evident Logging", USENIX Security '09. usenix.org
- IETF, RFC 9162, "Certificate Transparency Version 2.0", December 2021. rfc-editor.org
- IETF, RFC 8032, "Edwards-Curve Digital Signature Algorithm (EdDSA)". rfc-editor.org
