| Internet-Draft | Acta Signed Receipts | November 2026 |
| Farley | Expires 25 May 2027 | [Page] |
This document defines a portable, cryptographically signed receipt format for recording machine-to-machine access control decisions. Each receipt captures the identity of the decision maker, the tool or resource being accessed, the policy evaluation result, and a timestamp. All of these are signed with Ed25519 [RFC8032] and serialized using deterministic JSON canonicalization [RFC8785].¶
The format is designed for environments where AI agents invoke tools on behalf of human operators, particularly the Model Context Protocol (MCP) ecosystem. Receipts are independently verifiable without contacting the issuer, enabling offline audit, regulatory compliance, and cross-organizational trust federation.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 25 May 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
As AI agents increasingly act autonomously (invoking tools, accessing APIs, and modifying state), there is a growing need for cryptographic evidence of what decisions were made, by whom, and under what policy.¶
Current approaches rely on centralized logging (e.g., CloudWatch, SIEM ingestion), which requires trust in the log operator and provides no independent verifiability. A compromised or malicious operator can silently alter or omit log entries.¶
This specification defines a Signed Decision Receipt format that provides:¶
Portable evidence: Receipts are self-contained JSON objects that can be stored, transmitted, and verified independently.¶
Cryptographic integrity: Each receipt is signed using Ed25519 (RFC 8032), ensuring tamper detection without PKI infrastructure.¶
Offline verification: Any party with the issuer's public key can verify a receipt without network access or API calls.¶
Minimal disclosure: Receipts capture the decision metadata (tool name, decision, tier, timestamp) without logging raw request payloads, prompts, or sensitive parameters.¶
Further receipt types are listed in receipt-types.md, an
informative registry kept with this document at
https://github.com/VeritasActa/drafts/blob/main/receipt-types.md.¶
The Model Context Protocol [MCP] defines a JSON-RPC transport for AI tool invocation but provides no built-in access control, auditing, or accountability mechanism. This specification is designed to be deployed at the MCP transport layer (typically as a stdio proxy) without modifications to the MCP protocol itself.¶
This specification is complementary to [I-D.serra-mcp-discovery-uri], which defines the mcp:// URI scheme and server discovery mechanism. Discovery (how an agent finds a server) and accountability (what gets recorded after the agent uses it) are independently deployable layers. A server's discovery manifest MAY declare a trust_class that informs receipt-generating proxies of the server's operating context (e.g., "regulated"), enabling jurisdiction-aware policy evaluation without encoding legal regime information in the receipt itself.¶
This specification defines a JSON envelope signed over JCS [RFC8785] canonical bytes with lowercase hexadecimal signatures rather than using JSON Web Signature (JWS) [RFC7515] or CBOR Object Signing and Encryption (COSE) [RFC9052]. Decision logs in agent gateways and compliance stores are routinely stored as newline-delimited JSON, inspected by operators, and hash-chained across records; keeping the payload unencoded avoids base64url wrapping and lets any party recompute both the signing input and chain link directly from the JSON record. Key distribution ([RFC7517]) and algorithm identifiers ([RFC7518], [RFC8037], [RFC9964]) are reused from JOSE rather than reinvented. Deployments already standardized on CBOR/COSE transparency logs or compact bearer tokens ([RFC7519], [RFC9901]) SHOULD use those formats instead of this one.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
A Signed Decision Receipt is a JSON object with two top-level fields:
payload and signature.¶
{
"payload": { ... },
"signature": {
"alg": "EdDSA",
"kid": "<issuer-identifier>",
"sig": "<hex-encoded-ed25519-signature>"
}
}
¶
This is the envelope shape, and it is the shape new implementations
SHOULD emit. A second, flat shape carries the payload fields
at the top level alongside a signature member that is a hexadecimal
string. It predates the envelope and remains in use. The two shapes are
signed over different byte strings, and an implementation
MUST determine which shape it is handling before computing or
checking a signature; see Section 5.2. Except where a
shape is named explicitly, the remainder of this document describes the
envelope shape.¶
The signature algorithm. The mandatory-to-implement algorithm is "EdDSA" for Ed25519 as defined in [RFC8032]. Implementations MAY additionally support "ES256" (ECDSA with P-256 and SHA-256) to accommodate systems that use P-256 keys natively. Verifiers MUST support "EdDSA" and SHOULD support "ES256". This list is not closed; see Section 5.9 for registered values.¶
The key identifier of the signing key. This is an opaque string
that SHOULD resolve to a public key via an issuer JWK Set
endpoint or out-of-band distribution. The format is issuer-defined; common
choices are a JWK Thumbprint [RFC7638] or a namespaced key
fingerprint such as example:issuer:<fingerprint> (existing
ScopeBlind issuers use the prefix sb:issuer: followed by the first
12 characters of the Base58-encoded Ed25519 public key).¶
The signature over the signing input defined in
Section 5.2, encoded as a lowercase hexadecimal
string. The encoded length is determined by the algorithm named in
alg and is not fixed by this document: Ed25519 produces 64
bytes and therefore 128 hexadecimal characters, while other registered
algorithms produce other lengths. Verifiers MUST NOT
reject a signature on encoded length alone.¶
The payload is a JSON object whose schema depends on the receipt type. This section lists the members common to all payload types. Members specific to one receipt type are defined with that type in Section 3. A member defined elsewhere in this document that may appear in any payload type is listed here.¶
A namespaced string identifying the receipt type.
Examples: "protectmcp:decision",
"example:approval".¶
ISO 8601 timestamp [RFC3339] of when the receipt was created. MUST include timezone designator (typically "Z" for UTC).¶
The identifier of the entity that issued and signed the receipt.
MUST match the kid field in the signature object.¶
A link to the immediately preceding receipt in a receipt chain, present at most once. When present it MUST be a member of the payload object, not of the enclosing receipt object, and its value MUST be computed as specified in Section 5.7.¶
The first receipt in a chain MUST omit the member
entirely rather than carrying null or an empty string, which
would produce different JCS output and therefore a different signature.
A receipt that omits it is either a chain genesis or an unchained
receipt; the format does not distinguish these, and a verifier
MUST NOT infer chain membership from its absence.
Section 5.7.1 says how a verifier treats an
omitted or null member.¶
The evidentiary basis the decision rested on, as defined in Section 4. When present it MUST be an array. A verifier that does not implement the predicate MUST still verify the receipt signature and chain, and MUST ignore this member otherwise.¶
The Merkle root committing to selectively disclosable fields, as defined in Section 6. Present only in commitment mode. A verifier that does not implement commitment mode MUST ignore this member when verifying the signature, though the member remains covered by that signature.¶
A content-addressable hash of associated data (tool input, tool
output, or other large payloads) that is too large to embed in
the receipt. Format: an object containing hash (lowercase SHA-256
hex string), size (byte count), and optionally preview
(first 256 characters). Enables integrity verification of associated
data without embedding it in the receipt.¶
The time in milliseconds spent evaluating the policy decision. Enables operators to verify that security middleware adds negligible overhead (<5ms is RECOMMENDED for synchronous policy checks).¶
The time in milliseconds between the initiation and completion of the tool invocation. Present only in post-execution receipts.¶
Whether the execution environment had OS-level containment
active at the time of the decision. One of: "enabled",
"disabled", "unavailable". Enables auditors to verify that
agent actions occurred within a sandboxed environment.¶
A cross-engine correlation anchor: the SHA-256 hash of the
canonical representation of the action being evaluated. When
two or more governance engines evaluate the same action
independently, both receipts carry the same action_ref,
enabling bilateral verification without either engine needing
to trust the other.¶
The computation is:¶
action_ref = SHA-256(canonicalize({
agentId,
actionType,
scopeRequired,
timestamp
}))
¶
where canonicalize follows RFC 8785 (JCS) and scopeRequired
is sorted lexicographically before canonicalization. The
resulting hex string is deterministic: same inputs produce the
same hash regardless of implementation language.¶
This field is RECOMMENDED when the receipt will be consumed by external governance frameworks or cross-engine audit tools.¶
A logical iteration grouping identifier for multi-step agent
workflows. When an agent runs in an optimization loop or a
multi-round deliberation, receipts within the same iteration
share the same iteration_id. This enables behavioral analysis
tools to group receipts by logical iteration rather than by
receipt count.¶
The value is an opaque string. Hierarchy may be encoded by convention using dot-separated segments (e.g., "run_7.sub_3" encodes a nested iteration at depth 2). The field is agent-declared metadata for grouping purposes, not a security boundary: a malicious agent could set misleading values. Receipt signatures cover this field (tamper-evident) but do not vouch for its semantic accuracy.¶
This specification defines one receipt type, the Access Decision
Receipt. Implementations MAY define additional types using the namespaced
type field.¶
Type: protectmcp:decision (retained for interoperability
with deployed issuers and verifiers).¶
Records the outcome of a policy evaluation for a tool invocation.¶
{
"type": "protectmcp:decision",
"tool_name": "delete_database",
"decision": "deny",
"reason": "tier_insufficient",
"agent_tier": "signed-known",
"required_tier": "privileged",
"policy_digest": "sha256:a8f3...c91e",
"session_id": "ses_7f8a2b",
"issued_at": "2026-03-22T14:32:04.102Z",
"issuer_id": "example:issuer:4Kpm7Q3wXx2b"
}
¶
The name of the tool being invoked, as declared in the MCP
tools/list response.¶
The policy evaluation result. One of: "allow", "deny",
"rate_limit", "require_approval". The value
"require_approval" records that the action was held pending human
approval at decision time; the terminal outcome of the held action, if it
executes, is recorded in a subsequent receipt.¶
A machine-readable reason code for the decision.
Examples: "tier_insufficient", "rate_exceeded",
"policy_block", "agent_refusal". When the decision is
"deny", "policy_block" records that the denial was imposed
by external policy, and "agent_refusal" that the agent imposed it on
itself.¶
The identifier of the agent whose tool call was evaluated.¶
The semantic version of the agent's manifest at the time of
the decision. Agent manifests are described in agent-manifest.md, an
informative note kept with this document at
https://github.com/VeritasActa/drafts/blob/main/agent-manifest.md.¶
The trust tier of the requesting agent at the time of the decision. Tiers are named and defined by the policy; this document defines none.¶
The minimum trust tier required by the policy for this tool.¶
A content-addressable hash of the policy in effect at the
time of the decision. Format: "sha256:<64-lowercase-hex>",
computed per Section 5.8. A digest whose
construction is not published is an opaque label, not a commitment; see
Section 5.8.1.¶
An opaque identifier for the MCP session. MUST NOT contain PII or be correlatable across sessions unless the operator explicitly configures session binding.¶
An Access Decision Receipt records which decision was made and, via
policy_digest, under which policy. For high-stakes actions the
decision's evidentiary basis is itself material: was the action cleared because
data-rights were satisfied, provenance verified, and compliance posture fresh, or
held because one of those failed? The OPTIONAL evidence field records
that basis. It is defined here for the Access Decision Receipt; other receipt
types MAY carry it with the same semantics.¶
"evidence": [
{ "dimension": "data_rights", "state": "satisfied",
"source": {
"authority": "Example Fund Administrator",
"ref": "sha256:...",
"kid": "example:issuer:9admin7Custo",
"alg": "EdDSA",
"sig": "<hex signature by the administrator over the claim>" },
"as_of": "2026-06-30T21:00:00Z" },
{ "dimension": "provenance", "state": "failed",
"source": { "authority": "runtime:request-origin",
"ref": "request/origin-header" } }
]
¶
The class of evidence. Core values: "data_rights",
"provenance", "compliance", "freshness",
"consent", "identity", "authorization",
"integrity". Implementations MAY define additional dimensions using a
namespaced extension of the form x-<vendor>:<name>, where
<vendor> matches [a-z0-9]+ and <name>
matches [a-z0-9_.-]+ (both lowercase).¶
The evaluated state of this dimension at decision time. One of:
"satisfied", "unverified", "stale", "failed",
"not_applicable".¶
The provenance of the evidence, an object with
authority (the attesting party; advisory), ref (a resolvable
reference or a "sha256:<hex>" digest of the attested subject), an
OPTIONAL kid (the attesting authority's key id), an OPTIONAL
alg (the signature algorithm, taking the same values as the
alg member of Section 2.1.1, and defaulting to
"EdDSA" when absent), and an OPTIONAL sig (the authority's
signature over the JCS-canonical claim, encoded as a lowercase hexadecimal
string and verifiable under kid). As in
Section 2.1.1, the encoded length of sig is
determined by alg and is not fixed by this document; a relying party
MUST NOT reject a source signature on encoded length alone.
An attesting authority need not use the same algorithm as the receipt
signer.
See Section 4.3: a named authority or
kid is not proof of authorship; only a verified sig is.¶
An RFC 3339 timestamp of when the evidence was current. RECOMMENDED for freshness-relevant dimensions.¶
The signed claim is the JSON object built from the entry's
dimension, state, and as_of together with the source's
ref: { dimension, ref, state } plus an as_of member when
the entry carries one. When as_of is absent the as_of member is
omitted from the claim; it MUST NOT be encoded as null. The producer
canonicalizes this object under JCS and signs the resulting bytes;
source.sig is that signature. A relying party reconstructs the same claim
from the entry and verifies source.sig over its JCS bytes.¶
evidence is OPTIONAL and additive. A verifier that does not
understand it MUST still verify the receipt's signature and chain; the field is
covered by the signature (tamper-evident) but requires no verifier action. It is
canonicalized under JCS with the rest of the payload and is therefore signed. It
MUST NOT carry raw evidence content (positions, prompts, tool payloads); it
carries states, references, digests, and timestamps only.¶
Evidence entries MAY be committed and selectively disclosed under
Section 6. When they are, the unit of disclosure
MUST be the whole entry. A producer MUST NOT
disclose an entry's dimension and state while withholding its
source, because a relying party cannot apply
Section 4.3 to an entry whose source it cannot see,
and a disclosed "satisfied" with no visible source is precisely the
false assurance Section 8.9 warns against.
Withholding an entry in full is permitted; a relying party
MUST NOT infer from a disclosed set that no further entries
exist.¶
evidence is a set of claims made by the receipt
signer. Every field of every entry, including
source.authority and source.kid, is inside the payload the
signer fully controls; the receipt signature proves only that the signer
asserted them. A present or trusted-looking source.kid is therefore
not proof that the named authority attested anything. It is exactly the
in-payload, signer-controlled value that
Section 8.5 warns is "strictly worse than
no signature at all, because it provides false assurance."¶
A relying party MUST NOT treat any evidence dimension as
independent corroboration unless all of the following hold: (1) the entry
carries a source.sig; (2) the relying party obtains the corresponding
public key out of band via the mechanisms in
Section 8.5 (not from the receipt) and
confirms that key's identifier equals source.kid; (3) the relying party's
out-of-band trust policy identifies the source key as belonging to a control domain
distinct from the receipt signer. At a minimum, the source public key MUST NOT equal
the key that signed the enclosing receipt; and (4) source.sig verifies under
that key over the JCS bytes of the claim.¶
Condition 3 is load-bearing: every relying party MUST already pin the
receipt signer's own key out of band, because that is the only way to verify the
receipt at all. Public-key inequality alone is necessary but not sufficient: the
relying party also needs a trust-policy determination that the source key is outside
the receipt signer's control. Without this requirement, a receipt signer could sign
an evidence claim with its own key, satisfy conditions 1, 2, and 4, and
manufacture "independent" corroboration of itself. An entry whose
source.kid resolves to the receipt's signing key, or whose control domain
cannot be established independently, is self-attestation and MUST NOT be counted as
independent corroboration.¶
A dimension without a verifiable, independent source.sig is
the receipt signer's own claim and MUST NOT raise the assurance a relying party
places in the decision, regardless of the authority or kid it
names. Producers SHOULD mark a self-attested basis with an authority of
runtime:<component>, but this labelling is advisory: because the
producer controls it, a relying party MUST identify a non-corroborating dimension
by the absence of a verifiable, independent source.sig, not by trusting
the label.¶
A verified source.sig proves only that the authority attested
the claim tuple; it does not prove the authority observed or endorsed the
enclosing decision. The claim binds nothing from the receipt (no
session_id, policy_digest, tool_name, or
decision), so the same signed claim may lawfully appear in many receipts.
A relying party MUST additionally judge whether the claim's ref and
as_of pertain to the action being decided, and SHOULD bound acceptance by
as_of.¶
Construct the payload object with all required fields.¶
Construct the receipt object carrying that payload as its
payload member.¶
Form the signing input for the envelope shape: canonicalize
the payload member using JCS [RFC8785]. The canonical
form is a deterministic JSON serialization with sorted keys and no
whitespace. The signing input is the payload member alone; it does
not include the enclosing receipt object. For the flat shape the signing
input is the receipt minus its signature member. See
Section 5.2, which an implementation
MUST consult before computing either.¶
Convert the canonical JSON string to a UTF-8 byte sequence.¶
Sign the byte sequence using Ed25519 [RFC8032] with the issuer's secret key.¶
Encode the signature as a lowercase hexadecimal string.¶
Attach the signature object to the original (non-canonicalized)
receipt as its signature member. The transmitted receipt carries the
payload exactly as constructed; canonicalization is performed only to derive
the signing input and its output is not transmitted.¶
The signature MUST cover the canonical JCS bytes of the signing input directly: the UTF-8 byte sequence produced by the signing process in Section 5.1, used as the message input to the signature algorithm with no intermediate hash.¶
Two receipt shapes are in use, and the signing input differs between them. An implementation MUST determine the shape before computing the signing input, and MUST NOT apply one shape's rule to the other; the two produce different byte strings, and crossing them causes verification of correctly signed receipts to fail.¶
The receipt is the object shown in
Section 2.1, carrying exactly two members: a
payload member and a signature member that is an object
with alg, kid, and sig. The signing input is
JCS(payload): the payload member canonicalized on its own,
not the enclosing receipt object.¶
The receipt carries its fields at the top level alongside a
signature member that is a hexadecimal string. There is no
payload member to canonicalize, so the signing input is the receipt
object with the signature member removed, canonicalized. This shape
predates the envelope and remains in use; new implementations
SHOULD emit the envelope shape.¶
In both shapes the signing input excludes the signature, and in neither is the signature computed over a receipt that already contains one.¶
In either shape the object canonicalized
MUST NOT contain a signature member, and that member
MUST NOT be included as null or as the empty string;
these produce different JCS output and break interoperability.¶
The alg and kid members of the signature object
are therefore not covered by the signature. A verifier resolves the key from
kid through the mechanisms in
Section 8.5 and verification fails if
either member is altered, so this is not a substitution vector, but a verifier
MUST NOT treat either member as attested content.¶
Standard PureEdDSA [RFC8032] hashes the message
internally; implementations MUST NOT pre-hash the
canonical bytes (for example with SHA-256) before signing.¶
Determine the receipt shape as defined in
Section 5.2 and extract the signature. In the envelope
shape the signature is the signature member, an object. In the flat
shape it is the signature member, a hexadecimal string, and the
algorithm and key identifier are carried as separate members of the
receipt.¶
Reconstruct the signing input for the shape received, as
defined in Section 5.2: for the envelope shape,
canonicalize the payload member as received; for the flat shape,
canonicalize the receipt minus its signature member. This reproduces
the byte string the signer formed in Section 5.1.
Applying the wrong shape's rule produces a different byte string and causes
verification of correctly signed receipts to fail.¶
Convert the canonical JSON to a UTF-8 byte sequence.¶
Resolve the public key using the key identifier carried by the
receipt. The RECOMMENDED resolution mechanism is an HTTPS JWK Set endpoint
[RFC7517] (such as the provisional path
/.well-known/acta-keys.json described in
Section 5.5). The key MUST be
obtained through that mechanism or another out-of-band trust anchor, never
from the receipt itself; see
Section 8.5.¶
If the key source provides a validity window for the key, apply
it to the receipt's issued_at as defined in
Section 5.6.¶
Verify the signature over the canonical bytes using the resolved public key and the algorithm declared by the receipt, not an algorithm assumed by the verifier; see Section 5.9.¶
If verification fails, or the receipt was issued outside its key's validity window, the receipt MUST be rejected, even if another step could not be carried out. Otherwise, if the verifier cannot carry out step 4 or step 6, cannot apply in step 5 a window the key source provides, or is configured to require a window the key source does not provide, the outcome is undecidable, as defined in Section 5.4, and the receipt MUST NOT be reported as either authentic or rejected. Otherwise the receipt is authentic and has not been tampered with.¶
A verification has one of three outcomes, and a conformant verifier MUST distinguish all three in every form of its output that a consumer can act on, including any process exit status:¶
The signing input was reconstructed for the shape received, a verification key was obtained from a trust anchor outside the receipt, and the signature verified under it. Where the key source provides a validity window for the key, the receipt was issued inside it.¶
The check ran and failed: the signature did not verify under
the trust-anchored key; a carried key
(Section 8.5) differs from the
trust-anchored key; the object canonicalized carries a signature
member, including as null or the empty string
(Section 5.2), whether or not the signature over it
verifies; the receipt was issued outside its key's validity window; a digest
does not match; a chain link is malformed or a receipt does not follow the
receipt it is checked against (Section 5.7); or, in
the envelope shape, the payload carries an issuer_id that differs
from signature.kid. An invalid receipt MUST be rejected. A payload
that lacks a member Section 2.2 requires, or that does not
conform to its declared type, is reported separately and does not change the
outcome.¶
The check could not run. No verification key was available from a trust anchor outside the receipt (including the case where the only key on offer is one carried inside the signed bytes, which Section 8.5 forbids using), the receipt shape was not recognized, the signature or payload member was absent, the algorithm was unsupported, a chain link names a hash algorithm other than SHA-256 (Section 5.7), a validity window the key source provides could not be applied, a window the relying party requires was absent, or the input was not well-formed JSON. An undecidable outcome MUST name its cause.¶
A verification can make more than one check. Its outcome is invalid if any check ran and failed, even if another could not run, since no further check could make the receipt valid; undecidable if none failed and at least one could not run; and valid only if every check ran and passed.¶
An undecidable outcome MUST NOT be reported as invalid, because nothing about the receipt has been shown false, and MUST NOT be reported as valid, because nothing has been shown true. A consumer that gates an action on verification MUST treat an undecidable outcome as a failure to verify, distinct from tampering, and SHOULD surface the cause so that an operator can tell a rule that was enforced from a rule that was never reached.¶
The distinction matters in practice. A test suite that asked a verifier to reject receipts carrying an embedded key could not tell, from a bare failure status, whether the verifier had refused the embedded key (the rule enforced) or had failed to recognize the receipt at all (the rule never reached); a conformance script read the same status as "malformed", and a gate built on it went green having measured nothing. Naming the cause is what makes the three outcomes testable; see Section 7.¶
Issuers SHOULD publish their public keys as a JWK Set [RFC7517] at an HTTPS endpoint bound to the issuer. A provisional path convention (pending registration under [RFC8615]; see Section 9) is:¶
GET /.well-known/acta-keys.json
{
"keys": [{
"kty": "OKP",
"crv": "Ed25519",
"kid": "example:issuer:4Kpm7Q3wXx2b",
"x": "<base64url-encoded-public-key>",
"use": "sig"
}]
}
¶
The x parameter MUST be the base64url-encoded Ed25519 public key
as specified in [RFC8037].¶
Issuers MAY alternatively publish the JWK Set at another HTTPS URL bound to the issuer out of band. For offline verification, public keys MAY be distributed out-of-band (e.g., embedded in configuration files or published in DNS TXT records).¶
An issuer that rotates keys publishes, on each JWK in its key set, a
valid_from and a valid_until member: timestamps in the
format of [RFC3339] bounding when the key may be used to sign.
Either member may be absent; an absent bound leaves the window open on that
side. A bound present as null is not a valid timestamp.¶
{
"kty": "OKP",
"crv": "Ed25519",
"kid": "example:issuer:4Kpm7Q3wXx2b",
"x": "<base64url-encoded-public-key>",
"use": "sig",
"valid_from": "2026-01-01T00:00:00Z",
"valid_until": "2026-06-01T00:00:00Z"
}
¶
The window runs from valid_from, included, to
valid_until, excluded. A receipt whose issued_at is before
valid_from, or at or after valid_until, was issued outside
the window. The end is excluded in the way the exp claim of
[RFC7519] is: the moment a key stops being valid is itself
outside its validity.¶
When the key source provides a window for the key resolved in step 4
of Section 5.3, a verifier MUST
apply it to the issued_at member of the signed bytes:¶
A receipt issued outside the window is invalid, as defined in Section 5.4.¶
If the window cannot be applied, because a bound is not a
valid timestamp, valid_until is not after valid_from, or
the signed issued_at is absent or not a valid timestamp, the
outcome is undecidable and names that cause.¶
When the key source provides no window, the verifier cannot establish
whether the key was valid when the receipt was issued. It
MUST report that with its outcome and MUST NOT
describe the key as valid at issued_at. A relying party that needs
the property MAY require a window; a verifier configured to
require one reports a key without a window as undecidable, naming the
missing window as the cause. In every case the verifier's output states
which of these applied, so that a verifier that does not check windows
cannot be mistaken for one whose check passed.¶
The issued_at member is asserted by the signer. A window
therefore detects a key still in use after an honest rotation; it does not
detect a compromised key used to sign receipts dated inside the window.
Bounding when a receipt was actually issued requires its position in a
chain whose head is committed somewhere the issuer cannot rewrite; see
Section 8.7.¶
The previousReceiptHash field MUST be
the string "sha256:" followed by the lowercase hex encoding of
SHA-256(JCS(receipt)), where receipt is the entire signed
receipt object including the signature member. For example:
"sha256:6699b21fea5819eea4df...".¶
Two choices here are deliberate.¶
The preimage is the whole receipt, not its payload
member. Including the signature binds the chain to specific signed bytes, so
re-signing an identical payload, after a key rotation for instance, produces
a distinct chain link and is visible as a chain event. Hashing the payload
alone would make a re-signed receipt indistinguishable from the original,
which is the opposite of what a chain is for.¶
The algorithm prefix makes the digest self-describing, matching
the form used by policy_digest and by source.ref in
Section 4. Earlier revisions encoded the same
digest as bare hex with no prefix.¶
A verifier MUST recognize a link in either of two
forms: "sha256:" followed by exactly 64 lowercase hexadecimal
characters, or, for compatibility with those revisions only, the same 64
characters with no prefix, which an issuer MUST NOT emit. Any
other value of the member, apart from null
(Section 5.7.1), is not a link to any receipt,
and is one of two things:¶
A value that begins with a name and a colon is read as naming
another hash algorithm when the name starts with an ASCII letter or digit,
contains only ASCII letters, digits, ".", "_",
"+" and "-", and is not "sha256" when compared
without regard to case. This document defines links under SHA-256 alone, so a
verifier MUST NOT accept such a value as a link, whether or not
it implements the algorithm, and MUST NOT assume SHA-256 from
the length of what follows. The outcome is undecidable, as defined in
Section 5.4, and names the algorithm as its
cause.¶
Any other value is malformed: a digest in uppercase hexadecimal or of the wrong length, another encoding such as base64url, the empty string, or a value that is not a string. A verifier MUST reject a receipt whose link is malformed, whether or not it holds the predecessor: the receipt is invalid, as defined in Section 5.4.¶
When a caller supplies a receipt's predecessor, asserting that the
receipt follows it, the verifier computes the link of the predecessor as
defined in Section 5.7 and compares it with the
receipt's previousReceiptHash. The receipt follows the predecessor
only if that member is the computed link, in either form. If the member is
absent, null, or any other value, the verifier MUST
report that the receipt does not follow the supplied predecessor. That is a
failed chain check, and the receipt is invalid, as defined in
Section 5.4, with one exception: a value naming
another hash algorithm is undecidable, as Section 5.7
states. Absence never satisfies a supplied predecessor. A receipt that omits
the member is a genesis or an unchained receipt
(Section 2.2), and neither follows the receipt supplied.¶
When a caller gives a verifier a sequence of receipts without
asserting that each follows the one before it, as with a log that holds one
chain per session, a receipt that omits previousReceiptHash begins
a new chain: it is a genesis or an unchained receipt, as
Section 2.2 says. The verifier MUST NOT report
it as linked to the receipt before it, and SHOULD report where
each chain in the sequence begins. A receipt that carries a link is checked
against the receipt before it, as for a supplied predecessor, except the
first receipt of the sequence, which has nothing before it: a link it carries
is reported, not failed. That receipt begins the sequence's first chain, and
the verifier SHOULD say that its predecessor was not supplied.
A log that interleaves the chains of concurrent sessions has to be split into
its chains before it is read this way, and this document does not define
how.¶
In both cases, a verifier MUST NOT accept a link
computed over the predecessor's payload member alone, in either
form, as the link of that predecessor. No revision of this document defines
one, and it would let a re-signed receipt keep the original's link.¶
A previousReceiptHash of null is never a link to
any receipt, and an issuer MUST NOT emit one;
Section 2.2 has the first receipt in a chain omit the member
instead. Against a supplied predecessor, a null link fails as above.
In a sequence, or on a receipt checked alone, a verifier reads null
as an omitted member, so the receipt begins a chain, and
SHOULD warn that its issuer emitted a value it must not.¶
A policy_digest is only evidence if a verifier who has
never communicated with the evaluator can recompute it from public bytes
alone. An identifier whose derivation is private relocates the
self-attestation problem from the decision to the policy: the verifier must
trust the evaluator's claim about which policy governed the decision. To
close this, the digest construction is normative.¶
The policy digest commits to a manifest of the exact policy source files:¶
M = {
"construction": "acta-policy-digest-v1",
"engine": <engine identifier, e.g. "cedar" or "builtin">,
"files": [
{ "name": <file name>,
"sha256": <lowercase hex SHA-256 over the file's exact
UTF-8 bytes> },
...
] // sorted by name, code point order
}
policy_digest = "sha256:" || lowercase_hex(SHA-256(UTF-8(JCS(M))))
¶
Rules:¶
Each file is hashed individually over its exact bytes.
Implementations MUST NOT concatenate policy sources before hashing:
concatenation cannot distinguish the file sets ["ab","c"] and
["a","bc"], and a join delimiter only relocates the ambiguity.¶
Entries are sorted by name in code point order, so
the digest is independent of directory read order. Names are included in
the manifest, so renames produce a distinct digest.¶
For a policy supplied as a single in-memory source rather
than a file, the entry name MUST be "policy.<ext>" for the
engine's conventional extension (for Cedar, "policy.cedar").¶
For policy expressed as structured configuration rather
than source files, the file bytes are the UTF-8 encoding of the JCS
canonical form of the policy object, under the name
"policy.json".¶
Signature validity and policy freshness remain distinct checks:
a receipt whose policy_digest matches a genuinely published policy
can still be stale if that policy is no longer the one in force at
verification time. A conformant verifier that evaluates policy binding
MUST compare the receipt's digest against the policy currently in force,
in addition to verifying the receipt signature.¶
Compatibility note: implementations of earlier revisions of this document (protect-mcp before 0.10.0) emitted engine-specific digest preimages truncated to 16 hexadecimal characters with no algorithm prefix. Verifiers SHOULD treat such values as opaque labels rather than recomputable commitments.¶
An issuer that wants third parties to verify which policy governed its decisions publishes the policy bytes and the preimage specification together, addressed by the digest itself. A provisional path convention (pending registration under [RFC8615]; see Section 9) is:¶
https://<issuer-domain>/.well-known/acta-policies/<hex>.json
{
"schema": "acta.policy-bundle.v1",
"construction": "acta-policy-digest-v1",
"engine": "cedar",
"policy_digest": "sha256:<hex>",
"files": [
{ "name": <file name>, "sha256": <hex>, "content": <string> },
...
],
"generated_at": <RFC 3339 timestamp>
}
¶
where <hex> in the path is the digest value
without the "sha256:" prefix. A verifier recomputes the bundle
from its own bytes: hash each content and compare to its
sha256, construct the manifest M from the (name, sha256) pairs,
and compare "sha256:" || hex(SHA-256(JCS(M))) to
policy_digest. No communication with the issuer beyond fetching
the bundle is required, and the bundle MAY equally be served
at another issuer URL or delivered out of band.¶
Receipts MAY be signed with any of the following algorithms, identified by their JOSE/JWS algorithm names:¶
EdDSA (Ed25519, [RFC8032]):
Mandatory-to-implement (MTI) baseline.¶
ML-DSA-65 [RFC9964] MAY be
used. A verifier that does not implement it reports undecidable.¶
ES256 (ECDSA over P-256, [RFC7518]): Permitted for
compatibility with existing credentials.¶
The signature object MUST contain an
alg field carrying the algorithm name as a string. Verifiers
MUST verify each receipt against the algorithm declared in its own
signature.alg field. Chains MAY contain receipts signed under
different algorithms; verifiers MUST handle each receipt independently.¶
The hash-based constructions in this document degrade gracefully under quantum attack rather than breaking. Grover's algorithm reduces SHA-256 pre-image resistance to roughly 2^128 work, which remains infeasible. Collision resistance is already bounded at 2^128 classically by the birthday bound, and known quantum collision methods do not improve on that at any practical memory or time cost. These constructions therefore need no change. The classical-cryptography component is the outer signature, which the algorithm agility above allows to be upgraded in place.¶
This section defines an OPTIONAL extension that allows a receipt to carry cryptographic commitments to its field values in place of (or alongside) cleartext. Selective disclosure is performed by revealing inclusion proofs for individual fields. The commitment construction is SHA-256 over a salt-prefixed canonical leaf, organized into a Merkle tree following [RFC6962] domain-separation conventions.¶
A receipt that uses commitment mode includes a single new field,
committed_fields_root, in its payload. Verifiers that do not
recognize this field MUST ignore it when performing signature
verification, as the field is part of the canonical signed payload but
its semantics are scoped to consumers that opt into commitment mode.¶
The Merkle tree organization is byte-identical to Certificate Transparency [RFC6962], and implementations SHOULD reuse code from that ecosystem.¶
This construction is not SD-JWT. SD-JWT [RFC9901]
achieves selective disclosure with salted hashes placed in an
_sd array, with no tree; this extension commits to fields through
an RFC 6962 Merkle tree. The two are different constructions and produce
different bytes. A deployment that needs selective disclosure over JWT
claims, and does not need a tree, SHOULD use SD-JWT rather than this
extension.¶
Implementations MUST use the following RFC 6962-style construction with explicit one-byte domain separation:¶
leaf_hash = SHA-256(0x00 || canonical_leaf_bytes) internal_hash = SHA-256(0x01 || left_child_hash || right_child_hash)¶
For a list of leaf hashes D of length n:¶
If n == 1, the Merkle root is D[0].¶
Otherwise, let k be the largest power of two
strictly less than n. The root is
SHA-256(0x01 || MerkleRoot(D[0..k]) || MerkleRoot(D[k..n])).¶
This construction handles non-power-of-two leaf counts without padding by recursively splitting on the largest power of two, matching [RFC6962] Section 2.1.¶
The committed_fields_root field MUST be the
lowercase hex encoding of the resulting 32-byte Merkle root.¶
Each leaf encodes a single committed field as a JCS [RFC8785]-canonicalized JSON object:¶
canonical_leaf_bytes = JCS({
"name": field_name,
"salt": base64url_unpadded(salt_bytes),
"value": field_value
})
¶
The name field MUST be the field's identifier
within the receipt payload (e.g., "principal",
"action"). Including the field name in the leaf binds the
commitment to a specific field and prevents cross-field substitution
attacks. The value field MUST be the cleartext field value,
preserving its original JSON type (string, number, boolean, object, or
array). The salt field MUST be the base64url-encoded
(without padding, per [RFC4648] Section 5) byte string
of the salt.¶
Leaves MUST be ordered by the byte-lexicographic order of
the UTF-8 encoded name field. Implementations MUST NOT apply
locale-aware collation, case folding, or Unicode normalization. Two
implementations that disagree on sort order will produce different
roots; this rule eliminates that source of interoperability failure.¶
Each committed field MUST have its own salt. Salts MUST be
at least 16 bytes and SHOULD be 32 bytes. Implementations SHOULD
generate salts using a cryptographically secure random number
generator (e.g., crypto.getRandomValues in browsers, or
os.urandom on POSIX).¶
Implementations MAY derive salts deterministically from a per-subject master secret, but MUST ensure that erasure of one subject's master secret cannot affect commitments belonging to other subjects. The simplest implementation strategy is to use a fresh random salt per field per receipt; this is the RECOMMENDED default.¶
The salt-prefix ordering for the leaf-level hash inside the canonical leaf JSON object is implementation-internal: the leaf hash is SHA-256 over the JCS-canonicalized object, not over a raw concatenation. This sidesteps salt-ordering ambiguity entirely.¶
For implementations that emit a separate per-field
commitment value alongside the Merkle leaf (for example, in earlier
draft versions or in a per-field disclosure envelope), the per-field
commitment MUST be computed as SHA-256(salt || value_bytes)
where value_bytes is the UTF-8 encoding of the JSON-stringified
value. Implementations MUST NOT use the reverse ordering
SHA-256(value_bytes || salt); receipts that do so MUST be
rejected as malformed.¶
To disclose a single field to a verifier, the discloser provides:¶
The cleartext field name, value, and
salt.¶
A Merkle inclusion proof, consisting of the leaf's
zero-based index within the canonically-sorted leaf list, the
total tree_size, and the ordered list of siblings
(hex-encoded SHA-256 hashes) along the path from the leaf to the
root.¶
No left/right indicator is carried for each sibling, and none is
needed. Because Section 6.1 fixes the
split at the largest power of two strictly less than the node count, the
side of every sibling is determined by index and
tree_size alone, and a verifier MUST derive it
under that rule. This is deliberate rather than an omission. A verifier
that instead assumes a padded fixed-depth tree, taking the side from the
bits of index as is common in implementations that pad the leaf
count up to a power of two, agrees with this construction only when the
leaf count is already a power of two and diverges at every other size. For
tree_size 5 and index 4 the correct path has one element,
while the padded derivation expects three.¶
The verifier reconstructs the leaf hash from the disclosed
(name, salt, value) tuple, walks the inclusion proof, and
compares the resulting root to committed_fields_root in the
signed receipt. Mismatch MUST cause the disclosure to be rejected.¶
A formal Disclosure object with recipient binding,
expiry, custody chain, and revocation handle is out of scope for this
draft and is deferred to a future revision. Implementations MAY use a
minimal disclosure envelope of {name, value, salt, proof} in
the interim.¶
An interoperability test suite is published alongside this draft at https://github.com/ScopeBlind/agent-governance-testvectors (Apache-2.0). Each implementation under test is driven by a script that emits receipts for a fixed set of tool calls under a fixed policy; the receipts are then checked, one at a time, against the published JSON Schema for the two shapes of Section 5.2, with the reference verifier under a trust-anchored key, and for chain order, link integrity, and the decision each fixture expects. At the time of this revision, four implementations pass the shared suite (ScopeBlind/agent-governance-testvectors) in CI: protect-mcp (TypeScript, maintained by this document's author) and three independently maintained Python implementations: nobulex, the APS governance hook and cryptovalid-opencore (Appendix A.12, Appendix A.13 and Appendix A.14). The suite's CI also replays argentum-core's farley-receipt-signature vectors and the 25 vectors of the agent-evidence-vectors receipt-signature corpus against the reference verifier.¶
Other work builds on this document or checks receipts in its
format. This document records no interoperability result for it beyond the
suite's CI. [ASQAV-COMPLIANCE] builds a compliance profile on
this document's receipt model, with its own conformance rules, and treats this
document as an informative antecedent; the asqav SDK implements that profile,
and its service signs receipts with ML-DSA-65 (Appendix A.15). The EMILIA protocol
has a runnable example that checks protectmcp:decision receipts under
a pinned issuer key and composes them with its own receipts
(Appendix A.16). Verifiers and test sets maintained outside the
suite include TRACE's Acta verifier, whose fixtures this document's author
contributed (Appendix A.17); the agent-evidence-vectors
receipt-signature corpus (Appendix A.18);
argentum-core's farley-receipt-signature vectors
(Appendix A.19); and receipt-verify, a TypeScript
verifier whose tests include published Acta receipts
(Appendix A.20).¶
The suite exercises:¶
Both receipt shapes of Section 5.2, each with its own signing-input rule.¶
The chain hash rule of Section 5.7: each receipt's link is computed over the previous receipt as transmitted, signature included. Checked alone, a receipt whose link is malformed, either not a digest or in uppercase hexadecimal, is invalid, and one whose link names SHA3-256 or SHA-512 is undecidable.¶
The policy digest rule of Section 5.8: the digest is recomputed from the policy bytes as loaded and compared with the digest the receipt carries, and a receipt whose digest was not computed that way fails.¶
The three verification outcomes of Section 5.4 for a key carried inside the signed bytes: with no key supplied from outside the receipt, the outcome is undecidable and names the embedded key as the cause; with a key supplied from outside the receipt that differs from the carried one, the outcome is invalid; with the trust-anchored key, valid. A verifier that resolves the carried key and reports valid fails the suite.¶
The evidence predicate of Section 4: decision receipts whose evidence entries verify under the named source, and structurally malformed entries that do not.¶
The key validity windows of
Section 5.6: with a key set that bounds the key, a
receipt issued inside the window is valid, and receipts issued before
valid_from, exactly at valid_until, and after it are
invalid; with a key set that carries no window, the outcome is valid and
reports the key's validity at issuance as not established.¶
For the optional commitment mode (Section 6), the minimum set is:¶
A cleartext receipt with no committed_fields_root
field (signature and JCS output only).¶
A receipt with four committed fields: the expected Merkle root and an inclusion proof for each field.¶
A chain of three receipts: the expected
previousReceiptHash values.¶
A tampered Merkle proof: MUST fail verification.¶
Planned: an algorithm-mixed chain (Ed25519 followed by ML-DSA-65), each receipt checked against its own algorithm.¶
A non-power-of-two leaf count (e.g., five committed fields): exercises the recursive split rule.¶
Test vectors use fixed (non-random) salts to remain reproducible across implementations. Production deployments MUST NOT reuse the test-vector salts and MUST follow the salt construction guidance in Section 6.4.¶
Receipts include an issued_at timestamp but do not
include a nonce or sequence number.¶
This guidance applies to live presentation: a receipt offered as evidence of a currently effective authorization. In that case verifiers SHOULD reject receipts whose timestamps are unreasonably old (implementation-defined; 24 hours is RECOMMENDED as a default).¶
It does not apply to archival verification: examining a receipt as a record of what was authorized at some past time, which is one of the purposes stated in Section 1. Applying a freshness window there would reject every receipt in an audit older than the window. A verifier performing archival verification SHOULD NOT apply one, and SHOULD report the receipt's age rather than deciding on the caller's behalf.¶
For environments requiring stronger replay protection, implementations
MAY add a nonce field to the payload.¶
If an issuer's signing key is compromised, all receipts signed with
that key become suspect. Issuers SHOULD implement key rotation by
publishing new keys at the well-known endpoint and including a
valid_from / valid_until window in the JWK metadata.¶
Verifiers apply key validity windows as defined in Section 5.6. A window detects a key still in use after an honest rotation, not a compromised key used to sign receipts dated inside the window.¶
Receipts are designed to capture decision metadata, not request content. Implementations MUST NOT include raw prompts, tool arguments, API keys, or other sensitive parameters in receipt payloads.¶
The tool_name and decision fields are considered non-sensitive.
The session_id field SHOULD be an opaque identifier that is not
correlatable across sessions.¶
The signing process relies on JCS [RFC8785] for deterministic serialization. Implementations MUST use a conformant JCS implementation to prevent canonicalization divergence attacks where the signed bytes differ from the verified bytes.¶
Receipts are designed to be verified by parties who do not trust the issuer and did not observe the decision being made. This property (the "issuer-blind" property) is the basis for the third-party auditability claim of this document. The property holds only if the verification key a verifier uses to check a signature is sourced through a channel outside the signed payload itself.¶
A carried key is the value of a public_key,
verification_key or verification_jwk member of the signed
bytes of a receipt. A verifier MUST NOT verify with a carried
key. If a trust-anchored key is available and the receipt carries a key that
is not that key, the receipt is invalid
(Section 5.4).¶
An embedded key is strictly controllable by any party able to produce the rest of the payload; a signature that verifies under an attacker-chosen key provides no authenticity guarantee against tampering and is strictly worse than no signature at all, because it provides false assurance. A key can also be embedded under a member name not listed above. Such a member is not a carried key, but a verifier still never takes its verification key from the receipt (Section 5.3, step 4).¶
Conformant verifiers MUST resolve verification keys through one or more of the following external mechanisms, in order of preference when multiple are available:¶
A JWK Set [RFC7517] retrieved from a URL bound to the issuer by an independently authenticated trust root (e.g., a server TLS certificate validated via the Web PKI, or a signed DNS record).¶
A DID Document whose authenticity follows from the DID method's own verification procedure.¶
A trust anchor configured out-of-band by the verifier operator (e.g., a pinned Ed25519 public key loaded from a verifier configuration file).¶
A well-known endpoint of the issuer's domain, as described in Section 5.5, provided the domain binding is independently authenticatable.¶
A key delivered in the same file, bundle or message as the receipt is not out of band.¶
Verifiers SHOULD expose the externally sourced key provenance to
the caller (e.g., via a keySource field in structured output)
so that the caller can distinguish a verification anchored by
--jwks from one anchored by a locally configured trust
anchor. This supports defense in depth when an operator layers key
provenance constraints above signature verification.¶
Implementations MAY provide a deprecated escape hatch (e.g., a command-line flag) that allows acceptance of embedded keys during a migration window. Such an escape hatch MUST be off by default, MUST emit a visible warning when engaged, and MUST be removed in a subsequent release. See the reference verifier [VERIFY-REF] for one such implementation.¶
This section was added in draft-02 in response to a public stress- test of draft-01 that identified the embedded-key pattern as a conformance gap. A negative conformance test vector set ([TESTVECTORS]) exercises the required rejection behavior across representative envelope shapes (flat v1, structured v2, Passport-style, full-JWK-embedded).¶
A receipt is signed by its issuer at issue time. Nothing a verifier learns or computes later can be added to it without invalidating that signature. A field describing which verifier checked a receipt therefore cannot be a member of the signed payload, and a prior revision of this document listed one.¶
Where a deployment needs to record which verifier performed a check, that belongs in a separate verification report that references the receipt by its hash and is signed by the verifier. Such a report is out of scope for this document. A verifier MUST NOT add members to a receipt it has verified, and a consumer MUST NOT treat any member of a receipt as evidence about the party that verified it.¶
A receipt chain proves that the receipts a verifier holds have not been altered and have not been reordered. It does not prove that the verifier holds all of them.¶
Removing receipts from the end of a chain leaves every remaining
link and every remaining signature valid. A verifier presented with the
truncated set cannot distinguish it from a complete one, because nothing in
the set commits to how long the set is. This is the omission most worth
guarding against: the receipt an operator would prefer a reviewer not to see
is usually the most recent. Removing receipts from the middle is detectable,
since the next receipt's previousReceiptHash will not match, and
that difference is easy to mistake for completeness.¶
Detecting truncation requires a commitment, external to the chain, to the number of receipts and the terminal hash at a given point, signed by the issuer. A verifier that checks a chain against such a commitment can detect omission at the end; a verifier given no commitment MUST NOT report the set as complete, and SHOULD report that it verified integrity only.¶
The commitment is only worth as much as its location. Stored alongside the receipts it describes, it is deletable by whoever deletes the receipts, and the truncated set verifies clean again. It constrains an issuer only once it has reached somewhere that issuer cannot later rewrite. This document does not specify that destination, which depends on what infrastructure the deployment already has and what an adversary controls within it.¶
A further property is out of scope here: these mechanisms let one verifier detect omission from the set it was given, but they do not establish that every verifier was given the same set. An issuer can maintain divergent histories and show each verifier a self-consistent one. Detecting that requires verifiers to compare what they were shown, through a mechanism such as a witnessed or gossiped log, and no construction in this document provides it.¶
An Access Decision Receipt attests that a policy was evaluated and
what it returned. It does not attest that the action then executed, that it
succeeded, or what it returned. An "allow" receipt records
permission, not performance, and a verifier
MUST NOT read one as evidence that the tool ran.¶
Where a deployment needs the executed fact, that is a separate
post-execution receipt issued after the invocation returns, binding the
decision it acted on to the observed outcome.
tool_duration_ms and sandbox_state
(Section 2.2) belong to that second receipt, and their presence
in a receipt is what distinguishes it from a decision-time one. The value
"require_approval" makes the same separation explicit for held
actions.¶
Conflating the two is a common error in receipt formats, and it fails in the direction that matters: a reviewer concludes an action occurred because it was permitted, or that it was blocked because no execution receipt exists, when the receipt set only ever established the decision.¶
The OPTIONAL evidence field (Section 4)
can make a decision look well-founded without being so: source.authority,
source.kid, and the dimension states are all under the receipt signer's
control. A relying party MUST derive assurance only from source.sig values
it verifies under out-of-band-pinned keys that are distinct from the receipt signer
(see Section 4.3), never from the presence of
evidence, a plausible authority, or a matching kid. Two
forgeries are defeated by the trust model, each exercised as a negative reference
vector ([TESTVECTORS]) that verifies as a
receipt yet corroborates nothing: a named-key forgery (a trusted kid
copied in with no valid sig) and self-corroboration (the signer signs the
claim with its own key). An implementation that surfaces evidence to a
human or a downstream policy MUST visibly distinguish dimensions carrying an
independent, verified source.sig from those that do not.¶
This document has no IANA actions.¶
Future versions of this specification MAY request registration of:¶
A receipt-type registry for namespaced receipt type identifiers.¶
Well-known URI suffixes under [RFC8615] for
acta-keys.json (Section 5.5) and
acta-policies (Section 5.8.1).¶
A media type for the receipt serialization defined in this
document. Receipts are currently exchanged as application/json,
which does not let a recipient distinguish a receipt from arbitrary JSON
before parsing it.¶
This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist.¶
Note to the RFC Editor: please remove this section, and the reference to [RFC7942], before publication.¶
Organization: ScopeBlind, maintained by this document's author.¶
Implementation: https://www.npmjs.com/package/protect-mcp¶
Description: Security gateway for MCP servers with Cedar WASM policy evaluation, Ed25519-signed decision receipts, and Claude Code hook integration. Supports stdio proxy mode, HTTP hook server mode, shadow mode (log-only), and enforce mode.¶
Coverage: Access Decision Receipts.¶
Licensing: MIT.¶
Version: 0.32.4.¶
Organization: ScopeBlind, maintained by this document's author.¶
Implementation: https://pypi.org/project/scopeblind-pydantic-ai/¶
Description: Pydantic AI Capability for Ed25519 receipt signing. Uses wrap_tool_execute hook for policy evaluation and signing.¶
Coverage: Access Decision Receipts.¶
Licensing: MIT.¶
Organization: ScopeBlind, maintained by this document's author.¶
Implementation: https://pypi.org/project/scopeblind-llamaindex/¶
Description: LlamaIndex CallbackHandler for FUNCTION_CALL events. Signs tool calls via BaseCallbackHandler, composes with other handlers (Langfuse, Arize, etc.).¶
Coverage: Access Decision Receipts.¶
Licensing: MIT.¶
Organization: ScopeBlind, maintained by this document's author.¶
Implementation: https://www.npmjs.com/package/@scopeblind/vercel-ai¶
Description: Hooks into Vercel AI SDK's experimental_onToolCallStart and experimental_onToolCallFinish for per-tool-call receipt signing.¶
Coverage: Access Decision Receipts.¶
Licensing: MIT.¶
Organization: ScopeBlind, maintained by this document's author.¶
Implementation: https://www.npmjs.com/package/@scopeblind/langchain¶
Description: Evidence wrapper for LangChain tool calls and LangGraph node transitions. Produces decision/execution/outcome receipt DAGs.¶
Coverage: Access Decision Receipts, graph-level receipts.¶
Licensing: MIT.¶
Version: 0.2.0.¶
Organization: Microsoft¶
Implementation: https://github.com/microsoft/agent-governance-toolkit¶
Description: Consumes receipts via a Cedar policy bridge (PR #667), governed examples for software tool calls (PR #1159) and physical attestation (PR #1168). Not a signing implementation; reads and validates receipts produced by other implementations.¶
Coverage: Access Decision Receipts (consumer-only).¶
Licensing: MIT.¶
Organization: AWS / Cedar Policy¶
Implementation: https://github.com/cedar-policy/cedar-for-agents¶
Description: WASM bindings for Cedar policy evaluation in JS/TS agent hosts. SchemaGenerator (PR #64, merged) and RequestGenerator (PR #73) enable Cedar-native policy evaluation that produces the policy_digest field referenced in receipts.¶
Coverage: Policy evaluation inputs; does not produce receipts directly.¶
Licensing: Apache-2.0.¶
Organization: Linux Foundation / Sigstore¶
Implementation: https://rekor.sigstore.dev¶
Description: Receipts submitted as DSSE entries to Rekor's public transparency log. Provides an independent temporal anchor: the Rekor inclusion proof and signed entry timestamp prove the receipt existed at a specific time without trusting the receipt operator. Working proof-of-concept submitted (issue #2798).¶
Coverage: Temporal anchoring of any receipt type.¶
Notes: Uses DSSE envelope with payloadType "application/vnd.scopeblind.receipt+json". Ed25519ph (prehash variant) required for the alternative hashedrekord entry type.¶
Maintainer: arian-gogani.¶
Implementation: https://github.com/ScopeBlind/agent-governance-testvectors/tree/main/implementations/nobulex, the conformance driver added in pull request #12 of that suite.¶
Language: Python.¶
Description: Emits one signed receipt per fixture of the shared suite. Its README names the shape decision_receipt: Ed25519 over the JCS bytes of the receipt with its signature member removed, a kid that is an RFC 7638 thumbprint, and no key carried in the receipt.¶
Coverage: Passes the shared suite's checks in CI: the schema, every signature under the supplied key, and the chain and expected decisions.¶
Licensing: Apache-2.0, as part of the suite.¶
Organization: Agent Passport System, maintained by aeoess.¶
Implementation: https://github.com/ScopeBlind/agent-governance-testvectors/tree/main/implementations/aps-governance-hook, the conformance driver added in pull request #1 of that suite. It signs with the Agent Passport System Python SDK, https://github.com/agent-passport-system/agent-passport-python.¶
Language: Python.¶
Description: Evaluates each fixture with Cedar through cedarpy and emits receipts signed with Ed25519, using the Agent Passport System SDK for JCS and signing. The driver calls the shape an ACTA v2 decision_receipt. The verifier takes the key by kid from a separate JWK Set; no key is carried in the receipt.¶
Coverage: Passes the shared suite's checks in CI.¶
Licensing: Apache-2.0.¶
Maintainer: robertolocatelli81-dev.¶
Implementation: https://github.com/robertolocatelli81-dev/cryptovalid-opencore. The shared suite's driver for it was added in pull request #25 of that suite.¶
Language: Python.¶
Description: Emits and verifies receipts in the envelope shape (cryptovalid_acta.py), written against revision -03: PureEdDSA over JCS(payload), chain links over the whole signed receipt (Section 5.7), and the policy digest recomputed from the policy bytes (Section 5.8).¶
Coverage: Passes the shared suite's checks in CI.¶
Licensing: AGPL-3.0.¶
Maintainer: jagmarques (Asqav).¶
Implementation: https://github.com/jagmarques/asqav-sdk.¶
Language: Python and TypeScript.¶
Description: SDKs for the Compliance Receipts of [ASQAV-COMPLIANCE], a profile built on this document's receipt model with its own conformance rules. Its README says that receipts issued by its service are signed with ML-DSA-65, and locally signed ones with Ed25519 or ES256. Its ACTA adapter verifies receipts in this document's envelope shape under Ed25519, written against revision -02.¶
Coverage: Compliance Receipts, which it emits and verifies; receipts in this document's envelope shape, which it verifies under Ed25519 only.¶
Licensing: Elastic License 2.0 for the client SDKs; Apache-2.0 for the verifier and conformance vectors.¶
Organization: emiliaprotocol (GitHub organization).¶
Implementation: https://github.com/emiliaprotocol/emilia-protocol, examples/acta-ep-join.¶
Language: TypeScript.¶
Description: A runnable example that checks protectmcp:decision receipts under an issuer key pinned for the decision role, and composes them with EMILIA's own receipts (EP-RECEIPT-v1) for the same action. Its README calls it a non-normative interoperability profile against revision -02 that supports the Ed25519 path only.¶
Coverage: Access Decision Receipts in the envelope shape, Ed25519 only. Its README says it refuses an envelope that carries its own verification key.¶
Licensing: Apache-2.0.¶
Organization: agentrust-io (trace-spec); the verifier is by astrogilda.¶
Implementation: https://github.com/agentrust-io/trace-spec, tools/acta_receipt_verifier.py, with fixtures in examples/action-receipts/acta.¶
Language: Python.¶
Description: Verifies receipts in this document's envelope shape: the refusal of a signature member (Section 5.2), Ed25519 over JCS(payload) under a key from an external JWK Set, key validity windows, and chain links. It was added in trace-spec pull request #469 and graded against revision -03. Its 11 protectmcp:decision fixtures were contributed by this document's author.¶
Coverage: Envelope-shape receipts signed with Ed25519.¶
Licensing: Apache-2.0 for code and examples; the specification text is under the Community Specification License 1.0.¶
Organization: probityai, maintained by astrogilda.¶
Implementation: https://github.com/probityai/agent-evidence-vectors, the receipt-signature corpus.¶
Language: Python.¶
Description: Conformance corpora and reference verifiers for agent evidence formats. Its receipt-signature corpus holds 25 vectors for this document, tracking revision -03, and the shared suite's CI replays it against the reference verifier.¶
Coverage: The signing input, key validity windows and chain links.¶
Licensing: Apache-2.0.¶
Maintainer: giskard09.¶
Implementation: https://github.com/giskard09/argentum-core, examples/conformance/farley-receipt-signature.¶
Language: Python.¶
Description: Four vectors for receipts in this document's envelope shape: two cases, each with a conformant twin. One signs bytes that are not the JCS form, and the other uses a key after its valid_until. A reference verifier is included. The shared suite's CI runs the vectors against the reference verifier.¶
Licensing: Apache-2.0.¶
Maintainer: LembaGang.¶
Implementation: https://github.com/LembaGang/receipt-verify (npm package @headlessoracle/receipt-verify).¶
Language: TypeScript.¶
Description: A cross-format verifier that returns one of three verdicts per receipt. Its Acta adapter follows revision -02: it takes the envelope's signing input to be the receipt without its signature member, not JCS(payload) as Section 5.2 now specifies. It verifies EdDSA and ES256, reports ML-DSA-65 as unverifiable, and implements commitment mode. Its tests include published Acta receipts.¶
Licensing: Apache-2.0.¶
The following example demonstrates end-to-end receipt creation and verification.¶
Steps 1 and 2 together form one ES module (for example,
sign.mjs), run with Node.js after
npm install @scopeblind/passport. Step 2 writes
receipt.json, and Step 3 verifies it with the public key that Step 1
prints. The output shown came from @scopeblind/passport 0.4.3 and
@veritasacta/verify 0.10.27. Each run generates a new key, so the
identifiers will differ.¶
import { generateIssuerKey } from '@scopeblind/passport';
const issuer = generateIssuerKey();
console.log(issuer.issuerId);
console.log(issuer.publicKeyHex);
// One run printed:
// sb:issuer:BrmdDbomqHgK
// a154c931eb9b746c8d3b07dcca39bc3680ecc0dc5cc2d5e385522954a1f0ab0c
¶
The policy_digest below is the acta-policy-digest-v1
digest (Section 5.8) of one Cedar file,
policy.cedar, holding permit(principal, action, resource);
and a newline.¶
import { signReceipt } from '@scopeblind/passport';
import { writeFileSync } from 'node:fs';
const receipt = signReceipt(
{
type: "protectmcp:decision",
tool_name: "deploy",
decision: "allow",
agent_tier: "privileged",
policy_digest: "sha256:" +
"ba145cbc4d96bea7c7590e4f24295925" +
"6b59b0075163bab6f53f4b300957c7ba",
issued_at: "2026-03-22T14:32:06.551Z",
issuer_id: issuer.issuerId
},
issuer.secretKeyHex,
issuer.issuerId
);
writeFileSync('receipt.json', JSON.stringify(receipt, null, 2));
¶
Here <64-hex> is the public key that Step 1 prints.
The output is cut after the keySource member.¶
$ npx @veritasacta/verify receipt.json --key <64-hex> --json
{
"valid": true,
"outcome": "valid",
"checks": {
"signing_input": {
"result": "pass"
},
"signature": {
"result": "pass"
},
"issuer_kid": {
"result": "pass"
},
"chain_link": {
"result": "absent"
},
"key_window": {
"result": "not_established"
}
},
"connectorAction": null,
"format": "passport",
"type": "protectmcp:decision",
"kid": "sb:issuer:BrmdDbomqHgK",
"issuer": null,
"keySource": "provided",
...
}
¶
Note to the RFC Editor: please remove this appendix before publication. Change logs for earlier revisions (-01 through -03) are retained in the document's source repository and prior Datatracker postings.¶
Document structure: moved core normative sections (Section 5.2, Section 5.7, Section 5.8, and Section 5.9) out of the optional Section 6 section into Section 5, and promoted Section 7 to a top-level section. Removed the historical -01 and -02 change-log appendices and the unused RFC 9497 reference.¶
Section 1.2 (new): states the design rationale relative to JWS ([RFC7515]) and COSE ([RFC9052]), and notes when those formats should be preferred.¶
Vendor neutrality and IANA hygiene: replaced the vendor-prefixed
sb:issuer: recommendation in Section 2.1.1 with
issuer-defined identifiers (such as [RFC7638] JWK Thumbprints or
namespaced fingerprints), replaced illustrative vendor examples with neutral
ones while retaining protectmcp:decision for wire compatibility,
marked /.well-known/acta-keys.json and
/.well-known/acta-policies/ as provisional conventions pending
[RFC8615] registration in Section 9,
and renamed non-Internet-Draft reference anchors.¶
Section 5.4 (new): verification has
three outcomes, valid, invalid, and undecidable; a verifier distinguishes all
three in every consumable output, an undecidable outcome names its cause, and a
gate treats it as a failure to verify rather than as tampering or as a pass.
When several checks run, the verification is invalid if any failed, and
undecidable only if none failed and one could not run. Step 7 of
Section 5.3 refers to it. Among the causes of an
invalid outcome are a carried key that differs from the trust-anchored key; a
signature member in the object canonicalized, whether or not the
signature verifies; and, in the envelope shape, a payload whose
issuer_id differs from signature.kid. A payload that lacks a
member Section 2.2 requires, or that does not conform to its
declared type, is reported separately and does not change the outcome.¶
Section 5.6 (new): key validity
windows. When the key source gives a key a valid_from /
valid_until window, applying it to issued_at is required (-03
said SHOULD). The window includes valid_from and excludes
valid_until, as [RFC7519] treats exp. A
receipt outside it is invalid, a window that cannot be applied is undecidable,
and with no window a verifier reports the key's validity at issuance as not
established rather than as valid. The window applies to the issued_at
member of the signed bytes. A signed issued_at that is absent or not a
valid timestamp leaves the window unapplied and the outcome undecidable.
Section 5.3 gains a step for it,
Section 5.4 lists the new invalid and undecidable
causes, and Section 7 lists the corresponding vectors.¶
Section 5.7 and
Section 5.7.1 (new): how a verifier treats chain
links. A verifier must recognize both forms of link: "sha256:" and 64
lowercase hexadecimal characters, and the bare 64 characters of earlier
revisions (-03 said MAY for the bare form). A value whose prefix names another
hash algorithm is undecidable, not rejected, whether or not the verifier
implements that algorithm; -03 said to reject a prefix naming an algorithm the
verifier does not implement, which left the outcome to the verifier. Any other
value is malformed, uppercase hexadecimal included, and the receipt is invalid
whether or not its predecessor is at hand. A link over the predecessor's
payload alone never matches. Given a predecessor by its caller, a receipt
follows it only if it carries that receipt's link, so an absent or
null link fails, a case -03 left open. Reading a sequence, a receipt
without a link begins a new chain and is never reported as linked to the one
before it, and a null link is read the same way, with a warning. A
link on the first receipt of a sequence is reported, not failed, since its
predecessor was not supplied, and a log that interleaves chains has to be split
into them first, which this document does not define.
Section 2.2 points at the new subsection,
Section 5.4 lists the new invalid and undecidable
causes, and Section 7 lists the corresponding vectors.¶
Section 7: the interoperability suite is named, what it checks is listed (both shapes, the chain hash rule, the policy digest rule, the three outcomes for a key carried inside the signed bytes, the evidence predicate, and key validity windows), and four implementations are recorded as passing it in CI: protect-mcp, maintained by this document's author, and three independently maintained Python implementations. Other work that builds on or checks the format is listed, with no interoperability result claimed beyond the suite's CI. In the commitment-mode minimum set, the algorithm-mixed chain (Ed25519 followed by ML-DSA-65) is now marked planned, where -03 said it MUST verify; the rest of that set is unchanged.¶
Section 5.9: ML-DSA-65 [RFC9964] may be used, and a verifier that does not implement it reports undecidable; -03 recommended it for new deployments. [RFC7518] is cited for ES256 only, and the ES256 entry no longer refers to a draft on zero-knowledge proofs.¶
Section 8.5: a carried
key is the value of a public_key, verification_key or
verification_jwk member of the signed bytes of a receipt. A verifier
never verifies with one, and a receipt that carries a key other than the
trust-anchored key is invalid. Revision -03 also covered "any equivalent name";
other names are now advice only. A key delivered in the same file, bundle or
message as the receipt is not out of band.¶
The document now defines one receipt type. The Arena Battle,
Spending Authority and Formal Debate receipts, the context binding for
zero-knowledge proofs, the trust tiers and the agent identity section are
removed. The Agent Lifecycle, Arena Battle and Spending Authority types, and
Formal Debate with its fields not yet defined, are listed in
receipt-types.md, an informative registry kept with this document,
and the agent manifest is described in agent-manifest.md, with its key
member renamed agent_public_key. The Restraint Receipt is folded into
the Access Decision Receipt: reason, spelled "policy_block"
and "agent_refusal", replaces its denial_type, and
agent_id and agent_manifest_version become OPTIONAL fields.
The agent_tier field no longer lists tier values, and
Section 5.5 no longer lists agent manifests as a
key source.¶
Appendix A follows [RFC7942], marks all implementations maintained by this document's author, updates their versions, and adds entries A.12 to A.20. Appendix B runs as written, shows output from a real run, and carries a policy digest computed as Section 5.8 specifies.¶
The XML source no longer embeds the markdown source of -02.¶
The Acta receipt format was developed as part of the Veritas Acta protocol, an infrastructure for verifiable machine decision-making. The design draws on work in the IETF OAuth and Web Authentication communities, particularly RFC 9449 (DPoP) for proof-of-possession patterns and RFC 8785 (JCS) for deterministic serialization.¶
The evidence predicate in Section 4
originated in a proposal from Seydou Diaby of UseTruth, who identified that a
receipt records which decision was made but not the basis it rested on, and
who contributed the closed value sets and the structured source
object. The requirement that the attesting key be independent of the receipt
signer, and the false-assurance analysis that follows from it, were developed
jointly.¶
Thanks to giskard09 (argentum-core), Roberto Locatelli, and astrogilda for showing, with published vectors and a second implementation, that under the -03 wording a verifier could apply a key's validity window or skip it and still conform, which made the outcome for a receipt signed with a rotated key a property of the verifier rather than of the receipt. The rule in Section 5.6 follows from that measurement.¶
Thanks to Michael Msebenzi for a detailed errata review of the
-02 revision, conducted by building an independent verifier and
recomputing against pinned bytes. That review identified the signing-scope
contradiction between Sections 2.2, 4.1 and 5.6, the unspecified location
and lifecycle of previousReceiptHash, the conflict between the
fixed signature length and algorithm agility, the freshness window's
effect on archival verification, the absent note on deriving sibling side
in inclusion proofs, and errors in the change-log appendices. All are
addressed in this revision.¶
Thanks to Sam Gardner for identifying an inconsistency in the signature preimage definition in the -01 revision, where the signature scope section described signing over SHA-256(JCS(payload)) while the signature object and the signing and verification procedures signed over the canonical JCS bytes directly. The signature scope section (Section 5.2) was corrected in -02 to match the signing process (Section 5.1). Sections are named rather than numbered here because the numbering has changed across revisions.¶
The action_ref normative definition was developed in
collaboration with the Agent Passport System project. The
iteration_id field was proposed by contributors to the HyperAgents
safety policy discussion. Cross-engine composition testing was performed
against receipts from ScopeBlind (Cedar policy), Agent Passport System
(delegation scope), and AgentID (identity verification). Earlier revisions
also benefited from discussions around verifier_sigil (motivated by
Sigil), physical attestation (ETCF and Microsoft Agent Governance Toolkit
issue #787, with SINT Protocol and the agent-governance-vocabulary project),
and SLSA provenance mapping (SLSA issue #1606).¶
The Rekor transparency log integration was informed by feedback from Hayden-IO (Sigstore contributor), who clarified the Ed25519ph requirement for hashedrekord entries and confirmed DSSE as the recommended entry type for Ed25519-signed attestations.¶