<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-model href="rfc7991bis.rnc"?>
<rfc
  xmlns:xi="http://www.w3.org/2001/XInclude"
  category="info"
  docName="draft-durga-pquip-pqc-agentic-delegation-02"
  ipr="trust200902"
  obsoletes=""
  updates=""
  submissionType="independent"
  xml:lang="en"
  version="3">

  <front>
    <title abbrev="PQ-Agentic Delegation &amp; Trace Receipts">Post-Quantum Hybrid Cryptographic Delegation Chains and Merkle-Aggregated Execution Receipts for Autonomous AI Agents</title>

    <seriesInfo name="Internet-Draft" value="draft-durga-pquip-pqc-agentic-delegation-02"/>

    <author fullname="Raghuvar Karthik Durga" initials="R. K." surname="Durga">
      <organization>Microsoft Corporation</organization>
      <address>
        <postal>
          <city>Chicago</city>
          <region>IL</region>
          <country>US</country>
        </postal>
        <email>rdurga@microsoft.com</email>
        <uri>https://orcid.org/0009-0003-7014-355X</uri>
      </address>
    </author>

    <date year="2026" month="November" day="25"/>

    <area>Security</area>
    <workgroup>Network Working Group</workgroup>

    <keyword>Post-Quantum Cryptography</keyword>
    <keyword>ML-DSA</keyword>
    <keyword>SLH-DSA</keyword>
    <keyword>Autonomous AI Agents</keyword>
    <keyword>MCP</keyword>
    <keyword>A2A</keyword>
    <keyword>WIMSE</keyword>
    <keyword>SCITT</keyword>

    <abstract>
      <t>
        Autonomous AI agent ecosystems rely on multi-hop cryptographic delegation chains and signed execution traces (currently built on Ed25519, ECDSA P-256, and RSA-PSS) to enforce least-privilege tool invocations across Model Context Protocol (MCP) and Agent-to-Agent (A2A) boundaries, and to preserve long-term non-repudiation for regulatory audit logs. This architecture faces two vulnerabilities in the Post-Quantum transition: (1) "Harvest-Now, Forge-and-Repudiate-Later" (HNFRL) attacks, wherein Cryptographically Relevant Quantum Computers (CRQCs) running Shor's algorithm retroactively forge or repudiate historical classical signatures on compliance traces once historical public keys are compromised; and (2) "Lattice Signature-Bloat Amplification," wherein naively carrying inline 3,309-byte ML-DSA-65 (<xref target="FIPS204"/>) signatures and 1,952-byte public keys across a 10-hop sub-agent chain inflates raw cryptographic material from 960 bytes to 52,610 bytes (over 70 KB when Base64url-encoded inside JSON-RPC headers), exceeding typical 8 KB to 16 KB HTTP/2 header limits.
      </t>
      <t>
        This document specifies a deterministic Post-Quantum Agentic Delegation and Trace Receipt profile ("PQ-Agentic"). It defines a two-tier cryptographic architecture built strictly from published IETF and NIST standards: (a) a Hot-Path Hybrid Delegation Envelope combining classical Ed25519 (<xref target="RFC8032"/>) with pure ML-DSA-65 (<xref target="FIPS204"/>) over a single domain-separated RFC 8785 JSON Canonicalization Scheme (JCS) transcript, replacing per-call inline re-transmission of prior delegators' 5,261-byte ML-DSA-65 public keys and signatures with 32-byte SHAKE256 digests of cached, hybrid-signed SessionGrants; and (b) a Cold-Path Archival Profile that registers Tier-1 execution receipts and SessionGrants as <xref target="RFC9943"/> SCITT Signed Statements with <xref target="RFC9942"/> COSE Receipts and dual post-quantum epoch checkpoints sealed with stateless hash-based SLH-DSA-SHAKE-192s / SLH-DSA-SHAKE-256s (<xref target="FIPS205"/>) and ML-DSA-87 (<xref target="FIPS204"/>). Complete multi-implementation conformance test vectors are provided.
      </t>
    </abstract>
  </front>

  <middle>
    <section anchor="introduction" numbered="true" toc="default">
      <name>Introduction</name>
      <t>
        As autonomous AI agents transition into regulated enterprise, healthcare, financial, and critical-infrastructure operations, workload identity credentials, transparency receipts (<xref target="RFC9943"/>), and execution-trace verification profiles (<xref target="I-D.durga-agenttrust-trace-verification"/> and <xref target="I-D.durga-wimse-ctx-isolation"/>) rely on asymmetric digital signatures to bind human intent, scope attenuation, and tool-invocation parameters.
      </t>
      <t>
        While Post-Quantum Cryptography (PQC) deployment for TLS key establishment (via ML-KEM / FIPS 203) addresses "Harvest-Now, Decrypt-Later" confidentiality threats, autonomous agent delegation chains face two distinct signature-layer challenges:
      </t>
      <ul spacing="normal">
        <li>
          <strong>1. Harvest-Now, Forge-and-Repudiate-Later (HNFRL) on Long-Horizon Audit Logs:</strong> Regulated sectors retain autonomous decision and tool-execution logs for 7 to 30 years. In an append-only transparency log, long-horizon tamper detection over historical ordering derives primarily from the hash-only Merkle tree structure and widely distributed checkpoints. However, once a CRQC recovers the classical private scalar for a historical agent or approver public key, an adversary can forge counterfeit standalone statements or repudiate issuer attribution on records whose authenticity relies solely on classical signatures.
        </li>
        <li>
          <strong>2. Multi-Hop Lattice Signature-Bloat Amplification:</strong> Unlike TLS handshakes that amortize PQC key and signature sizes across long-lived connections, autonomous agent workflows execute stateless JSON-RPC tool invocations across multi-hop delegation chains (User -&gt; Orchestrator -&gt; Planner -&gt; Domain Sub-Agent -&gt; MCP Gateway -&gt; Tool Server). In classical Ed25519, 10 inline hops carry <tt>10 x (64-byte signature + 32-byte public key) = 960</tt> raw cryptographic bytes. Under <xref target="FIPS204"/> ML-DSA-65, a single signature is 3,309 bytes and a raw public key is 1,952 bytes (5,261 bytes per hop). Carrying 10 inline ML-DSA-65 public keys and signatures requires 52,610 raw cryptographic bytes (approximately 70.1 KB after Base64url encoding, before JSON framing), exceeding standard 8 KB to 16 KB HTTP/2 header buffers.
        </li>
      </ul>
      <t>
        This specification defines a self-contained, interoperable wire profile that resolves both constraints using RFC 8785 JCS canonicalization, domain-separated composite hybrid signatures, digest-linked SessionGrant caching, and RFC 9943 / RFC 9942 SCITT transparency anchoring.
      </t>
    </section>

    <section anchor="conventions" numbered="true" toc="default">
      <name>Conventions and Definitions</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>
      <dl newline="false" spacing="normal">
        <dt>HNFRL (Harvest-Now, Forge-and-Repudiate-Later):</dt>
        <dd>An adversarial model in which classical public keys and signed audit records are archived today and later compromised via Shor's algorithm on a CRQC to forge counterfeit historical issuer attributions or repudiate authentic receipts.</dd>
        <dt>Composite Hybrid Signature (<tt>HYBRID-ED25519-MLDSA65-SHAKE256</tt>):</dt>
        <dd>A dual-signature construction requiring both a valid <xref target="RFC8032"/> pure Ed25519 signature (64 bytes) and a valid <xref target="FIPS204"/> pure ML-DSA-65 signature (3,309 bytes, empty context string <tt>ctx = ""</tt>) over an identical domain-separated canonical pre-image.</dd>
        <dt>SessionGrant (<tt>Grant_i</tt>):</dt>
        <dd>A hybrid-signed delegation artifact issued by hop <tt>A_{i-1}</tt> to <tt>A_i</tt> for a bounded session window, cached by the Policy Enforcement Point (PEP) and referenced on per-call envelopes via its 32-byte digest <tt>H_i</tt>.</dd>
      </dl>
    </section>

    <section anchor="architecture" numbered="true" toc="default">
      <name>Two-Tier Post-Quantum Agentic Architecture</name>
      <t>
        Conforming implementations separate real-time tool-invocation authorization (Tier 1) from long-horizon transparency archival (Tier 2):
      </t>
      <artset>
        <artwork type="ascii-art"><![CDATA[
+-----------------------------------------------------------------+
| TIER 1: HOT-PATH DELEGATION & TOOL INVOCATION                   |
|                                                                 |
| [Root Authority / Hop 0]                                        |
|     | Composite Key ID (pq_kid) in WIMSE/SPIFFE Trust Bundle    |
|     v                                                           |
| [Hop 1..k-1: SessionGrant Objects (Grant_1 .. Grant_{k-1})]     |
|     | Each Grant_i signed once per session epoch with           |
|     | Ed25519 + ML-DSA-65; referenced per call by 32-byte       |
|     | digest H_i = "shake256:" || base64url(SHAKE256_256(JCS))  |
|     v                                                           |
| [Hop k: Terminal Invoker -> MCP / A2A Policy Enforcement Point] |
|     | Carries ordered [H_1, ..., H_{k-1}], call binding, and    |
|     | one terminal Ed25519 (64B) + ML-DSA-65 (3,309B) signature |
|     | over "PQ-AGENTIC-DELEGATION-V1" || 0x00 || UTF8(JCS(U))   |
+-----+-----------------------------------------------------------+
      |
      | Asynchronous Registration (Delta_t <= 60s or N <= 1024)
      v
+-----------------------------------------------------------------+
| TIER 2: COLD-PATH SCITT TRANSPARENCY & EPOCH ARCHIVE            |
|                                                                 |
| [RFC 9943 SCITT Transparency Service & Archive Notary]          |
|     | 1. Retains full signed Tier-1 Envelopes & SessionGrants   |
|     | 2. Computes RFC 9162 SHA-256 Merkle Tree (RFC9162_SHA256) |
|     | 3. Binds tree_size + tree_root in EpochCheckpoint signed  |
|     |    with SLH-DSA-SHAKE-192s/256s (FIPS 205) + ML-DSA-87    |
|     +--> Periodic Evidence Renewal per RFC 4998 Section 5       |
+-----------------------------------------------------------------+
]]></artwork>
      </artset>

      <section anchor="hot-path" numbered="true" toc="default">
        <name>Tier 1: Hot-Path Hybrid Delegation with Digest-Linked Session Grants</name>
        <t>
          In a multi-hop delegation chain of depth <tt>k</tt>, requiring every intermediate agent <tt>A_1, ..., A_{k-1}</tt> to attach an inline ML-DSA-65 public key (1,952 bytes) and signature (3,309 bytes) on every tool call adds 5,261 raw bytes per hop. Tier 1 replaces per-call re-transmission of intermediate keys and signatures with three mechanisms:
        </t>
        <ol spacing="normal">
          <li>
            <strong>Composite Key Identifier (<tt>pq_kid</tt>) Addressing:</strong> Envelopes MUST NOT embed raw 1,952-byte ML-DSA-65 public keys inline. Each agent references its composite key pair via a deterministic 32-byte SHAKE256 identifier (<tt>invoker_pq_kid</tt>, defined in <xref target="signing-rules"/>) resolved from the relying party's authenticated WIMSE/SPIFFE trust bundle.
          </li>
          <li>
            <strong>Epoch-Pinned Hybrid SessionGrants (<tt>Grant_i</tt>):</strong> When Agent <tt>A_{i-1}</tt> delegates attenuated scope <tt>S_i</tt> (where <tt>S_i</tt> is a subset of <tt>S_{i-1}</tt>) to <tt>A_i</tt>, <tt>A_{i-1}</tt> signs a <tt>SessionGrant</tt> object (<xref target="grant-schema"/>) once per session epoch using <tt>HYBRID-ED25519-MLDSA65-SHAKE256</tt>. The complete signed grant is identified by the 32-byte digest <tt>H_i = "shake256:" || base64url(SHAKE256_256(UTF8(JCS(Grant_i))))</tt>, covering the full canonical JCS bytes of <tt>Grant_i</tt> including both signatures.
          </li>
          <li>
            <strong>Compact Per-Call Wire Envelope:</strong> On each tool invocation, the terminal agent <tt>A_k</tt> transmits the ordered list of 32-byte grant digests <tt>hop_chain_digests = [H_1, ..., H_{k-1}]</tt>, the signed scope and call parameters, and a single terminal <tt>HYBRID-ED25519-MLDSA65-SHAKE256</tt> signature pair (64-byte Ed25519 + 3,309-byte ML-DSA-65 = 3,373 raw signature bytes).
          </li>
        </ol>
        <t>
          <strong>Wire-Size Accounting (Raw Cryptographic Bytes vs. Serialized JSON-RPC Envelope):</strong> Across a 10-hop chain (1 terminal signature pair + 9 intermediate hop digests), the raw cryptographic primitives total <tt>64 + 3,309 + (9 x 32) = 3,661</tt> bytes, compared to <tt>10 x (1,952 + 3,309) = 52,610</tt> raw bytes for inline ML-DSA-65 public-key and signature chaining (or <tt>52,930</tt> raw bytes when including 10 Ed25519 public keys). When Base64url-encoded inside a complete RFC 8785 JCS JSON envelope (including member names, <tt>shake256:</tt> prefixes, and metadata), a 2-hop envelope (<xref target="baseline-envelope"/>) serializes to 5,204 bytes and a 10-hop envelope serializes to approximately 5,652 bytes, compared to approximately 74.8 KB for a 10-hop inline Base64url JSON representation. Full size and latency measurements are detailed in <xref target="size-and-latency"/>.
        </t>
      </section>

      <section anchor="cold-path" numbered="true" toc="default">
        <name>Tier 2: Normative SCITT Anchoring, Stateless Hash-Based Epoch Seals, and Archival Verification</name>
        <t>
          Long-horizon audit integrity relies on two distinct properties that MUST NOT be conflated: (1) <em>tamper-evident history ordering</em>, which derives from hash-only Merkle inclusion and consistency proofs over widely distributed roots even if all signature algorithms are later weakened; and (2) <em>post-quantum issuer and notary attribution</em>, which prevents an adversary with a CRQC from forging historical receipts or checkpoints.
        </t>
        <t>
          To make Tier-2 archival proofs independently verifiable under <xref target="RFC9943"/> (SCITT Architecture) and <xref target="RFC9942"/> (COSE Receipts):
        </t>
        <ol spacing="normal">
          <li>
            <strong>Mandatory Retention of Full SessionGrants and Envelopes:</strong> Because a hot-path envelope carries only 32-byte grant digests <tt>H_i</tt>, an historical auditor cannot verify intermediate scope attenuation from <tt>H_i</tt> alone. The Transparency Service / Archive Notary MUST retain the complete hybrid-signed <tt>SessionGrant</tt> objects (indexed by <tt>H_i</tt>), the complete signed Tier-1 invocation envelopes, and the active trust-bundle and policy-manifest snapshots for the entire retention period.
          </li>
          <li>
            <t>
              <strong>Normative SCITT Signed Statement Registration &amp; RFC 9162 Merkle Tree:</strong> Each verified Tier-1 invocation envelope and each <tt>SessionGrant</tt> MUST be registered as an <xref target="RFC9943"/> Signed Statement returning an <xref target="RFC9942"/> COSE Receipt using the <tt>RFC9162_SHA256</tt> Verifiable Data Structure (<xref target="RFC9162"/> Section 2.1 with <tt>SHA-256</tt>):
            </t>
            <ul spacing="normal">
              <li>Leaf hash for entry bytes <tt>D[i]</tt> at 0-based index <tt>i</tt>: <tt>MTH({D[i]}) = SHA-256(0x00 || D[i])</tt>.</li>
              <li>Interior node hash for <tt>n &gt; 1</tt> entries (where <tt>k</tt> is the largest power of two strictly less than <tt>n</tt>, with no odd-node duplication): <tt>MTH(D[0..n]) = SHA-256(0x01 || MTH(D[0..k]) || MTH(D[k..n]))</tt>.</li>
            </ul>
          </li>
          <li>
            <strong>Signed Epoch Checkpoint &amp; Tree-Size Authentication (Addressing RFC 9942 Errata EID 9316 / EID 9317):</strong> In <xref target="RFC9942"/> COSE Receipts, <tt>tree_size</tt> and <tt>leaf_index</tt> reside in unprotected header parameters outside the signature. Per RFC 9942 Errata EID 9316 (inclusion) and EID 9317 (consistency), once <tt>tree_size</tt> is cryptographically bound to <tt>tree_root</tt> inside a signed checkpoint, no other <tt>leaf_index</tt> can verify against the same inclusion path. Conforming notaries MUST emit a signed <tt>EpochCheckpoint</tt> JSON object at each epoch boundary (<tt>Delta_t &lt;= 60</tt> seconds or <tt>N &lt;= 1,024</tt> leaves) that binds <tt>epoch_number</tt>, <tt>merkle_vds</tt> (<tt>"RFC9162_SHA256"</tt>), <tt>tree_size</tt>, <tt>tree_root</tt> (<tt>"sha256:&lt;hex&gt;"</tt>), <tt>prev_tree_size</tt>, <tt>prev_checkpoint_sha256</tt>, <tt>iat</tt>, and <tt>policy_manifest_sha256</tt> inside the signed JCS payload. Relying parties MUST take <tt>tree_size</tt> (and <tt>prev_tree_size</tt> for consistency proofs) from the signed <tt>EpochCheckpoint</tt>, rejecting any receipt whose unprotected header disagrees.
          </li>
          <li>
            <strong>Stateless Hash-Based + Lattice Dual Epoch Seal (<xref target="FIPS205"/> + <xref target="FIPS204"/>):</strong> Because epoch sealing occurs at most once per 60 seconds (or 1,024 steps) off the real-time path, the notary signs <tt>"PQ-AGENTIC-CHECKPOINT-V1" || 0x00 || UTF8(JCS(EpochCheckpoint_without_signatures))</tt> using both: (a) stateless hash-based <strong><tt>SLH-DSA-SHAKE-192s</tt></strong> (<xref target="FIPS205"/> Algorithm 22 pure mode, <tt>ctx = ""</tt>, 16,224-byte signature, matching NIST Security Category 3 alongside ML-DSA-65; or <strong><tt>SLH-DSA-SHAKE-256s</tt></strong>, 29,792-byte signature, for Category 5 profiles) and (b) <strong><tt>ML-DSA-87</tt></strong> (<xref target="FIPS204"/> Algorithm 2 pure mode, <tt>ctx = ""</tt>, 4,627-byte signature). Verifiers MUST reject <tt>HashSLH-DSA</tt> (Algorithm 23) and <tt>SLH-DSA-SHA2-*</tt> variants when the suite names <tt>SHAKE</tt>.
          </li>
          <li>
            <strong>Long-Horizon Assumptions, Evidence Renewal (<xref target="RFC4998"/>), and Non-Settlement Boundary:</strong> Multi-decade verifiability is conditional on retaining the historical public-key trust bundles, policy manifests, and <tt>SessionGrant</tt> artifacts, and executing periodic <xref target="RFC4998"/> Section 5 archive timestamp / hash-tree renewal using post-quantum timestamp authorities prior to algorithm or key retirement. When PQ-Agentic receipts are referenced inside an external Verdict Record (<xref target="I-D.wright-verdict-record"/>), deterministic rule re-evaluation over SHA-256 digest-bound evidence is signature-agnostic, while the PQ-Agentic and SCITT container signatures establish issuer and log attribution. Furthermore, an archival seal or SCITT receipt is strictly a cryptographic byte commitment and inclusion proof over the authorization record; it does NOT establish that a downstream System of Record committed a state mutation or that a commercial payment settlement occurred (<xref target="I-D.xg-payment-dispute-profile"/>).
          </li>
        </ol>
      </section>
    </section>

    <section anchor="wire-format" numbered="true" toc="default">
      <name>Normative PQ-Agentic Wire Schemas (JCS / JSON-RPC)</name>

      <section anchor="baseline-envelope" numbered="true" toc="default">
        <name>Baseline Per-Call Delegation Envelope</name>
        <t>
          When carried in JSON (such as inside an MCP <tt>params._meta.pq_delegation</tt> object or an A2A task header), a conforming envelope MUST contain all fields shown below (folded per RFC 8792 for display), with <tt>signatures.ed25519</tt> and <tt>signatures.ml_dsa_65</tt> both structurally mandatory:
        </t>
        <sourcecode type="json"><![CDATA[
{
  "pq_profile": "durga-pquip-agentic-v1",
  "suite_id": "HYBRID-ED25519-MLDSA65-SHAKE256",
  "policy_epoch": 42,
  "policy_manifest_sha256":
    "9c4b37f6cb2804f06d7f7305bce8366803301b1abc164a3d\
b8f47ee9305a9d6b",
  "invoker_pq_kid":
    "shake256:Qt3Mq24FBMFRRMWa99aWzTaVje903FhKHP9jGUmtfsg",
  "hop_chain_digests": [
    "shake256:RuZtVPq70uO7LyXaMpe3rmw2IoGiGb1wvPqxIBm0J0s",
    "shake256:5heJ6HWZI1ISn4U_Jb4ZyH0bhW1v8IyphEvmlfTHraU"
  ],
  "effective_scope": [
    "mcp:tool:erp.ledger.read",
    "mcp:max_rows:100"
  ],
  "clean_context_root":
    "sha256:d32b15460f85e3674deaf7b30216b1ca\
6f5cd97a1834959dbf26d53aa90913eb",
  "iat": 1795478400,
  "exp": 1795478700,
  "nonce": "b4f2e8a1-9c3d-4e7b-8a2f-1d5c6e7f8a9b",
  "signatures": {
    "ed25519":
      "O40r8kY_Yy3xFatrWeoLTcBmcxw2eEyHpdBMOVud\
vUttvedp_a55TUmxc-ircRUrRXNecWOt3FsvEdvHscaZDQ",
    "ml_dsa_65": "<4412-char-base64url-fips204-sig; see Appendix A>"
  }
}
]]></sourcecode>
      </section>

      <section anchor="call-binding" numbered="true" toc="default">
        <name>Call-Bound Tool Invocation Profile (Tool, Argument Digest, and Audience Binding)</name>
        <t>
          To prevent a valid envelope scoped to <tt>effective_scope</tt> from being replayed across different tool arguments or re-routed to an unintended gateway within the same scope, an MCP or A2A Policy Enforcement Point dispatching a live tool call MUST require three call-binding members inside the signed envelope prior to removing <tt>signatures</tt>:
        </t>
        <ul spacing="normal">
          <li><tt>"audience"</tt>: The canonical ASCII URI identifying the target PEP or tool server (for example, <tt>"mcp://erp-gateway.corp.example/v1"</tt>).</li>
          <li><tt>"tool_name"</tt>: The exact tool or method identifier being invoked (for MCP <tt>tools/call</tt>, the exact string in <tt>params.name</tt>).</li>
          <li><tt>"tool_args_sha256"</tt>: <tt>"sha256:"</tt> followed by the 64-character lowercase hexadecimal SHA-256 digest of <tt>UTF8(JCS(params.arguments))</tt>. If <tt>params.arguments</tt> is omitted, it MUST be canonicalized as the empty JSON object <tt>{}</tt> (<tt>sha256:44136fa3...aaff8a</tt>). An explicit <tt>null</tt> and <tt>{}</tt> are distinct inputs and MUST NOT be coerced.</li>
        </ul>
        <t>
          Before dispatching the call, the PEP MUST verify that <tt>audience</tt> matches its own configured identifier, <tt>tool_name</tt> matches the dispatched tool, and <tt>tool_args_sha256</tt> matches the recomputed SHA-256 digest over the exact JCS-canonicalized arguments that will be executed. Any discrepancy MUST fail closed with <tt>CALL_BINDING_MISMATCH</tt> (<tt>-32094</tt>) or <tt>AUDIENCE_MISMATCH</tt> (<tt>-32095</tt>). The <tt>clean_context_root</tt> field carries a <tt>sha256:&lt;hex&gt;</tt> digest of an optional context-isolation attestation (<xref target="I-D.durga-wimse-ctx-isolation"/>) or 64 hex zeros when context attestation is not profiled by the relying party.
        </t>
      </section>

      <section anchor="grant-schema" numbered="true" toc="default">
        <name>SessionGrant (<tt>Grant_i</tt>) Schema, Hop Digest <tt>H_i</tt>, Cache Resolution, and Revocation Rules</name>
        <t>
          Each intermediate delegation link <tt>i</tt> (<tt>1 &lt;= i &lt;= k-1</tt>) referenced in <tt>hop_chain_digests</tt> corresponds to a signed <tt>SessionGrant</tt> JSON object:
        </t>
        <sourcecode type="json"><![CDATA[
{
  "pq_profile": "durga-pquip-agentic-v1",
  "record_type": "session_grant",
  "suite_id": "HYBRID-ED25519-MLDSA65-SHAKE256",
  "grant_id": "urn:uuid:7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "hop_index": 1,
  "issuer_pq_kid":
    "shake256:Q3t0W6caFUBxKIpURq4-OkDmQ6n3LWjQondxkb9ggc8",
  "subject_pq_kid":
    "shake256:Qt3Mq24FBMFRRMWa99aWzTaVje903FhKHP9jGUmtfsg",
  "parent_grant_digest": null,
  "audience": "mcp://erp-gateway.corp.example/v1",
  "granted_scope": [
    "mcp:tool:erp.ledger.read",
    "mcp:max_rows:100"
  ],
  "policy_epoch": 42,
  "policy_manifest_sha256":
    "9c4b37f6cb2804f06d7f7305bce8366803301b1abc164a3d\
b8f47ee9305a9d6b",
  "iat": 1795478400,
  "exp": 1795478700,
  "signatures": {
    "ed25519": "<86-char-unpadded-base64url-ed25519-signature>",
    "ml_dsa_65": "<4412-char-unpadded-base64url-ml-dsa-65-signature>"
  }
}
]]></sourcecode>
        <t>
          Conforming issuers and PEPs MUST enforce the following grant and revocation invariants:
        </t>
        <ol spacing="normal">
          <li>
            <strong>Hop Digest Calculation (<tt>H_i</tt>):</strong> Each entry <tt>H_i</tt> in <tt>hop_chain_digests</tt> MUST equal <tt>"shake256:" || base64url(SHAKE256_256(UTF8(JCS(Grant_i))))</tt>, where <tt>JCS(Grant_i)</tt> is the complete RFC 8785 canonical UTF-8 byte sequence of the signed <tt>Grant_i</tt> object <em>including</em> its <tt>signatures</tt> member (both <tt>ed25519</tt> and <tt>ml_dsa_65</tt>). (Note: In standalone single-envelope signature test harnesses where multi-hop grant resolution is out of scope, <tt>hop_chain_digests</tt> entries are validated for <tt>"shake256:&lt;43-char-base64url&gt;"</tt> syntax and bound into the terminal signature pre-image.)
          </li>
          <li>
            <strong>Chain Continuity and Scope Attenuation:</strong> For a <tt>k</tt>-hop chain (<tt>k &gt;= 2</tt>), the PEP MUST verify every <tt>Grant_i</tt>'s hybrid signature under <tt>Grant_i.issuer_pq_kid</tt> (<xref target="signing-rules"/>) and check: (a) <tt>Grant_1.issuer_pq_kid</tt> is a trusted root authority for <tt>audience</tt> and <tt>Grant_1.parent_grant_digest == null</tt>; (b) for <tt>i &gt; 1</tt>, <tt>Grant_i.parent_grant_digest == H_{i-1}</tt> and <tt>Grant_i.issuer_pq_kid == Grant_{i-1}.subject_pq_kid</tt>; (c) <tt>Grant_{k-1}.subject_pq_kid == invoker_pq_kid</tt>; (d) temporal containment <tt>Grant_{i-1}.iat &lt;= Grant_i.iat &lt; Grant_i.exp &lt;= Grant_{i-1}.exp</tt>; and (e) scope containment <tt>granted_scope_1 &gt;= ... &gt;= granted_scope_{k-1} &gt;= effective_scope</tt> (evaluated by exact token set inclusion for capability names and integer <tt>&lt;=</tt> comparison for numeric parameter limits such as <tt>mcp:max_rows:&lt;N&gt;</tt>, never by string-prefix matching). If <tt>hop_chain_digests</tt> is empty (<tt>k = 1</tt>), <tt>invoker_pq_kid</tt> MUST itself be a configured root authority for <tt>effective_scope</tt>.
          </li>
          <li>
            <strong>Cold-Cache Fetch and Cache Invalidation:</strong> When <tt>H_i</tt> is absent from the PEP's local cache, the PEP fetches the grant from its configured Guardrail Witness base URI via authenticated <tt>HTTPS GET {witness_base_uri}/v1/grants/{H_i}</tt> (never from an untrusted URL in the request), recomputes <tt>H_i</tt> over the response bytes, and verifies both signatures and chain linkage before caching. A cached grant approval MUST be evicted immediately when <tt>verification_time_utc &gt; Grant_i.exp + 60</tt>, when <tt>policy_epoch</tt> or <tt>policy_manifest_sha256</tt> changes, when any key in the chain is rotated or revoked in the WIMSE trust bundle, or when an ancestor revocation epoch advances (<xref target="I-D.durga-agent-clear-revocation"/>).
          </li>
          <li>
            <strong>Commit-Time Freshness Fence for State-Mutating Writes:</strong> For state-mutating operations, the System of Record or PEP write gate MUST check grant and revocation freshness at commit time. If the revocation authority is unreachable or revocation status exceeds the configured staleness bound, state-mutating calls MUST fail closed with <tt>POLICY_OR_GRANT_INVALID</tt> (<tt>-32096</tt>).
          </li>
        </ol>
      </section>

      <section anchor="detached-receipt-ref" numbered="true" toc="default">
        <name>Detached Receipt Reference Mode for Header-Constrained Intermediaries</name>
        <t>
          Although a 10-hop JCS envelope (~5.6 KB) fits within an 8 KB HTTP/2 header buffer, certain reverse proxies and gRPC intermediaries enforce 4 KB per-header limits or truncate large headers in access logs. For chains deeper than 10 hops or header-constrained transports, implementations MAY carry the full signed PQ-Agentic envelope in the JSON-RPC body (<tt>params._meta.pq_delegation</tt>) or transmit a compact detached reference (<tt>receipt_ref</tt>, ~200 bytes) in the HTTP header:
        </t>
        <sourcecode type="json"><![CDATA[
{
  "pq_profile": "durga-pquip-agentic-v1",
  "receipt_ref": {
    "uri":
      "https://witness.corp.example/v1/envelopes/22704037cf91df04",
    "sha256":
      "22704037cf91df04f6cb5c55a6a730d0\
1ed117802e4a00f1ae41a9f4042ddd6a"
  }
}
]]></sourcecode>
        <t>
          The verifier fetches the referenced octets from the configured witness host, verifies that <tt>SHA-256(UTF8(JCS(envelope)))</tt> equals <tt>receipt_ref.sha256</tt> before parsing, and runs the full verification procedure in <xref target="signing-rules"/>.
        </t>
      </section>
    </section>

    <section anchor="signing-rules" numbered="true" toc="default">
      <name>Canonical Signing Transcript, Composite Key Identifier, Clock Window, and Error Codes</name>
      <t>
        To guarantee byte-for-byte interoperability across independent implementations, conforming signers and verifiers MUST enforce the following normative rules (resolving all differences between Sections 3.1, 4, and 5 of <tt>-01</tt>):
      </t>
      <ol spacing="normal">
        <li>
          <t>
            <strong>SINGLE_SIGNING_TRANSCRIPT (<tt>PreImage</tt>):</strong> Let <tt>U</tt> be the JSON object (either an invocation envelope or a <tt>SessionGrant</tt>) with <em>only</em> its top-level <tt>"signatures"</tt> member removed. Any object missing <tt>"signatures"</tt>, or containing legacy <tt>"sig"</tt> or <tt>"signature"</tt> members, or containing duplicate JSON member names, MUST be rejected as <tt>MALFORMED</tt> before signature evaluation. Let <tt>JCSBytes(U)</tt> be the UTF-8 byte sequence of <tt>U</tt> serialized per <xref target="RFC8785"/> JCS (restricted to ASCII member names, strings, arrays, booleans, and exact IEEE-754 safe integers in <tt>[0, 2^53 - 1]</tt>; no UTF-8 BOM or trailing newline). The canonical signing transcript MUST be:
          </t>
          <sourcecode type="pseudocode"><![CDATA[
PreImage = ASCII("PQ-AGENTIC-DELEGATION-V1") || 0x00
           || JCSBytes(U)
]]></sourcecode>
          <t>
            where <tt>ASCII("PQ-AGENTIC-DELEGATION-V1")</tt> is 24 bytes (<tt>50512d4147454e5449432d44454c45474154494f4e2d5631</tt> in hex), followed by a single zero byte <tt>0x00</tt>, followed directly by the raw <tt>JCSBytes(U)</tt> with <strong>no</strong> intermediate <tt>SHAKE256_512</tt> pre-hash.
          </t>
        </li>
        <li>
          <t>
            <strong>PURE_ED25519_AND_PURE_ML_DSA_65_MODES:</strong> Both signatures in <tt>signatures = { "ed25519", "ml_dsa_65" }</tt> are structurally mandatory and MUST be computed over the identical <tt>PreImage</tt> byte string:
          </t>
          <ul spacing="normal">
            <li><tt>signatures.ed25519</tt>: 64-byte <xref target="RFC8032"/> pure Ed25519 signature (<tt>Ed25519ph</tt> and <tt>Ed25519ctx</tt> MUST NOT be used).</li>
            <li><tt>signatures.ml_dsa_65</tt>: 3,309-byte <xref target="FIPS204"/> pure <tt>ML-DSA-65</tt> signature (<tt>ML-DSA.Sign</tt> Algorithm 2 / <tt>ML-DSA.Verify</tt> Algorithm 3) with an <strong>empty context string (<tt>ctx = ""</tt>, zero bytes)</strong>. The domain separator resides in the <tt>PreImage</tt> prefix, NOT in the FIPS 204 <tt>ctx</tt> parameter; <tt>HashML-DSA</tt> (Algorithms 4 and 5) MUST NOT be used. Signers MAY use either the hedged (<tt>rnd</tt> from an approved RBG) or deterministic (<tt>rnd = 0^32</tt>, used to make conformance vectors byte-reproducible) variant of FIPS 204 Algorithm 2; verifiers MUST accept both because FIPS 204 Algorithm 3 verification is identical.</li>
            <li>Both signatures MUST be encoded as unpadded Base64url strings (<xref target="RFC4648"/> Section 5: 86 ASCII characters for Ed25519, 4,412 ASCII characters for ML-DSA-65) with zero trailing pad bits. Padding characters (<tt>"="</tt>), whitespace, or wrong decoded lengths MUST be rejected as <tt>MALFORMED</tt>.</li>
          </ul>
        </li>
        <li>
          <t>
            <strong>COMPOSITE_KEY_IDENTIFIER (<tt>invoker_pq_kid</tt>):</strong> For <tt>suite_id = "HYBRID-ED25519-MLDSA65-SHAKE256"</tt>, the composite key identifier MUST be derived by concatenating the 32-byte raw <xref target="RFC8032"/> Ed25519 public key <em>first</em> and the 1,952-byte raw <xref target="FIPS204"/> Section 7.2 <tt>ML-DSA-65</tt> public key <em>second</em> (1,984 bytes total), hashing with <xref target="FIPS202"/> <tt>SHAKE256</tt> to a 32-byte (256-bit) output, and encoding the 32-byte digest as unpadded Base64url (43 ASCII characters) prefixed with <tt>"shake256:"</tt>:
          </t>
          <sourcecode type="pseudocode"><![CDATA[
kid = "shake256:" ||
      base64url(SHAKE256(Ed25519_pk_32 || ML_DSA_65_pk_1952, 256))
]]></sourcecode>
          <t>
            In the relying party's WIMSE/SPIFFE trust bundle, both public keys and <tt>suite_id</tt> MUST be bound atomically in a single signed directory entry for the workload principal so neither key can be paired with an attacker-chosen key from another record. On resolution, the verifier MUST recompute <tt>kid</tt> from <tt>Ed25519_pk_32 || ML_DSA_65_pk_1952</tt> and reject any mismatch (such as reversed key order) with <tt>KID_MISMATCH</tt> (<tt>-32092</tt>).
          </t>
        </li>
        <li>
          <strong>ENVELOPE_DIGEST_COVERAGE:</strong> When a complete signed envelope or <tt>SessionGrant</tt> is referenced by SHA-256 (for example, in <tt>receipt_ref.sha256</tt> or inside an external <xref target="I-D.wright-verdict-record"/> evidence array), the digest is the 64-character lowercase hexadecimal <tt>SHA-256</tt> over the complete RFC 8785 JCS UTF-8 bytes of the signed JSON object (including <tt>signatures</tt>).
        </li>
        <li>
          <t>
            <strong>VERIFICATION_CLOCK_AND_REPLAY_WINDOW:</strong> Every envelope and <tt>SessionGrant</tt> MUST carry integer Unix epoch timestamps <tt>iat</tt> (issued-at, in seconds) and <tt>exp</tt> (expiration, in seconds) satisfying <tt>exp &gt; iat</tt> (any record with <tt>exp &lt;= iat</tt> is rejected as <tt>MALFORMED</tt>). Given reference verification timestamp <tt>verification_time_utc</tt> (from the verifier's trusted clock in live operation, or the vector's pinned <tt>verification_time_unix</tt> in offline tests) and maximum clock skew <tt>Delta_skew = 60</tt> seconds, the timestamp check succeeds iff:
          </t>
          <sourcecode type="pseudocode"><![CDATA[
(iat - 60) <= verification_time_utc <= (exp + 60)
]]></sourcecode>
          <t>
            Any envelope evaluated outside <tt>[iat - 60, exp + 60]</tt> MUST be rejected with <tt>EXPIRED</tt> (<tt>-32099</tt>). Live PEPs MUST also record <tt>(invoker_pq_kid, nonce)</tt> (scoped by <tt>audience</tt> when present) in an atomic replay cache until <tt>exp + 60</tt> and reject duplicate nonces with <tt>-32093 (PQ_NONCE_REPLAYED)</tt>.
          </t>
        </li>
        <li>
          <t>
            <strong>DETERMINISTIC_VERIFICATION_ORDER_AND_ERROR_CODES:</strong> Verifiers MUST evaluate checks in the following strict order so independent implementations return identical failure categories on malformed or invalid inputs:
          </t>
          <ol spacing="compact">
            <li><tt>MALFORMED</tt> (JSON-RPC <tt>-32091</tt>): Duplicate JSON keys, missing required fields, missing either <tt>signatures.ed25519</tt> or <tt>signatures.ml_dsa_65</tt>, non-canonical/padded Base64url or wrong decoded byte lengths (Ed25519 != 64 B, ML-DSA-65 != 3,309 B), or <tt>exp &lt;= iat</tt>.</li>
            <li><tt>KID_MISMATCH</tt> (JSON-RPC <tt>-32092</tt>): <tt>invoker_pq_kid</tt> does not match <tt>"shake256:" || base64url(SHAKE256_256(Ed25519_pk_32 || ML_DSA_65_pk_1952))</tt> for the resolved trust-bundle entry.</li>
            <li><tt>SIGNATURE_INVALID</tt> (JSON-RPC <tt>-32098</tt>): Either pure Ed25519 verification or pure ML-DSA-65 verification (<tt>ctx = ""</tt>) over <tt>PreImage</tt> fails (including any modification to <tt>suite_id</tt>, <tt>effective_scope</tt>, or <tt>policy_manifest_sha256</tt> after signing).</li>
            <li><tt>EXPIRED</tt> (JSON-RPC <tt>-32099</tt>): <tt>verification_time_utc &lt; iat - 60</tt> or <tt>verification_time_utc &gt; exp + 60</tt>.</li>
            <li><tt>POLICY_OR_GRANT_INVALID</tt> (JSON-RPC <tt>-32096</tt>), <tt>CALL_BINDING_MISMATCH</tt> (<tt>-32094</tt>), or <tt>AUDIENCE_MISMATCH</tt> (<tt>-32095</tt>): Active <tt>policy_epoch</tt> / <tt>policy_manifest_sha256</tt> mismatch, unresolvable/revoked <tt>SessionGrant</tt> in <tt>hop_chain_digests</tt>, or dispatched tool/argument/audience mismatch.</li>
          </ol>
        </li>
      </ol>

      <section anchor="size-and-latency" numbered="true" toc="default">
        <name>Measured Wire Sizes and Gateway Verification Latency</name>
        <t>
          <xref target="wire-sizes-comparison"/> distinguishes raw cryptographic primitive byte counts from complete JCS-serialized JSON envelopes (including Base64url encoding of the 3,373-byte hybrid signature pair into 4,498 ASCII characters and 43-character Base64url hop digests):
        </t>
        <table anchor="wire-sizes-comparison">
          <name>PQ-Agentic Wire Size and Reference Verification Latency</name>
          <thead>
            <tr>
              <th>Metric</th>
              <th>1-Hop (0 Grants)</th>
              <th>2-Hop (<tt>pos-01</tt>, 2 Digests)</th>
              <th>10-Hop (9 Digests)</th>
              <th>Naive 10-Hop Inline ML-DSA-65</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>Raw Cryptographic Bytes (<tt>Ed25519 + ML-DSA-65 + 32B x hops</tt>)</td>
              <td>3,373 B</td>
              <td>3,437 B</td>
              <td>3,661 B</td>
              <td>52,610 B</td>
            </tr>
            <tr>
              <td>Full JCS-Serialized JSON Envelope (Base64url + Metadata)</td>
              <td>5,092 B</td>
              <td>5,204 B</td>
              <td>5,652 B</td>
              <td>~74,820 B</td>
            </tr>
            <tr>
              <td>Cold-Cache <tt>SessionGrant</tt> Fetch Traffic (Once per Session Epoch)</td>
              <td>0 B</td>
              <td>2 x 5,221 B</td>
              <td>9 x 5,221 B</td>
              <td>0 B (sent every call)</td>
            </tr>
            <tr>
              <td>Warm-Cache Verification (Single Hybrid Check, Rust <tt>fips204</tt> / Python)</td>
              <td>0.22 ms / 17.4 ms</td>
              <td>0.23 ms / 34.9 ms</td>
              <td>0.25 ms / 37.0 ms</td>
              <td>2.20 ms / 181.5 ms</td>
            </tr>
            <tr>
              <td>Cold-Cache Verification (Grant Fetch + All Hops Verified, Local / Python)</td>
              <td>0.22 ms / 17.4 ms</td>
              <td>1.15 ms / 86.6 ms</td>
              <td>3.80 ms / 199.0 ms</td>
              <td>2.20 ms / 181.5 ms</td>
            </tr>
          </tbody>
        </table>
      </section>
    </section>

    <section anchor="security-considerations" numbered="true" toc="default">
      <name>Security Considerations</name>
      <section anchor="downgrade" numbered="true" toc="default">
        <name>Structural Downgrade Resistance Independent of Historical Trust-Bundle State</name>
        <t>
          In <tt>-01</tt>, downgrade rejection depended on the verifier consulting a <tt>pq_required: true</tt> flag in the workload trust bundle. Under a 30-year HNFRL threat model, an auditor decades later may not possess the ephemeral trust-bundle configuration as it stood on the day the envelope was signed, and an adversary with a CRQC could forge a classical-only Ed25519 envelope. In <tt>-02</tt>, both <tt>signatures.ed25519</tt> and <tt>signatures.ml_dsa_65</tt> are <strong>structurally mandatory</strong> in the wire format itself (<xref target="signing-rules"/> Rule 6.1): any envelope missing either signature component is rejected immediately as <tt>MALFORMED</tt> (<tt>-32091</tt>) on every code path, regardless of external trust-bundle state. Furthermore, <tt>suite_id</tt> is bound inside <tt>PreImage</tt>, so rewriting <tt>suite_id</tt> to a classical identifier invalidates both signatures (<tt>neg-10</tt>).
        </t>
      </section>
      <section anchor="policy-epoch" numbered="true" toc="default">
        <name>Protection Against Retroactive Policy-Drift and Cross-Chain Splicing</name>
        <t>
          Binding <tt>policy_manifest_sha256</tt> and <tt>policy_epoch</tt> inside both the <tt>SessionGrant</tt> and terminal invocation pre-images ensures that any change to scope-evaluation semantics causes a deterministic mismatch. Requiring <tt>Grant_i.parent_grant_digest == H_{i-1}</tt> and <tt>Grant_i.subject_pq_kid == Grant_{i+1}.issuer_pq_kid</tt> (<xref target="grant-schema"/>) prevents an invoker from splicing valid cached <tt>H_i</tt> digests from unrelated delegation chains.
        </t>
      </section>
    </section>

    <section anchor="iana-considerations" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>
        This document has no immediate IANA actions. <tt>HYBRID-ED25519-MLDSA65-SHAKE256</tt> is used as a protocol-scoped suite identifier inside the PQ-Agentic JSON envelope.
      </t>
    </section>

    <section anchor="acknowledgments" numbered="true" toc="default">
      <name>Acknowledgments</name>
      <t>
        The author thanks the following individuals for their technical reviews, interoperability testing, and working group feedback:
      </t>
      <ul spacing="normal">
        <li>
          John Edward Romo Sanchez (FractalAI / KPITAPP): independent review and test vectors. See <xref target="PQC-AGENTIC-VECTORS"/> for the 12-case multi-language conformance suite (<tt>@noble/post-quantum</tt>, Rust <tt>fips204</tt> + <tt>ed25519-dalek</tt>, and Python), structural downgrade rejection, <tt>SLH-DSA-SHAKE-192s/256s</tt> cold-path parameter alignment, and the detached <tt>receipt_ref</tt> mode.
        </li>
        <li>
          <strong>Bassem (Augmentev):</strong> SCITT cold-path review on <tt>scitt@ietf.org</tt>, including normative <xref target="RFC9943"/> Signed Statement and <xref target="RFC9942"/> COSE Receipt anchoring, cold-path retention of full <tt>SessionGrant</tt> artifacts, and checkpoint <tt>tree_size</tt> binding per RFC 9942 Errata EID 9316 and EID 9317.
        </li>
        <li>
          <strong>Darren Wright (Sencor AI):</strong> architectural alignment with <xref target="I-D.wright-verdict-record"/> distinguishing signature-agnostic mechanical rule evaluation over SHA-256 digest-bound evidence from post-quantum container attribution.
        </li>
        <li>
          <strong>Xavier (<xref target="I-D.xg-payment-dispute-profile"/>):</strong> cross-implementation vector verification and clarifying the boundary between archival byte commitment and commercial settlement finality.
        </li>
        <li>
          <strong>Jon Geater</strong> and <strong>Stiepan A. Kovac (QR Crypto):</strong> working group guidance and discussions on post-quantum cryptographic agility and anti-downgrade invariants.
        </li>
      </ul>
    </section>
  </middle>

  <back>
    <references>
      <name>References</name>
      <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"/>
        </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"/>
        </reference>
        <reference anchor="RFC4998" target="https://www.rfc-editor.org/info/rfc4998">
          <front>
            <title>Evidence Record Syntax (ERS)</title>
            <author fullname="T. Gondrom" initials="T." surname="Gondrom"/>
            <author fullname="R. Brandner" initials="R." surname="Brandner"/>
            <author fullname="U. Pordesch" initials="U." surname="Pordesch"/>
            <date month="August" year="2007"/>
          </front>
          <seriesInfo name="RFC" value="4998"/>
        </reference>
        <reference anchor="RFC8032" target="https://www.rfc-editor.org/info/rfc8032">
          <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"/>
          </front>
          <seriesInfo name="RFC" value="8032"/>
        </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"/>
        </reference>
        <reference anchor="RFC8785" target="https://www.rfc-editor.org/info/rfc8785">
          <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"/>
          </front>
          <seriesInfo name="RFC" value="8785"/>
        </reference>
        <reference anchor="RFC9162" target="https://www.rfc-editor.org/info/rfc9162">
          <front>
            <title>Certificate Transparency Version 2.0</title>
            <author fullname="B. Laurie" initials="B." surname="Laurie"/>
            <author fullname="E. Messeri" initials="E." surname="Messeri"/>
            <author fullname="R. Stradling" initials="R." surname="Stradling"/>
            <date month="December" year="2021"/>
          </front>
          <seriesInfo name="RFC" value="9162"/>
        </reference>
        <reference anchor="RFC9942" target="https://www.rfc-editor.org/info/rfc9942">
          <front>
            <title>CBOR Object Signing and Encryption (COSE) Receipts</title>
            <author fullname="H. Birkholz" initials="H." surname="Birkholz"/>
            <author fullname="A. Delignat-Lavaud" initials="A." surname="Delignat-Lavaud"/>
            <author fullname="C. Fournet" initials="C." surname="Fournet"/>
            <date month="November" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9942"/>
        </reference>
        <reference anchor="RFC9943" target="https://www.rfc-editor.org/info/rfc9943">
          <front>
            <title>An Architecture for Trustworthy and Transparent Digital Supply Chains (SCITT)</title>
            <author fullname="H. Birkholz" initials="H." surname="Birkholz"/>
            <author fullname="A. Delignat-Lavaud" initials="A." surname="Delignat-Lavaud"/>
            <author fullname="C. Fournet" initials="C." surname="Fournet"/>
            <date month="November" year="2025"/>
          </front>
          <seriesInfo name="RFC" value="9943"/>
        </reference>
        <reference anchor="FIPS202" target="https://doi.org/10.6028/NIST.FIPS.202">
          <front>
            <title>SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions</title>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date month="August" year="2015"/>
          </front>
          <seriesInfo name="NIST FIPS" value="202"/>
        </reference>
        <reference anchor="FIPS204" target="https://doi.org/10.6028/NIST.FIPS.204">
          <front>
            <title>Module-Lattice-Based Digital Signature Standard (ML-DSA)</title>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date month="August" year="2024"/>
          </front>
          <seriesInfo name="NIST FIPS" value="204"/>
        </reference>
        <reference anchor="FIPS205" target="https://doi.org/10.6028/NIST.FIPS.205">
          <front>
            <title>Stateless Hash-Based Digital Signature Standard (SLH-DSA)</title>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date month="August" year="2024"/>
          </front>
          <seriesInfo name="NIST FIPS" value="205"/>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="PQC-AGENTIC-VECTORS" target="https://github.com/johnInarti/pqc-agentic-delegation-vectors">
          <front>
            <title>Independent Test Vectors and Multi-Language Checkers for draft-durga-pquip-pqc-agentic-delegation (Ed25519 + ML-DSA-65)</title>
            <author fullname="J. E. Romo Sanchez" initials="J. E." surname="Romo Sanchez">
              <organization>FractalAI / KPITAPP</organization>
            </author>
            <date month="November" year="2026"/>
          </front>
        </reference>
        <reference anchor="I-D.durga-agenttrust-trace-verification" target="https://datatracker.ietf.org/doc/draft-durga-agenttrust-trace-verification/">
          <front>
            <title>Cryptographic Execution-Trace Verification, JCS Canonicalization, and Fail-Closed Delegation Attestation for Autonomous AI Agents</title>
            <author fullname="R. K. Durga" initials="R. K." surname="Durga"/>
            <date month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-durga-agenttrust-trace-verification-01"/>
        </reference>
        <reference anchor="I-D.durga-wimse-ctx-isolation" target="https://datatracker.ietf.org/doc/draft-durga-wimse-ctx-isolation/">
          <front>
            <title>Cryptographic Separation of Untrusted Data-Plane Context from Control-Plane Tool Invocations in Autonomous AI Agents</title>
            <author fullname="R. K. Durga" initials="R. K." surname="Durga"/>
            <date month="October" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-durga-wimse-ctx-isolation-00"/>
        </reference>
        <reference anchor="I-D.durga-agent-clear-revocation" target="https://datatracker.ietf.org/doc/draft-durga-agent-clear-revocation/">
          <front>
            <title>Transitive CLEAR Revocation and Composite Physical-Safety Windows for Multi-Hop Autonomous Agent DAGs</title>
            <author fullname="R. K. Durga" initials="R. K." surname="Durga"/>
            <date month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-durga-agent-clear-revocation-01"/>
        </reference>
        <reference anchor="I-D.wright-verdict-record" target="https://datatracker.ietf.org/doc/html/draft-wright-verdict-record-03">
          <front>
            <title>Verdict Record: An Evidence-Pack Format for Deterministic Conformance Verification</title>
            <author fullname="D. Wright" initials="D." surname="Wright"/>
            <date month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-wright-verdict-record-03"/>
        </reference>
        <reference anchor="I-D.xg-payment-dispute-profile" target="https://datatracker.ietf.org/doc/html/draft-xg-payment-dispute-profile-02">
          <front>
            <title>Verifiable Decision Receipts for Payment Dispute Resolution</title>
            <author fullname="X. G." initials="X." surname="G."/>
            <date month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-xg-payment-dispute-profile-02"/>
        </reference>
      </references>
    </references>

    <section anchor="appendix-test-vectors" numbered="true" toc="default">
      <name>Deterministic Multi-Implementation Test Vectors (<tt>pos-01</tt> through <tt>neg-11</tt>)</name>
      <t>
        The test vectors below have been independently generated and verified across three implementations sharing no code (<xref target="PQC-AGENTIC-VECTORS"/>): JavaScript (<tt>@noble/post-quantum</tt> 0.6.1 and <tt>@noble/curves</tt>), Rust (<tt>fips204</tt> 0.4.6 and <tt>ed25519-dalek</tt> 2.2.0), and Python (<tt>cryptography</tt> and <tt>dilithium-py</tt>).
      </t>
      <t>
        <strong>WARNING — TEST KEYS ONLY:</strong> The fixed seeds below are public test fixtures for deterministic byte reproduction. Never use these seeds, or any key derived from them, in production.
      </t>
      <ul spacing="normal">
        <li><strong>Invoker Ed25519 32-byte private seed (hex):</strong> <tt>000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f</tt></li>
        <li><strong>Invoker Ed25519 32-byte raw public key (hex):</strong> <tt>03a107bff3ce10be1d70dd18e74bc09967e4d6309ba50d5f1ddc8664125531b8</tt></li>
        <li><strong>Invoker ML-DSA-65 32-byte keygen seed xi (hex):</strong> <tt>202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f</tt></li>
        <li><strong>Invoker ML-DSA-65 1,952-byte raw public key prefix/suffix (hex):</strong> <tt>01b24276275667002e40e968...d5aef2362e1ab0f1b</tt></li>
        <li><strong>Derived Composite <tt>invoker_pq_kid</tt>:</strong> <tt>shake256:Qt3Mq24FBMFRRMWa99aWzTaVje903FhKHP9jGUmtfsg</tt></li>
        <li><strong>Unrelated Key Pair (<tt>neg-04</tt>):</strong> Ed25519 seed <tt>4041...5f</tt>, ML-DSA-65 seed <tt>6061...7f</tt> (<tt>kid = shake256:Q3t0W6caFUBxKIpURq4-OkDmQ6n3LWjQondxkb9ggc8</tt>).</li>
        <li><strong>Pinned Reference Verification Clock:</strong> <tt>verification_time_unix = 1795478520</tt> (<tt>2026-11-24T00:02:00Z</tt>).</li>
      </ul>

      <section anchor="vector-pos01" numbered="true" toc="default">
        <name>Positive Baseline Vector <tt>pos-01</tt> Intermediates and Digests</name>
        <t>
          For the Section 4.1 envelope (<tt>pos-01</tt>), removing <tt>"signatures"</tt> and applying RFC 8785 JCS yields the 640-byte single-line UTF-8 string <tt>JCSBytes(U)</tt> (shown below with RFC 8792 <tt>\</tt> line folding; remove <tt>\</tt> and newlines to obtain the exact 640 bytes):
        </t>
        <sourcecode type="json"><![CDATA[
{"clean_context_root":"sha256:d32b15460f85e3674deaf7b30216b1ca\
6f5cd97a1834959dbf26d53aa90913eb","effective_scope":\
["mcp:tool:erp.ledger.read","mcp:max_rows:100"],"exp":1795478700,\
"hop_chain_digests":["shake256:RuZtVPq70uO7LyXaMpe3rmw2IoGiGb1w\
vPqxIBm0J0s","shake256:5heJ6HWZI1ISn4U_Jb4ZyH0bhW1v8IyphEvmlfTH\
raU"],"iat":1795478400,"invoker_pq_kid":"shake256:Qt3Mq24FBMFRR\
MWa99aWzTaVje903FhKHP9jGUmtfsg","nonce":"b4f2e8a1-9c3d-4e7b-8a2\
f-1d5c6e7f8a9b","policy_epoch":42,"policy_manifest_sha256":\
"9c4b37f6cb2804f06d7f7305bce8366803301b1abc164a3db8f47ee9305a9d\
6b","pq_profile":"durga-pquip-agentic-v1","suite_id":\
"HYBRID-ED25519-MLDSA65-SHAKE256"}
]]></sourcecode>
        <ul spacing="normal">
          <li><strong><tt>PreImage</tt> length:</strong> 665 bytes (<tt>24</tt>-byte ASCII prefix <tt>"PQ-AGENTIC-DELEGATION-V1"</tt> + <tt>0x00</tt> + <tt>640</tt>-byte <tt>JCSBytes(U)</tt>).</li>
          <li><strong><tt>SHA-256(PreImage)</tt> (hex):</strong> <tt>3bf9cd62d2007ae27333d867445602acef921ba398f6502e54422497cb3da512</tt></li>
          <li><strong><tt>signatures.ed25519</tt> (86 chars, first/last 43):</strong> <tt>O40r8kY_Yy3xFatrWeoLTcBmcxw2eEyHpdBMOVudvUt</tt> + <tt>tvedp_a55TUmxc-ircRUrRXNecWOt3FsvEdvHscaZDQ</tt></li>
          <li><strong><tt>signatures.ml_dsa_65</tt> (4,412 chars, deterministic <tt>rnd = 0^32</tt>, <tt>ctx = ""</tt>, first/last 48 chars):</strong> <tt>RutDY8nyXFdSdRTBQNc7A_s1sKxIjGYiK2SI5Qo1JjcpX0zd...</tt> <tt>...LHXG1ZmgY2foLIbYnqFrM0AAAAAAAAAAAAAAAAABg4UHCQq</tt></li>
          <li><strong>Full-Envelope <tt>SHA-256(JCSBytes(envelope))</tt> (<xref target="signing-rules"/> Rule 4):</strong> <tt>22704037cf91df04f6cb5c55a6a730d01ed117802e4a00f1ae41a9f4042ddd6a</tt></li>
        </ul>
      </section>

      <section anchor="vector-matrix" numbered="true" toc="default">
        <name>Conformance Test Vector Summary Matrix</name>
        <table anchor="conformance-vectors-matrix">
          <name>12-Case Conformance Matrix (<tt>vectors.json</tt> SHA-256: <tt>977912058c05b6be...</tt>)</name>
          <thead>
            <tr>
              <th>Vector ID</th>
              <th>Mutation / Condition Tested</th>
              <th>Expected Verdict</th>
              <th>JSON-RPC Code</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td><tt>pos-01</tt></td>
              <td>Valid two-hop envelope; both signatures valid over identical 665-byte <tt>PreImage</tt></td>
              <td><tt>VALID</tt></td>
              <td><tt>0</tt></td>
            </tr>
            <tr>
              <td><tt>pos-02</tt></td>
              <td>Evaluated at <tt>verification_time_unix = exp + 60</tt> (<tt>1795478760</tt>, exact skew boundary)</td>
              <td><tt>VALID</tt></td>
              <td><tt>0</tt></td>
            </tr>
            <tr>
              <td><tt>neg-01</tt></td>
              <td><tt>signatures.ml_dsa_65</tt> stripped (suite downgrade rejected by structure alone)</td>
              <td><tt>MALFORMED</tt></td>
              <td><tt>-32091</tt></td>
            </tr>
            <tr>
              <td><tt>neg-02</tt></td>
              <td><tt>signatures.ed25519</tt> stripped</td>
              <td><tt>MALFORMED</tt></td>
              <td><tt>-32091</tt></td>
            </tr>
            <tr>
              <td><tt>neg-03</tt></td>
              <td><tt>effective_scope</tt> mutated after signing; signatures untouched</td>
              <td><tt>SIGNATURE_INVALID</tt></td>
              <td><tt>-32098</tt></td>
            </tr>
            <tr>
              <td><tt>neg-04</tt></td>
              <td><tt>ed25519</tt> signed by invoker key, <tt>ml_dsa_65</tt> signed by unrelated key</td>
              <td><tt>SIGNATURE_INVALID</tt></td>
              <td><tt>-32098</tt></td>
            </tr>
            <tr>
              <td><tt>neg-05</tt></td>
              <td><tt>invoker_pq_kid</tt> derived with <tt>ML-DSA-65</tt> public key first (reversed key order)</td>
              <td><tt>KID_MISMATCH</tt></td>
              <td><tt>-32092</tt></td>
            </tr>
            <tr>
              <td><tt>neg-06</tt></td>
              <td>Evaluated at <tt>verification_time_unix = exp + 61</tt> (<tt>1795478761</tt>, 1s past skew)</td>
              <td><tt>EXPIRED</tt></td>
              <td><tt>-32099</tt></td>
            </tr>
            <tr>
              <td><tt>neg-08</tt></td>
              <td><tt>signatures.ed25519</tt> carries <tt>"=="</tt> Base64 padding</td>
              <td><tt>MALFORMED</tt></td>
              <td><tt>-32091</tt></td>
            </tr>
            <tr>
              <td><tt>neg-09</tt></td>
              <td><tt>exp == iat</tt> (<tt>1795478400</tt>), violating <tt>exp &gt; iat</tt></td>
              <td><tt>MALFORMED</tt></td>
              <td><tt>-32091</tt></td>
            </tr>
            <tr>
              <td><tt>neg-10</tt></td>
              <td><tt>suite_id</tt> rewritten to a classical algorithm name after signing</td>
              <td><tt>SIGNATURE_INVALID</tt></td>
              <td><tt>-32098</tt></td>
            </tr>
            <tr>
              <td><tt>neg-11</tt></td>
              <td><tt>ml_dsa_65</tt> signed with non-empty FIPS 204 <tt>ctx = "PQ-AGENTIC-DELEGATION-V1"</tt></td>
              <td><tt>SIGNATURE_INVALID</tt></td>
              <td><tt>-32098</tt></td>
            </tr>
          </tbody>
        </table>
      </section>
    </section>
  </back>
</rfc>
