Skip to content
EffortlessSteven
All terms

Guardrail

Build receipt

A structured, machine-verifiable record of what an agent ran and what happened (commands, versions, exit codes, diffs, artifacts).

Also known as: receipt, ci-receipt

Definition

A build receipt is a structured, machine-verifiable record of what work was performed and what gates passed: commands run, versions used, exit codes, diffs produced, and links to artifacts.

Receipts are how you cross the trust boundary without relying on narration.

What belongs in a receipt

At minimum:

A minimal example (JSON)

{
  "issue": 123,
  "git": { "base": "main", "head": "feat/fix-thing", "sha": "abc123" },
  "commands": [
    { "cmd": "pnpm lint", "exitCode": 0 },
    { "cmd": "pnpm typecheck", "exitCode": 0 },
    { "cmd": "pnpm test", "exitCode": 0 }
  ],
  "diffstat": "6 files changed, 42 insertions(+), 10 deletions(-)",
  "artifacts": [{ "name": "coverage", "sha256": "…" }]
}

Why receipts matter

Receipts prevent two expensive failure modes:

They also make parallel work mergeable: if every agent produces a receipt, you can integrate with confidence.

Implementation notes

Practical rule

No receipt, no merge.

Related Terms