Skip to content

Reference

Attestation gateBeta

Gate agent-authored PRs on a governed-run attestation. Your CI fetches the governance facts for the run, decides whether they meet your repo’s bar, and signs that decision with its own identity. GitHub enforces the result when you make it a required check.

To set it up, follow Turn on the merge gate. The pieces are the governance summary, the gate mode of the open-source PR action (machinise/machinaut-pr-action@v2), and Machinaut’s attestation intake and display.

Who does what

who does whattext
your CI (the PR action)                       Machinaut                       your kernel (Lodestar OSS)
fetch the facts ───── GET …/governance ─────▶ serves facts only               decides holds, verifies
evaluate YOUR policy                          (never a merge verdict)         signatures, records quorum,
build the in-toto statement                                                   all shipped as events
SIGN it (Sigstore keyless, this workflow)
POST the bundle ─────────────────────────────▶ verifies + stores + displays
pass / fail the check  ◀── GitHub branch protection enforces it               (never signs)

What the gate proves, and what it does not

It proves what your CI asserted about what Machinaut held at as_of, signed by your CI’s identity. It does not prove the agent could not have misbehaved, and it does not prove the event log is complete: the shipper ships what the writer wrote, so a writer bypass is invisible here.

Hash verification, approval-signature verification, quorum adjudication, redaction and sentinel detection are Lodestar OSS properties. Machinaut’s part is the hosted summary, the predicate standard, the gate workflow, the verification display, and (planned) the fleet-wide view of which PRs carried an attestation. Sigstore and in-toto are third-party standards Machinaut verifies against.

A relay_only hold is not a verified approval. A session with redacted records is attested by commitment, not content. GitHub enforces the required check; Machinaut cannot block a merge and never claims to.

Your policy

InputDefaultMeaning
require-holds-resolvedtrueEvery hold must be granted or denied with evidence: host_record. relay_only and unavailable count as unresolved. A truncated hold list fails.
require-bound-approvalsfalseEvery granted hold must carry an ADR-0042 action_representation_hash, so each approval is bound to the exact action.
max-sentinel-severitywarningThe highest sentinel severity tolerated. With warning, any critical alert fails.
allow-unreadablefalseRecords withheld below the secret ceiling fail closed. true records them as a stated, non-failing reason.
post-attestationtrueAfter signing, POST the bundle to Machinaut’s intake so the console can verify and label it. Reporting only. The outcome never changes the decision.
dry-runfalseEvaluate and comment, but never sign and never fail the step.
fail-on-errortrue (gate)Infrastructure errors (Machinaut unreachable, an unsupported summary version, a signing failure) fail the step, so the gate fails closed.

The defaults fail closed. A decision: fail always fails the step. If the facts cannot be read, nothing is decided and nothing is signed. Signing is skipped, visibly, on a dry run, on a fork PR, and without id-token: write.

The statement

predicate typetext
https://machinaut.ai/attestation/governed-run/v1

An in-toto Statement v1, signed as a Sigstore bundle:

  • Subjects: the PR head commit ({"name": "<owner>/<repo>", "digest": {"gitCommit": "<sha>"}}) and the evidence file the gate evaluated (machinaut-governance-summary.json, by sha256).
  • Predicate: the governance_summary@1 facts verbatim, plus a gate block your CI writes: action version, policy, decision and reasons.
  • Privacy: digests, ids, counts, enums and timestamps only. Public-repo statements land in the public Rekor transparency log.

The signer identity

pin the identity (owner session)http
PUT /v1/projects/{project_id}/attestation-identity
Content-Type: application/json

{
  "issuer": "https://token.actions.githubusercontent.com",
  "workflow": "https://github.com/acme/app/.github/workflows/governed-run.yml",
  "refs": ["refs/heads/main", "refs/pull/*/merge"]
}

Nothing reads as verified until an org owner pins the identity your CI signs with. Each change is audited.

  • Exact match, no regex. The certificate’s issuer must equal issuer, and its SAN must equal <workflow>@<ref> for one of refs.
  • The issuer is GitHub Actions, and the workflow must be a github.com workflow URL, copied exactly.
  • refs/pull/*/merge is the one wildcard, for pull_request runs. Other refs are refs/heads/… or refs/tags/….
  • Pinning re-verifies. An entry that read “unverified: identity not pinned” turns verified on its next view if it matches.

What Machinaut shows

statusLabelMeaning
verifiedverified ✓All four checks passed. The bundle verifies against the public-good Sigstore trust root (certificate chain, embedded SCT, transparency-log inclusion, DSSE signature). The statement names this project and session. Its subject ties to this session’s chain. The certificate’s issuer and SAN match the identity an owner pinned.
unverified_identity_not_pinnedunverified: identity not pinnedThe signature verifies, but no identity is pinned for the project. A valid Sigstore signature only proves that someone with an OIDC identity signed, so Machinaut does not call it verified.
unverifiedunverifiedThe signature, the statement, the subject or the identity did not check out. The stored reason says which. Shown, never hidden.
storedstored: verify with gh attestation verifyIssued by a Sigstore instance other than the public-good one, in practice GitHub’s private-repository instance, which has no public Rekor entry. Kept as received. Verifying it in Machinaut will need a per-tenant trust root (Planned). gh attestation verify checks it today.

With post-attestation on, the action uploads the bundle to POST /v1/projects/{project_id}/sessions/{session_id}/attestations (up to 256 KiB, 50 per session). Machinaut verifies it with sigstore-js against the public-good Sigstore root, stores it as received, and shows it on the session and share pages. A failed verification is never hidden.

The subject check re-derives chain_digest over the attested first_seq to last_seq. Records pruned by retention read as a mismatch. Machinaut cannot check gitCommit, because it does not see your repository.

A display, never an authority

There is no managed signing for the gate, and Machinaut never signs an attestation. The decision shown is the one your CI wrote. Machinaut’s check is a convenience display of the same signature GitHub and Sigstore verify without it.

Verify without Machinaut

check the signaturesh
gh attestation verify machinaut-governance-summary.json \
  --repo acme/app \
  --predicate-type https://machinaut.ai/attestation/governed-run/v1 \
  --cert-identity https://github.com/acme/app/.github/workflows/governed-run.yml@refs/pull/<number>/merge
Each console entry carries this command with its signer identity filled in. --signer-workflow constrains the workflow but not the ref. Add --bundle to verify offline. It also verifies stored bundles.
read which commit and decision it coverssh
gh attestation verify machinaut-governance-summary.json --repo acme/app \
  --predicate-type https://machinaut.ai/attestation/governed-run/v1 \
  --cert-identity https://github.com/acme/app/.github/workflows/governed-run.yml@refs/pull/<number>/merge \
  --format json \
  --jq '.[].verificationResult.statement | {commit: .subject[0].digest.gitCommit, decision: .predicate.gate.decision}'
Keep the identity constraint, or another workflow’s bundle could be the one printed.

chain_digest recomputes from your own log. See the governance summary.

Planned

OutcomeStatus
Machinaut will verify private-repository bundles once you can upload a per-tenant trust root.Planned
You will be able to sign with a Machinaut Desktop key instead of CI.Planned
CI issuers beyond GitHub Actions, and GitHub Enterprise Server hosts, will be accepted.Planned
Fleet will show which PRs carried an attestation.Planned

Every input and output of the action: machinise/machinaut-pr-action.