How FACET Builds Tamper-Evident AI Execution Logs
An AI audit log should not ask us to trust the component that wrote it.
That is the problem I keep returning to. A runtime can produce a beautiful JSON history after an agent acts, yet nothing in an ordinary list of events proves that an entry was not removed, reordered, or copied from another execution. Readable logs help operators. They are not, by themselves, evidence with identity.
FACET addresses this boundary with an Execution Artifact: a canonical record of guarded decisions whose events are joined by a cryptographic hash chain. The mechanism is deliberately small. It does not make the model deterministic, and it does not turn a host into a trusted machine. It gives one execution a verifiable shape.
A list records events; a chain records continuity
A guarded FACET operation produces a GuardDecision. The event identifies the operation, its effect class, execution mode, allow-or-deny result, matching policy rule, and a hash of the operation input. Sequence numbers begin at one and cannot contain gaps.
A plain event list can still be edited cleanly. A chain changes the question from “does this log look plausible?” to “does every transition recompute to the published head?”
The initial hash binds the execution context:
H0 = hash(
facet_version,
host_profile_id,
document_hash,
policy_hash,
policy_version,
profile,
mode
)
Hi = hash(previous_hash, event_i)
The final head commits to the seed and every event in order. Remove a denied tool call, swap two lens decisions, or transplant events into a run with another policy: recomputation produces a different head.
This is the concrete distinction I care about. An audit event should not float as an isolated statement. It should inherit the identity of the contract, policy semantics, host profile, execution mode, and all prior guarded decisions.
The seed is the real trust boundary
Hash chains are often explained as if linking events were enough. It is not. A perfectly intact chain can still describe the wrong execution if its seed omits a semantic dependency.
FACET seeds the chain with six kinds of identity:
| Field | What it prevents |
|---|---|
facet_version |
Replaying events under another language contract |
host_profile_id |
Hiding changes in host-defined behavior |
document_hash |
Detaching history from the resolved FACET source |
policy_hash + policy_version |
Reinterpreting the same policy bytes with different rules |
profile |
Confusing Core and Hypervisor guarantees |
mode |
Presenting an Exec run as a Pure run |
This complements FACET’s host-profile identity and semantic policy hash. Those mechanisms name dependencies. The provenance seed composes them into the identity of one decision history.
If any field changes, the chain starts somewhere else. That is not cryptographic decoration; it is dependency invalidation expressed as bytes.
Input hashes make decisions referential
A decision such as PaymentAPI.charge → allowed is incomplete. Allowed for which arguments? Under which interface spelling? Against which host profile and FACET version?
FACET therefore gives each guarded event an input_hash. For a tool call, the hashed object includes the interface, function, arguments, host profile, and FACET version. Lens calls bind the lens name and version, canonical input, positional and named arguments, and the same execution identities. Tool exposure and message emission have their own defined input objects.
The artifact need not publish every sensitive argument in clear text to make substitution detectable. A verifier with the expected canonical input can recompute the digest and compare it. The hash does not prove that the input was truthful, but it proves whether the supplied input is the one referenced by the decision.
This is why the Execution Artifact must remain separate from Canonical JSON. Canonical JSON freezes the provider-agnostic request context. The Execution Artifact freezes guarded runtime decisions. One is intent prepared for execution; the other is evidence produced around execution.
Denials belong in the history
Success-only logs create a dangerous blind spot. The denied operation often explains more than the allowed one: it reveals attempted scope, policy behavior, and whether the guard failed closed.
FACET requires a GuardDecision for every guarded attempt, including denials. A deterministic policy rejection and an undecidable guard failure remain different outcomes. The former means the policy evaluated and said no; the latter means the runtime lacked enough valid evidence to reach a safe decision.
Once chained, a denied event cannot be quietly removed without invalidating every subsequent hash. This gives recovery and audit tooling a stable fact: not merely that the final action did not happen, but that a particular operation was considered under a particular policy and rejected at a particular point in the sequence.
The chain therefore strengthens the two-artifact audit model: request identity explains what was prepared, while the execution chain explains how guarded authority evolved.
Verification should be boring
A verifier does not need an LLM. It needs canonical serialization, the expected seed fields, the ordered events, and SHA-256:
- Validate the artifact schema and gapless
seqvalues. - Recompute
H0from execution metadata. - Canonicalize each event with RFC 8785 rules.
- Fold every event into the previous hash.
- Compare the result with
provenance.hash_chain.head. - If an attestation exists, verify its signature against the out-of-band key identity.
That last step matters. An unsigned matching chain proves internal consistency, not origin. Anyone can create a new internally consistent history. FACET optionally allows an Ed25519 attestation over the final head, but key discovery remains a host responsibility. Verification therefore has two separate questions:
- Integrity: does this artifact recompute without mutation?
- Authenticity: did a trusted execution host sign this exact head?
Conflating them produces false confidence.
What the chain cannot prove
Tamper evidence is narrower than truth.
The chain cannot prove that a tool executed its claimed side effect, that the host classified an effect correctly, that a model response was correct, or that the machine was uncompromised while recording events. It also cannot recover omitted operations that occurred outside the guarded path. If a host bypasses the guard, no hash function repairs that architecture.
The mechanism works only when the runtime enforces three boundaries:
- every relevant operation passes through the guard;
- event inputs are canonicalized before hashing;
- the artifact head is exported or signed before an attacker can replace the entire artifact.
These are implementation obligations, not benefits conferred automatically by the format. The current FACET specification defines the artifact and chain semantics; this article makes no claim about independent implementation adoption or production performance.
Evidence should compose like execution
I do not want AI systems to produce more logs. I want them to produce evidence whose dependencies are explicit.
The FACET provenance chain is useful because it follows the architecture of the execution itself. A policy decision depends on a contract, a host profile, a mode, an input, and all decisions that came before it. The artifact preserves that dependency graph as a compact linear commitment.
That does not make probabilistic intelligence deterministic. It makes the boundary around its authority inspectable—and makes silent history edits detectable.