Reference
Governance summaryBeta
governance_summary@1: the facts a merge gate needs about one shipped session. The chain as Machinaut holds it, with a digest you can recompute. Every hold linked to it, with its outcome and who says so. The sentinel counts. How much could not be read.
Facts, never a verdict. Your CI evaluates them, decides, and signs with its own identity. Machinaut never writes the decision, never signs, and cannot block a merge.
The summary is the evidence half of the governed-run attestation gate. It covers everything in the https://machinaut.ai/attestation/governed-run/v1 predicate except the gate block (the policy, decision and reasons), which your CI action writes. Branch protection, which you configure, enforces the result.
Request and auth
GET /v1/projects/{project_id}/sessions/{session_id}/governance
Authorization: Bearer mk_live_…The same as reading the session itself: any credential of the tenant, whether a browser session, a minted API token, or a project key (what the PR action uses). A key pinned to a different project gets 403 project_scope_conflict. A session with no events in your tenant, including another tenant’s session, gets 404 not_found. The endpoint is read-only and persists nothing.
Response
{
"beta": true,
"machinaut": {
"console": "https://console.machinaut.ai",
"project_id": "proj-g",
"session_id": "s-example",
"summary_version": "governance_summary@1",
"as_of": "2026-11-05T12:00:00.000Z"
},
"chain": {
"events": 7,
"readable": 6,
"redacted_commitments": 1,
"chain_digest": "sha256:…",
"first_seq": 1,
"last_seq": 7
},
"holds": [
{ "request_id": "req-merge", "action_representation_hash": "sha256:…",
"outcome": "granted", "evidence": "host_record" },
{ "request_id": "req-deploy", "action_representation_hash": "sha256:…",
"outcome": "granted", "evidence": "host_record",
"quorum": { "k": 2, "m": 2, "record_digest": "sha256:…" } },
{ "request_id": "req-drop-table", "outcome": "granted", "evidence": "relay_only" }
],
"holds_truncated": false,
"sentinels": { "info": 0, "warning": 1, "critical": 0 },
"unreadable": { "approval_requests": 0, "sentinel_alerts": 1 }
}Every field is a digest, an id, an enum, a count or a timestamp. The summary never contains a payload, a reason, a prompt, or an approver name. Beside the predicate’s four objects sit three top-level keys: beta (this surface’s status label), holds_truncated and unreadable. A gate must fail closed on the last two.
machinaut
| Field | Meaning |
|---|---|
| console | The console origin. Omitted when the deployment has no public base URL configured. |
| project_id, session_id | The session the summary describes. |
| summary_version | Always governance_summary@1. Pin it in your gate. |
| as_of | When the summary was computed. The facts describe what Machinaut held at this moment. A later re-ship or a retention sweep can change them. |
chain
| Field | Meaning |
|---|---|
| events | Records Machinaut holds for the session, readable and redacted together. |
| readable | Records whose payload was shipped. At ingest, each one’s payload_hash was checked against the canonical payload. A mismatch rejects the whole batch. |
| redacted_commitments | Records whose payload was withheld at ship time (above the shipper’s sensitivity ceiling). Machinaut holds only the shipper’s payload_hash for these, as a commitment. |
| first_seq, last_seq | The lowest and highest seq held. |
| chain_digest | Computed over every stored record. See Chain digest below. |
holds[]
A hold is listed when the session’s readable log records it in an approval.requested@1, or when the approval relay links it to this session, because it was announced with this session’s id, or announced with none and its request_id appears readably in this session and no other. Holds appear in log order, then relay-only holds in announce order. At most 50 are listed (the newest). holds_truncated: true means more exist.
| Field | Meaning |
|---|---|
| request_id | The hold’s id, verbatim, so you can match it against your own log. |
| action_representation_hash | Present only when the hold is bound: "sha256:" + inputs_hash, where inputs_hash is the Lodestar ADR-0042 action representation hash Lodestar computes. Omitted when the shipped and announced requests disagree. |
| outcome | granted, denied, expired or unresolved. |
| evidence | Who says so. See the next table. |
| quorum | Present only when your host shipped an approval.quorum_reached@1 record for the hold (Lodestar ADR-0041): k approvals named, threshold m, and a record_digest. Machinaut never counts votes. Without a host record there is no quorum block, however many votes passed through the relay. |
| evidence | Meaning |
|---|---|
| host_record | The outcome comes from your host’s own records in the readable shipped log: approval.granted@1, .denied@1, .expired@1, .quorum_reached@1 (or, for unresolved, a request with no terminal record). Your host’s Lodestar kernel verified the approver’s signature before it promoted a grant: that verification is Lodestar’s, not Machinaut’s. |
| relay_only | Only Machinaut’s relay supports the outcome (a resolution passed through it, or its clock passed the deadline), and the shipped log has no host terminal record. A relay_only hold is not a verified approval. Treat it as unresolved. That is the PR action’s default policy. |
| unavailable | The shipped evidence cannot be read. It was withheld at ship time, or the shipped and announced requests contradict each other. Nothing vouches for the outcome shown. This is never reported as a mismatch. |
The rules that decide outcome and evidence, in order:
- 01The host’s terminal record wins. Lodestar’s pendingApprovals decides whether a hold is closed, with its own exclusion rules. Machinaut does not reimplement them.
- 02A terminal record must name the hold’s action. A record naming a different action, or a conflicting ADR-0042 inputs_hash, is not this hold’s verdict, and neither is a malformed one, so the hold stays unresolved.
- 03A contradictory log never reads as granted: denied takes precedence over expired, which takes precedence over granted.
- 04A grant is reported only when nothing that could contradict it was withheld. If a later batch withheld a deny, an expiry, or the guard’s signature-rejection audit of that grant, the hold reads unavailable rather than granted.
- 05Quorum holds come only from the host’s record. For a quorum hold, granted means your host shipped approval.quorum_reached@1. Without it, votes leave the hold unresolved.
- 06The relay fills in only when the host has not decided, and then the outcome is labelled relay_only.
sentinels and unreadable
sentinels counts the readable sentinel.alerted@1 alerts in the session by severity (info, warning, critical). Lodestar’s sentinels raise these on your side. Machinaut only counts them.
unreadable.approval_requests and unreadable.sentinel_alerts count records that exist but whose content could not be read, because they were withheld at source or do not parse as the pinned schema. A withheld critical alert does not appear in sentinels.critical.
Fail closed: an unreadable record is unknown, not absent
secret ceiling, Lodestar’s shipper withholds every approval and sentinel record, so a session shipped at the default ceiling shows redacted commitments, relay-listed holds with evidence: unavailable, and unreadable.sentinel_alerts > 0. A gate that consumes this summary must fail closed when either unreadable count is above 0, when holds_truncated is true, and on any hold whose evidence is not host_record. Never read an unknown as zero. The PR action’s gate mode does this by default. For full evidence, ship with --sensitivity-ceiling secret.Chain digest
chain_digest = "sha256:" + hex( sha256( join("\n", payload_hash for each stored record, seq ascending) ) )A digest over the hashes Lodestar already computed. You can recompute it from your own log with no Machinaut involvement.
- Each
payload_hashis the hex string the shipper carried: Lodestar’s canonical hash of the payload. - The hashes are joined with
"\n"(no trailing newline) and hashed as UTF-8. - Every stored record counts. A redacted record contributes its commitment exactly as a readable one contributes its hash. That is why the digest matches your local, unredacted log.
Run this over a local events.ndjson: your writer’s log (for example cat <log-root>/<project>/*.ndjson > events.ndjson) or the session_ship@1 batches you shipped:
jq -sj --arg s "$SESSION_ID" 'map(.envelope // . | select(.session_id == $s and .payload_hash != null)) | unique_by(.seq) | map(.payload_hash) | join("\n")' events.ndjson | shasum -a 256sha256: and compare it with chain.chain_digest. On Linux, sha256sum gives the same hex. If the digests differ, compare events, first_seq and last_seq first: a retention sweep, or a session you have not finished shipping, leaves Machinaut holding less than your local log.Quorum record digest
record_digest = "sha256:" + hex( sha256( renderCanonicalJson(record) ) )record is your host’s QuorumRecord, exactly as Lodestar’s quorumRecords projects it from the readable approval.quorum_reached@1 event, rendered by Lodestar’s renderCanonicalJson (sorted keys, never truncated) and hashed as UTF-8.
import { createHash } from "node:crypto"
import { EventLogReader } from "@qmilab/lodestar-event-log"
import { quorumRecords, renderCanonicalJson } from "@qmilab/lodestar-trace"
const events = await new EventLogReader(logRoot).readSession(projectId, sessionId)
for (const record of quorumRecords(events)) {
const digest = createHash("sha256").update(renderCanonicalJson(record), "utf8").digest("hex")
console.log(record.request_id, `sha256:${digest}`)
}QuorumRecord only grows by adding fields, and a new field changes the digest, so recompute with the same Lodestar minor version the summary was produced against.What is whose
| Property | Owner |
|---|---|
| Canonical payload hashing, and re-checking it on readable records at ingest | Lodestar OSS (the session_ship@1 contract) |
| Redaction at source (the sensitivity ceiling) | Lodestar OSS (the shipper) |
| Approval signature verification | Lodestar OSS, on your host |
| Quorum adjudication | Lodestar OSS, on your host |
| Sentinel detection | Lodestar OSS, on your side |
The projections read here (pendingApprovals, quorumRecords, renderCanonicalJson) | Lodestar OSS |
The hosted summary, linking relay holds to sessions, the chain-digest definition, the evidence labels, and the predicate standard | Machinaut |
| Deciding pass or fail, and signing the attestation | Your CI |
| Enforcing the required check | GitHub branch protection, which you configure |
| The signature and statement formats the gate uses (Sigstore bundle, in-toto Statement) | Third-party standards Machinaut verifies against |
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.
Related