Assignment attestation append¶
Before a node hands a run to the kernel it records what it checked: every artifact it verified, by reference and digest, and the policy it verified them under. That record is appended once per run, at the point the artifact integrity gate passes and before the kernel is reached, so a run the kernel executes always has an attestation, and a run that failed the gate never has one. This page covers when the append runs, the three writes it makes and their order, and how the attestation is named afterwards.
For the attestation's content and the audit spool's chain, see Audit attestation.
Where the append sits in a run¶
flowchart TB
G{{"Artifact integrity gate"}}
BLK["Assignment blocked<br/>ARTIFACT_INTEGRITY_FAILED,<br/>no attestation"]
subgraph AP["ATTESTATION APPEND"]
direction TB
S1["1 Serialize<br/>attestation envelope, attestation_id"]
S2["2 Store the body<br/>dependency_resolution object"]
S3["3 Append to the audit spool<br/>metadata, payload reference"]
S4["4 Count<br/>xratud.assignment.attestation.appended"]
S1 --> S2 --> S3 --> S4
end
K["Hand the run to the kernel"]
G -.->|"an artifact fails"| BLK
G -->|"every artifact verified"| S1
S4 --> K
The append sits between the gate and the kernel. A failure in any of its steps fails the run before the kernel is reached, so the kernel never runs work the node could not attest.
The three writes¶
- The envelope. The serializer builds an
attestationrecord of typedependency_resolutionwith the run's correlation fields and the attestation document: the policy digest, whether trust was required, the resolver snapshot, and each verified artifact's reference and digest. It is redacted, sequenced, and given itsattestation_id. See Observability trace layer. - The body. The payload store writes the envelope to your observability
bucket as a
dependency_resolutionobject namedattestation-<assignment_id>, under the node's workload identity. See Payload store runtime. - The spool record. The audit and attestation spool appends a record with
the
attestation_id, the type, the correlation fields, the workspace, and the object'spayload_ref,payload_digest,payload_size_bytesandpayload_content_type. It joins the spool's attestation hash chain.
The body is stored before the spool record is written, so every spool record
points at an object that exists. The metric counts attestations appended, by
type, and the spool's own counts are reported in the heartbeat as
audit_runtime.
Naming the attestation afterwards¶
The append returns the attestation_id, and the run's reports carry it, so the
control plane names the attestation for every run while the attestation itself
stays in your bucket. Anyone reading it back through a payload-access request
can check it against the spool record's digest, and the spool's chain shows
that no attestation was removed or altered after it was appended.
| To answer | Read |
|---|---|
| Which artifacts did this run execute? | The attestation's artifacts, by reference and digest |
| Under which policy were they checked? | Its policy_digest |
| Was trust verification required? | Its trust_required |
| Has the record been altered? | The object's digest against the spool record, and the spool chain |