Protocol Integration
How legal context references embed in existing agentic commerce protocols. No core spec changes required.
This section is advisory.
This section describes how legal context references can be embedded in existing agentic commerce protocols. No protocol requires core specification changes. All integrations use existing extension mechanisms.
Approach
The protocols are structurally different, so a single wire format cannot apply everywhere. The ALC standard provides three conventions:
alc:prefix — for string fields, a self-identifying format:alc:{type}:{value}legalContextJSON key — for structured JSON metadata, a standard key withtypeandvaluefields- Raw bytes — for constrained fields (e.g., TIP-20's 32-byte memo), the raw content hash with no prefix
See Naming Conventions for the full specification.
Per-Protocol Guides
Each protocol integration specifies the exact field to use, the format (string prefix, JSON key, or raw bytes), when in the protocol flow it is set, size constraints, and how the receiving party reads and resolves the value.
| Protocol | Integration Point | Format | Page |
|---|---|---|---|
| MPP | 402 challenge + receipt | alc: string + JSON | MPP |
| ACP | Checkout session metadata | JSON | ACP |
| x402 | Response header + payment metadata | Header + alc: string | x402 |
| UCP | Cryptographic mandate metadata | JSON | UCP |
| Visa TAP | Agent intent signature | Signed field | Visa TAP |
| A2A / MCP | Agent Card + tool definitions | JSON | A2A / MCP |
| AP2 | Cart/Intent/Payment mandate metadata | JSON | AP2 |
| Mastercard Agent Pay | Token metadata + KYA | Metadata | Mastercard |
Design Principle
ALC is complementary to every protocol in this table. It provides the legal layer that each defers. The protocols handle payments, checkout, and fulfillment. ALC handles terms, verification, and dispute resolution. The integration patterns show exactly where these layers connect.