Signed receipts
A finished native dashboard turn or loadout run can produce a receipt: a small statement of what the run did and what the host observed, signed with an Ed25519 key that lives in this computer’s data directory. You can hand the receipt to someone who did not watch the run, such as a reviewer of the pull request Keep as PR opens, and they can check its signature offline against a key they already trust. They still have to trust that key’s operator for the facts the daemon recorded.
The receipt identifies when its file hashes were captured and any coverage limits.
Some receipts or individual paths use files read at finish rather than the tree the
checks ran on; inspect files.source and files.read_at_finish as described below.
A run refused before admission has no receipt. When loadout signing fails, the outcome reports
receipt_unavailable; a passing run alone does not establish that a receipt exists.
For a native dashboard turn, the Signed receipt card below the finished turn
and in History → Signed receipt offers Download signed receipt. Choosing
Download signs retained terminal turn evidence, including its exact revision; it never hashes your current checkout
at download time. An open turn has no receipt yet. Once the turn completes, is
stopped or is explicitly finished, its receipt preserves that outcome, including
failed checks or review. A signed receipt is not necessarily an approval. A signing
or storage failure is shown as unavailable rather than as success.
Dashboard receipts identify native_turn instead of loadout. Their checks and
review reflect the requirements you applied in Team & budget. Without those
requirements, a receipt does not invent a test pass or reviewer approval. Missing
capture hashes remain explicitly incomplete rather than reading later file contents.
Fields not retained for the turn, such as historical sandbox policy, are identified
in native_turn.limitations; an absent field is not a claim of zero activity.
Verify the receipt and its covered files before relying on it.
What it is
Section titled “What it is”A receipt is an in-toto Statement v1
with the predicate type https://axocoatl.ai/receipt/v1, inside a
DSSE envelope
(application/vnd.dsse.envelope.v1+json) whose one signature is Ed25519 over DSSE’s
pre-authentication encoding of the statement’s exact bytes.
- Subjects: each file the run changed that exists after it, with the SHA-256 of its content (for a symbolic link, of its target), sorted by path.
- Predicate:
run: run and Session ids, start and finish times, the Axocoatl version that signed, and the SHA-256 of the task (the task itself is in the run’s record);repository: the commit the run started from, the paths that had uncommitted changes then, and theoriginremote ashttps://host/pathwithout credentials (absent when there is none or it is a local path);loadout: id, version, kind, digest, built-in or yours, for loadout runs;native_turn: the exact turn, turn revision, graph revision and digest of retained evidence, for dashboard turns;agents: each Agent’s id, role, runtime (native,claude-code,codex), itsprogram_version(the pinned version of an external writer; for a native Agent the Ollama that served its calls,ollama 0.40.6, or the OpenRouter endpoints that answered them in the order they first answered,openrouter endpoint deepinfra/fp8 (DeepInfra)), provider and model, and the name (never the value) of the credential an external writer’s route sends;sandbox: the backend, the Session’s network (egressornone), thehardenedworkload, and the last network policy the Session’s record holds for each scope: its revision, digest, and the allowlist hosts and routes as the record renders them, and underrouteseach route’s id, host andprovider_fetch:refusewhen the route read every model-call body before it left and refused one that asked the provider to fetch a URL, search the web, connect to an MCP server or run a tool itself (Requests to model APIs),allowwhen the route sent bodies unread (provider_fetch: allow), and absent for a route to a host that is not a model API; and, in receipts since 1.5.0, underlimitsthe resource caps the Session’s container got (memory,cpus,pids) and, undernot_applied, each cap its host could not apply because rootless Podman lacks that cgroup controller (Sandboxes), whichaxocoatl receipt verifyprints;network: the Outcome’s network summary;checks: each required check’s name, state, exit code, timeout, command and the tree it ran on;review(model, theprogram_versionof a native reviewer as for an Agent, verdict, rounds, number of findings) andadjudications(each finding id and the writer’s decision);verdict,exit_code,attention,not_covered(count and areas) and the warning codes;usage: tokens and cost, with whether they are complete and whether the cost is known or computed;files: where the digests come from (below), the tree they were taken from, the paths the run removed, which subjects are symbolic links, which were read when the run finished instead, and whether every changed path is covered, with the reason for each that is not;signer: the algorithm, public key and key id, so a verifier can tell a valid signature by an unknown key from a broken one. Trust never comes from this field.
Native turn receipts use the same envelope but only include facts retained for that
turn. They omit historical sandbox settings, network totals, program versions and
the exact finish time. Their empty dirty_paths does not establish a clean starting
checkout, and a missing check timeout does not mean a zero timeout. Usage is an
incomplete activation subtotal, not a billing record. Read native_turn.limitations
with the fields above.
files.source says when the digests were taken:
files.source | The digests are the files |
|---|---|
judged_capture | as the required checks judged them: from the repository capture of the tree the checks ran on (the one candidate_sha256 their results name). |
after_capture | as the run’s last writer left them: from the After capture of the last activation that changed a file, when there is no judged tree (a loadout without checks, or checks that did not run on the final result). |
workspace_at_finish | as the host read them from the working tree when the run finished, without following symbolic links. The files could have changed between the checks and the finish; the receipt does not claim otherwise. |
Every repository capture records, whatever the repository’s size, the digest of each path
that differs from HEAD in the tree it captured (and its whole manifest too, in a
repository small enough, roughly 80 files). That record is bounded by the changed paths:
up to 10,000 of them, and only while the capture’s output, with its patch, stays within
768 KiB. A capture past that bound, or one made by a check group admitted with 1.3’s
capture command, records no digests. Loadout receipts can then use
workspace_at_finish; native turn receipts retain incomplete coverage instead.
A path the run changed back to what it is in HEAD is not in that record. A loadout
receipt can read its digest when the run finishes and name it under
files.read_at_finish, so a verifier knows it was not taken from the judged tree. A
native turn receipt cannot recover a missing digest this way; it reports incomplete
coverage.
A path the run changed inside Git’s own
directory, a path that is not a file or a link (a directory, a path under a symbolic
link) or a turn the host cannot attribute is named under files.unattributed, and
files.complete is then false.
What it proves, and what it does not
Section titled “What it proves, and what it does not”A receipt that verifies against a key you trust proves that:
- the holder of that key signed exactly these facts, unchanged since;
- a checkout whose files match the subjects (
--repo) has the content the run left, as the source above describes, and the paths the run removed are absent.
It does not prove that the change is correct, that the tests are good tests, or that the
review was right. The facts are what one Axocoatl daemon observed and recorded; the
signature says which daemon (which key), not that the person running it is honest about
their machine. A key copied from the data root signs as well as the original. Receipts
from runs that did not pass are signed too, and say so in verdict.
The signing key
Section titled “The signing key”Each data root has one Ed25519 key, made with ring the first time the daemon signs a
receipt (or when you run axocoatl receipt key, or open Settings → Loadouts →
Receipts). It is stored with the secret store as receipt-signing-key
({data root}/secrets/receipt-signing-key, 0600), never in a log, a record, an API
response, a container or a command line. The egress broker refuses to send it as a route
credential, whatever name or file a route uses for it.
Only the public half is shown, as one line for a trusted-keys file:
$ axocoatl receipt keyed25519 x0R3…= axocoatl@my-laptop 1a2b3c4d5e6f7a8bThe fields are the algorithm, the base64 public key, a comment and the first 16 hex
characters of the key id (sha256: + the SHA-256 of the raw public key). Run it with the
same --config and AXOCOATL_DATA_DIR as the daemon. Settings → Loadouts → Receipts →
Signing key shows the same line with a Copy button, as does
GET /api/receipts/key.
axocoatl receipt key --rotate replaces the key and prints the new line. Receipts the old
key signed still verify with the old line; keep it in a trusted-keys file as long as you
want those receipts accepted.
Downloading a dashboard turn’s receipt
Section titled “Downloading a dashboard turn’s receipt”Watch the receipt download from the actual 1.5.3 dashboard task, recorded in Dark mode.
- The completed turn
- Download the receipt
- Understand its coverage
- Inspect the source change
- Inspect the test change
- Keep the signed receipt
Watch the full dashboard task · Task and receipt verification
Choose Download signed receipt below the finished native turn, or open
History → Signed receipt for that turn. The download filename includes its turn
id. Keep that filename or rename it to turn.receipt.json for the command below.
Use an Axocoatl verifier that supports native turn receipts; releases through 1.5.1 require a loadout identity and cannot read this new provenance. Use the signing computer’s trusted public key, obtained separately from the receipt itself.
axocoatl receipt verify turn.receipt.json --key "$(axocoatl receipt key)" --repo .Run this in the repository whose files you are checking, using the daemon’s config
and data directory for receipt key. A key embedded in a downloaded receipt is not
a trusted key by itself. For another computer’s receipt, use a key line received
from its operator. Native turn receipts do not require a headless run’s record bundle.
Getting a loadout run’s receipt
Section titled “Getting a loadout run’s receipt”axocoatl run … --receipt run.receipt.jsonwrites it when the run finishes, whatever the verdict, like--junitand--record. A run that was never admitted has nothing to sign, and standard error says so.GET /api/runs/{run_id}/receiptserves it exactly as written, once the run has finished.- Download receipt in the Session’s Run outcome panel, which also shows the key that signed it and how many files it covers.
- The record bundle carries it as its last section.
- A pull request Keep as PR opens carries it at the end of its description.
The receipt is written just before the run’s Outcome, so a run that has finished has its
receipt settled. When it cannot be signed (the key cannot be read, say), the run gets the
warning receipt_unavailable with the reason; the verdict and the exit code are never
changed by it. When it does not cover every path the run changed (a change of more than
10,000 paths, say, whose captures do not list them), the run gets the warning
receipt_incomplete with why, and the receipt lists it among its own warnings: a passing
run’s receipt then proves less than what the run left, and the verdict and the exit code
are again unchanged.
Verifying a receipt
Section titled “Verifying a receipt”axocoatl receipt verify needs no daemon, no Podman and no network.
axocoatl receipt key > trusted-keys # this computer's key; add the lines of others you trustaxocoatl receipt verify run.receipt.json --keys trusted-keys --repo .For a loadout run, add --record run.axorecord.jsonl when you also have its record
bundle and want to check that bundle.
To check a receipt this computer signed, --key "$(axocoatl receipt key)" does the same
without a file:
axocoatl receipt verify run.receipt.json --key "$(axocoatl receipt key)" --repo .- It reads the receipt: a DSSE envelope, or text holding an
<!-- axocoatl-receipt:v1 … -->block, such as a saved pull request description;-reads standard input. Another payload type, statement type or predicate type is refused. - It checks the signature against each trusted key:
--key LINE(repeatable) and--keys FILE(one line per key asaxocoatl receipt keyprints it,#comments and blank lines allowed). The signer the receipt names must be the key that signed it. - With
--repo DIR, it hashes each covered path in that checkout, without following symbolic links, and checks that each removed path is absent; every difference is listed with its path. - With
--record BUNDLE, it verifies the bundle and checks that itsreceiptsection is this receipt, for the same run. - With
--require-pass, it fails a receipt whose run’s verdict is notpass(checks failed, needs attention, interrupted or error). Without it, such a receipt verifies like any other: it says truthfully what the run did, and its verdict is in the output.
| Exit code | Meaning |
|---|---|
| 0 | The signature is valid and by a trusted key, and the files and record match when asked |
| 1 | Not a receipt, or the signature does not verify (a changed byte of the statement, the signature or its type) |
| 2 | The signature is valid, but by a key you did not give as trusted, including when you gave none |
| 3 | Usage: a bad flag, a file that cannot be read, a key line that is not one |
| 4 | A covered file differs, a removed path exists, or the record does not verify or carry this receipt |
| 6 | With --require-pass: the receipt verifies, but its run’s verdict is not pass |
When several apply, the first of 1, 2, 4, 6 wins. --json prints the result as one JSON
document (exit_code, result, problems, signature, key_id, run_id, verdict,
statement_sha256, files with each mismatch, record); result is valid,
malformed, invalid, untrusted, mismatch, not-passed or usage.
axocoatl receipt show FILE prints what a receipt says in words (run, verdict, signer,
agents, checks, review, files, network policy) without verifying it, and says so;
--json prints the statement itself.
Keep as PR and receipts
Section titled “Keep as PR and receipts”When a run has a receipt, Keep as PR commits only what it
covers: each path it is about to commit must have the content the receipt gives it, and a
path the run removed must still be absent. A path edited after the checks judged it is
refused, naming the path. The commit carries the trailers Axocoatl-Run: <run id> and
Axocoatl-Receipt: sha256:<SHA-256 of the statement>, and the pull request description a
Receipt section (signer, verdict, checks, review, writer, files covered, how to
verify) and the receipt block at its end, which the description’s length limit never
cuts.
Checking pull requests in GitHub Actions
Section titled “Checking pull requests in GitHub Actions”The pinned examples below verify loadout run receipts using the older verifier selected by the action. They do not establish support for native dashboard receipts. To verify a native turn receipt in CI, use a current native-receipt-capable binary and the offline command above with a trusted key supplied by the base branch.
axocoatl/axocoatl/actions/verify-receipt is a composite action that checks the receipt a
pull request’s description carries, the way Keep as PR puts it there. Both are for GitHub
only: the action runs in GitHub Actions and reads the pull request through GitHub’s API,
and Keep as PR opens pull requests with gh. On GitLab,
Bitbucket or another host there is no such action, and Keep writes no description
there: axocoatl receipt verify (above), with --require-pass, checks the receipt file
the run wrote (--receipt, or Download receipt in the workbench), kept with the
merge request, in any CI job that can run it. Set the action up in this order, each step
through a pull request of its own:
-
Trust the computer that signs. On it, with the daemon’s
--configand data directory, add its key line to the keys file, and merge that file into the branch pull requests merge into (see Trusting a computer’s receipts):Terminal window mkdir -p .axocoatl && axocoatl receipt key >> .axocoatl/receipt-keysgit add .axocoatl/receipt-keys -
Add the workflow. This one checks every receipt a pull request carries and lets a pull request without one (from a person or Dependabot, or the pull request that adds the workflow) pass with a notice:
name: Axocoatl receipton:pull_request:types: [opened, edited, synchronize, reopened]permissions:contents: readpull-requests: readjobs:receipt:runs-on: ubuntu-24.04steps:- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0with:ref: ${{ github.event.pull_request.head.sha }}persist-credentials: false- uses: axocoatl/axocoatl/actions/verify-receipt@v1.4.0with:require-receipt: false
The strict variant is the same workflow file with two changes: the job runs only on
those branches, and require-receipt stays at its default, so such a pull request
without a valid receipt fails:
name: Axocoatl receipton: pull_request: types: [opened, edited, synchronize, reopened]permissions: contents: read pull-requests: readjobs: receipt: if: startsWith(github.head_ref, 'axocoatl/') runs-on: ubuntu-24.04 steps: - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 with: ref: ${{ github.event.pull_request.head.sha }} persist-credentials: false - uses: axocoatl/axocoatl/actions/verify-receipt@v1.4.0The action runs on Linux x86_64 and ARM64 runners and needs git, gh and jq, which
GitHub-hosted runners have. In order, it:
- installs the Axocoatl release named by
version(the archive for the runner,axocoatl-<version>-<target>.tar.gz), checks it against the release’s own.sha256file and, when given, thesha256input, and checks the version the binary reports; - reads the description from the event (
pull_requestorpull_request_target); a description without an<!-- axocoatl-receipt:v1 … -->block fails, or passes with a notice whenrequire-receiptisfalse; - requires the checkout to be the pull request’s head commit, with no local changes to
tracked files (
actions/checkoutchecks out a merge commit unless givenref); - reads the trusted keys from the base commit, never the head:
gh api repos/<repo>/contents/<keys-file>?ref=<base sha>. A pull request that adds its own key to the file still fails, because the base does not list it, and a base without the file trusts no key; - runs
axocoatl receipt verify - --keys <those keys> --repo <checkout> --json, so the signature, the signer and every covered file and removed path are checked as above; - lists the pull request’s changed files (
gh api …/pulls/<n>/files, every page) and requires the receipt to cover each one: a removed file among the receipt’s removed paths, a renamed file’s new path among its subjects and its old path among its removed paths, any other file among its subjects. A file the receipt does not cover fails the check unlessallow-uncovered-filesistrue, which lists it as a warning. GitHub lists at most 3,000 files of a pull request, so a larger one cannot be fully checked and fails the same way; - fails a valid receipt whose run did not pass, unless
require-passisfalse, and writes a job summary: run, verdict, signer, checks, review, writers, files and what is not covered.
Each failure is an error annotation that says what failed: the description has no receipt, the receipt does not verify, the key is not trusted (naming the key id and the keys file at the base commit), a covered file differs (naming each path), a changed file is not covered (naming each path), or the run did not pass. The pull request’s head is read again after its files are listed; if a push moved it meanwhile, the check fails and the run for the new head decides.
| Input | Default | |
|---|---|---|
version | v1.4.0 | The Axocoatl release to install |
sha256 | (empty) | A SHA-256 the release archive must also have |
keys-file | .axocoatl/receipt-keys | The trusted-keys file, read at the base commit |
require-receipt | true | Fail a pull request without a receipt |
require-pass | true | Fail a receipt whose verdict is not pass |
allow-uncovered-files | false | Let changed files the receipt does not cover through, as warnings |
github-token | github.token | The token gh reads the keys file and the changed files with |
binary | (empty) | An axocoatl already on the runner, used instead of downloading |
Its outputs are result (valid, missing, or why it failed: malformed, invalid,
untrusted, mismatch, uncovered, not-passed, error), run-id, verdict and
key-id. It reads the checkout’s files without following symbolic links and runs
nothing from them.
Trusting a computer’s receipts in a repository
Section titled “Trusting a computer’s receipts in a repository”The keys file has the format --keys reads: one line per key, as axocoatl receipt key
prints it, with # comments and blank lines allowed. To trust the receipts a computer
signs, run on that computer, with the daemon’s --config and data directory:
mkdir -p .axocoatl && axocoatl receipt key >> .axocoatl/receipt-keysand commit the file to the branch pull requests merge into, through a pull request of its
own, before the workflow that reads it. Only lines the base commit holds are trusted, so a key added in the pull request
being checked is not. To stop trusting a key, delete its line; to keep accepting receipts
an old key signed after axocoatl receipt key --rotate, keep its line next to the new one.