| Internet-Draft | PQ-Agentic Delegation & Trace Receipts | November 2026 |
| Durga | Expires 29 May 2027 | [Page] |
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.¶
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.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
As 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:¶
10 x (64-byte signature + 32-byte public key) = 960 raw cryptographic bytes. Under [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.¶
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.¶
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.¶
HYBRID-ED25519-MLDSA65-SHAKE256):ctx = "") over an identical domain-separated canonical pre-image.¶
Grant_i):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.¶
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 |
+-----------------------------------------------------------------+
¶
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:¶
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.¶
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.¶
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.¶
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):¶
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.¶
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):¶
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.¶
"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.¶
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]).¶
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>"
}
}
¶
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.¶
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:¶
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.)¶
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.¶
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]).¶
POLICY_OR_GRANT_INVALID (-32096).¶
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.¶
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):¶
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.¶
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.¶
"="), whitespace, or wrong decoded lengths MUST be rejected as MALFORMED.¶
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).¶
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).¶
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).¶
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:¶
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.¶
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.¶
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).¶
EXPIRED (JSON-RPC -32099): verification_time_utc < iat - 60 or verification_time_utc > exp + 60.¶
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.¶
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):¶
| 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 |
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).¶
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.¶
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.¶
The author thanks the following individuals for their technical reviews, interoperability testing, and working group feedback:¶
@noble/post-quantum, Rust fips204 + ed25519-dalek, and Python), structural downgrade rejection, SLH-DSA-SHAKE-192s/256s cold-path parameter alignment, and the detached receipt_ref mode.¶
scitt@ietf.org, including normative [RFC9943] Signed Statement and [RFC9942] COSE Receipt anchoring, cold-path retention of full SessionGrant artifacts, and checkpoint tree_size binding per RFC 9942 Errata EID 9316 and EID 9317.¶
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.¶
000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f¶
03a107bff3ce10be1d70dd18e74bc09967e4d6309ba50d5f1ddc8664125531b8¶
202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f¶
01b24276275667002e40e968...d5aef2362e1ab0f1b¶
invoker_pq_kid: shake256:Qt3Mq24FBMFRRMWa99aWzTaVje903FhKHP9jGUmtfsg¶
neg-04): Ed25519 seed 4041...5f, ML-DSA-65 seed 6061...7f (kid = shake256:Q3t0W6caFUBxKIpURq4-OkDmQ6n3LWjQondxkb9ggc8).¶
verification_time_unix = 1795478520 (2026-11-24T00:02:00Z).¶
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¶
SHA-256(JCSBytes(envelope)) (Section 5 Rule 4): 22704037cf91df04f6cb5c55a6a730d01ed117802e4a00f1ae41a9f4042ddd6a¶
| 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
|