Internet-Draft PQ-Agentic Delegation & Trace Receipts November 2026
Durga Expires 29 May 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-durga-pquip-pqc-agentic-delegation-02
Published:
Intended Status:
Informational
Expires:
Author:
R. K. Durga
Microsoft Corporation

Post-Quantum Hybrid Cryptographic Delegation Chains and Merkle-Aggregated Execution Receipts for Autonomous AI Agents

Abstract

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 ([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.

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 ([RFC8032]) with pure ML-DSA-65 ([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 [RFC9943] SCITT Signed Statements with [RFC9942] COSE Receipts and dual post-quantum epoch checkpoints sealed with stateless hash-based SLH-DSA-SHAKE-192s / SLH-DSA-SHAKE-256s ([FIPS205]) and ML-DSA-87 ([FIPS204]). Complete multi-implementation conformance test vectors are provided.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 29 May 2027.

▲

Table of Contents

1. Introduction

As autonomous AI agents transition into regulated enterprise, healthcare, financial, and critical-infrastructure operations, workload identity credentials, transparency receipts ([RFC9943]), and execution-trace verification profiles ([I-D.durga-agenttrust-trace-verification] and [I-D.durga-wimse-ctx-isolation]) rely on asymmetric digital signatures to bind human intent, scope attenuation, and tool-invocation parameters.

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:

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.

2. Conventions and Definitions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

HNFRL (Harvest-Now, Forge-and-Repudiate-Later):
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.
Composite Hybrid Signature (HYBRID-ED25519-MLDSA65-SHAKE256):
A dual-signature construction requiring both a valid [RFC8032] pure Ed25519 signature (64 bytes) and a valid [FIPS204] pure ML-DSA-65 signature (3,309 bytes, empty context string ctx = "") over an identical domain-separated canonical pre-image.
SessionGrant (Grant_i):
A hybrid-signed delegation artifact issued by hop A_{i-1} to A_i for a bounded session window, cached by the Policy Enforcement Point (PEP) and referenced on per-call envelopes via its 32-byte digest H_i.

3. Two-Tier Post-Quantum Agentic Architecture

Conforming implementations separate real-time tool-invocation authorization (Tier 1) from long-horizon transparency archival (Tier 2):

+-----------------------------------------------------------------+
| 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       |
+-----------------------------------------------------------------+

3.1. Tier 1: Hot-Path Hybrid Delegation with Digest-Linked Session Grants

In a multi-hop delegation chain of depth k, requiring every intermediate agent A_1, ..., A_{k-1} 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:

  1. Composite Key Identifier (pq_kid) Addressing: 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 (invoker_pq_kid, defined in Section 5) resolved from the relying party's authenticated WIMSE/SPIFFE trust bundle.
  2. Epoch-Pinned Hybrid SessionGrants (Grant_i): When Agent A_{i-1} delegates attenuated scope S_i (where S_i is a subset of S_{i-1}) to A_i, A_{i-1} signs a SessionGrant object (Section 4.3) once per session epoch using HYBRID-ED25519-MLDSA65-SHAKE256. The complete signed grant is identified by the 32-byte digest H_i = "shake256:" || base64url(SHAKE256_256(UTF8(JCS(Grant_i)))), covering the full canonical JCS bytes of Grant_i including both signatures.
  3. Compact Per-Call Wire Envelope: On each tool invocation, the terminal agent A_k transmits the ordered list of 32-byte grant digests hop_chain_digests = [H_1, ..., H_{k-1}], the signed scope and call parameters, and a single terminal HYBRID-ED25519-MLDSA65-SHAKE256 signature pair (64-byte Ed25519 + 3,309-byte ML-DSA-65 = 3,373 raw signature bytes).

Wire-Size Accounting (Raw Cryptographic Bytes vs. Serialized JSON-RPC Envelope): Across a 10-hop chain (1 terminal signature pair + 9 intermediate hop digests), the raw cryptographic primitives total 64 + 3,309 + (9 x 32) = 3,661 bytes, compared to 10 x (1,952 + 3,309) = 52,610 raw bytes for inline ML-DSA-65 public-key and signature chaining (or 52,930 raw bytes when including 10 Ed25519 public keys). When Base64url-encoded inside a complete RFC 8785 JCS JSON envelope (including member names, shake256: prefixes, and metadata), a 2-hop envelope (Section 4.1) 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 Section 5.1.

3.2. Tier 2: Normative SCITT Anchoring, Stateless Hash-Based Epoch Seals, and Archival Verification

Long-horizon audit integrity relies on two distinct properties that MUST NOT be conflated: (1) tamper-evident history ordering, which derives from hash-only Merkle inclusion and consistency proofs over widely distributed roots even if all signature algorithms are later weakened; and (2) post-quantum issuer and notary attribution, which prevents an adversary with a CRQC from forging historical receipts or checkpoints.

To make Tier-2 archival proofs independently verifiable under [RFC9943] (SCITT Architecture) and [RFC9942] (COSE Receipts):

  1. Mandatory Retention of Full SessionGrants and Envelopes: Because a hot-path envelope carries only 32-byte grant digests H_i, an historical auditor cannot verify intermediate scope attenuation from H_i alone. The Transparency Service / Archive Notary MUST retain the complete hybrid-signed SessionGrant objects (indexed by H_i), the complete signed Tier-1 invocation envelopes, and the active trust-bundle and policy-manifest snapshots for the entire retention period.
  2. Normative SCITT Signed Statement Registration & RFC 9162 Merkle Tree: Each verified Tier-1 invocation envelope and each SessionGrant MUST be registered as an [RFC9943] Signed Statement returning an [RFC9942] COSE Receipt using the RFC9162_SHA256 Verifiable Data Structure ([RFC9162] Section 2.1 with SHA-256):

    • Leaf hash for entry bytes D[i] at 0-based index i: MTH({D[i]}) = SHA-256(0x00 || D[i]).
    • Interior node hash for n > 1 entries (where k is the largest power of two strictly less than n, with no odd-node duplication): MTH(D[0..n]) = SHA-256(0x01 || MTH(D[0..k]) || MTH(D[k..n])).
  3. Signed Epoch Checkpoint & Tree-Size Authentication (Addressing RFC 9942 Errata EID 9316 / EID 9317): In [RFC9942] COSE Receipts, tree_size and leaf_index reside in unprotected header parameters outside the signature. Per RFC 9942 Errata EID 9316 (inclusion) and EID 9317 (consistency), once tree_size is cryptographically bound to tree_root inside a signed checkpoint, no other leaf_index can verify against the same inclusion path. Conforming notaries MUST emit a signed EpochCheckpoint JSON object at each epoch boundary (Delta_t <= 60 seconds or N <= 1,024 leaves) that binds epoch_number, merkle_vds ("RFC9162_SHA256"), tree_size, tree_root ("sha256:<hex>"), prev_tree_size, prev_checkpoint_sha256, iat, and policy_manifest_sha256 inside the signed JCS payload. Relying parties MUST take tree_size (and prev_tree_size for consistency proofs) from the signed EpochCheckpoint, rejecting any receipt whose unprotected header disagrees.
  4. Stateless Hash-Based + Lattice Dual Epoch Seal ([FIPS205] + [FIPS204]): Because epoch sealing occurs at most once per 60 seconds (or 1,024 steps) off the real-time path, the notary signs "PQ-AGENTIC-CHECKPOINT-V1" || 0x00 || UTF8(JCS(EpochCheckpoint_without_signatures)) using both: (a) stateless hash-based SLH-DSA-SHAKE-192s ([FIPS205] Algorithm 22 pure mode, ctx = "", 16,224-byte signature, matching NIST Security Category 3 alongside ML-DSA-65; or SLH-DSA-SHAKE-256s, 29,792-byte signature, for Category 5 profiles) and (b) ML-DSA-87 ([FIPS204] Algorithm 2 pure mode, ctx = "", 4,627-byte signature). Verifiers MUST reject HashSLH-DSA (Algorithm 23) and SLH-DSA-SHA2-* variants when the suite names SHAKE.
  5. Long-Horizon Assumptions, Evidence Renewal ([RFC4998]), and Non-Settlement Boundary: Multi-decade verifiability is conditional on retaining the historical public-key trust bundles, policy manifests, and SessionGrant artifacts, and executing periodic [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 ([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 ([I-D.xg-payment-dispute-profile]).

4. Normative PQ-Agentic Wire Schemas (JCS / JSON-RPC)

4.1. Baseline Per-Call Delegation Envelope

When carried in JSON (such as inside an MCP params._meta.pq_delegation object or an A2A task header), a conforming envelope MUST contain all fields shown below (folded per RFC 8792 for display), with signatures.ed25519 and signatures.ml_dsa_65 both structurally mandatory:

{
  "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>"
  }
}

4.2. Call-Bound Tool Invocation Profile (Tool, Argument Digest, and Audience Binding)

To prevent a valid envelope scoped to effective_scope 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 signatures:

  • "audience": The canonical ASCII URI identifying the target PEP or tool server (for example, "mcp://erp-gateway.corp.example/v1").
  • "tool_name": The exact tool or method identifier being invoked (for MCP tools/call, the exact string in params.name).
  • "tool_args_sha256": "sha256:" followed by the 64-character lowercase hexadecimal SHA-256 digest of UTF8(JCS(params.arguments)). If params.arguments is omitted, it MUST be canonicalized as the empty JSON object {} (sha256:44136fa3...aaff8a). An explicit null and {} are distinct inputs and MUST NOT be coerced.

Before dispatching the call, the PEP MUST verify that audience matches its own configured identifier, tool_name matches the dispatched tool, and tool_args_sha256 matches the recomputed SHA-256 digest over the exact JCS-canonicalized arguments that will be executed. Any discrepancy MUST fail closed with CALL_BINDING_MISMATCH (-32094) or AUDIENCE_MISMATCH (-32095). The clean_context_root field carries a sha256:<hex> digest of an optional context-isolation attestation ([I-D.durga-wimse-ctx-isolation]) or 64 hex zeros when context attestation is not profiled by the relying party.

4.3. SessionGrant (Grant_i) Schema, Hop Digest H_i, Cache Resolution, and Revocation Rules

Each intermediate delegation link i (1 <= i <= k-1) referenced in hop_chain_digests corresponds to a signed SessionGrant JSON object:

{
  "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>"
  }
}

Conforming issuers and PEPs MUST enforce the following grant and revocation invariants:

  1. Hop Digest Calculation (H_i): Each entry H_i in hop_chain_digests MUST equal "shake256:" || base64url(SHAKE256_256(UTF8(JCS(Grant_i)))), where JCS(Grant_i) is the complete RFC 8785 canonical UTF-8 byte sequence of the signed Grant_i object including its signatures member (both ed25519 and ml_dsa_65). (Note: In standalone single-envelope signature test harnesses where multi-hop grant resolution is out of scope, hop_chain_digests entries are validated for "shake256:<43-char-base64url>" syntax and bound into the terminal signature pre-image.)
  2. Chain Continuity and Scope Attenuation: For a k-hop chain (k >= 2), the PEP MUST verify every Grant_i's hybrid signature under Grant_i.issuer_pq_kid (Section 5) and check: (a) Grant_1.issuer_pq_kid is a trusted root authority for audience and Grant_1.parent_grant_digest == null; (b) for i > 1, Grant_i.parent_grant_digest == H_{i-1} and Grant_i.issuer_pq_kid == Grant_{i-1}.subject_pq_kid; (c) Grant_{k-1}.subject_pq_kid == invoker_pq_kid; (d) temporal containment Grant_{i-1}.iat <= Grant_i.iat < Grant_i.exp <= Grant_{i-1}.exp; and (e) scope containment granted_scope_1 >= ... >= granted_scope_{k-1} >= effective_scope (evaluated by exact token set inclusion for capability names and integer <= comparison for numeric parameter limits such as mcp:max_rows:<N>, never by string-prefix matching). If hop_chain_digests is empty (k = 1), invoker_pq_kid MUST itself be a configured root authority for effective_scope.
  3. Cold-Cache Fetch and Cache Invalidation: When H_i is absent from the PEP's local cache, the PEP fetches the grant from its configured Guardrail Witness base URI via authenticated HTTPS GET {witness_base_uri}/v1/grants/{H_i} (never from an untrusted URL in the request), recomputes H_i over the response bytes, and verifies both signatures and chain linkage before caching. A cached grant approval MUST be evicted immediately when verification_time_utc > Grant_i.exp + 60, when policy_epoch or policy_manifest_sha256 changes, when any key in the chain is rotated or revoked in the WIMSE trust bundle, or when an ancestor revocation epoch advances ([I-D.durga-agent-clear-revocation]).
  4. Commit-Time Freshness Fence for State-Mutating Writes: 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 POLICY_OR_GRANT_INVALID (-32096).

4.4. Detached Receipt Reference Mode for Header-Constrained Intermediaries

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 (params._meta.pq_delegation) or transmit a compact detached reference (receipt_ref, ~200 bytes) in the HTTP header:

{
  "pq_profile": "durga-pquip-agentic-v1",
  "receipt_ref": {
    "uri":
      "https://witness.corp.example/v1/envelopes/22704037cf91df04",
    "sha256":
      "22704037cf91df04f6cb5c55a6a730d0\
1ed117802e4a00f1ae41a9f4042ddd6a"
  }
}

The verifier fetches the referenced octets from the configured witness host, verifies that SHA-256(UTF8(JCS(envelope))) equals receipt_ref.sha256 before parsing, and runs the full verification procedure in Section 5.

5. Canonical Signing Transcript, Composite Key Identifier, Clock Window, and Error Codes

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 -01):

  1. SINGLE_SIGNING_TRANSCRIPT (PreImage): Let U be the JSON object (either an invocation envelope or a SessionGrant) with only its top-level "signatures" member removed. Any object missing "signatures", or containing legacy "sig" or "signature" members, or containing duplicate JSON member names, MUST be rejected as MALFORMED before signature evaluation. Let JCSBytes(U) be the UTF-8 byte sequence of U serialized per [RFC8785] JCS (restricted to ASCII member names, strings, arrays, booleans, and exact IEEE-754 safe integers in [0, 2^53 - 1]; no UTF-8 BOM or trailing newline). The canonical signing transcript MUST be:

    PreImage = ASCII("PQ-AGENTIC-DELEGATION-V1") || 0x00
               || JCSBytes(U)
    

    where ASCII("PQ-AGENTIC-DELEGATION-V1") is 24 bytes (50512d4147454e5449432d44454c45474154494f4e2d5631 in hex), followed by a single zero byte 0x00, followed directly by the raw JCSBytes(U) with no intermediate SHAKE256_512 pre-hash.

  2. PURE_ED25519_AND_PURE_ML_DSA_65_MODES: Both signatures in signatures = { "ed25519", "ml_dsa_65" } are structurally mandatory and MUST be computed over the identical PreImage byte string:

    • signatures.ed25519: 64-byte [RFC8032] pure Ed25519 signature (Ed25519ph and Ed25519ctx MUST NOT be used).
    • signatures.ml_dsa_65: 3,309-byte [FIPS204] pure ML-DSA-65 signature (ML-DSA.Sign Algorithm 2 / ML-DSA.Verify Algorithm 3) with an empty context string (ctx = "", zero bytes). The domain separator resides in the PreImage prefix, NOT in the FIPS 204 ctx parameter; HashML-DSA (Algorithms 4 and 5) MUST NOT be used. Signers MAY use either the hedged (rnd from an approved RBG) or deterministic (rnd = 0^32, 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.
    • Both signatures MUST be encoded as unpadded Base64url strings ([RFC4648] Section 5: 86 ASCII characters for Ed25519, 4,412 ASCII characters for ML-DSA-65) with zero trailing pad bits. Padding characters ("="), whitespace, or wrong decoded lengths MUST be rejected as MALFORMED.
  3. COMPOSITE_KEY_IDENTIFIER (invoker_pq_kid): For suite_id = "HYBRID-ED25519-MLDSA65-SHAKE256", the composite key identifier MUST be derived by concatenating the 32-byte raw [RFC8032] Ed25519 public key first and the 1,952-byte raw [FIPS204] Section 7.2 ML-DSA-65 public key second (1,984 bytes total), hashing with [FIPS202] SHAKE256 to a 32-byte (256-bit) output, and encoding the 32-byte digest as unpadded Base64url (43 ASCII characters) prefixed with "shake256:":

    kid = "shake256:" ||
          base64url(SHAKE256(Ed25519_pk_32 || ML_DSA_65_pk_1952, 256))
    

    In the relying party's WIMSE/SPIFFE trust bundle, both public keys and suite_id 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 kid from Ed25519_pk_32 || ML_DSA_65_pk_1952 and reject any mismatch (such as reversed key order) with KID_MISMATCH (-32092).

  4. ENVELOPE_DIGEST_COVERAGE: When a complete signed envelope or SessionGrant is referenced by SHA-256 (for example, in receipt_ref.sha256 or inside an external [I-D.wright-verdict-record] evidence array), the digest is the 64-character lowercase hexadecimal SHA-256 over the complete RFC 8785 JCS UTF-8 bytes of the signed JSON object (including signatures).
  5. VERIFICATION_CLOCK_AND_REPLAY_WINDOW: Every envelope and SessionGrant MUST carry integer Unix epoch timestamps iat (issued-at, in seconds) and exp (expiration, in seconds) satisfying exp > iat (any record with exp <= iat is rejected as MALFORMED). Given reference verification timestamp verification_time_utc (from the verifier's trusted clock in live operation, or the vector's pinned verification_time_unix in offline tests) and maximum clock skew Delta_skew = 60 seconds, the timestamp check succeeds iff:

    (iat - 60) <= verification_time_utc <= (exp + 60)
    

    Any envelope evaluated outside [iat - 60, exp + 60] MUST be rejected with EXPIRED (-32099). Live PEPs MUST also record (invoker_pq_kid, nonce) (scoped by audience when present) in an atomic replay cache until exp + 60 and reject duplicate nonces with -32093 (PQ_NONCE_REPLAYED).

  6. DETERMINISTIC_VERIFICATION_ORDER_AND_ERROR_CODES: Verifiers MUST evaluate checks in the following strict order so independent implementations return identical failure categories on malformed or invalid inputs:

    1. MALFORMED (JSON-RPC -32091): Duplicate JSON keys, missing required fields, missing either signatures.ed25519 or signatures.ml_dsa_65, non-canonical/padded Base64url or wrong decoded byte lengths (Ed25519 != 64 B, ML-DSA-65 != 3,309 B), or exp <= iat.
    2. KID_MISMATCH (JSON-RPC -32092): invoker_pq_kid does not match "shake256:" || base64url(SHAKE256_256(Ed25519_pk_32 || ML_DSA_65_pk_1952)) for the resolved trust-bundle entry.
    3. SIGNATURE_INVALID (JSON-RPC -32098): Either pure Ed25519 verification or pure ML-DSA-65 verification (ctx = "") over PreImage fails (including any modification to suite_id, effective_scope, or policy_manifest_sha256 after signing).
    4. EXPIRED (JSON-RPC -32099): verification_time_utc < iat - 60 or verification_time_utc > exp + 60.
    5. POLICY_OR_GRANT_INVALID (JSON-RPC -32096), CALL_BINDING_MISMATCH (-32094), or AUDIENCE_MISMATCH (-32095): Active policy_epoch / policy_manifest_sha256 mismatch, unresolvable/revoked SessionGrant in hop_chain_digests, or dispatched tool/argument/audience mismatch.

5.1. Measured Wire Sizes and Gateway Verification Latency

Table 1 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):

Table 1: PQ-Agentic Wire Size and Reference Verification Latency
Metric 1-Hop (0 Grants) 2-Hop (pos-01, 2 Digests) 10-Hop (9 Digests) Naive 10-Hop Inline ML-DSA-65
Raw Cryptographic Bytes (Ed25519 + ML-DSA-65 + 32B x hops) 3,373 B 3,437 B 3,661 B 52,610 B
Full JCS-Serialized JSON Envelope (Base64url + Metadata) 5,092 B 5,204 B 5,652 B ~74,820 B
Cold-Cache SessionGrant Fetch Traffic (Once per Session Epoch) 0 B 2 x 5,221 B 9 x 5,221 B 0 B (sent every call)
Warm-Cache Verification (Single Hybrid Check, Rust fips204 / Python) 0.22 ms / 17.4 ms 0.23 ms / 34.9 ms 0.25 ms / 37.0 ms 2.20 ms / 181.5 ms
Cold-Cache Verification (Grant Fetch + All Hops Verified, Local / Python) 0.22 ms / 17.4 ms 1.15 ms / 86.6 ms 3.80 ms / 199.0 ms 2.20 ms / 181.5 ms

6. Security Considerations

6.1. Structural Downgrade Resistance Independent of Historical Trust-Bundle State

In -01, downgrade rejection depended on the verifier consulting a pq_required: true 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 -02, both signatures.ed25519 and signatures.ml_dsa_65 are structurally mandatory in the wire format itself (Section 5 Rule 6.1): any envelope missing either signature component is rejected immediately as MALFORMED (-32091) on every code path, regardless of external trust-bundle state. Furthermore, suite_id is bound inside PreImage, so rewriting suite_id to a classical identifier invalidates both signatures (neg-10).

6.2. Protection Against Retroactive Policy-Drift and Cross-Chain Splicing

Binding policy_manifest_sha256 and policy_epoch inside both the SessionGrant and terminal invocation pre-images ensures that any change to scope-evaluation semantics causes a deterministic mismatch. Requiring Grant_i.parent_grant_digest == H_{i-1} and Grant_i.subject_pq_kid == Grant_{i+1}.issuer_pq_kid (Section 4.3) prevents an invoker from splicing valid cached H_i digests from unrelated delegation chains.

7. IANA Considerations

This document has no immediate IANA actions. HYBRID-ED25519-MLDSA65-SHAKE256 is used as a protocol-scoped suite identifier inside the PQ-Agentic JSON envelope.

8. Acknowledgments

The author thanks the following individuals for their technical reviews, interoperability testing, and working group feedback:

9. References

9.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC4648]
Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, , <https://www.rfc-editor.org/info/rfc4648>.
[RFC4998]
Gondrom, T., Brandner, R., and U. Pordesch, "Evidence Record Syntax (ERS)", RFC 4998, , <https://www.rfc-editor.org/info/rfc4998>.
[RFC8032]
Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, , <https://www.rfc-editor.org/info/rfc8032>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC8785]
Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, , <https://www.rfc-editor.org/info/rfc8785>.
[RFC9162]
Laurie, B., Messeri, E., and R. Stradling, "Certificate Transparency Version 2.0", RFC 9162, , <https://www.rfc-editor.org/info/rfc9162>.
[RFC9942]
Birkholz, H., Delignat-Lavaud, A., and C. Fournet, "CBOR Object Signing and Encryption (COSE) Receipts", RFC 9942, , <https://www.rfc-editor.org/info/rfc9942>.
[RFC9943]
Birkholz, H., Delignat-Lavaud, A., and C. Fournet, "An Architecture for Trustworthy and Transparent Digital Supply Chains (SCITT)", RFC 9943, , <https://www.rfc-editor.org/info/rfc9943>.
[FIPS202]
National Institute of Standards and Technology, "SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions", NIST FIPS 202, , <https://doi.org/10.6028/NIST.FIPS.202>.
[FIPS204]
National Institute of Standards and Technology, "Module-Lattice-Based Digital Signature Standard (ML-DSA)", NIST FIPS 204, , <https://doi.org/10.6028/NIST.FIPS.204>.
[FIPS205]
National Institute of Standards and Technology, "Stateless Hash-Based Digital Signature Standard (SLH-DSA)", NIST FIPS 205, , <https://doi.org/10.6028/NIST.FIPS.205>.

9.2. Informative References

[PQC-AGENTIC-VECTORS]
Romo Sanchez, J. E., "Independent Test Vectors and Multi-Language Checkers for draft-durga-pquip-pqc-agentic-delegation (Ed25519 + ML-DSA-65)", , <https://github.com/johnInarti/pqc-agentic-delegation-vectors>.
[I-D.durga-agenttrust-trace-verification]
Durga, R. K., "Cryptographic Execution-Trace Verification, JCS Canonicalization, and Fail-Closed Delegation Attestation for Autonomous AI Agents", Work in Progress, Internet-Draft, draft-durga-agenttrust-trace-verification-01, , <https://datatracker.ietf.org/doc/draft-durga-agenttrust-trace-verification/>.
[I-D.durga-wimse-ctx-isolation]
Durga, R. K., "Cryptographic Separation of Untrusted Data-Plane Context from Control-Plane Tool Invocations in Autonomous AI Agents", Work in Progress, Internet-Draft, draft-durga-wimse-ctx-isolation-00, , <https://datatracker.ietf.org/doc/draft-durga-wimse-ctx-isolation/>.
[I-D.durga-agent-clear-revocation]
Durga, R. K., "Transitive CLEAR Revocation and Composite Physical-Safety Windows for Multi-Hop Autonomous Agent DAGs", Work in Progress, Internet-Draft, draft-durga-agent-clear-revocation-01, , <https://datatracker.ietf.org/doc/draft-durga-agent-clear-revocation/>.
[I-D.wright-verdict-record]
Wright, D., "Verdict Record: An Evidence-Pack Format for Deterministic Conformance Verification", Work in Progress, Internet-Draft, draft-wright-verdict-record-03, , <https://datatracker.ietf.org/doc/html/draft-wright-verdict-record-03>.
[I-D.xg-payment-dispute-profile]
G., X., "Verifiable Decision Receipts for Payment Dispute Resolution", Work in Progress, Internet-Draft, draft-xg-payment-dispute-profile-02, , <https://datatracker.ietf.org/doc/html/draft-xg-payment-dispute-profile-02>.

Appendix A. Deterministic Multi-Implementation Test Vectors (pos-01 through neg-11)

The test vectors below have been independently generated and verified across three implementations sharing no code ([PQC-AGENTIC-VECTORS]): JavaScript (@noble/post-quantum 0.6.1 and @noble/curves), Rust (fips204 0.4.6 and ed25519-dalek 2.2.0), and Python (cryptography and dilithium-py).

WARNING — TEST KEYS ONLY: The fixed seeds below are public test fixtures for deterministic byte reproduction. Never use these seeds, or any key derived from them, in production.

A.1. Positive Baseline Vector pos-01 Intermediates and Digests

For the Section 4.1 envelope (pos-01), removing "signatures" and applying RFC 8785 JCS yields the 640-byte single-line UTF-8 string JCSBytes(U) (shown below with RFC 8792 \ line folding; remove \ and newlines to obtain the exact 640 bytes):

{"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"}
  • PreImage length: 665 bytes (24-byte ASCII prefix "PQ-AGENTIC-DELEGATION-V1" + 0x00 + 640-byte JCSBytes(U)).
  • SHA-256(PreImage) (hex): 3bf9cd62d2007ae27333d867445602acef921ba398f6502e54422497cb3da512
  • signatures.ed25519 (86 chars, first/last 43): O40r8kY_Yy3xFatrWeoLTcBmcxw2eEyHpdBMOVudvUt + tvedp_a55TUmxc-ircRUrRXNecWOt3FsvEdvHscaZDQ
  • signatures.ml_dsa_65 (4,412 chars, deterministic rnd = 0^32, ctx = "", first/last 48 chars): RutDY8nyXFdSdRTBQNc7A_s1sKxIjGYiK2SI5Qo1JjcpX0zd... ...LHXG1ZmgY2foLIbYnqFrM0AAAAAAAAAAAAAAAAABg4UHCQq
  • Full-Envelope SHA-256(JCSBytes(envelope)) (Section 5 Rule 4): 22704037cf91df04f6cb5c55a6a730d01ed117802e4a00f1ae41a9f4042ddd6a

A.2. Conformance Test Vector Summary Matrix

Table 2: 12-Case Conformance Matrix (vectors.json SHA-256: 977912058c05b6be...)
Vector ID Mutation / Condition Tested Expected Verdict JSON-RPC Code
pos-01 Valid two-hop envelope; both signatures valid over identical 665-byte PreImage VALID 0
pos-02 Evaluated at verification_time_unix = exp + 60 (1795478760, exact skew boundary) VALID 0
neg-01 signatures.ml_dsa_65 stripped (suite downgrade rejected by structure alone) MALFORMED -32091
neg-02 signatures.ed25519 stripped MALFORMED -32091
neg-03 effective_scope mutated after signing; signatures untouched SIGNATURE_INVALID -32098
neg-04 ed25519 signed by invoker key, ml_dsa_65 signed by unrelated key SIGNATURE_INVALID -32098
neg-05 invoker_pq_kid derived with ML-DSA-65 public key first (reversed key order) KID_MISMATCH -32092
neg-06 Evaluated at verification_time_unix = exp + 61 (1795478761, 1s past skew) EXPIRED -32099
neg-08 signatures.ed25519 carries "==" Base64 padding MALFORMED -32091
neg-09 exp == iat (1795478400), violating exp > iat MALFORMED -32091
neg-10 suite_id rewritten to a classical algorithm name after signing SIGNATURE_INVALID -32098
neg-11 ml_dsa_65 signed with non-empty FIPS 204 ctx = "PQ-AGENTIC-DELEGATION-V1" SIGNATURE_INVALID -32098

Author's Address

Raghuvar Karthik Durga
Microsoft Corporation
Chicago, IL
United States of America