Cross-Protocol Semantic Equivalence Proofs and Commit-Bound Metering Receipts for Multi-Vendor Agentic Exchanges
draft-durga-mcp-a2a-semantic-metering-00
This document is an Internet-Draft (I-D).
Anyone may submit an I-D to the IETF.
This I-D is not endorsed by the IETF and has no formal standing in the
IETF standards process.
| Document | Type | Active Internet-Draft (individual) | |
|---|---|---|---|
| Author | Raghuvar Karthik Durga | ||
| Last updated | 2026-11-02 | ||
| RFC stream | (None) | ||
| Intended RFC status | (None) | ||
| Formats | |||
| Stream | Stream state | (No stream defined) | |
| Consensus boilerplate | Unknown | ||
| RFC Editor Note | (None) | ||
| IESG | IESG state | I-D Exists | |
| Telechat date | (None) | ||
| Responsible AD | (None) | ||
| Send notices to | (None) |
draft-durga-mcp-a2a-semantic-metering-00
DISPATCH / HTTPAPI Working Group R. K. Durga
Internet-Draft Microsoft Corporation
Intended status: Standards Track 2 November 2026
Expires: 6 May 2027
Cross-Protocol Semantic Equivalence Proofs and Commit-Bound Metering
Receipts for Multi-Vendor Agentic Exchanges
draft-durga-mcp-a2a-semantic-metering-00
Abstract
Enterprise agent ecosystems routinely bridge tool invocations and
task delegations across heterogeneous protocols, including Model
Context Protocol (MCP), Agent-to-Agent (A2A), and OpenAPI/REST.
During protocol translation, safety invariants, schema constraints,
and mutability flags are frequently stripped—enabling cross-protocol
capability downgrade attacks—while commercial settlement gateways
erroneously bill on HTTP 200 transport responses rather than verified
state-commit durability. This document specifies a cryptographic
Cross-Protocol Semantic Equivalence Proof (CPSEP) and an 8-state
Commit-Bound Metering Receipt (CBMR) protocol.
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 6 May 2027.
Copyright Notice
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.
Durga Expires 6 May 2027 [Page 1]
Internet-Draft Cross-Protocol Semantic Equivalence & Me November 2026
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document. Code Components
extracted from this document must include Revised BSD License text as
described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Revised BSD License.
Table of Contents
1. Introduction and Problem Statement . . . . . . . . . . . . . 2
2. Conventions and Definitions . . . . . . . . . . . . . . . . . 2
3. Semantic Equivalence Proof and Commit-Bound Metering Receipt
Envelope . . . . . . . . . . . . . . . . . . . . . . . . 3
4. Normative Fail-Closed Verification Rules . . . . . . . . . . 3
5. Strict Parser Determinism and Wire-Level Input Hardening . . 4
6. Implementation Status and Empirical Benchmark Evaluation . . 4
7. Security Considerations . . . . . . . . . . . . . . . . . . . 5
8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 6
9. Normative References . . . . . . . . . . . . . . . . . . . . 6
10. Informative References . . . . . . . . . . . . . . . . . . . 6
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 8
1. Introduction and Problem Statement
When an A2A task is translated by a proxy into an MCP tool call and
subsequently into a REST request, no cryptographic proof exists that
the translated request preserved the tighter permission bounds, rate
limits, and JSON Schema invariants of the originating envelope.
Furthermore, inter-organization agent exchanges lack a non-
repudiable, commit-bound metering receipt tied to Write-Ahead Log
(WAL) finality, leading to billing disputes on aborted or rolled-back
agent invocations.
This specification complements the foundational execution-trace
verification architecture defined in draft-durga-agenttrust-trace-
verification-00 by introducing deterministic, fail-closed wire
semantics specifically addressing Cross-Protocol Semantic Equivalence
& Metering.
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.
Durga Expires 6 May 2027 [Page 2]
Internet-Draft Cross-Protocol Semantic Equivalence & Me November 2026
3. Semantic Equivalence Proof and Commit-Bound Metering Receipt
Envelope
Protocol translation proxies and settlement gateways MUST emit and
verify a JCS-canonicalized Semantic Metering Envelope carried in the
Agent-Semantic-Metering HTTP header or JSON-RPC _meta block:
{
"cpsep_version": "1.0",
"exchange_tx_id": "urn:uuid:550e8400-e29b-41d4-a716-446655440000",
"protocol_bridge_path": ["A2A_1.0", "MCP_2025_11", "OPENAPI_3_1"],
"source_ast_merkle_root": "sha256:ef2d127de37b942baad06145e54b0c619a1f22327b2ebbcfbec78f5564afe39d",
"target_ast_merkle_root": "sha256:e7f6c011776e8db7cd330b54174fd76f7d0216b612387a5ffcfb81e6f0919683",
"downgrade_bitmask": 0,
"wal_commit_state": "COMMITTED_VERIFIED",
"prev_receipt_hash": "sha256:7902699be42c8a8e46fbbb4501726517e86b22c56a189f7625a6da49081b2451",
"signature": {
"alg": "Ed25519",
"kid": "sha256:b600306cfa76723fdec395e53a9b3d9fdb78b1e2d7a23c32fcbcd2dc6d0c4092",
"sig": "RpG18aHMw9iEfGEoM76MQSEqr2dOKh-tnLfgVKmFmEHgI5yJ4VUlHFHXUmZwooBPrhkpdan6R-n1ELDaST7vBw"
}
}
4. Normative Fail-Closed Verification Rules
Conforming verifiers and relying-party gateways MUST enforce the
following deterministic invariants before releasing any downstream
side effect:
1. ZERO_DOWNGRADE_INVARIANT: Any translation across A2A, MCP, or
REST that widens parameter bounds, drops a readOnly/idempotent
constraint, or strips a required human-approval flag MUST set the
corresponding bit in downgrade_bitmask, and the receiving
endpoint MUST reject any envelope where downgrade_bitmask != 0.
2. COMMIT_BOUND_SETTLEMENT_FINALITY: A commercial metering gateway
MUST NOT transition a billable agent transaction to SETTLED
unless wal_commit_state equals COMMITTED_VERIFIED and is backed
by a countersigned receipt from the target execution engine.
3. AUTOMATIC_COMPENSATION_ZERO_BILLING: Transactions terminating in
ABORTED_PRE_COMMIT, TIMED_OUT, or COMPENSATED_ROLLED_BACK MUST
settle to zero billable units.
Durga Expires 6 May 2027 [Page 3]
Internet-Draft Cross-Protocol Semantic Equivalence & Me November 2026
5. Strict Parser Determinism and Wire-Level Input Hardening
When bridging requests across Model Context Protocol (MCP), Agent-to-
Agent (A2A), and OpenAPI/REST gateways, parser differentials between
TypeScript, Python, and Rust runtimes create exploitable semantic
gaps. Conforming CPSEP proxies and CBMR settlement verifiers MUST
enforce five pre-canonicalization parser invariants:
1. DUPLICATE_KEY_REJECTION: The JSON parser MUST reject any CPSEP/
CBMR envelope or translated tool-argument payload containing
duplicate member names prior to AST construction, preventing
cross-protocol parameter smuggling where an upstream MCP proxy
inspects the first key while a downstream REST service executes
the second.
2. IEEE754_FINITE_SAFE_INTEGER_BOUNDS: The downgrade_bitmask and all
metered token/unit counters MUST be exact JSON integers within
[0, 2^53 - 1]. Boolean values (true/false coerced to 1/0 in
Python), negative values, and non-finite IEEE-754 floats (NaN,
Infinity, -Infinity, or 1e1000 exponent overflow) MUST cause
immediate fail-closed rejection.
3. CANONICAL_LOWERCASE_HEX_AND_SAFE_LONE_SURROGATES: All sha256:
digests (source_ast_merkle_root, target_ast_merkle_root,
prev_receipt_hash, kid) MUST match ^sha256:[0-9a-f]{64}$, and
strings containing unpaired UTF-16 surrogates (U+D800..U+DFFF)
MUST be rejected prior to RFC 8785 JCS serialization.
4. MINIMAL_BASE64URL_AND_PUBLIC_JWK_HYGIENE: Signatures MUST use
canonical unpadded Base64url encoding, and any verification key
catalog MUST reject JWKs containing private key parameters (d, p,
q, k).
5. EVIDENCE_TO_RULE_BYTE_BINDING: When a CBMR receipt is evaluated
inside an external Verdict Record ([I-D.wright-verdict-record])
for commercial settlement or dispute resolution, the settlement
rule MUST bind directly to the digest-verified CBMR envelope
bytes rather than unverified summary claims.
6. Implementation Status and Empirical Benchmark Evaluation
The cross-protocol semantic equivalence and commit-bound metering
mechanisms specified in this document are backed by open-source
reference implementations and reproducible benchmark datasets:
* Open-Source MCP/A2A & Telemetry Verifiers: Strict
canonicalization, duplicate-key rejection, safe-integer metering
bounds, and cross-protocol transport verification are implemented
Durga Expires 6 May 2027 [Page 4]
Internet-Draft Cross-Protocol Semantic Equivalence & Me November 2026
across agentrust-io/cmcp, agentrust-io/ca2a, agentrust-io/
agentrust-telemetry, and GenAI-Security-Project/agent-control-
standard ([AGENTIC-GOV-BENCHMARKS]).
* Core Rust Evidence Engine: Deterministic RFC 8785 JCS receipt
hashing and isotonic confidence scoring are implemented in Rust in
xerj-org/xerj (engine/crates/xerj-common/src/hub_evidence.rs,
[XERJ-HUB-EVIDENCE]).
* Empirical Benchmark Results: In reproducible evaluations over the
100-scenario OWASP ASI01-ASI10 benchmark
([OWASP-ASI-BENCHMARK-DOI]) and the companion Technical Report
([ZENODO-TR-2026-02]), Merkle-DAG delta proofs reduce cross-
version re-verification overhead by 65.9%, the CPSEP downgrade
gate blocks 100% of capability-widening translations across
MCP/A2A/REST, and the 8-state WAL commit-bound metering machine
achieves 0.0% over-billing across aborted and rolled-back
transactions.
7. Security Considerations
All pre-image objects MUST be canonicalized using RFC 8785 JSON
Canonicalization Scheme (JCS) prior to signature generation or
verification under RFC 8032 Ed25519. Any clock skew exceeding 60
seconds, digest mismatch, or missing cryptographic binding MUST cause
the verifier to fail closed and emit an auditable security rejection
receipt. For the normative test vector in Section 3, the Ed25519
test key seed is 2a2a...2a (32 bytes of 0x2a), yielding raw 32-byte
public key
197f6b23e16c8532c6abc838facd5ea789be0c76b2920334039bfa8b3d368d61 (kid
=
sha256:b600306cfa76723fdec395e53a9b3d9fdb78b1e2d7a23c32fcbcd2dc6d0c4092),
and the full RFC 8785 JCS-canonicalized envelope (710 bytes) hashes
to SHA-256
c3c30e610159c85b7ea4c29c7e70ea278373e646fe618b596447279b1c74e611.
This specification cross-references the companion Internet-Drafts
([I-D.durga-agenttrust-trace-verification],
[I-D.durga-wimse-ctx-isolation],
[I-D.durga-pquip-pqc-agentic-delegation],
[I-D.durga-agent-tx-compensation-lease]), external Verdict Record
evidence binding ([I-D.wright-verdict-record]), Remote Attestation
([RFC9334]), Merkle Tree domain separation ([RFC9162]), and the
100-scenario OWASP ASI01-ASI10 benchmark ([OWASP-ASI-BENCHMARK-DOI]).
Durga Expires 6 May 2027 [Page 5]
Internet-Draft Cross-Protocol Semantic Equivalence & Me November 2026
8. IANA Considerations
This document requests IANA registration of the media type
application/agent-metering-receipt+json and the registry IETF Agent
Metering Commit States (RESERVED, VALIDATED, EXECUTING,
COMMITTED_VERIFIED, ABORTED_PRE_COMMIT, TIMED_OUT,
COMPENSATED_ROLLED_BACK, SETTLED), alongside the following header
fields:
* HTTP/MCP Header Field: Agent-Semantic-Proof
* HTTP/MCP Header Field: Agent-Metering-Receipt
9. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, May 2017,
<https://www.rfc-editor.org/info/rfc8174>.
[RFC8785] Rundgren, A., Jordan, B., and S. Erdtman, "JSON
Canonicalization Scheme (JCS)", RFC 8785, June 2020,
<https://www.rfc-editor.org/info/rfc8785>.
[RFC8032] Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital
Signature Algorithm (EdDSA)", RFC 8032, January 2017,
<https://www.rfc-editor.org/info/rfc8032>.
10. Informative References
[RFC9162] Laurie, B., Messeri, E., and R. Stradling, "Certificate
Transparency Version 2.0", RFC 9162, December 2021,
<https://www.rfc-editor.org/info/rfc9162>.
[RFC9334] Birkholz, H., Thaler, D., Richardson, M., Smith, N., and
W. Pan, "Remote ATtestation procedureS (RATS)
Architecture", RFC 9334, January 2023,
<https://www.rfc-editor.org/info/rfc9334>.
Durga Expires 6 May 2027 [Page 6]
Internet-Draft Cross-Protocol Semantic Equivalence & Me November 2026
[I-D.durga-agenttrust-trace-verification]
Durga, R. K., "Cryptographic Execution-Trace Verification,
JCS Canonicalization, and Fail-Closed Delegation Chains
for Autonomous AI Agents", Work in Progress, Internet-
Draft, draft-durga-agenttrust-trace-verification-00,
October 2026, <https://datatracker.ietf.org/doc/html/
draft-durga-agenttrust-trace-verification-00>.
[I-D.durga-wimse-ctx-isolation]
Durga, R. K., "Cryptographic Context Isolation and
Instruction-Data Plane Separation for Autonomous Agent
Tool Invocations", Work in Progress, Internet-Draft,
draft-durga-wimse-ctx-isolation-00, October 2026,
<https://datatracker.ietf.org/doc/html/draft-durga-wimse-
ctx-isolation-00>.
[I-D.durga-pquip-pqc-agentic-delegation]
Durga, R. K., "Post-Quantum Hybrid Cryptographic
Delegation Chains and Merkle-Aggregated Execution Receipts
for Autonomous AI Agents", Work in Progress, Internet-
Draft, draft-durga-pquip-pqc-agentic-delegation-00,
October 2026, <https://datatracker.ietf.org/doc/html/
draft-durga-pquip-pqc-agentic-delegation-00>.
[I-D.durga-agent-tx-compensation-lease]
Durga, R. K., "Pre-Release Transactional Compensation
Leases and CAS Fencing Receipts for Autonomous Agents Over
Systems of Record", Work in Progress, Internet-Draft,
draft-durga-agent-tx-compensation-lease-00, November 2026,
<https://datatracker.ietf.org/doc/html/draft-durga-agent-
tx-compensation-lease-00>.
[I-D.wright-verdict-record]
Wright, D., "Verdict Records: Results on Claims that Cite
Receipts as Evidence", Work in Progress, Internet-Draft,
draft-wright-verdict-record-01, November 2026,
<https://datatracker.ietf.org/doc/html/draft-wright-
verdict-record-01>.
[OWASP-ASI-BENCHMARK-DOI]
Durga, R. K., "OWASP ASI01-ASI10 Enterprise Agentic AI
Security Regression Benchmark Dataset (N=100 Scenarios)",
DOI 10.57967/hf/11352, October 2026,
<https://doi.org/10.57967/hf/11352>.
[XERJ-HUB-EVIDENCE]
Durga, R. K., "XERJ Common Rust Engine: Deterministic JCS
TraceEvidenceReport, PinnedCitation, and Isotonic
Durga Expires 6 May 2027 [Page 7]
Internet-Draft Cross-Protocol Semantic Equivalence & Me November 2026
Confidence Verification", GitHub xerj-org/xerj#2857,
November 2026,
<https://github.com/xerj-org/xerj/pull/2857>.
[AGENTIC-GOV-BENCHMARKS]
Durga, R. K., "Enterprise Agentic Governance Benchmarks
and Reference Verifier Suite v1.0.0", Version 1.0.0,
November 2026, <https://github.com/drk-ram/enterprise-
agentic-governance-benchmarks/releases/tag/v1.0.0>.
[ZENODO-TR-2026-02]
Durga, R. K., "Cross-Protocol Semantic Equivalence Proofs
and Commit-Bound Metering Receipts for Multi-Vendor
Agentic Exchanges", DOI 10.5281/zenodo.23735276, October
2026, <https://doi.org/10.5281/zenodo.23735276>.
Author's Address
Raghuvar Karthik Durga
Microsoft Corporation
United States of America
Email: rdurga@microsoft.com
Durga Expires 6 May 2027 [Page 8]