<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-farley-acta-signed-receipts-04" category="info" version="3" submissionType="independent">
  <!-- xml2rfc v2v3 conversion 3.33.0 -->
  <front>
    <title abbrev="Acta Signed Receipts">Signed Decision Receipts for Machine-to-Machine Access Control</title>
    <seriesInfo name="Internet-Draft" value="draft-farley-acta-signed-receipts-04"/>
    <author initials="T." surname="Farley" fullname="Tom Farley">
      <organization>ScopeBlind (Veritas Acta)</organization>
      <address>
        <email>tom@scopeblind.com</email>
      </address>
    </author>
    <date year="2026" month="November" day="21"/>
    <area>Security</area>
    <workgroup>Independent</workgroup>
    <keyword>MCP</keyword>
    <keyword>receipts</keyword>
    <keyword>Ed25519</keyword>
    <keyword>access-control</keyword>
    <keyword>AI agents</keyword>
    <abstract>
      <t>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 <xref target="RFC8032"/> and serialized using
deterministic JSON canonicalization <xref target="RFC8785"/>.</t>
      <t>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.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>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.</t>
      <t>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.</t>
      <t>This specification defines a <strong>Signed Decision Receipt</strong> format that
provides:</t>
      <ol spacing="normal" type="1"><li>
          <t><strong>Portable evidence</strong>: Receipts are self-contained JSON objects
that can be stored, transmitted, and verified independently.</t>
        </li>
        <li>
          <t><strong>Cryptographic integrity</strong>: Each receipt is signed using Ed25519
(RFC 8032), ensuring tamper detection without PKI infrastructure.</t>
        </li>
        <li>
          <t><strong>Offline verification</strong>: Any party with the issuer's public key
can verify a receipt without network access or API calls.</t>
        </li>
        <li>
          <t><strong>Minimal disclosure</strong>: Receipts capture the decision metadata
(tool name, decision, tier, timestamp) without logging raw request
payloads, prompts, or sensitive parameters.</t>
        </li>
      </ol>
      <t>Further receipt types are listed in <tt>receipt-types.md</tt>, an
informative registry kept with this document at
<eref target="https://github.com/VeritasActa/drafts/blob/main/receipt-types.md"/>.</t>
      <section anchor="relationship-to-mcp">
        <name>Relationship to MCP</name>
        <t>The Model Context Protocol <xref target="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.</t>
        <t>This specification is complementary to <xref target="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.</t>
      </section>
      <section anchor="design-rationale">
        <name>Design Rationale: Relationship to JWS and COSE</name>
        <t>This specification defines a JSON envelope signed over JCS
<xref target="RFC8785"/> canonical bytes with lowercase hexadecimal
signatures rather than using JSON Web Signature (JWS) <xref target="RFC7515"/>
or CBOR Object Signing and Encryption (COSE) <xref target="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 (<xref target="RFC7517"/>) and algorithm identifiers
(<xref target="RFC7518"/>, <xref target="RFC8037"/>, <xref target="RFC9964"/>)
are reused from JOSE rather than reinvented. Deployments already standardized
on CBOR/COSE transparency logs or compact bearer tokens (<xref target="RFC7519"/>,
<xref target="RFC9901"/>) <bcp14>SHOULD</bcp14> use those formats instead of
this one.</t>
      </section>
      <section anchor="terminology">
        <name>Terminology</name>
        <t>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 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all
capitals, as shown here.</t>
      </section>
    </section>
    <section anchor="receipt-structure">
      <name>Receipt Structure</name>
      <t>A Signed Decision Receipt is a JSON object with two top-level fields:
<tt>payload</tt> and <tt>signature</tt>.</t>
      <section anchor="signed-envelope">
        <name>Signed Envelope</name>
        <artwork><![CDATA[
{
  "payload": { ... },
  "signature": {
    "alg": "EdDSA",
    "kid": "<issuer-identifier>",
    "sig": "<hex-encoded-ed25519-signature>"
  }
}
]]></artwork>
      <t>This is the envelope shape, and it is the shape new implementations
<bcp14>SHOULD</bcp14> emit. A second, flat shape carries the payload fields
at the top level alongside a <tt>signature</tt> 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
<bcp14>MUST</bcp14> determine which shape it is handling before computing or
checking a signature; see <xref target="signature-scope"/>. Except where a
shape is named explicitly, the remainder of this document describes the
envelope shape.</t>
        <section anchor="signature-object">
          <name>Signature Object</name>
          <dl>
            <dt>alg (REQUIRED):</dt>
            <dd>
              <t>The signature algorithm. The mandatory-to-implement
algorithm is "EdDSA" for Ed25519 as defined in <xref target="RFC8032"/>.
Implementations <bcp14>MAY</bcp14> additionally support "ES256" (ECDSA
with P-256 and SHA-256) to accommodate systems that use P-256 keys
natively. Verifiers <bcp14>MUST</bcp14> support "EdDSA" and
<bcp14>SHOULD</bcp14> support "ES256". This list is not closed; see
<xref target="algorithm-agility"/> for registered values.</t>
            </dd>
            <dt>kid (REQUIRED):</dt>
            <dd>
              <t>The key identifier of the signing key. This is an opaque string
that <bcp14>SHOULD</bcp14> 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 <xref target="RFC7638"/> or a namespaced key
fingerprint such as <tt>example:issuer:&lt;fingerprint&gt;</tt> (existing
ScopeBlind issuers use the prefix <tt>sb:issuer:</tt> followed by the first
12 characters of the Base58-encoded Ed25519 public key).</t>
            </dd>
            <dt>sig (REQUIRED):</dt>
            <dd>
              <t>The signature over the signing input defined in
<xref target="signature-scope"/>, encoded as a lowercase hexadecimal
string. The encoded length is determined by the algorithm named in
<tt>alg</tt> and is not fixed by this document: Ed25519 produces 64
bytes and therefore 128 hexadecimal characters, while other registered
algorithms produce other lengths. Verifiers <bcp14>MUST NOT</bcp14>
reject a signature on encoded length alone.</t>
            </dd>
          </dl>
        </section>
      </section>
      <section anchor="payload">
        <name>Payload</name>
        <t>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
<xref target="receipt-types"/>. A member defined elsewhere in this document
that may appear in any payload type is listed here.</t>
        <dl>
          <dt>type (REQUIRED):</dt>
          <dd>
            <t>A namespaced string identifying the receipt type.
Examples: <tt>"protectmcp:decision"</tt>,
<tt>"example:approval"</tt>.</t>
          </dd>
          <dt>issued_at (REQUIRED):</dt>
          <dd>
            <t>ISO 8601 timestamp <xref target="RFC3339"/> of when the receipt was created.
MUST include timezone designator (typically "Z" for UTC).</t>
          </dd>
          <dt>issuer_id (REQUIRED):</dt>
          <dd>
            <t>The identifier of the entity that issued and signed the receipt.
MUST match the <tt>kid</tt> field in the signature object.</t>
          </dd>
          <dt>previousReceiptHash (OPTIONAL):</dt>
          <dd>
            <t>A link to the immediately preceding receipt in a receipt chain,
present at most once. When present it <bcp14>MUST</bcp14> be a member of
the payload object, not of the enclosing receipt object, and its value
<bcp14>MUST</bcp14> be computed as specified in
<xref target="chain-hash-scope"/>.</t>
            <t>The first receipt in a chain <bcp14>MUST</bcp14> omit the member
entirely rather than carrying <tt>null</tt> 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
<bcp14>MUST NOT</bcp14> infer chain membership from its absence.
<xref target="chain-link-verification"/> says how a verifier treats an
omitted or <tt>null</tt> member.</t>
          </dd>
          <dt>evidence (OPTIONAL):</dt>
          <dd>
            <t>The evidentiary basis the decision rested on, as defined in
<xref target="evidence-predicate"/>. When present it <bcp14>MUST</bcp14> be an
array. A verifier that does not implement the predicate
<bcp14>MUST</bcp14> still verify the receipt signature and chain, and
<bcp14>MUST</bcp14> ignore this member otherwise.</t>
          </dd>
          <dt>committed_fields_root (OPTIONAL):</dt>
          <dd>
            <t>The Merkle root committing to selectively disclosable fields, as
defined in <xref target="commitment-mode"/>. Present only in commitment mode.
A verifier that does not implement commitment mode <bcp14>MUST</bcp14> ignore
this member when verifying the signature, though the member remains covered by
that signature.</t>
          </dd>
          <dt>payload_digest (OPTIONAL):</dt>
          <dd>
            <t>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 <tt>hash</tt> (lowercase SHA-256
hex string), <tt>size</tt> (byte count), and optionally <tt>preview</tt>
(first 256 characters). Enables integrity verification of associated
data without embedding it in the receipt.</t>
          </dd>
          <dt>hook_latency_ms (OPTIONAL):</dt>
          <dd>
            <t>The time in milliseconds spent evaluating the policy decision.
Enables operators to verify that security middleware adds
negligible overhead (&lt;5ms is RECOMMENDED for synchronous
policy checks).</t>
          </dd>
          <dt>tool_duration_ms (OPTIONAL):</dt>
          <dd>
            <t>The time in milliseconds between the initiation and completion
of the tool invocation. Present only in post-execution receipts.</t>
          </dd>
          <dt>sandbox_state (OPTIONAL):</dt>
          <dd>
            <t>Whether the execution environment had OS-level containment
active at the time of the decision. One of: <tt>"enabled"</tt>,
<tt>"disabled"</tt>, <tt>"unavailable"</tt>. Enables auditors to verify that
agent actions occurred within a sandboxed environment.</t>
          </dd>
          <dt>action_ref (OPTIONAL):</dt>
          <dd>
            <t>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 <tt>action_ref</tt>,
enabling bilateral verification without either engine needing
to trust the other.
</t>
            <t>The computation is:</t>
            <artwork><![CDATA[
action_ref = SHA-256(canonicalize({
  agentId,
  actionType,
  scopeRequired,
  timestamp
}))
]]></artwork>
            <t>where <tt>canonicalize</tt> follows RFC 8785 (JCS) and <tt>scopeRequired</tt>
is sorted lexicographically before canonicalization. The
resulting hex string is deterministic: same inputs produce the
same hash regardless of implementation language.</t>
            <t>This field is RECOMMENDED when the receipt will be consumed by
external governance frameworks or cross-engine audit tools.</t>
          </dd>
          <dt>iteration_id (OPTIONAL):</dt>
          <dd>
            <t>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 <tt>iteration_id</tt>. This enables behavioral analysis
tools to group receipts by logical iteration rather than by
receipt count.
</t>
            <t>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.</t>
          </dd>
        </dl>
      </section>
    </section>
    <section anchor="receipt-types">
      <name>Receipt Types</name>
      <t>This specification defines one receipt type, the Access Decision
Receipt. Implementations MAY define additional types using the namespaced
<tt>type</tt> field.</t>
      <section anchor="access-decision-receipt">
        <name>Access Decision Receipt</name>
        <t>Type: <tt>protectmcp:decision</tt> (retained for interoperability
with deployed issuers and verifiers).</t>
        <t>Records the outcome of a policy evaluation for a tool invocation.</t>
        <artwork><![CDATA[
{
  "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"
}
]]></artwork>
        <section anchor="fields">
          <name>Fields</name>
          <dl>
            <dt>tool_name (REQUIRED):</dt>
            <dd>
              <t>The name of the tool being invoked, as declared in the MCP
<tt>tools/list</tt> response.</t>
            </dd>
            <dt>decision (REQUIRED):</dt>
            <dd>
              <t>The policy evaluation result. One of: <tt>"allow"</tt>, <tt>"deny"</tt>,
<tt>"rate_limit"</tt>, <tt>"require_approval"</tt>. The value
<tt>"require_approval"</tt> 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.</t>
            </dd>
            <dt>reason (OPTIONAL):</dt>
            <dd>
              <t>A machine-readable reason code for the decision.
Examples: <tt>"tier_insufficient"</tt>, <tt>"rate_exceeded"</tt>,
<tt>"policy_block"</tt>, <tt>"agent_refusal"</tt>. When the decision is
<tt>"deny"</tt>, <tt>"policy_block"</tt> records that the denial was imposed
by external policy, and <tt>"agent_refusal"</tt> that the agent imposed it on
itself.</t>
            </dd>
            <dt>agent_id (OPTIONAL):</dt>
            <dd>
              <t>The identifier of the agent whose tool call was evaluated.</t>
            </dd>
            <dt>agent_manifest_version (OPTIONAL):</dt>
            <dd>
              <t>The semantic version of the agent's manifest at the time of
the decision. Agent manifests are described in <tt>agent-manifest.md</tt>, an
informative note kept with this document at
<eref target="https://github.com/VeritasActa/drafts/blob/main/agent-manifest.md"/>.</t>
            </dd>
            <dt>agent_tier (OPTIONAL):</dt>
            <dd>
              <t>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.</t>
            </dd>
            <dt>required_tier (OPTIONAL):</dt>
            <dd>
              <t>The minimum trust tier required by the policy for this tool.</t>
            </dd>
            <dt>policy_digest (OPTIONAL):</dt>
            <dd>
              <t>A content-addressable hash of the policy in effect at the
time of the decision. Format: <tt>"sha256:&lt;64-lowercase-hex&gt;"</tt>,
computed per <xref target="policy-digest-construction"/>. A digest whose
construction is not published is an opaque label, not a commitment; see
<xref target="policy-publication"/>.</t>
            </dd>
            <dt>session_id (OPTIONAL):</dt>
            <dd>
              <t>An opaque identifier for the MCP session. MUST NOT contain
PII or be correlatable across sessions unless the operator
explicitly configures session binding.</t>
            </dd>
          </dl>
        </section>
      </section>
    </section>
    <section anchor="evidence-predicate">
      <name>Evidence Predicate</name>
      <t>An Access Decision Receipt records which decision was made and, via
<tt>policy_digest</tt>, 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 <tt>evidence</tt> field records
that basis. It is defined here for the Access Decision Receipt; other receipt
types MAY carry it with the same semantics.</t>
      <artwork><![CDATA[
"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" } }
]
]]></artwork>
      <section anchor="evidence-fields">
        <name>Fields</name>
        <dl>
          <dt>dimension (REQUIRED):</dt>
          <dd>
            <t>The class of evidence. Core values: <tt>"data_rights"</tt>,
<tt>"provenance"</tt>, <tt>"compliance"</tt>, <tt>"freshness"</tt>,
<tt>"consent"</tt>, <tt>"identity"</tt>, <tt>"authorization"</tt>,
<tt>"integrity"</tt>. Implementations MAY define additional dimensions using a
namespaced extension of the form <tt>x-&lt;vendor&gt;:&lt;name&gt;</tt>, where
<tt>&lt;vendor&gt;</tt> matches <tt>[a-z0-9]+</tt> and <tt>&lt;name&gt;</tt>
matches <tt>[a-z0-9_.-]+</tt> (both lowercase).</t>
          </dd>
          <dt>state (REQUIRED):</dt>
          <dd>
            <t>The evaluated state of this dimension at decision time. One of:
<tt>"satisfied"</tt>, <tt>"unverified"</tt>, <tt>"stale"</tt>, <tt>"failed"</tt>,
<tt>"not_applicable"</tt>.</t>
          </dd>
          <dt>source (REQUIRED):</dt>
          <dd>
            <t>The provenance of the evidence, an object with
<tt>authority</tt> (the attesting party; advisory), <tt>ref</tt> (a resolvable
reference or a <tt>"sha256:&lt;hex&gt;"</tt> digest of the attested subject), an
OPTIONAL <tt>kid</tt> (the attesting authority's key id), an OPTIONAL
<tt>alg</tt> (the signature algorithm, taking the same values as the
<tt>alg</tt> member of <xref target="signature-object"/>, and defaulting to
<tt>"EdDSA"</tt> when absent), and an OPTIONAL <tt>sig</tt> (the authority's
signature over the JCS-canonical claim, encoded as a lowercase hexadecimal
string and verifiable under <tt>kid</tt>). As in
<xref target="signature-object"/>, the encoded length of <tt>sig</tt> is
determined by <tt>alg</tt> and is not fixed by this document; a relying party
<bcp14>MUST NOT</bcp14> reject a source signature on encoded length alone.
An attesting authority need not use the same algorithm as the receipt
signer.
See <xref target="evidence-trust-model"/>: a named <tt>authority</tt> or
<tt>kid</tt> is not proof of authorship; only a verified <tt>sig</tt> is.</t>
          </dd>
          <dt>as_of (OPTIONAL):</dt>
          <dd>
            <t>An RFC 3339 timestamp of when the evidence was current.
RECOMMENDED for freshness-relevant dimensions.</t>
          </dd>
        </dl>
        <t>The signed <tt>claim</tt> is the JSON object built from the entry's
<tt>dimension</tt>, <tt>state</tt>, and <tt>as_of</tt> together with the source's
<tt>ref</tt>: <tt>{ dimension, ref, state }</tt> plus an <tt>as_of</tt> member when
the entry carries one. When <tt>as_of</tt> is absent the <tt>as_of</tt> member is
omitted from the claim; it MUST NOT be encoded as <tt>null</tt>. The producer
canonicalizes this object under JCS and signs the resulting bytes;
<tt>source.sig</tt> is that signature. A relying party reconstructs the same claim
from the entry and verifies <tt>source.sig</tt> over its JCS bytes.</t>
      </section>
      <section anchor="evidence-properties">
        <name>Properties</name>
        <t><tt>evidence</tt> 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.</t>
        <t>Evidence entries MAY be committed and selectively disclosed under
<xref target="commitment-mode"/>. When they are, the unit of disclosure
<bcp14>MUST</bcp14> be the whole entry. A producer <bcp14>MUST NOT</bcp14>
disclose an entry's <tt>dimension</tt> and <tt>state</tt> while withholding its
<tt>source</tt>, because a relying party cannot apply
<xref target="evidence-trust-model"/> to an entry whose source it cannot see,
and a disclosed <tt>"satisfied"</tt> with no visible source is precisely the
false assurance <xref target="evidence-false-assurance"/> warns against.
Withholding an entry in full is permitted; a relying party
<bcp14>MUST NOT</bcp14> infer from a disclosed set that no further entries
exist.</t>
      </section>
      <section anchor="evidence-trust-model">
        <name>Trust Model</name>
        <t><tt>evidence</tt> is a set of claims made by the receipt
<em>signer</em>. Every field of every entry, including
<tt>source.authority</tt> and <tt>source.kid</tt>, is inside the payload the
signer fully controls; the receipt signature proves only that the signer
asserted them. A present or trusted-looking <tt>source.kid</tt> is therefore
not proof that the named authority attested anything. It is exactly the
in-payload, signer-controlled value that
<xref target="key-distribution-and-trust-anchors"/> warns is "strictly worse than
no signature at all, because it provides false assurance."</t>
        <t>A relying party MUST NOT treat any <tt>evidence</tt> dimension as
independent corroboration unless all of the following hold: (1) the entry
carries a <tt>source.sig</tt>; (2) the relying party obtains the corresponding
public key out of band via the mechanisms in
<xref target="key-distribution-and-trust-anchors"/> (not from the receipt) and
confirms that key's identifier equals <tt>source.kid</tt>; (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) <tt>source.sig</tt> verifies under
that key over the JCS bytes of the claim.</t>
        <t>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 <tt>evidence</tt> claim with its own key, satisfy conditions 1, 2, and 4, and
manufacture "independent" corroboration of itself. An entry whose
<tt>source.kid</tt> 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.</t>
        <t>A dimension without a verifiable, independent <tt>source.sig</tt> is
the receipt signer's own claim and MUST NOT raise the assurance a relying party
places in the decision, regardless of the <tt>authority</tt> or <tt>kid</tt> it
names. Producers SHOULD mark a self-attested basis with an <tt>authority</tt> of
<tt>runtime:&lt;component&gt;</tt>, 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 <tt>source.sig</tt>, not by trusting
the label.</t>
        <t>A verified <tt>source.sig</tt> 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
<tt>session_id</tt>, <tt>policy_digest</tt>, <tt>tool_name</tt>, or
<tt>decision</tt>), so the same signed claim may lawfully appear in many receipts.
A relying party MUST additionally judge whether the claim's <tt>ref</tt> and
<tt>as_of</tt> pertain to the action being decided, and SHOULD bound acceptance by
<tt>as_of</tt>.</t>
      </section>
    </section>
    <section anchor="signing-and-verification">
      <name>Signing and Verification</name>
      <section anchor="signing-process">
        <name>Signing Process</name>
        <ol spacing="normal" type="1"><li>
            <t>Construct the payload object with all required fields.</t>
          </li>
          <li>
            <t>Construct the receipt object carrying that payload as its
<tt>payload</tt> member.</t>
          </li>
          <li>
            <t>Form the signing input for the envelope shape: canonicalize
the <tt>payload</tt> member using JCS <xref target="RFC8785"/>. The canonical
form is a deterministic JSON serialization with sorted keys and no
whitespace. The signing input is the <tt>payload</tt> member alone; it does
not include the enclosing receipt object. For the flat shape the signing
input is the receipt minus its <tt>signature</tt> member. See
<xref target="signature-scope"/>, which an implementation
<bcp14>MUST</bcp14> consult before computing either.</t>
          </li>
          <li>
            <t>Convert the canonical JSON string to a UTF-8 byte sequence.</t>
          </li>
          <li>
            <t>Sign the byte sequence using Ed25519 <xref target="RFC8032"/> with the
issuer's secret key.</t>
          </li>
          <li>
            <t>Encode the signature as a lowercase hexadecimal string.</t>
          </li>
          <li>
            <t>Attach the signature object to the original (non-canonicalized)
receipt as its <tt>signature</tt> 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.</t>
          </li>
        </ol>
      </section>
      <section anchor="signature-scope">
        <name>Signature Scope</name>
        <t>The signature MUST cover the canonical JCS bytes of the
<em>signing input</em> directly: the UTF-8 byte sequence produced by the
signing process in <xref target="signing-process"/>, used as the message
input to the signature algorithm with no intermediate hash.</t>
        <t>Two receipt shapes are in use, and the signing input differs
between them. An implementation <bcp14>MUST</bcp14> determine the shape
before computing the signing input, and <bcp14>MUST NOT</bcp14> 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.</t>
        <dl>
          <dt>Envelope shape:</dt>
          <dd>
            <t>The receipt is the object shown in
<xref target="signed-envelope"/>, carrying exactly two members: a
<tt>payload</tt> member and a <tt>signature</tt> member that is an object
with <tt>alg</tt>, <tt>kid</tt>, and <tt>sig</tt>. The signing input is
<tt>JCS(payload)</tt>: the <tt>payload</tt> member canonicalized on its own,
not the enclosing receipt object.</t>
          </dd>
          <dt>Flat shape:</dt>
          <dd>
            <t>The receipt carries its fields at the top level alongside a
<tt>signature</tt> member that is a hexadecimal string. There is no
<tt>payload</tt> member to canonicalize, so the signing input is the receipt
object with the <tt>signature</tt> member removed, canonicalized. This shape
predates the envelope and remains in use; new implementations
<bcp14>SHOULD</bcp14> emit the envelope shape.</t>
          </dd>
        </dl>
        <t>In both shapes the signing input excludes the signature, and in
neither is the signature computed over a receipt that already contains
one.</t>
        <t>In either shape the object canonicalized
<bcp14>MUST NOT</bcp14> contain a <tt>signature</tt> member, and that member
<bcp14>MUST NOT</bcp14> be included as <tt>null</tt> or as the empty string;
these produce different JCS output and break interoperability.</t>
        <t>The <tt>alg</tt> and <tt>kid</tt> members of the signature object
are therefore not covered by the signature. A verifier resolves the key from
<tt>kid</tt> through the mechanisms in
<xref target="key-distribution-and-trust-anchors"/> and verification fails if
either member is altered, so this is not a substitution vector, but a verifier
<bcp14>MUST NOT</bcp14> treat either member as attested content.</t>
        <t>Standard PureEdDSA <xref target="RFC8032"/> hashes the message
internally; implementations <bcp14>MUST NOT</bcp14> pre-hash the
canonical bytes (for example with <tt>SHA-256</tt>) before signing.</t>
      </section>
      <section anchor="verification-process">
        <name>Verification Process</name>
        <ol spacing="normal" type="1"><li>
            <t>Determine the receipt shape as defined in
<xref target="signature-scope"/> and extract the signature. In the envelope
shape the signature is the <tt>signature</tt> member, an object. In the flat
shape it is the <tt>signature</tt> member, a hexadecimal string, and the
algorithm and key identifier are carried as separate members of the
receipt.</t>
          </li>
          <li>
            <t>Reconstruct the signing input for the shape received, as
defined in <xref target="signature-scope"/>: for the envelope shape,
canonicalize the <tt>payload</tt> member as received; for the flat shape,
canonicalize the receipt minus its <tt>signature</tt> member. This reproduces
the byte string the signer formed in <xref target="signing-process"/>.
Applying the wrong shape's rule produces a different byte string and causes
verification of correctly signed receipts to fail.</t>
          </li>
          <li>
            <t>Convert the canonical JSON to a UTF-8 byte sequence.</t>
          </li>
          <li>
            <t>Resolve the public key using the key identifier carried by the
receipt. The RECOMMENDED resolution mechanism is an HTTPS JWK Set endpoint
<xref target="RFC7517"/> (such as the provisional path
<tt>/.well-known/acta-keys.json</tt> described in
<xref target="public-key-distribution"/>). The key <bcp14>MUST</bcp14> be
obtained through that mechanism or another out-of-band trust anchor, never
from the receipt itself; see
<xref target="key-distribution-and-trust-anchors"/>.</t>
          </li>
          <li>
            <t>If the key source provides a validity window for the key, apply
it to the receipt's <tt>issued_at</tt> as defined in
<xref target="key-validity-windows"/>.</t>
          </li>
          <li>
            <t>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
<xref target="algorithm-agility"/>.</t>
          </li>
          <li>
            <t>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&nbsp;4
or step&nbsp;6, cannot apply in step&nbsp;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 <xref target="verification-outcomes"/>, and
the receipt MUST NOT be reported as either authentic or rejected. Otherwise
the receipt is authentic and has not been tampered with.</t>
          </li>
        </ol>
      </section>
      <section anchor="verification-outcomes">
        <name>Verification Outcomes</name>
        <t>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:</t>
        <dl>
          <dt>valid:</dt>
          <dd><t>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.</t></dd>
          <dt>invalid:</dt>
          <dd><t>The check ran and failed: the signature did not verify under
the trust-anchored key; a carried key
(<xref target="key-distribution-and-trust-anchors"/>) differs from the
trust-anchored key; the object canonicalized carries a <tt>signature</tt>
member, including as <tt>null</tt> or the empty string
(<xref target="signature-scope"/>), 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 (<xref target="chain-hash-scope"/>); or, in
the envelope shape, the payload carries an <tt>issuer_id</tt> that differs
from <tt>signature.kid</tt>. An invalid receipt MUST be rejected. A payload
that lacks a member <xref target="payload"/> requires, or that does not
conform to its declared type, is reported separately and does not change the
outcome.</t></dd>
          <dt>undecidable:</dt>
          <dd><t>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
<xref target="key-distribution-and-trust-anchors"/> 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 (<xref target="chain-hash-scope"/>), 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.</t></dd>
        </dl>
        <t>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.</t>
        <t>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.</t>
        <t>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 <xref target="test-vectors"/>.</t>
      </section>
      <section anchor="public-key-distribution">
        <name>Public Key Distribution</name>
        <t>Issuers <bcp14>SHOULD</bcp14> publish their public keys as a JWK Set
<xref target="RFC7517"/> at an HTTPS endpoint bound to the issuer. A
provisional path convention (pending registration under
<xref target="RFC8615"/>; see <xref target="iana-considerations"/>) is:</t>
        <artwork><![CDATA[
GET /.well-known/acta-keys.json

{
  "keys": [{
    "kty": "OKP",
    "crv": "Ed25519",
    "kid": "example:issuer:4Kpm7Q3wXx2b",
    "x": "<base64url-encoded-public-key>",
    "use": "sig"
  }]
}
]]></artwork>
        <t>The <tt>x</tt> parameter MUST be the base64url-encoded Ed25519 public key
as specified in <xref target="RFC8037"/>.</t>
        <t>Issuers <bcp14>MAY</bcp14> alternatively publish the JWK Set at another
HTTPS URL bound to the issuer out of band. For offline verification, public
keys <bcp14>MAY</bcp14> be distributed out-of-band (e.g., embedded in
configuration files or published in DNS TXT records).</t>
      </section>
      <section anchor="key-validity-windows">
        <name>Key Validity Windows</name>
        <t>An issuer that rotates keys publishes, on each JWK in its key set, a
<tt>valid_from</tt> and a <tt>valid_until</tt> member: timestamps in the
format of <xref target="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 <tt>null</tt> is not a valid timestamp.</t>
        <artwork><![CDATA[
{
  "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"
}
]]></artwork>
        <t>The window runs from <tt>valid_from</tt>, included, to
<tt>valid_until</tt>, excluded. A receipt whose <tt>issued_at</tt> is before
<tt>valid_from</tt>, or at or after <tt>valid_until</tt>, was issued outside
the window. The end is excluded in the way the <tt>exp</tt> claim of
<xref target="RFC7519"/> is: the moment a key stops being valid is itself
outside its validity.</t>
        <t>When the key source provides a window for the key resolved in step 4
of <xref target="verification-process"/>, a verifier <bcp14>MUST</bcp14>
apply it to the <tt>issued_at</tt> member of the signed bytes:</t>
        <ul>
          <li><t>A receipt issued outside the window is invalid, as defined in
<xref target="verification-outcomes"/>.</t></li>
          <li><t>If the window cannot be applied, because a bound is not a
valid timestamp, <tt>valid_until</tt> is not after <tt>valid_from</tt>, or
the signed <tt>issued_at</tt> is absent or not a valid timestamp, the
outcome is undecidable and names that cause.</t></li>
        </ul>
        <t>When the key source provides no window, the verifier cannot establish
whether the key was valid when the receipt was issued. It
<bcp14>MUST</bcp14> report that with its outcome and <bcp14>MUST NOT</bcp14>
describe the key as valid at <tt>issued_at</tt>. A relying party that needs
the property <bcp14>MAY</bcp14> 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.</t>
        <t>The <tt>issued_at</tt> 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
<xref target="chain-completeness"/>.</t>
      </section>

      <section anchor="chain-hash-scope">
        <name>Chain Hash Scope</name>
        <t>The <tt>previousReceiptHash</tt> field <bcp14>MUST</bcp14> be
the string <tt>"sha256:"</tt> followed by the lowercase hex encoding of
<tt>SHA-256(JCS(receipt))</tt>, where <tt>receipt</tt> is the entire signed
receipt object including the <tt>signature</tt> member. For example:
<tt>"sha256:6699b21fea5819eea4df..."</tt>.</t>
        <t>Two choices here are deliberate.</t>
        <t>The preimage is the whole receipt, not its <tt>payload</tt>
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.</t>
        <t>The algorithm prefix makes the digest self-describing, matching
the form used by <tt>policy_digest</tt> and by <tt>source.ref</tt> in
<xref target="evidence-predicate"/>. Earlier revisions encoded the same
digest as bare hex with no prefix.</t>
        <t>A verifier <bcp14>MUST</bcp14> recognize a link in either of two
forms: <tt>"sha256:"</tt> followed by exactly 64 lowercase hexadecimal
characters, or, for compatibility with those revisions only, the same 64
characters with no prefix, which an issuer <bcp14>MUST NOT</bcp14> emit. Any
other value of the member, apart from <tt>null</tt>
(<xref target="chain-link-verification"/>), is not a link to any receipt,
and is one of two things:</t>
        <ul>
          <li><t>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, <tt>"."</tt>, <tt>"_"</tt>,
<tt>"+"</tt> and <tt>"-"</tt>, and is not <tt>"sha256"</tt> when compared
without regard to case. This document defines links under SHA-256 alone, so a
verifier <bcp14>MUST NOT</bcp14> accept such a value as a link, whether or not
it implements the algorithm, and <bcp14>MUST NOT</bcp14> assume SHA-256 from
the length of what follows. The outcome is undecidable, as defined in
<xref target="verification-outcomes"/>, and names the algorithm as its
cause.</t></li>
          <li><t>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 <bcp14>MUST</bcp14>
reject a receipt whose link is malformed, whether or not it holds the
predecessor: the receipt is invalid, as defined in
<xref target="verification-outcomes"/>.</t></li>
        </ul>

        <section anchor="chain-link-verification">
          <name>Verifying Chain Links</name>
          <t>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 <xref target="chain-hash-scope"/> and compares it with the
receipt's <tt>previousReceiptHash</tt>. The receipt follows the predecessor
only if that member is the computed link, in either form. If the member is
absent, <tt>null</tt>, or any other value, the verifier <bcp14>MUST</bcp14>
report that the receipt does not follow the supplied predecessor. That is a
failed chain check, and the receipt is invalid, as defined in
<xref target="verification-outcomes"/>, with one exception: a value naming
another hash algorithm is undecidable, as <xref target="chain-hash-scope"/>
states. Absence never satisfies a supplied predecessor. A receipt that omits
the member is a genesis or an unchained receipt
(<xref target="payload"/>), and neither follows the receipt supplied.</t>
          <t>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 <tt>previousReceiptHash</tt> begins
a new chain: it is a genesis or an unchained receipt, as
<xref target="payload"/> says. The verifier <bcp14>MUST NOT</bcp14> report
it as linked to the receipt before it, and <bcp14>SHOULD</bcp14> 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 <bcp14>SHOULD</bcp14> 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.</t>
          <t>In both cases, a verifier <bcp14>MUST NOT</bcp14> accept a link
computed over the predecessor's <tt>payload</tt> 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.</t>
          <t>A <tt>previousReceiptHash</tt> of <tt>null</tt> is never a link to
any receipt, and an issuer <bcp14>MUST NOT</bcp14> emit one;
<xref target="payload"/> has the first receipt in a chain omit the member
instead. Against a supplied predecessor, a <tt>null</tt> link fails as above.
In a sequence, or on a receipt checked alone, a verifier reads <tt>null</tt>
as an omitted member, so the receipt begins a chain, and
<bcp14>SHOULD</bcp14> warn that its issuer emitted a value it must not.</t>
        </section>
      </section>

      <section anchor="policy-digest-construction">
        <name>Policy Digest Construction</name>
        <t>A <tt>policy_digest</tt> 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.</t>
        <t>The policy digest commits to a manifest of the exact policy
source files:</t>
        <artwork><![CDATA[
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))))
]]></artwork>
        <t>Rules:</t>
        <ul>
          <li><t>Each file is hashed individually over its exact bytes.
Implementations MUST NOT concatenate policy sources before hashing:
concatenation cannot distinguish the file sets <tt>["ab","c"]</tt> and
<tt>["a","bc"]</tt>, and a join delimiter only relocates the ambiguity.</t></li>
          <li><t>Entries are sorted by <tt>name</tt> 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.</t></li>
          <li><t>For a policy supplied as a single in-memory source rather
than a file, the entry name MUST be <tt>"policy.&lt;ext&gt;"</tt> for the
engine's conventional extension (for Cedar, <tt>"policy.cedar"</tt>).</t></li>
          <li><t>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
<tt>"policy.json"</tt>.</t></li>
        </ul>
        <t>Signature validity and policy freshness remain distinct checks:
a receipt whose <tt>policy_digest</tt> 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.</t>
        <t>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.</t>

        <section anchor="policy-publication">
          <name>Policy Publication</name>
          <t>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 <xref target="RFC8615"/>; see
<xref target="iana-considerations"/>) is:</t>
          <artwork><![CDATA[
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>
}
]]></artwork>
          <t>where <tt>&lt;hex&gt;</tt> in the path is the digest value
without the <tt>"sha256:"</tt> prefix. A verifier recomputes the bundle
from its own bytes: hash each <tt>content</tt> and compare to its
<tt>sha256</tt>, construct the manifest M from the (name, sha256) pairs,
and compare <tt>"sha256:" || hex(SHA-256(JCS(M)))</tt> to
<tt>policy_digest</tt>. No communication with the issuer beyond fetching
the bundle is required, and the bundle <bcp14>MAY</bcp14> equally be served
at another issuer URL or delivered out of band.</t>
        </section>
      </section>

      <section anchor="algorithm-agility">
        <name>Signature Algorithm Agility</name>
        <t>Receipts MAY be signed with any of the following algorithms,
identified by their JOSE/JWS algorithm names:</t>
        <ul>
          <li><t><tt>EdDSA</tt> (Ed25519, <xref target="RFC8032"/>):
Mandatory-to-implement (MTI) baseline.</t></li>
          <li><t><tt>ML-DSA-65</tt> <xref target="RFC9964"/> <bcp14>MAY</bcp14> be
used. A verifier that does not implement it reports undecidable.</t></li>
          <li><t><tt>ES256</tt> (ECDSA over P-256, <xref target="RFC7518"/>): Permitted for
compatibility with existing credentials.</t></li>
        </ul>
        <t>The <tt>signature</tt> object MUST contain an
<tt>alg</tt> field carrying the algorithm name as a string. Verifiers
MUST verify each receipt against the algorithm declared in its own
<tt>signature.alg</tt> field. Chains MAY contain receipts signed under
different algorithms; verifiers MUST handle each receipt independently.</t>
        <t>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.</t>
      </section>
    </section>
    <section anchor="commitment-mode">
      <name>Commitment Mode (Optional Extension)</name>
      <t>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 <xref target="RFC6962"/> domain-separation conventions.</t>
      <t>A receipt that uses commitment mode includes a single new field,
<tt>committed_fields_root</tt>, 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.</t>
      <t>The Merkle tree organization is byte-identical to Certificate
Transparency <xref target="RFC6962"/>, and implementations SHOULD reuse code
from that ecosystem.</t>
      <t>This construction is not SD-JWT. SD-JWT <xref target="RFC9901"/>
achieves selective disclosure with salted hashes placed in an
<tt>_sd</tt> 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.</t>

      <section anchor="commitment-merkle-construction">
        <name>Merkle Tree Construction</name>
        <t>Implementations MUST use the following RFC 6962-style
construction with explicit one-byte domain separation:</t>
        <artwork><![CDATA[
leaf_hash     = SHA-256(0x00 || canonical_leaf_bytes)
internal_hash = SHA-256(0x01 || left_child_hash || right_child_hash)
]]></artwork>
        <t>For a list of leaf hashes <tt>D</tt> of length <tt>n</tt>:</t>
        <ul>
          <li><t>If <tt>n == 1</tt>, the Merkle root is <tt>D[0]</tt>.</t></li>
          <li><t>Otherwise, let <tt>k</tt> be the largest power of two
strictly less than <tt>n</tt>. The root is
<tt>SHA-256(0x01 || MerkleRoot(D[0..k]) || MerkleRoot(D[k..n]))</tt>.</t></li>
        </ul>
        <t>This construction handles non-power-of-two leaf counts
without padding by recursively splitting on the largest power of two,
matching <xref target="RFC6962"/> Section 2.1.</t>
        <t>The <tt>committed_fields_root</tt> field MUST be the
lowercase hex encoding of the resulting 32-byte Merkle root.</t>
      </section>

      <section anchor="commitment-leaf-layout">
        <name>Canonical Leaf Layout</name>
        <t>Each leaf encodes a single committed field as a JCS
<xref target="RFC8785"/>-canonicalized JSON object:</t>
        <artwork><![CDATA[
canonical_leaf_bytes = JCS({
  "name":  field_name,
  "salt":  base64url_unpadded(salt_bytes),
  "value": field_value
})
]]></artwork>
        <t>The <tt>name</tt> field MUST be the field's identifier
within the receipt payload (e.g., <tt>"principal"</tt>,
<tt>"action"</tt>). Including the field name in the leaf binds the
commitment to a specific field and prevents cross-field substitution
attacks. The <tt>value</tt> field MUST be the cleartext field value,
preserving its original JSON type (string, number, boolean, object, or
array). The <tt>salt</tt> field MUST be the base64url-encoded
(without padding, per <xref target="RFC4648"/> Section 5) byte string
of the salt.</t>
      </section>

      <section anchor="commitment-leaf-order">
        <name>Leaf Sort Order</name>
        <t>Leaves MUST be ordered by the byte-lexicographic order of
the UTF-8 encoded <tt>name</tt> 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.</t>
      </section>

      <section anchor="commitment-salt">
        <name>Salt Construction and Storage</name>
        <t>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., <tt>crypto.getRandomValues</tt> in browsers, or
<tt>os.urandom</tt> on POSIX).</t>
        <t>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.</t>
        <t>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.</t>
        <t>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 <tt>SHA-256(salt || value_bytes)</tt>
where <tt>value_bytes</tt> is the UTF-8 encoding of the JSON-stringified
value. Implementations MUST NOT use the reverse ordering
<tt>SHA-256(value_bytes || salt)</tt>; receipts that do so MUST be
rejected as malformed.</t>
      </section>

      <section anchor="commitment-disclosure">
        <name>Selective Disclosure</name>
        <t>To disclose a single field to a verifier, the discloser
provides:</t>
        <ol spacing="normal" type="1">
          <li><t>The cleartext field <tt>name</tt>, <tt>value</tt>, and
<tt>salt</tt>.</t></li>
          <li><t>A Merkle inclusion proof, consisting of the leaf's
zero-based <tt>index</tt> within the canonically-sorted leaf list, the
total <tt>tree_size</tt>, and the ordered list of <tt>siblings</tt>
(hex-encoded SHA-256 hashes) along the path from the leaf to the
root.</t></li>
        </ol>
        <t>No left/right indicator is carried for each sibling, and none is
needed. Because <xref target="commitment-merkle-construction"/> fixes the
split at the largest power of two strictly less than the node count, the
side of every sibling is determined by <tt>index</tt> and
<tt>tree_size</tt> alone, and a verifier <bcp14>MUST</bcp14> 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 <tt>index</tt> 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
<tt>tree_size</tt> 5 and <tt>index</tt> 4 the correct path has one element,
while the padded derivation expects three.</t>
        <t>The verifier reconstructs the leaf hash from the disclosed
<tt>(name, salt, value)</tt> tuple, walks the inclusion proof, and
compares the resulting root to <tt>committed_fields_root</tt> in the
signed receipt. Mismatch MUST cause the disclosure to be rejected.</t>
        <t>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 <tt>{name, value, salt, proof}</tt> in
the interim.</t>
      </section>
    </section>

    <section anchor="test-vectors">
      <name>Test Vectors</name>
      <t>An interoperability test suite is published alongside this draft
at <eref target="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 <xref target="signature-scope"/>, 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 (<xref target="impl-nobulex"/>,
<xref target="impl-aps-governance-hook"/> and
<xref target="impl-cryptovalid-opencore"/>). 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.</t>
      <t>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. <xref target="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 (<xref target="impl-asqav"/>). The EMILIA protocol
has a runnable example that checks <tt>protectmcp:decision</tt> receipts under
a pinned issuer key and composes them with its own receipts
(<xref target="impl-emilia"/>). Verifiers and test sets maintained outside the
suite include TRACE's Acta verifier, whose fixtures this document's author
contributed (<xref target="impl-trace"/>); the agent-evidence-vectors
receipt-signature corpus (<xref target="impl-agent-evidence-vectors"/>);
argentum-core's farley-receipt-signature vectors
(<xref target="impl-argentum-core"/>); and receipt-verify, a TypeScript
verifier whose tests include published Acta receipts
(<xref target="impl-receipt-verify"/>).</t>
      <t>The suite exercises:</t>
      <ul>
        <li><t>Both receipt shapes of <xref target="signature-scope"/>,
each with its own signing-input rule.</t></li>
        <li><t>The chain hash rule of <xref target="chain-hash-scope"/>:
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.</t></li>
        <li><t>The policy digest rule of <xref target="policy-digest-construction"/>:
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.</t></li>
        <li><t>The three verification outcomes of
<xref target="verification-outcomes"/> 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.</t></li>
        <li><t>The evidence predicate of <xref target="evidence-predicate"/>:
decision receipts whose evidence entries verify under the named source,
and structurally malformed entries that do not.</t></li>
        <li><t>The key validity windows of
<xref target="key-validity-windows"/>: with a key set that bounds the key, a
receipt issued inside the window is valid, and receipts issued before
<tt>valid_from</tt>, exactly at <tt>valid_until</tt>, 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.</t></li>
      </ul>
      <t>For the optional commitment mode (<xref target="commitment-mode"/>),
the minimum set is:</t>
      <ul>
        <li><t>A cleartext receipt with no <tt>committed_fields_root</tt>
field (signature and JCS output only).</t></li>
        <li><t>A receipt with four committed fields: the expected
Merkle root and an inclusion proof for each field.</t></li>
        <li><t>A chain of three receipts: the expected
<tt>previousReceiptHash</tt> values.</t></li>
        <li><t>A tampered Merkle proof: MUST fail verification.</t></li>
        <li><t>Planned: an algorithm-mixed chain (Ed25519 followed by
ML-DSA-65), each receipt checked against its own algorithm.</t></li>
        <li><t>A non-power-of-two leaf count (e.g., five committed
fields): exercises the recursive split rule.</t></li>
      </ul>
      <t>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 <xref target="commitment-salt"/>.</t>
    </section>

    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <section anchor="replay-protection">
        <name>Replay Protection</name>
        <t>Receipts include an <tt>issued_at</tt> timestamp but do not
include a nonce or sequence number.</t>
        <t>This guidance applies to <em>live presentation</em>: a receipt
offered as evidence of a currently effective authorization. In that case
verifiers <bcp14>SHOULD</bcp14> reject receipts whose timestamps are
unreasonably old (implementation-defined; 24 hours is
<bcp14>RECOMMENDED</bcp14> as a default).</t>
        <t>It does not apply to <em>archival verification</em>: examining a
receipt as a record of what was authorized at some past time, which is one
of the purposes stated in <xref target="introduction"/>. Applying a
freshness window there would reject every receipt in an audit older than
the window. A verifier performing archival verification
<bcp14>SHOULD NOT</bcp14> apply one, and <bcp14>SHOULD</bcp14> report the
receipt's age rather than deciding on the caller's behalf.</t>
        <t>For environments requiring stronger replay protection, implementations
MAY add a <tt>nonce</tt> field to the payload.</t>
      </section>
      <section anchor="key-compromise">
        <name>Key Compromise</name>
        <t>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
<tt>valid_from</tt> / <tt>valid_until</tt> window in the JWK metadata.</t>
        <t>Verifiers apply key validity windows as defined in
<xref target="key-validity-windows"/>. A window detects a key still in use
after an honest rotation, not a compromised key used to sign receipts dated
inside the window.</t>
      </section>
      <section anchor="payload-privacy">
        <name>Payload Privacy</name>
        <t>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.</t>
        <t>The <tt>tool_name</tt> and <tt>decision</tt> fields are considered non-sensitive.
The <tt>session_id</tt> field SHOULD be an opaque identifier that is not
correlatable across sessions.</t>
      </section>
      <section anchor="canonicalization-attacks">
        <name>Canonicalization Attacks</name>
        <t>The signing process relies on JCS <xref target="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.</t>
      </section>
      <section anchor="key-distribution-and-trust-anchors">
        <name>Key Distribution and Trust Anchors</name>
        <t>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.</t>
        <t>A carried key is the value of a <tt>public_key</tt>,
<tt>verification_key</tt> or <tt>verification_jwk</tt> member of the signed
bytes of a receipt. A verifier <bcp14>MUST NOT</bcp14> 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
(<xref target="verification-outcomes"/>).</t>
        <t>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 (<xref target="verification-process"/>,
step&nbsp;4).</t>
        <t>Conformant verifiers MUST resolve verification keys through one or
more of the following external mechanisms, in order of preference
when multiple are available:</t>
        <ol spacing="normal">
          <li>
            <t>A JWK Set <xref target="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).</t>
          </li>
          <li>
            <t>A DID Document whose authenticity follows from the DID
method's own verification procedure.</t>
          </li>
          <li>
            <t>A trust anchor configured out-of-band by the verifier
operator (e.g., a pinned Ed25519 public key loaded from a
verifier configuration file).</t>
          </li>
          <li>
            <t>A well-known endpoint of the issuer's domain, as described
in <xref target="public-key-distribution"/>, provided the domain binding
is independently authenticatable.</t>
          </li>
        </ol>
        <t>A key delivered in the same file, bundle or message as the receipt is
not out of band.</t>
        <t>Verifiers SHOULD expose the externally sourced key provenance to
the caller (e.g., via a <tt>keySource</tt> field in structured output)
so that the caller can distinguish a verification anchored by
<tt>--jwks</tt> from one anchored by a locally configured trust
anchor. This supports defense in depth when an operator layers key
provenance constraints above signature verification.</t>
        <t>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
<xref target="VERIFY-REF"/> for one such implementation.</t>
        <t>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
(<xref target="TESTVECTORS"/>) exercises the
required rejection behavior across representative envelope shapes
(flat v1, structured v2, Passport-style, full-JWK-embedded).</t>
      </section>
          <section anchor="verification-not-in-receipt">
        <name>Verifier Identity Is Not Receipt Content</name>
        <t>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.</t>
        <t>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 <bcp14>MUST NOT</bcp14> add members to a receipt it has
verified, and a consumer <bcp14>MUST NOT</bcp14> treat any member of a receipt
as evidence about the party that verified it.</t>
      </section>
      <section anchor="chain-completeness">
        <name>Chain Completeness and Truncation</name>
        <t>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.</t>
        <t>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 <tt>previousReceiptHash</tt> will not match, and
that difference is easy to mistake for completeness.</t>
        <t>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
<bcp14>MUST NOT</bcp14> report the set as complete, and
<bcp14>SHOULD</bcp14> report that it verified integrity only.</t>
        <t>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.</t>
        <t>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.</t>
      </section>
      <section anchor="decision-versus-execution">
        <name>Decisions Are Not Executions</name>
        <t>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 <tt>"allow"</tt> receipt records
permission, not performance, and a verifier
<bcp14>MUST NOT</bcp14> read one as evidence that the tool ran.</t>
        <t>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.
<tt>tool_duration_ms</tt> and <tt>sandbox_state</tt>
(<xref target="payload"/>) belong to that second receipt, and their presence
in a receipt is what distinguishes it from a decision-time one. The value
<tt>"require_approval"</tt> makes the same separation explicit for held
actions.</t>
        <t>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.</t>
      </section>
      <section anchor="evidence-false-assurance">
        <name>Evidence Predicate: False Assurance</name>
        <t>The OPTIONAL <tt>evidence</tt> field (<xref target="evidence-predicate"/>)
can make a decision look well-founded without being so: <tt>source.authority</tt>,
<tt>source.kid</tt>, and the dimension states are all under the receipt signer's
control. A relying party MUST derive assurance only from <tt>source.sig</tt> values
it verifies under out-of-band-pinned keys that are distinct from the receipt signer
(see <xref target="evidence-trust-model"/>), never from the presence of
<tt>evidence</tt>, a plausible <tt>authority</tt>, or a matching <tt>kid</tt>. Two
forgeries are defeated by the trust model, each exercised as a negative reference
vector (<xref target="TESTVECTORS"/>) that verifies as a
receipt yet corroborates nothing: a named-key forgery (a trusted <tt>kid</tt>
copied in with no valid <tt>sig</tt>) and self-corroboration (the signer signs the
claim with its own key). An implementation that surfaces <tt>evidence</tt> to a
human or a downstream policy MUST visibly distinguish dimensions carrying an
independent, verified <tt>source.sig</tt> from those that do not.</t>
      </section>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.</t>
      <t>Future versions of this specification MAY request registration of:</t>
      <ul spacing="normal">
        <li>
          <t>A <tt>receipt-type</tt> registry for namespaced receipt type identifiers.</t>
        </li>
        <li>
          <t>Well-known URI suffixes under <xref target="RFC8615"/> for
<tt>acta-keys.json</tt> (<xref target="public-key-distribution"/>) and
<tt>acta-policies</tt> (<xref target="policy-publication"/>).</t>
        </li>
        <li>
          <t>A media type for the receipt serialization defined in this
document. Receipts are currently exchanged as <tt>application/json</tt>,
which does not let a recipient distinguish a receipt from arbitrary JSON
before parsing it.</t>
        </li>
      </ul>
    </section>
  </middle>
  <back>
    <references anchor="sec-combined-references">
      <name>References</name>
      <references anchor="sec-normative-references">
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>

        <reference anchor="RFC8032" target="https://www.rfc-editor.org/info/rfc8032" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8032.xml">
          <front>
            <title>Edwards-Curve Digital Signature Algorithm (EdDSA)</title>
            <author fullname="S. Josefsson" initials="S." surname="Josefsson"/>
            <author fullname="I. Liusvaara" initials="I." surname="Liusvaara"/>
            <date month="January" year="2017"/>
            <abstract>
              <t>This document describes elliptic curve signature scheme Edwards-curve Digital Signature Algorithm (EdDSA). The algorithm is instantiated with recommended parameters for the edwards25519 and edwards448 curves. An example implementation and test vectors are provided.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8032"/>
          <seriesInfo name="DOI" value="10.17487/RFC8032"/>
        </reference>
        <reference anchor="RFC8037" target="https://www.rfc-editor.org/info/rfc8037" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8037.xml">
          <front>
            <title>CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures in JSON Object Signing and Encryption (JOSE)</title>
            <author fullname="I. Liusvaara" initials="I." surname="Liusvaara"/>
            <date month="January" year="2017"/>
            <abstract>
              <t>This document defines how to use the Diffie-Hellman algorithms "X25519" and "X448" as well as the signature algorithms "Ed25519" and "Ed448" from the IRTF CFRG elliptic curves work in JSON Object Signing and Encryption (JOSE).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8037"/>
          <seriesInfo name="DOI" value="10.17487/RFC8037"/>
        </reference>
        <reference anchor="RFC8785" target="https://www.rfc-editor.org/info/rfc8785" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8785.xml">
          <front>
            <title>JSON Canonicalization Scheme (JCS)</title>
            <author fullname="A. Rundgren" initials="A." surname="Rundgren"/>
            <author fullname="B. Jordan" initials="B." surname="Jordan"/>
            <author fullname="S. Erdtman" initials="S." surname="Erdtman"/>
            <date month="June" year="2020"/>
            <abstract>
              <t>Cryptographic operations like hashing and signing need the data to be expressed in an invariant format so that the operations are reliably repeatable. One way to address this is to create a canonical representation of the data. Canonicalization also permits data to be exchanged in its original form on the "wire" while cryptographic operations performed on the canonicalized counterpart of the data in the producer and consumer endpoints generate consistent results.</t>
              <t>This document describes the JSON Canonicalization Scheme (JCS). This specification defines how to create a canonical representation of JSON data by building on the strict serialization methods for JSON primitives defined by ECMAScript, constraining JSON data to the Internet JSON (I-JSON) subset, and by using deterministic property sorting.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8785"/>
          <seriesInfo name="DOI" value="10.17487/RFC8785"/>
        </reference>
        <reference anchor="RFC3339" target="https://www.rfc-editor.org/info/rfc3339" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3339.xml">
          <front>
            <title>Date and Time on the Internet: Timestamps</title>
            <author fullname="G. Klyne" initials="G." surname="Klyne"/>
            <author fullname="C. Newman" initials="C." surname="Newman"/>
            <date month="July" year="2002"/>
            <abstract>
              <t>This document defines a date and time format for use in Internet protocols that is a profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3339"/>
          <seriesInfo name="DOI" value="10.17487/RFC3339"/>
        </reference>
        <reference anchor="RFC7517" target="https://www.rfc-editor.org/info/rfc7517" xml:base="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7517.xml">
          <front>
            <title>JSON Web Key (JWK)</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <date month="May" year="2015"/>
            <abstract>
              <t>A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. This specification also defines a JWK Set JSON data structure that represents a set of JWKs. Cryptographic algorithms and identifiers for use with this specification are described in the separate JSON Web Algorithms (JWA) specification and IANA registries established by that specification.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7517"/>
          <seriesInfo name="DOI" value="10.17487/RFC7517"/>
        </reference>
        <reference anchor="RFC6962" target="https://www.rfc-editor.org/info/rfc6962">
          <front>
            <title>Certificate Transparency</title>
            <author fullname="B. Laurie" initials="B." surname="Laurie"/>
            <author fullname="A. Langley" initials="A." surname="Langley"/>
            <author fullname="E. Kasper" initials="E." surname="Kasper"/>
            <date month="June" year="2013"/>
          </front>
          <seriesInfo name="RFC" value="6962"/>
          <seriesInfo name="DOI" value="10.17487/RFC6962"/>
        </reference>
        <reference anchor="RFC7518" target="https://www.rfc-editor.org/info/rfc7518">
          <front>
            <title>JSON Web Algorithms (JWA)</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <date month="May" year="2015"/>
          </front>
          <seriesInfo name="RFC" value="7518"/>
          <seriesInfo name="DOI" value="10.17487/RFC7518"/>
        </reference>
        <reference anchor="RFC9964" target="https://www.rfc-editor.org/info/rfc9964">
          <front>
            <title>ML-DSA for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE)</title>
            <author fullname="M. Prorock" initials="M." surname="Prorock"/>
            <author fullname="O. Steele" initials="O." surname="Steele"/>
            <date month="May" year="2026"/>
          </front>
          <seriesInfo name="RFC" value="9964"/>
          <seriesInfo name="DOI" value="10.17487/RFC9964"/>
        </reference>
        <reference anchor="RFC4648" target="https://www.rfc-editor.org/info/rfc4648">
          <front>
            <title>The Base16, Base32, and Base64 Data Encodings</title>
            <author fullname="S. Josefsson" initials="S." surname="Josefsson"/>
            <date month="October" year="2006"/>
          </front>
          <seriesInfo name="RFC" value="4648"/>
          <seriesInfo name="DOI" value="10.17487/RFC4648"/>
        </reference>
      </references>
      <references anchor="sec-informative-references">
        <name>Informative References</name>
        <reference anchor="RFC7515" target="https://www.rfc-editor.org/info/rfc7515">
          <front>
            <title>JSON Web Signature (JWS)</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="N. Sakimura" initials="N." surname="Sakimura"/>
            <date month="May" year="2015"/>
          </front>
          <seriesInfo name="RFC" value="7515"/>
          <seriesInfo name="DOI" value="10.17487/RFC7515"/>
        </reference>
        <reference anchor="RFC7519" target="https://www.rfc-editor.org/info/rfc7519">
          <front>
            <title>JSON Web Token (JWT)</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="J. Bradley" initials="J." surname="Bradley"/>
            <author fullname="N. Sakimura" initials="N." surname="Sakimura"/>
            <date month="May" year="2015"/>
          </front>
          <seriesInfo name="RFC" value="7519"/>
          <seriesInfo name="DOI" value="10.17487/RFC7519"/>
        </reference>
        <reference anchor="RFC7638" target="https://www.rfc-editor.org/info/rfc7638">
          <front>
            <title>JSON Web Key (JWK) Thumbprint</title>
            <author fullname="M. Jones" initials="M." surname="Jones"/>
            <author fullname="N. Sakimura" initials="N." surname="Sakimura"/>
            <date month="September" year="2015"/>
          </front>
          <seriesInfo name="RFC" value="7638"/>
          <seriesInfo name="DOI" value="10.17487/RFC7638"/>
        </reference>
        <reference anchor="RFC8615" target="https://www.rfc-editor.org/info/rfc8615">
          <front>
            <title>Well-Known Uniform Resource Identifiers (URIs)</title>
            <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
            <date month="May" year="2019"/>
          </front>
          <seriesInfo name="RFC" value="8615"/>
          <seriesInfo name="DOI" value="10.17487/RFC8615"/>
        </reference>
        <reference anchor="RFC9052" target="https://www.rfc-editor.org/info/rfc9052">
          <front>
            <title>CBOR Object Signing and Encryption (COSE): Structures and Process</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <date month="August" year="2022"/>
          </front>
          <seriesInfo name="STD" value="96"/>
          <seriesInfo name="RFC" value="9052"/>
          <seriesInfo name="DOI" value="10.17487/RFC9052"/>
        </reference>
        <reference anchor="RFC9901" target="https://www.rfc-editor.org/info/rfc9901">
          <front>
            <title>Selective Disclosure for JSON Web Tokens (SD-JWT)</title>
            <author fullname="D. Fett" initials="D." surname="Fett"/>
            <author fullname="K. Yasuda" initials="K." surname="Yasuda"/>
            <author fullname="B. Campbell" initials="B." surname="Campbell"/>
            <date month="November" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9901"/>
          <seriesInfo name="DOI" value="10.17487/RFC9901"/>
        </reference>
        <reference anchor="RFC7942" target="https://www.rfc-editor.org/info/rfc7942">
          <front>
            <title>Improving Awareness of Running Code: The Implementation Status Section</title>
            <author fullname="Y. Sheffer" initials="Y." surname="Sheffer"/>
            <author fullname="A. Farrel" initials="A." surname="Farrel"/>
            <date month="July" year="2016"/>
          </front>
          <seriesInfo name="BCP" value="205"/>
          <seriesInfo name="RFC" value="7942"/>
          <seriesInfo name="DOI" value="10.17487/RFC7942"/>
        </reference>
        <reference anchor="ASQAV-COMPLIANCE" target="https://datatracker.ietf.org/doc/draft-marques-asqav-compliance-receipts/09/">
          <front>
            <title>Compliance Profile of Signed Action Receipts for AI Agents</title>
            <author fullname="J. A. Gomes Marques" initials="J. A." surname="Gomes Marques">
              <organization>Asqav</organization>
            </author>
            <date day="21" month="September" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-marques-asqav-compliance-receipts-09"/>
        </reference>

        <reference anchor="MCP" target="https://modelcontextprotocol.io/specification">
          <front>
            <title>Model Context Protocol Specification</title>
            <author>
              <organization/>
            </author>
            <date year="2025"/>
          </front>
        </reference>
        <reference anchor="I-D.serra-mcp-discovery-uri" target="https://datatracker.ietf.org/doc/draft-serra-mcp-discovery-uri/">
          <front>
            <title>The mcp URI Scheme and MCP Server Discovery Mechanism</title>
            <author initials="M." surname="Serra" fullname="Marco Serra">
              <organization>Mumble Group</organization>
            </author>
            <date year="2026"/>
          </front>
        </reference>
        <reference anchor="VERIFY-REF" target="https://www.npmjs.com/package/@veritasacta/verify">
          <front>
            <title>Veritas Acta Reference Verifier (@veritasacta/verify)</title>
            <author fullname="T. Farley" initials="T." surname="Farley">
              <organization>ScopeBlind (Veritas Acta)</organization>
            </author>
            <date year="2026"/>
          </front>
        </reference>
        <reference anchor="TESTVECTORS" target="https://github.com/ScopeBlind/agent-governance-testvectors">
          <front>
            <title>Agent Governance Cross-Implementation Test Vectors</title>
            <author fullname="T. Farley" initials="T." surname="Farley">
              <organization>ScopeBlind (Veritas Acta)</organization>
            </author>
            <date year="2026"/>
          </front>
        </reference>
      </references>
    </references>
    <section anchor="implementation-status">
      <name>Implementation Status</name>
      <t>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
<xref target="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.</t>
      <t>Note to the RFC Editor: please remove this section, and the reference
to <xref target="RFC7942"/>, before publication.</t>
      <section anchor="protect-mcp-reference-implementation">
        <name>protect-mcp (Reference Implementation)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: ScopeBlind, maintained by this document's author.</t>
          </li>
          <li>
            <t>Implementation: https://www.npmjs.com/package/protect-mcp</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Coverage: Access Decision Receipts.</t>
          </li>
          <li>
            <t>Licensing: MIT.</t>
          </li>
          <li>
            <t>Version: 0.32.4.</t>
          </li>
        </ul>
      </section>
      <section anchor="veritasactaverify-verifier">
        <name>@veritasacta/verify (Verifier)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: Veritas Acta, maintained by this document's author.</t>
          </li>
          <li>
            <t>Implementation: https://www.npmjs.com/package/@veritasacta/verify</t>
          </li>
          <li>
            <t>Description: Standalone CLI and library for offline receipt
verification. Zero runtime dependencies on ScopeBlind.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0.</t>
          </li>
          <li>
            <t>Version: 0.11.1.</t>
          </li>
        </ul>
      </section>
      <section anchor="scopeblindpassport-identity-sdk">
        <name>@scopeblind/passport (Identity SDK)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: ScopeBlind, maintained by this document's author.</t>
          </li>
          <li>
            <t>Implementation: https://www.npmjs.com/package/@scopeblind/passport</t>
          </li>
          <li>
            <t>Description: Agent identity SDK for generating manifests and signing
receipts.</t>
          </li>
          <li>
            <t>Coverage: Receipt and manifest signing, key management.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="protect-mcp-adk-google-adk">
        <name>protect-mcp-adk (Google ADK)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: ScopeBlind, maintained by this document's author.</t>
          </li>
          <li>
            <t>Implementation: https://pypi.org/project/protect-mcp-adk/</t>
          </li>
          <li>
            <t>Description: Google Agent Development Kit plugin for Ed25519
receipt signing. BasePlugin subclass, wraps tool calls.</t>
          </li>
          <li>
            <t>Coverage: Access Decision Receipts.</t>
          </li>
          <li>
            <t>Licensing: MIT.</t>
          </li>
        </ul>
      </section>
      <section anchor="scopeblind-pydantic-ai-pydantic-ai">
        <name>scopeblind-pydantic-ai (Pydantic AI)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: ScopeBlind, maintained by this document's author.</t>
          </li>
          <li>
            <t>Implementation: https://pypi.org/project/scopeblind-pydantic-ai/</t>
          </li>
          <li>
            <t>Description: Pydantic AI Capability for Ed25519 receipt signing.
Uses wrap_tool_execute hook for policy evaluation and signing.</t>
          </li>
          <li>
            <t>Coverage: Access Decision Receipts.</t>
          </li>
          <li>
            <t>Licensing: MIT.</t>
          </li>
        </ul>
      </section>
      <section anchor="scopeblind-llamaindex-llamaindex">
        <name>scopeblind-llamaindex (LlamaIndex)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: ScopeBlind, maintained by this document's author.</t>
          </li>
          <li>
            <t>Implementation: https://pypi.org/project/scopeblind-llamaindex/</t>
          </li>
          <li>
            <t>Description: LlamaIndex CallbackHandler for FUNCTION_CALL events.
Signs tool calls via BaseCallbackHandler, composes with other
handlers (Langfuse, Arize, etc.).</t>
          </li>
          <li>
            <t>Coverage: Access Decision Receipts.</t>
          </li>
          <li>
            <t>Licensing: MIT.</t>
          </li>
        </ul>
      </section>
      <section anchor="scopeblindvercel-ai-vercel-ai-sdk">
        <name>@scopeblind/vercel-ai (Vercel AI SDK)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: ScopeBlind, maintained by this document's author.</t>
          </li>
          <li>
            <t>Implementation: https://www.npmjs.com/package/@scopeblind/vercel-ai</t>
          </li>
          <li>
            <t>Description: Hooks into Vercel AI SDK's experimental_onToolCallStart
and experimental_onToolCallFinish for per-tool-call receipt signing.</t>
          </li>
          <li>
            <t>Coverage: Access Decision Receipts.</t>
          </li>
          <li>
            <t>Licensing: MIT.</t>
          </li>
        </ul>
      </section>
      <section anchor="scopeblindlangchain-langchain-langgraph">
        <name>@scopeblind/langchain (LangChain + LangGraph)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: ScopeBlind, maintained by this document's author.</t>
          </li>
          <li>
            <t>Implementation: https://www.npmjs.com/package/@scopeblind/langchain</t>
          </li>
          <li>
            <t>Description: Evidence wrapper for LangChain tool calls and LangGraph
node transitions. Produces decision/execution/outcome receipt DAGs.</t>
          </li>
          <li>
            <t>Coverage: Access Decision Receipts, graph-level receipts.</t>
          </li>
          <li>
            <t>Licensing: MIT.</t>
          </li>
          <li>
            <t>Version: 0.2.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="microsoft-agent-governance-toolkit-enterprise-consumer">
        <name>Microsoft Agent Governance Toolkit (Enterprise Consumer)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: Microsoft</t>
          </li>
          <li>
            <t>Implementation: https://github.com/microsoft/agent-governance-toolkit</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Coverage: Access Decision Receipts (consumer-only).</t>
          </li>
          <li>
            <t>Licensing: MIT.</t>
          </li>
        </ul>
      </section>
      <section anchor="aws-cedar-for-agents-wasm-policy-engine">
        <name>AWS Cedar for Agents (WASM Policy Engine)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: AWS / Cedar Policy</t>
          </li>
          <li>
            <t>Implementation: https://github.com/cedar-policy/cedar-for-agents</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Coverage: Policy evaluation inputs; does not produce receipts directly.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="sigstore-rekor-transparency-log-anchor">
        <name>Sigstore Rekor (Transparency Log Anchor)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: Linux Foundation / Sigstore</t>
          </li>
          <li>
            <t>Implementation: https://rekor.sigstore.dev</t>
          </li>
          <li>
            <t>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).</t>
          </li>
          <li>
            <t>Coverage: Temporal anchoring of any receipt type.</t>
          </li>
          <li>
            <t>Notes: Uses DSSE envelope with payloadType
"application/vnd.scopeblind.receipt+json". Ed25519ph (prehash
variant) required for the alternative hashedrekord entry type.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-nobulex">
        <name>nobulex (Conformance Driver)</name>
        <ul spacing="normal">
          <li>
            <t>Maintainer: arian-gogani.</t>
          </li>
          <li>
            <t>Implementation: https://github.com/ScopeBlind/agent-governance-testvectors/tree/main/implementations/nobulex, the conformance driver added in pull request #12 of that suite.</t>
          </li>
          <li>
            <t>Language: Python.</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Coverage: Passes the shared suite's checks in CI: the schema, every signature under the supplied key, and the chain and expected decisions.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0, as part of the suite.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-aps-governance-hook">
        <name>APS Governance Hook (Conformance Driver)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: Agent Passport System, maintained by aeoess.</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Language: Python.</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Coverage: Passes the shared suite's checks in CI.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-cryptovalid-opencore">
        <name>cryptovalid-opencore (Emitter and Verifier)</name>
        <ul spacing="normal">
          <li>
            <t>Maintainer: robertolocatelli81-dev.</t>
          </li>
          <li>
            <t>Implementation: https://github.com/robertolocatelli81-dev/cryptovalid-opencore. The shared suite's driver for it was added in pull request #25 of that suite.</t>
          </li>
          <li>
            <t>Language: Python.</t>
          </li>
          <li>
            <t>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 (<xref target="chain-hash-scope"/>), and the policy digest recomputed from the policy bytes (<xref target="policy-digest-construction"/>).</t>
          </li>
          <li>
            <t>Coverage: Passes the shared suite's checks in CI.</t>
          </li>
          <li>
            <t>Licensing: AGPL-3.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-asqav">
        <name>asqav SDK (Compliance Receipt Profile)</name>
        <ul spacing="normal">
          <li>
            <t>Maintainer: jagmarques (Asqav).</t>
          </li>
          <li>
            <t>Implementation: https://github.com/jagmarques/asqav-sdk.</t>
          </li>
          <li>
            <t>Language: Python and TypeScript.</t>
          </li>
          <li>
            <t>Description: SDKs for the Compliance Receipts of <xref target="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.</t>
          </li>
          <li>
            <t>Coverage: Compliance Receipts, which it emits and verifies; receipts in this document's envelope shape, which it verifies under Ed25519 only.</t>
          </li>
          <li>
            <t>Licensing: Elastic License 2.0 for the client SDKs; Apache-2.0 for the verifier and conformance vectors.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-emilia">
        <name>EMILIA Protocol (Acta Example)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: emiliaprotocol (GitHub organization).</t>
          </li>
          <li>
            <t>Implementation: https://github.com/emiliaprotocol/emilia-protocol, examples/acta-ep-join.</t>
          </li>
          <li>
            <t>Language: TypeScript.</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Coverage: Access Decision Receipts in the envelope shape, Ed25519 only. Its README says it refuses an envelope that carries its own verification key.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-trace">
        <name>TRACE (Acta Verifier)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: agentrust-io (trace-spec); the verifier is by astrogilda.</t>
          </li>
          <li>
            <t>Implementation: https://github.com/agentrust-io/trace-spec, tools/acta_receipt_verifier.py, with fixtures in examples/action-receipts/acta.</t>
          </li>
          <li>
            <t>Language: Python.</t>
          </li>
          <li>
            <t>Description: Verifies receipts in this document's envelope shape: the refusal of a signature member (<xref target="signature-scope"/>), 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.</t>
          </li>
          <li>
            <t>Coverage: Envelope-shape receipts signed with Ed25519.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0 for code and examples; the specification text is under the Community Specification License 1.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-agent-evidence-vectors">
        <name>agent-evidence-vectors (Receipt-Signature Corpus)</name>
        <ul spacing="normal">
          <li>
            <t>Organization: probityai, maintained by astrogilda.</t>
          </li>
          <li>
            <t>Implementation: https://github.com/probityai/agent-evidence-vectors, the receipt-signature corpus.</t>
          </li>
          <li>
            <t>Language: Python.</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Coverage: The signing input, key validity windows and chain links.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-argentum-core">
        <name>argentum-core (Receipt-Signature Vectors)</name>
        <ul spacing="normal">
          <li>
            <t>Maintainer: giskard09.</t>
          </li>
          <li>
            <t>Implementation: https://github.com/giskard09/argentum-core, examples/conformance/farley-receipt-signature.</t>
          </li>
          <li>
            <t>Language: Python.</t>
          </li>
          <li>
            <t>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.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0.</t>
          </li>
        </ul>
      </section>
      <section anchor="impl-receipt-verify">
        <name>receipt-verify (Verifier)</name>
        <ul spacing="normal">
          <li>
            <t>Maintainer: LembaGang.</t>
          </li>
          <li>
            <t>Implementation: https://github.com/LembaGang/receipt-verify (npm package @headlessoracle/receipt-verify).</t>
          </li>
          <li>
            <t>Language: TypeScript.</t>
          </li>
          <li>
            <t>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 <xref target="signature-scope"/> now specifies. It verifies EdDSA and ES256, reports ML-DSA-65 as unverifiable, and implements commitment mode. Its tests include published Acta receipts.</t>
          </li>
          <li>
            <t>Licensing: Apache-2.0.</t>
          </li>
        </ul>
      </section>
    </section>
    <section anchor="example-complete-verification-flow">
      <name>Example: Complete Verification Flow</name>
      <t>The following example demonstrates end-to-end receipt creation and
verification.</t>
      <t>Steps 1 and 2 together form one ES module (for example,
<tt>sign.mjs</tt>), run with Node.js after
<tt>npm install @scopeblind/passport</tt>. Step 2 writes
<tt>receipt.json</tt>, and Step 3 verifies it with the public key that Step 1
prints. The output shown came from <tt>@scopeblind/passport</tt> 0.4.3 and
<tt>@veritasacta/verify</tt> 0.10.27. Each run generates a new key, so the
identifiers will differ.</t>
      <section anchor="step-1-generate-issuer-keys">
        <name>Step 1: Generate Issuer Keys</name>
        <artwork><![CDATA[
import { generateIssuerKey } from '@scopeblind/passport';
const issuer = generateIssuerKey();
console.log(issuer.issuerId);
console.log(issuer.publicKeyHex);
// One run printed:
// sb:issuer:BrmdDbomqHgK
// a154c931eb9b746c8d3b07dcca39bc3680ecc0dc5cc2d5e385522954a1f0ab0c
]]></artwork>
      </section>
      <section anchor="step-2-sign-a-receipt">
        <name>Step 2: Sign a Receipt</name>
        <t>The <tt>policy_digest</tt> below is the acta-policy-digest-v1
digest (<xref target="policy-digest-construction"/>) of one Cedar file,
<tt>policy.cedar</tt>, holding <tt>permit(principal, action, resource);</tt>
and a newline.</t>
        <artwork><![CDATA[
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));
]]></artwork>
      </section>
      <section anchor="step-3-verify-cli">
        <name>Step 3: Verify (CLI)</name>
        <t>Here <tt>&lt;64-hex&gt;</tt> is the public key that Step 1 prints.
The output is cut after the <tt>keySource</tt> member.</t>
        <artwork><![CDATA[
$ 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",
  ...
}
]]></artwork>
      </section>
    </section>
    <section anchor="changes-from-03">
      <name>Changes from -03</name>
      <t>Note to the RFC Editor: please remove this appendix before
publication. Change logs for earlier revisions (-01 through -03) are retained
in the document&apos;s source repository and prior Datatracker postings.</t>
      <ul>
        <li><t>Document structure: moved core normative sections
(<xref target="signature-scope"/>, <xref target="chain-hash-scope"/>,
<xref target="policy-digest-construction"/>, and
<xref target="algorithm-agility"/>) out of the optional
<xref target="commitment-mode"/> section into
<xref target="signing-and-verification"/>, and promoted
<xref target="test-vectors"/> to a top-level section. Removed the historical
-01 and -02 change-log appendices and the unused RFC 9497 reference.</t></li>
        <li><t><xref target="design-rationale"/> (new): states the design
rationale relative to JWS (<xref target="RFC7515"/>) and COSE
(<xref target="RFC9052"/>), and notes when those formats should be preferred.</t></li>
        <li><t>Vendor neutrality and IANA hygiene: replaced the vendor-prefixed
<tt>sb:issuer:</tt> recommendation in <xref target="signature-object"/> with
issuer-defined identifiers (such as <xref target="RFC7638"/> JWK Thumbprints or
namespaced fingerprints), replaced illustrative vendor examples with neutral
ones while retaining <tt>protectmcp:decision</tt> for wire compatibility,
marked <tt>/.well-known/acta-keys.json</tt> and
<tt>/.well-known/acta-policies/</tt> as provisional conventions pending
<xref target="RFC8615"/> registration in <xref target="iana-considerations"/>,
and renamed non-Internet-Draft reference anchors.</t></li>
        <li><t><xref target="verification-outcomes"/> (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
<xref target="verification-process"/> refers to it. Among the causes of an
invalid outcome are a carried key that differs from the trust-anchored key; a
<tt>signature</tt> member in the object canonicalized, whether or not the
signature verifies; and, in the envelope shape, a payload whose
<tt>issuer_id</tt> differs from <tt>signature.kid</tt>. A payload that lacks a
member <xref target="payload"/> requires, or that does not conform to its
declared type, is reported separately and does not change the outcome.</t></li>
        <li><t><xref target="key-validity-windows"/> (new): key validity
windows. When the key source gives a key a <tt>valid_from</tt> /
<tt>valid_until</tt> window, applying it to <tt>issued_at</tt> is required (-03
said SHOULD). The window includes <tt>valid_from</tt> and excludes
<tt>valid_until</tt>, as <xref target="RFC7519"/> treats <tt>exp</tt>. A
receipt outside it is invalid, a window that cannot be applied is undecidable,
and with no window a verifier reports the key&apos;s validity at issuance as not
established rather than as valid. The window applies to the <tt>issued_at</tt>
member of the signed bytes. A signed <tt>issued_at</tt> that is absent or not a
valid timestamp leaves the window unapplied and the outcome undecidable.
<xref target="verification-process"/> gains a step for it,
<xref target="verification-outcomes"/> lists the new invalid and undecidable
causes, and <xref target="test-vectors"/> lists the corresponding vectors.</t></li>
        <li><t><xref target="chain-hash-scope"/> and
<xref target="chain-link-verification"/> (new): how a verifier treats chain
links. A verifier must recognize both forms of link: <tt>"sha256:"</tt> 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&apos;s
payload alone never matches. Given a predecessor by its caller, a receipt
follows it only if it carries that receipt&apos;s link, so an absent or
<tt>null</tt> 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 <tt>null</tt> 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.
<xref target="payload"/> points at the new subsection,
<xref target="verification-outcomes"/> lists the new invalid and undecidable
causes, and <xref target="test-vectors"/> lists the corresponding vectors.</t></li>
        <li><t><xref target="test-vectors"/>: 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&apos;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&apos;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.</t></li>
        <li><t><xref target="algorithm-agility"/>: ML-DSA-65
<xref target="RFC9964"/> may be used, and a verifier that does not implement it
reports undecidable; -03 recommended it for new deployments.
<xref target="RFC7518"/> is cited for ES256 only, and the ES256 entry no longer
refers to a draft on zero-knowledge proofs.</t></li>
        <li><t><xref target="key-distribution-and-trust-anchors"/>: a carried
key is the value of a <tt>public_key</tt>, <tt>verification_key</tt> or
<tt>verification_jwk</tt> 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.</t></li>
        <li><t>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
<tt>receipt-types.md</tt>, an informative registry kept with this document,
and the agent manifest is described in <tt>agent-manifest.md</tt>, with its key
member renamed <tt>agent_public_key</tt>. The Restraint Receipt is folded into
the Access Decision Receipt: <tt>reason</tt>, spelled <tt>"policy_block"</tt>
and <tt>"agent_refusal"</tt>, replaces its <tt>denial_type</tt>, and
<tt>agent_id</tt> and <tt>agent_manifest_version</tt> become OPTIONAL fields.
The <tt>agent_tier</tt> field no longer lists tier values, and
<xref target="public-key-distribution"/> no longer lists agent manifests as a
key source.</t></li>
        <li><t><xref target="implementation-status"/> follows
<xref target="RFC7942"/>, marks all implementations maintained by this
document&apos;s author, updates their versions, and adds entries A.12 to A.20.
<xref target="example-complete-verification-flow"/> runs as written, shows
output from a real run, and carries a policy digest computed as
<xref target="policy-digest-construction"/> specifies.</t></li>
        <li><t>The XML source no longer embeds the markdown source of -02.</t></li>
      </ul>
    </section>
    <section anchor="acknowledgements">
      <name>Acknowledgements</name>
      <t>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.</t>
      <t>The evidence predicate in <xref target="evidence-predicate"/>
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 <tt>source</tt>
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.</t>
      <t>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&apos;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
<xref target="key-validity-windows"/> follows from that measurement.</t>
      <t>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 <tt>previousReceiptHash</tt>, the conflict between the
fixed signature length and algorithm agility, the freshness window&apos;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.</t>
      <t>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
(<xref target="signature-scope"/>) was corrected in -02 to match the
signing process (<xref target="signing-process"/>). Sections are named
rather than numbered here because the numbering has changed across
revisions.</t>
      <t>The <tt>action_ref</tt> normative definition was developed in
collaboration with the Agent Passport System project. The
<tt>iteration_id</tt> 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 <tt>verifier_sigil</tt> (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).</t>
      <t>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.</t>
    </section>
  </back>
</rfc>
