# Inspect a deploy receipt

Every successful `kix deploy` writes a receipt to the active Activation's
status. Read it when you need to establish what was deployed without access to
the machine that performed the deployment. To turn the same receipt into a
signed provenance document, see
[Attest a deployment from its cluster receipt](/docs/how-to/policy-ci-and-compliance/attest-a-deployment-from-its-cluster-receipt/).

## Read the active receipt

List the cluster's Activations. The captured output is the receipt from its
active record:

<Command expandable {...activeReceipt} />

The `kix.run/cluster` label limits the result to Activations for one Kix
cluster. List the Activations and inspect the active record's `status.receipt`
field:

<Command
  commands={[
    "kubectl get activations -l kix.run/cluster=how-to-application",
    "kubectl get activation <activation-name> -o yaml",
  ]}
/>

A deployment that finishes with failures marks its Activation as `Degraded`,
but still records a receipt under `status.receipt`.

If you are inspecting another Kubernetes context, add `--context` to the
kubectl command.

## Check the source and builder

The receipt records these top-level fields:

| Field | What to check |
| --- | --- |
| `cluster` | The Kix cluster name |
| `activationHash` | The identity of the deployed Activation |
| `deployedAt` | When the deployment completed |
| `source` | Flake reference, Git revision, lock-file digest, and dirty-tree state when available |
| `builder` | Kix version, Nix version, operating system, architecture, and Kix library input (`kixInput`, when `[versions]` is set in `kix.toml`) |
| `inputs` | Locked flake input revisions and NAR hashes |
| `images` | Sorted container image references found in the deployment |

If `source.dirty` is `true`, the recorded Git commit does not contain the
complete tree that was deployed. The `revision` field carries the corresponding
dirty suffix.

## Check the deployed images

Use the receipt's `images` list when you are tracing a running workload back
to its deployment. An image is recorded exactly as it appeared in the rendered manifests. A
reference containing `@sha256:...` identifies immutable image content; a tag
alone records only the tag requested by the deployment.

:::note[Explanation]
See [Why deploy inputs are committed](/docs/explanation/server-side-apply-and-drift/#why-deploy-inputs-are-committed)
for why Kix stores provenance in Activation status without storing rendered
manifests there.
:::

:::note[Reference]
See [Deploy receipt schema](/docs/reference/annotations-crds-and-receipts/#deploy-receipt-schema)
for the complete field definitions.
:::