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
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
| Input | Default | Meaning |
|---|---|---|
| require-holds-resolved | true | Every hold must be granted or denied with evidence: host_record. relay_only and unavailable count as unresolved. A truncated hold list fails. |
| require-bound-approvals | false | Every granted hold must carry an ADR-0042 action_representation_hash, so each approval is bound to the exact action. |
| max-sentinel-severity | warning | The highest sentinel severity tolerated. With warning, any critical alert fails. |
| allow-unreadable | false | Records withheld below the secret ceiling fail closed. true records them as a stated, non-failing reason. |
| post-attestation | true | After 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-run | false | Evaluate and comment, but never sign and never fail the step. |
| fail-on-error | true (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
https://machinaut.ai/attestation/governed-run/v1An 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@1facts verbatim, plus agateblock 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
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 ofrefs. - The issuer is GitHub Actions, and the workflow must be a
github.comworkflow URL, copied exactly. refs/pull/*/mergeis the one wildcard, forpull_requestruns. Other refs arerefs/heads/…orrefs/tags/….- Pinning re-verifies. An entry that read “unverified: identity not pinned” turns
verifiedon its next view if it matches.
What Machinaut shows
| status | Label | Meaning |
|---|---|---|
| verified | verified ✓ | 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_pinned | unverified: identity not pinned | The 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. |
| unverified | unverified | The signature, the statement, the subject or the identity did not check out. The stored reason says which. Shown, never hidden. |
| stored | stored: verify with gh attestation verify | Issued 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
Verify without Machinaut
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--signer-workflow constrains the workflow but not the ref. Add --bundle to verify offline. It also verifies stored bundles.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}'chain_digest recomputes from your own log. See the governance summary.
Planned
| Outcome | Status |
|---|---|
| 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.