Skip to content

chant release verify

llms.txt lists every page for an agent

Checks that a release was signed by a key .chant/allowed_signers lists (#4049). It reads the release and its cuts from the local chant/lifecycle branch, and the signers file at the release’s own commit, with its signed history, as chant workspace evidence verify reads the policy at a revision. It fetches nothing and needs no key, so fetch chant/lifecycle and the release’s commit first.

Terminal window
git fetch origin chant/lifecycle:chant/lifecycle
chant release verify v1.4.0

A release verifies when its stored file is the digest of what it holds, and a cut of it carries a signature in the chant-release namespace that verifies for the cut’s actor. When the declaration at the release’s commit names a release gate with a class, the actor must be in it too. Because the signers file is read at the release’s commit, a key added later does not make an older release verify, and a key removed later does not unmake it. release list judges cuts against the signers file at base instead, which is the policy now.

It exits 0 when the release verifies and prints the signer on stderr:

cut by alice at 2026-10-17T10:00:00.000Z: verified (SHA256:...)
green by ci/green tag (gate signed)
Verified v1.4.0 (jcs1-sha256:...): signed by alice, checked against .chant/allowed_signers at 3f2a9c1d0b7e; green gate signed

It exits 1 with one of these codes:

CodeWhen
release-unsignedNo cut of the release is signed. With --sigstore, it is not raised when every Sigstore bundle verifies and the declaration at the release’s commit names no release gate (see Checking the Sigstore signatures).
release-signature-unverifiedNo cut’s signature verifies against the signers file at the release’s commit, such as one signed by a key the file does not list.
release-digest-mismatchThe stored release is not the digest of what it holds, so it was changed after the cut.
release-not-foundNo cut names the label or digest in this member.
release-commit-missingThe release’s commit is not in this clone.
trust-policy-unreadableThe signers file or its history at the commit can’t be read.

The green gate each cut records is reported as signed when the cut’s signature verifies and covers it, and unsigned otherwise. When more than one cut verifies, the one whose gate is signed is the one shown. A release whose verified cut was signed before chant signed the gate (see Who may cut) still verifies, and the line after the success says its gate is not covered by the signature.

--json prints releaseDigest, label, member, commit, signers (path, at, active), digestMatches, status (verified, unsigned or unverified), verifiedBy (actor, key, or null), reason, carriedBy (ssh when a cut’s signature verified, sigstore when the Sigstore bundles carried the result, null when the release does not verify), releaseGate (whether the declaration at the release’s commit names a release gate), gate (status, signed or unsigned, and reason) and each cut with its signatureCheck (whose gate is signed or unsigned), and its green gate or override when the cut recorded one (see The green gate). A release that does not verify adds error with its code and message. Without --sigstore, sigstore.recorded counts the Sigstore bundles the publish record holds.

A release published with Sigstore signing has its bundles named in the publish record on chant/lifecycle. --sigstore checks each with cosign 3 (CHANT_COSIGN, else cosign on PATH), against the certificate identity and issuer release.signing names in chant.config.ts, else the ones the publish recorded: a workflow of the repository it ran in, and its CI’s issuer. A bundle signed with a key or a KMS key is checked with --key and the public key release.signing.publicKey names, else the KMS reference (cosign asks the KMS for the public key, with the credentials in the environment), else the key the publish recorded, read from the member, and without the transparency log under rekor: false. A release signed through a private Sigstore instance is checked against the trusted_root.json release.signing.trustRoot names, read from the member. An image’s signature and provenance are read from its registry, with docker’s credentials. A forge release’s bundles are read from the directory --assets names, where its assets were downloaded. Each bundle must be the bytes the publish uploaded, and an asset beside it must be the digest it signs.

An npm package published from CI with --provenance has its provenance kept by the registry, not in the publish record. The record names the identity its certificate was issued to, and --sigstore reads the package’s SLSA provenance from the registry’s /-/npm/v1/attestations/<name>@<version> and checks it with cosign against that identity (or the one release.signing names) and the SHA-512 the registry serves for the version, so a release whose only target is npm verifies by its Sigstore identity too. The registry is the one the target declares, else registry.npmjs.org. A package published without provenance, as from a workstation, has no identity in the record and is not looked up, and a version the registry holds no provenance for (a 404) adds no check. An answer that is not an attestation list, such as a 200 whose body is the text OK, can’t be checked and fails the check; it never passes.

Terminal window
gh release download release/v1.4.0 -D /tmp/v1.4.0
chant release verify v1.4.0 --sigstore --assets /tmp/v1.4.0

The bundles it checks for an image are its cosign signature, its SLSA provenance, and its SBOM and scan-findings attestations, each by its predicate type. This check reads the registry and Sigstore’s trust root, so it is not offline. It exits 1 with:

CodeWhen
release-sigstore-unsignedThe publish record holds no Sigstore bundle for the release, and the registry holds no provenance for its npm packages.
release-sigstore-unverifiedA bundle does not verify for the identity, differs from what was uploaded, or can’t be checked (no cosign, or a forge bundle not in --assets).

A release cut in CI has no ssh-signed cut, because the workflow holds no ssh key. With --sigstore, when no cut is ssh-signed, every Sigstore bundle verifies (and at least one exists), the digest matches and the declaration at the release’s commit names no release gate in identity.gates, the release verifies by its Sigstore identity and the command exits 0. It prints that no cut is ssh-signed and that the release is verified by its Sigstore identity. --json keeps status: "unsigned" and sets carriedBy to sigstore. A workspace that names a release gate still exits 1 with release-unsigned, since it asked for a signer in a class, and release-signature-unverified and release-digest-mismatch are unchanged. Without --sigstore nothing changes.

--json adds sigstore: its status (verified, failed or none), reason and each check with its name, kind, target, attachment (signature or attestation), signs, identity, status (verified, failed or unchecked) and reason.

chant