Request vs Execution Artifacts in AI Audits
An AI audit needs two artifacts, because intent and execution are not the same fact.
A compiled request can prove which messages, tools, policy, budget, and provider target the system prepared. It cannot prove that a tool was called, that the runtime guard allowed it, or that no decision disappeared from the history. An execution log can record activity, but without a stable compiled request it cannot prove which contract and policy the run was supposed to obey.
FACET v2.1.3 keeps these records separate. Canonical JSON is the provider-independent request artifact. The Execution Artifact is the provenance record for guarded operations. I think this separation is one of the most important details in the specification: it prevents an audit trail from becoming a bag of events with no stable program identity.
The first artifact freezes intent
Canonical JSON sits after resolution, type checking, reactive computation, and Token Box layout, but before a provider adapter. It contains three ordered areas: metadata, tools, and messages.
Its metadata binds the request to facts such as:
- FACET version, profile, and execution mode;
- host profile and target provider;
- resolved document hash;
- effective policy hash and policy semantics version;
- effective budget in FACET Units.
This artifact answers a precise question:
What provider-independent request context did the contract layer produce?
That makes it useful for snapshot comparison, cache identity, adapter testing, and replay. I described the byte-level role in Canonical JSON as an AI intermediate representation. The key boundary is semantic: Canonical JSON records the compiled request, not everything that later happened while executing it.
Suppose it exposes Payments.refund, includes a user request, and carries a policy hash. Those facts do not prove that Payments.refund ran. They do not prove which rule allowed or denied the call. They prove that a particular request context existed under a particular policy identity.
Trying to insert runtime history into the same object would destroy that clean meaning. The request artifact would become mutable as events arrived. Its hash would stop identifying the input to execution and start identifying an arbitrary observation point during execution.
The second artifact freezes guarded decisions
FACET's Execution Artifact answers the next question:
Which guarded operations were considered, and what did the policy guard decide?
For Hypervisor run and test environments, the specification defines an artifact with metadata, an ordered provenance event list, a hash-chain head, and an optional attestation envelope. Each GuardDecision event records:
{
"seq": 3,
"op": "tool_call",
"name": "Payments.refund",
"effect_class": "payment",
"mode": "exec",
"decision": "denied",
"policy_rule_id": "deny_unapproved_refunds",
"input_hash": "sha256:..."
}
The event does not need to expose the full payment arguments to prove their identity. It binds the decision to a canonical input hash. It also names the first matching policy rule, preserving the reason the deterministic guard reached its result.
The standard covers four operation kinds: tool_call, lens_call, tool_expose, and message_emit. Not every host must guard optional exposure and message operations, but when it does, those decisions belong in the same ordered record.
This is stronger than a conventional application log in one narrow way: the record has a normative shape and a cryptographic continuity rule. It is still not magic evidence. The host must capture events correctly, protect keys if it signs attestations, and retain artifacts reliably.
The join is explicit
Two artifacts are useful only if an auditor can prove they belong to the same execution contract. FACET makes that join explicit through shared metadata:
| Join field | What it binds |
|---|---|
document_hash |
the normalized, resolved FACET source |
policy_hash |
the effective merged policy plus its semantics version |
policy_version |
the interpretation rules used by the guard |
host_profile_id |
host behavior that affects execution |
profile / mode |
the declared conformance and execution boundaries |
The Execution Artifact's hash chain starts from these identities. Its seed includes the FACET version, host profile, document hash, policy hash, policy version, profile, and mode. Every event then extends the chain from the previous digest.
H0 = hash(execution configuration)
H1 = hash(H0 + event 1)
H2 = hash(H1 + event 2)
...
Hn = chain head
This construction gives the event sequence a configuration-bound identity. Removing, reordering, or changing an event changes the head. Reusing the same events under another policy version or execution mode also changes the seed and therefore the head.
That is the concrete novelty: provenance is not attached to a run by a loose correlation ID. It is cryptographically rooted in the compiled contract identity.
What each failure looks like
The two-artifact model makes audit failures easier to classify.
Canonical JSON exists, Execution Artifact is missing
The system can prove what it prepared, but not which guarded operations were evaluated. This may be acceptable for a compile-only Core workflow. It is insufficient for a claim about executed side effects in a Hypervisor run.
Execution Artifact exists, Canonical JSON is missing
The system has decisions without a durable request context. Event names and input hashes may still be useful, but the auditor cannot reconstruct the full tools/messages artifact or independently verify its document and policy bindings.
Both exist, shared hashes disagree
The artifacts belong to different configurations, or one was corrupted or substituted. The correct response is rejection, not “best effort” correlation by timestamp.
Both agree, chain verification fails
The event history is incomplete, reordered, or modified—or the verifier and producer disagree about canonicalization. The runtime outcome may be real, but the provenance claim is not established.
Both verify, but the host lied
Cryptography cannot make a dishonest or compromised event source truthful. An attestation can identify the signer; it does not prove the implementation captured reality. Conformance tests, trusted execution boundaries, retention controls, and independent observation remain necessary.
This last limit matters. A tamper-evident record is not a truth oracle. It makes tampering detectable under stated assumptions.
A practical verification pipeline
I would make the audit command deterministic and boring:
1. Canonicalize and hash the stored request artifact.
2. Verify document_hash, policy_hash, and policy_version.
3. Recompute the Execution Artifact seed from shared metadata.
4. Recompute every GuardDecision link in seq order.
5. Compare the resulting head with provenance.hash_chain.head.
6. Verify the optional attestation against the expected host identity.
7. Apply a completeness policy for required operation kinds.
The final step cannot be inferred from the chain alone. If the host is required to guard every tool call, the verifier needs conformance evidence that tool calls cannot bypass event emission. A perfectly valid chain over three events does not prove that a fourth event was never omitted before the chain was built.
This connects naturally to FACET Policy as executable authorization: authorization must happen before external initiation, while the artifact records the resulting decision. It also differs from general provenance closure, which asks whether material claims reach admissible evidence. Here the narrower concern is whether guarded runtime decisions are bound to one compiled contract and preserved in order.
The boundary is the design
Many agent platforms emit one large trace and call it an audit trail. That is convenient until someone asks whether a field describes intended configuration, observed execution, provider response, or a later annotation.
I prefer artifacts with one job each.
Canonical JSON says: this is the request contract we compiled.
The Execution Artifact says: these are the guarded decisions made under that contract.
Joined by shared hashes and a configuration-seeded chain, they produce a much stronger statement than either record alone. They still do not prove model truth, business correctness, or host honesty. They prove something narrower and operationally valuable: the runtime history presented for audit is bound to a specific compiled request and policy interpretation.
Reliable AI systems will not be audited by replaying a chat transcript and trusting timestamps. They will be audited through typed artifacts whose identities compose.
Sources
- FACET v2.1.3 specification, Appendix F: Execution Artifact
- FACET Canonical JSON model
- FACET reference compiler guard-decision merge
- FACET reference compiler hash-chain seed
For the complementary part of this workflow, see How FACET Builds Tamper-Evident AI Execution Logs.