Agentic Commerce Standards Conformance Matrix
This document records target protocol versions and the Commerce Orchestrator’s conformance status. Conformance is verified by tests referenced in the Evidence column.
Target Protocol Versions
| Protocol | Target Version | Spec / Reference |
|---|---|---|
| UCP business profile | 2026-08-25 (with 2026-04-08, 2026-01-23 and 2026-01-11 profiles linked from supported_versions) | UCP spec; profile validated against the official profile.json#/$defs/business_schema; UCP REST binding; RFC 9421 signatures |
| A2A (Agent-to-Agent) | 1.0 (patch 1.0.1; 0.3 envelopes and JSON-RPC message/send retained) | A2A spec; Agent Card, HTTP+JSON and JSON-RPC SendMessage / SendStreamingMessage (SSE); A2A-Version negotiation on the envelope routes |
| MCP (Model Context Protocol) | Dual-era: 2026-07-28 modern + 2025-11-25 / 2024-11-05 legacy | server/discover + per-request version meta; legacy initialize retained |
| AP2 (Agent Payments Protocol) | 0.2 | AP2 spec; closed + open (HNP) mandates, VDCs |
| ACP (Agentic Commerce Protocol) | 2026-04-17 | ACP OpenAPI; merchant-hosted checkout sessions, Cart capability, delegate payment, mandatory Idempotency-Key, and /.well-known/acp.json discovery |
| MPP (Machine Payments Protocol) | draft-httpauth-payment-01 (charge intent: draft-payment-intent-charge-00) | MPP protocol, Payment auth drafts; HTTP 402 challenge/credential/receipt on REST checkout, the MCP transport (-32042, _meta credential/receipt) on the native MCP execute_checkout tool, and method/intent metadata |
Conformance Matrix
Status values: required (must pass for claimed alignment), optional (supported when implemented), not_supported_yet (planned or out of scope).
Discovery (UCP)
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Well-known discovery endpoint | required | Default GET /.well-known/ucp returns a 2026-08-25 business profile that validates against the official UCP JSON Schema (vendored in crates/orchestrator-http/tests/fixtures/ucp/2026-08-25), configured or not; it is served with Cache-Control: public, max-age=300 | ucp_profile_schema_test::an_unconfigured_deployment_publishes_a_valid_profile, ucp_profile_schema_test::a_fully_configured_deployment_publishes_a_valid_profile, ucp_profile_schema_test::the_profile_is_publicly_cacheable_for_at_least_a_minute |
| Older protocol versions | required | supported_versions maps 2026-04-08, 2026-01-23 and 2026-01-11 to ?ucp_version= profile URIs; each linked profile declares that version and carries no supported_versions of its own. The 2026-04-08 profile keeps its previous shape (in-ucp signing_keys, handler list, acp/mcp transports) for platforms still on it | ucp_profile_schema_test::older_versions_link_to_self_contained_profiles, authz_and_adapters::the_2026_04_08_profile_keeps_its_shape_for_platforms_still_on_it |
| Version-match rule | required | Every dev.ucp.* service and capability entry declares the profile’s own version | ucp_profile_schema_test::every_ucp_entry_declares_the_profile_version |
| Only implemented bindings listed | required | dev.ucp.shopping lists rest, mcp (UCP’s MCP binding at /api/v1/ucp/mcp), a2a (UCP’s A2A binding, endpoint = the Agent Card) and embedded (when configured) only. The orchestrator’s native MCP server is not UCP’s MCP binding and ACP is its own protocol, so their endpoints move to the top-level orchestrator member (mcp_endpoint, mcp_supported_versions, acp_discovery, acp_api_version, a2a_profile_version, ap2_protocol_version, capability_flags) — only UCP core may define members inside ucp | ucp_profile_schema_test::only_bindings_we_implement_are_listed_as_ucp_transports |
| Payment handler registry | required | ucp.payment_handlers is always present, as a reverse-DNS keyed registry; it is {} unless the operator publishes their providers’ handlers via UCP_PAYMENT_HANDLERS (validated at startup). Payment handlers are not a capability | ucp_profile_schema_test::payment_handlers_are_always_present_and_published_as_configured, ucp_profile_schema_test::payment_handlers_are_not_a_capability, config tests |
| Capability IDs | required | Latest profile advertises checkout, cart, catalog.lookup/search, order, discount, and fulfillment, with 2026-08-25 spec URLs; identity_linking appears only when an identity provider is configured | Same; honest_discovery_test::discovery_hides_identity_linking_until_a_provider_is_configured |
| Multi-parent extensions | required | dev.ucp.shopping.discount extends both checkout and cart in the latest profile | discovery tests |
| Advertised capabilities map to implemented routes | required | Every latest advertised capability has a corresponding executable REST, A2A, or MCP operation | Conformance test: capability_route_parity |
| Signing keys advertisement | required | Discovery publishes the operator’s real public JWKs (Ed25519 and/or P-256) as the top-level keys[] JWK Set beside ucp (signing_keys was removed in 2026-08-25) and sets dev.ucp.security.signatures only when signing material is configured; an unsigned deployment advertises neither. Agent JWK Sets tolerate unknown key types | ucp_profile_schema_test::signing_keys_are_a_top_level_jwk_set, ucp_signing::a_jwks_key_of_an_unknown_type_is_skipped_not_fatal, discovery_test::discovery_advertises_acp_signing_and_payment_handlers, discovery_test::discovery_omits_signing_keys_when_no_keyring_is_configured; orchestrator_api::SigningKeyring |
| Response signing | required | Every response carries RFC 9530 Content-Digest and RFC 9421 Signature-Input/Signature (label sig1) covering @status, content-digest, and content-type, verifiable with the advertised JWK | ucp_signature_test::responses_are_signed_with_the_active_key, ucp_signature_test::rejections_are_signed_too_so_clients_can_trust_them |
| Request signature verification | required | With agent keys configured (UCP_AGENT_JWKS / UCP_AGENT_KEYS), /api/v1 requests must carry an RFC 9421 signature covering @method, @authority, @path, @query (when present), content-digest + content-type (with a body), and idempotency-key/ucp-agent/signature-agent (when present); the body must match Content-Digest; created within 300s and expires honoured; any one valid signature authenticates. Failures return UCP codes signature_missing/signature_invalid/key_not_found (401) or digest_mismatch/algorithm_unsupported (400) | ucp_signature_test suite; ucp_signing suite incl. rfc_9421_ed25519_test_vector_signature_base_and_value |
| Signature algorithms | required | ES256 (mandatory-to-verify baseline) and Ed25519 accepted for verification and usable for signing (UCP_SIGNING_KEY_ALG); algorithm derived from the key, alg parameter cross-checked | ucp_signing::es256_signed_request_verifies, ucp_signature_test::an_es256_signed_request_is_accepted |
Key rotation by kid | required | Both signing and verification accept a retired and a current kid simultaneously (UCP_SIGNING_PREVIOUS_KEYS, multiple agent keys) so counterparties can switch without downtime | ucp_signing::both_kids_verify_during_a_rotation, ucp_signature_test::both_kids_are_accepted_during_rotation |
| Web Bot Auth signatures | optional | Opt-in draft-ietf-webbotauth-httpsig-protocol-01: HTTPS directory resolution, URL-bound caches, thumbprint key selection, required tag/timestamps, key validity and Ed25519/P-256 verification. Configure WEB_BOT_AUTH_DIRECTORY_URLS or server.web_bot_auth_directory_urls. This establishes operator identity, independent of account authorization. RSA, legacy bare-string headers, directory redistribution and Signed-Agent-Metadata policy are outside this profile | webbot_components, webbot_identity, webbot_http |
Platform profile negotiation (UCP-Agent) | required (opt-in: UCP_PROFILE_NEGOTIATION) | With lenient or strict, the profile named by the UCP-Agent header (RFC 8941 dictionary, profile="https://...") on /api/v1/ucp/* or by meta["ucp-agent"].profile on /api/v1/ucp/mcp is fetched (HTTPS only, no redirects, special-use addresses refused and the connection pinned to the checked address, 3 s connect / 5 s total, 256 KiB cap) and cached per URL for its max-age clamped to 60 s–1 h (failures 15 s, 256 URLs). The platform’s ucp.version must be 2026-08-25 or a supported_versions key; capabilities are intersected (shared names, highest mutual version, orphaned extensions pruned until stable) and each response’s ucp.capabilities lists only negotiated ones. strict refuses with invalid_profile_url (400), profile_unreachable (424), profile_malformed (422), version_unsupported (422) as {code, content} on REST and -32001 on MCP, and an operation outside the intersection with a 200 capabilities_incompatible UCP error response; lenient counts the failure and proceeds unnegotiated; off (default) fetches nothing. Unauthenticated requests never trigger a fetch | ``ucp_negotiation_test::rest_responses_list_only_negotiated_capabilities, ucp_negotiation_test::strict_rest_refuses_each_negotiation_failure_with_the_specified_status, ucp_negotiation_test::a_malformed_ucp_agent_header_is_an_invalid_profile_url, ucp_negotiation_test::an_operation_outside_the_intersection_is_capabilities_incompatible, ucp_negotiation_test::lenient_rest_proceeds_without_negotiation_when_it_fails, ucp_negotiation_test::an_unnegotiated_deployment_lists_every_capability, ucp_negotiation_test::profiles_are_fetched_once_and_then_served_from_the_cache, ucp_negotiation_test::mcp_reports_negotiation_failures_as_discovery_errors, ucp_negotiation_test::mcp_reports_capabilities_incompatible_as_a_result, ucp_negotiation_test::rest_and_mcp_negotiate_the_same_capabilities, ucp_negotiation_test::negotiation_is_counted_timed_and_labelled_by_outcome, ucp_negotiation_test::unauthenticated_requests_never_trigger_a_profile_fetch, ucp_negotiation::tests::the_profile_member_is_read_from_an_rfc_8941_dictionary, ucp_negotiation::tests::intersection_keeps_shared_capabilities_at_the_highest_mutual_version, ucp_negotiation::tests::orphaned_extensions_are_pruned_transitively, ucp_negotiation::tests::platform_profiles_must_have_the_required_registries, ucp_negotiation::tests::strict_negotiation_reports_each_failure_with_its_code, ucp_negotiation::tests::profiles_and_failures_are_cached_per_url, ucp_negotiation::tests::the_cache_is_bounded, outbound::tests::private_and_special_addresses_are_not_public, outbound::tests::loopback_and_private_hosts_are_refused_before_connecting, outbound::tests::only_https_urls_without_credentials_or_fragments_are_accepted, outbound::tests::cache_lifetime_honours_max_age_within_the_cap` |
| Embedded transport | optional | When EMBEDDED_CHECKOUT_URL and signing keys are configured, shopping services advertise a transport: embedded binding and the dev.ucp.shopping.checkout.embedded flag, and POST /api/v1/ucp/checkout/:id/embedded-link returns a short-lived handoff URL on the merchant’s hosted page whose token is an Ed25519 signature verifiable with the discovery JWK (404 for an unknown checkout). Unconfigured, neither is advertised and the endpoint returns 501 NOT_CONFIGURED | discovery tests: well_known_ucp_advertises_embedded_transport, embedded_transport_is_not_advertised_without_a_hosted_checkout_url, embedded_transport_is_not_advertised_without_signing_keys, ucp_checkout_embedded_link_points_at_the_hosted_page_with_a_verifiable_token, ucp_checkout_embedded_link_returns_501_when_not_configured; ucp_mapping::tests::embedded_checkout_token_cannot_be_moved_to_another_session |
Negotiation decisions the specification leaves open. Each takes the conservative option: existing clients keep working, failures close, and nothing is advertised that is not served.
- Default mode
off. The specification makes negotiation a business MUST, but before this the REST binding never requiredUCP-Agent, so enforcing it by default would break existing clients and add outbound calls from every replica. Operators opt in;lenientlets them watch whatstrictwould refuse before switching. Discovery does not change with the mode. version_unsupportedbody. The specification shows two shapes. REST uses the error table’s flat{code, content}with422, like the other negotiation errors.- Cache lifetime. Only a 60 s floor is specified. Profiles are capped at 1 h so a changed profile is picked up. Failed fetches are cached for 15 s, so a dead URL does not turn every request into a fetch. At most 256 URLs are cached per replica.
- Limits and timeouts. The specification gives no numbers. Profiles are capped at 256 KiB (the specification requires at least 128 KiB); connect times out after 3 s, the whole fetch after 5 s.
- Order of checks. Authentication comes before negotiation, so unauthenticated callers cannot trigger outbound fetches.
- Fetch-safety failures. A non-HTTPS URL, or a host that resolves to a private or special-use address, is
invalid_profile_url(400). A redirect or any other non-200status isprofile_unreachable(424). A body over the size cap isprofile_malformed(422). - Version scope. A platform version must exactly equal
2026-08-25or asupported_versionskey. Capabilities are served only at2026-08-25, so a platform listing only older capability versions negotiates none, and instrictmode its operations getcapabilities_incompatible. - Lenient on an incompatible operation. The request runs without negotiation and the full envelope is returned, rather than an envelope that omits the operation’s own capability.
UCP 2026-08-25 features not yet implemented
These are part of the current UCP release and are not advertised in discovery. Each is a real gap, not out of scope.
| Capability | Status | Notes |
|---|---|---|
$requestConstraints, PAN / network-token credential split | not_supported_yet | Checkout uses the orchestrator-native payment_intent |
Split payments, payment terms (dev.ucp.common.payment.*) | not_supported_yet | Single instrument per checkout |
dev.ucp.common.payment.ap2_mandates | not_supported_yet | AP2 mandates are verified via payment_intent.ap2_consent_proof, not the UCP extension. Over UCP’s A2A binding a message carrying ap2.checkout_mandate is refused (-32602) rather than completed without the check, and no ap2.merchant_authorization is returned |
Location search / lookup (dev.ucp.common.location.*) | not_supported_yet | No store-location provider contract |
Fractional quantities (measure.json, sale basis) | not_supported_yet | Quantities are integers |
Buyer consent (dev.ucp.consent.*), loyalty, policies, attribution, permalink | not_supported_yet |
UCP A2A binding
UCP’s A2A transport for checkout (specification/shopping/checkout/a2a) is carried by the A2A endpoints: JSON-RPC message/send at /api/v1/a2a/jsonrpc (the A2A 0.3 shape the binding’s examples and transports/a2a_message.json use) and HTTP+JSON / JSON-RPC SendMessage with A2A-Version: 1.0. Every action runs the same run_ucp_* code as the REST and MCP bindings. See consumption guide.
| Capability | Status | Implementation | Tests |
|---|---|---|---|
| Discovery entry | required | ucp.services["dev.ucp.shopping"] lists transport: a2a with the profile version, the overview spec and endpoint {base}/.well-known/agent-card.json, and no schema (UCP defines none for A2A). Always served, so always listed | ucp_a2a_binding_test::discovery_lists_the_a2a_transport_pointing_at_the_agent_card, ucp_profile_schema_test::only_bindings_we_implement_are_listed_as_ucp_transports |
| Agent Card extension | required | capabilities.extensions[] carries uri: https://ucp.dev/2026-08-25/specification/reference with params.capabilities["dev.ucp.shopping.checkout"] = [{version}] (validates against transports/a2a_message.json#/$defs/agent_card), plus a ucp-checkout skill. The extension is not required, so the native envelopes keep working | ucp_a2a_binding_test::the_agent_card_advertises_the_ucp_extension_and_checkout_skill |
| Extension activation | required | A2A-Extensions or X-A2A-Extensions naming the UCP URI is echoed on the response under the same name | ucp_a2a_binding_test::the_activated_extension_is_echoed, ucp_a2a_binding_test::the_http_json_binding_carries_ucp_checkouts_too |
| Actions | required | add_to_checkout (product_id, quantity) and complete_checkout (a2a.ucp.checkout.payment, a2a.ucp.checkout.signals) as the binding defines them; create_checkout, get_checkout, update_checkout, cancel_checkout mirror the MCP tool names with the body under a2a.ucp.checkout (the binding names no other actions). The reply’s DataPart holds the checkout under a2a.ucp.checkout; completion adds order { id, permalink_url }. Replies validate against transports/a2a_message.json#/$defs/message_response and shopping/checkout.json | ucp_a2a_binding_test::a_checkout_built_over_a2a_completes_and_reads_back_over_rest_and_mcp, ucp_a2a_binding_test::create_update_and_cancel_take_a_ucp_checkout_body |
| Session model | required | The business agent generates contextId: it is the checkout id, so a checkout is one resource across REST, MCP and A2A, and a checkout created over REST is driven over A2A by sending its id as contextId (or id in the DataPart). add_to_checkout on a context with no checkout (or a cancelled one) starts a new one | ucp_a2a_binding_test::a_checkout_created_over_rest_is_driven_over_a2a |
| Merchant and currency | required | add_to_checkout carries neither: the merchant is UCP_DEFAULT_MERCHANT_ID (or merchant_id in the DataPart), the currency currency in the DataPart else UCP_CATALOG_CURRENCY, else a currency_required error response | ucp_a2a_binding_test suite (deployment with both set) |
| Platform profile | required | UCP-Agent: profile="..." must be an http(s) URL, else -32001 (data.code: invalid_profile_url), or HTTP 400 INVALID_PROFILE_URL (domain ucp.dev) on HTTP+JSON. The profile is not fetched | ucp_a2a_binding_test::a_missing_platform_profile_is_a_discovery_error |
| Idempotency | required | messageId is the idempotency key: a retried mutating message is answered with the first reply (per replica, last 10,000 messages per process); the same messageId with a different message is -32000 / HTTP 409 IDEMPOTENCY_CONFLICT. Completion also uses the checkout runner’s durable key a2a-ucp:<messageId> | ucp_a2a_binding_test::a_retried_message_is_applied_once |
| Business errors | required | Unknown checkout and validation or payment failures: a normal reply whose a2a.ucp.checkout is a UCP error response (ucp.status: error, messages[]), valid against common/types/error_response.json | ucp_a2a_binding_test::an_unknown_checkout_is_a_ucp_error_response |
| Protocol errors | required | 401/403/409 → -32000 with the HTTP status kept, server faults → -32603; an unknown action, a message with no action, or an AP2 mandate → -32602 | ucp_a2a_binding_test::messages_the_binding_does_not_define_are_invalid_params, ucp_a2a_binding_test::a_retried_message_is_applied_once |
| Tenant isolation | required | Another tenant’s checkout (get, add, cancel, complete) → HTTP 403, -32000, data.reason: TENANT_MISMATCH; add_to_checkout never starts a new checkout over it | ucp_a2a_binding_test::another_tenants_checkout_is_refused |
| Metrics | required | orchestrator_operation_calls_total / orchestrator_operation_latency_seconds with operation="a2a_ucp_<action>" and status = success or the error kind; counters a2a_ucp_replay_total, a2a_ucp_idempotency_conflict_total, a2a_ucp_invalid_profile_total, a2a_ucp_extension_activated_total, a2a_ucp_signals_received_total, a2a_ucp_ap2_mandate_refused_total | ucp_a2a_binding_test::ucp_actions_are_counted_timed_and_errors_labelled_by_kind |
| Cart, catalog and order over A2A | not_supported_yet | UCP defines A2A bindings for checkout only; cart, catalog and order have REST and MCP bindings | conformance review |
| Risk signals | optional | a2a.ucp.checkout.signals is accepted and counted, not forwarded: no provider contract takes it | conformance review |
| Tasks in UCP’s A2A binding | optional | The binding allows Task objects; this agent always replies with a Message | conformance review |
UCP MCP binding
UCP’s MCP transport (services/shopping/mcp.openrpc.json, vendored in crates/orchestrator-http/tests/fixtures/ucp/2026-08-25/services/shopping) is served at POST /api/v1/ucp/mcp, apart from the orchestrator’s native MCP server, because both define create_cart, get_cart and get_order with different arguments. See MCP binding.
| Capability | Status | Implementation | Tests |
|---|---|---|---|
| Discovery entry | required | ucp.services["dev.ucp.shopping"] lists transport: mcp with the profile version, the overview spec, the official OpenRPC schema and endpoint {base}/api/v1/ucp/mcp. The binding is always served, so it is always listed | ucp_mcp_binding_test::discovery_lists_the_mcp_transport_under_dev_ucp_shopping, ucp_profile_schema_test::only_bindings_we_implement_are_listed_as_ucp_transports |
| Tool definitions | required | tools/list is derived from the vendored OpenRPC: one tool per method, inputSchema = the method’s params (with meta inlined), outputSchema = its result schema | ucp_mcp_binding_test::tools_list_matches_the_openrpc_methods_and_param_schemas |
| Checkout tools | required | create_checkout, get_checkout, update_checkout, complete_checkout, cancel_checkout run the same run_ucp_* code as the REST binding; complete_checkout pays with checkout.payment.instruments[0] and returns the checkout with status: completed and order { id, permalink_url } | ucp_mcp_binding_test::checkout_lifecycle_returns_ucp_checkouts_and_an_order |
| Cart and order tools | required | create_cart, get_cart, update_cart, cancel_cart, get_order | ucp_mcp_binding_test::cart_lifecycle_returns_ucp_carts, ucp_mcp_binding_test::checkout_lifecycle_returns_ucp_checkouts_and_an_order |
| Result shape | required | The UCP payload is in structuredContent and serialized in content[0].text; payloads validate against shopping/{checkout,cart,order}.json | every lifecycle test (assert_valid) |
| Request metadata | required | meta["ucp-agent"].profile must be an http(s) URL, else -32001 with data.code: invalid_profile_url and HTTP 400. With UCP_PROFILE_NEGOTIATION enabled the profile is fetched and negotiated as on REST (see Platform profile negotiation) | ucp_mcp_binding_test::a_missing_platform_profile_is_a_discovery_error, ucp_negotiation_test::mcp_reports_negotiation_failures_as_discovery_errors |
| Idempotency | required | complete_checkout, cancel_checkout and cancel_cart require a UUID meta["idempotency-key"] (-32602 otherwise). A completed checkout replays its outcome for the same key; a key already spent on another checkout is -32000 with HTTP 409; cancelling twice returns the canceled resource | ucp_mcp_binding_test::complete_checkout_needs_a_uuid_idempotency_key, ucp_mcp_binding_test::reusing_a_key_for_another_checkout_is_a_conflict, ucp_mcp_binding_test::cancel_checkout_is_idempotent_and_needs_a_key, ucp_mcp_binding_test::cart_lifecycle_returns_ucp_carts |
| Business errors | required | Unknown checkout, cart or order: a result whose structuredContent is a UCP error response (ucp.status: error, messages[] with code: not_found, severity: unrecoverable); validation and payment failures likewise, recoverable | ucp_mcp_binding_test::an_unknown_resource_is_a_ucp_error_response |
| Protocol errors | required | 401/403/409 → -32000, server faults → -32603, each with the matching HTTP status and data.code; bad tool arguments or an unknown tool → -32602; unknown method → -32601; unsupported MCP-Protocol-Version → HTTP 400, -32022 | ucp_mcp_binding_test::a_caller_without_credentials_gets_a_json_rpc_401, ucp_mcp_binding_test::arguments_that_break_the_binding_are_invalid_params, ucp_mcp_binding_test::initialize_ping_and_notifications_follow_mcp |
| Tenant isolation | required | Another tenant’s cart or checkout → HTTP 403, -32000, data.code: TENANT_MISMATCH; another tenant’s order → 403, -32000 | ucp_mcp_binding_test::another_tenants_cart_checkout_and_order_are_refused |
| MCP lifecycle | required | initialize (echoes a supported protocolVersion), ping, server/discover, tools/list, tools/call; notifications get HTTP 202 | ucp_mcp_binding_test::initialize_ping_and_notifications_follow_mcp |
| Metrics | required | Every tool call is counted and timed as orchestrator_operation_calls_total / orchestrator_operation_latency_seconds with operation="ucp_mcp_<tool>" and status = success or the error kind (not_found, tenant_mismatch, invalid_params, invalid_profile_url, …) | ucp_mcp_binding_test::tool_calls_are_counted_timed_and_errors_labelled_by_kind |
| Native MCP server unchanged | required | /api/v1/mcp/message keeps its own tools | ucp_mcp_binding_test::the_native_mcp_server_keeps_its_own_tools |
| Catalog tools | required | search_catalog, lookup_catalog and get_product return UCP products (one variant per catalog item) that validate against shopping/catalog_search.json / catalog_lookup.json; lookup variants carry inputs[] and misses are not_found warnings; an unknown product is a not_found error response. Prices are in context.currency, else UCP_CATALOG_CURRENCY, else a currency_required error response | ucp_mcp_binding_test::search_catalog_returns_ucp_products_priced_in_the_request_or_configured_currency, ucp_mcp_binding_test::lookup_catalog_correlates_inputs_and_reports_misses, ucp_mcp_binding_test::get_product_returns_one_product_or_not_found, config::tests::catalog_currency_is_an_upper_case_iso_code_or_unset |
| Merchant for UCP carts and checkouts | required | UCP has no merchant field: the body’s merchant_id wins, then UCP_DEFAULT_MERCHANT_ID; with neither, merchant_required (MCP error response) / 400 MERCHANT_REQUIRED (REST) | ucp_mcp_binding_test::a_default_merchant_lets_platforms_omit_merchant_id, v1::tests::a_body_merchant_wins_over_the_default, v1::tests::the_default_merchant_fills_in_when_the_body_has_none, v1::tests::without_either_the_error_names_the_setting |
Catalog search filters and pagination | not_supported_yet | Ignored; every match is returned. Variants, options, media and availability beyond one priced variant per item are not modelled by the catalog provider contract | |
| Streaming (SSE) responses | not_supported_yet | Every response is a single JSON body; no text/event-stream |
Fulfillment (UCP)
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Fulfillment capability discovery | required | dev.ucp.shopping.fulfillment extends both dev.ucp.shopping.checkout and dev.ucp.shopping.cart in the latest profile, and is flagged in orchestrator.capability_flags["dev.ucp.shopping.fulfillment"] | discovery_test::well_known_ucp_advertises_fulfillment_extension |
| Fulfillment selection command | required | SetFulfillmentSelection cart command quotes shipping/pickup options for a destination and, when selected_option_id is provided, selects an option and adds its amount_minor into total_minor via fulfillment_minor | orchestrator-core fulfillment unit tests; runner.rs |
| REST fulfillment endpoint | required | POST /api/v1/ucp/cart/:id/fulfillment and POST /api/v1/ucp/checkout/:id/fulfillment accept a destination + optional selected_option_id and return the updated UCP cart envelope with a fulfillment object and fulfillment_minor | api_integration_test::ucp_cart_fulfillment_quotes_and_selects_shipping_option |
| Fulfillment wire shape | required | The fulfillment object on cart and checkout responses validates against UCP 2026-08-25 shopping/types/fulfillment.json: typed destinations[] (shipping_address / business_location), option description object and totals[] | ucp_fulfillment_schema_test suite |
| Unknown option rejected | required | Selecting an selected_option_id not present in the quoted options for the method type returns an error, not a silent no-op | orchestrator-http fulfillment tests |
| Fulfillment metrics | required | Fulfillment selection increments cart_fulfillment_selection_total and is recorded under the generic cart_set_fulfillment operation counter/latency histogram | api_integration_test::ucp_cart_fulfillment_quotes_and_selects_shipping_option (/metrics assertions) |
Payment authentication (3DS2)
3DS2 step-up needs the payment provider: it answers authorize with authentication_required and serves the buyer-facing pages (see providers and docs/providers/openapi.yaml). The orchestrator pauses the checkout, shows the step-up to the agent in each protocol’s own shape, and resumes when the result is known.
sequenceDiagram
participant A as Agent / platform
participant O as Orchestrator
participant P as Payment provider
A->>O: complete (UCP REST/MCP, ACP)
O->>P: POST /authorize
P-->>O: authorized=false, authentication_required
O-->>A: UCP complete_in_progress + actions / ACP authentication_required
Note over A,P: Buyer finishes device data collection or the challenge on the provider's page
alt UCP
A->>O: Get Checkout (after action.done)
O->>P: GET /authentication/{id}
P-->>O: completed, result
else ACP
A->>O: complete with authentication_result
end
O->>P: POST /authentication/{id}/authorize
P-->>O: authorized
O-->>A: completed + order
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Provider contract | optional | PaymentProvider gains defaulted supports_authentication, authorize_with_authentication, authentication_status, authorize_authenticated; existing providers are unchanged and never step up. The HTTP adapter reads authentication_required on /authorize and calls GET /authentication/{id} and POST /authentication/{id}/authorize (key <checkout key>:authenticated), only with PAYMENT_AUTHENTICATION_ENABLED=true | payment_authentication_http_test, openapi_spec_test |
| Paused checkout | required | A step-up stops the checkout in AuthenticationPending (TransactionStatus::AuthenticationRequired, PaymentState::AuthenticationPending), records the request and the pause (event store PaymentAuthenticationRequired, checkout_authentication store: memory, file, Postgres migration 0013), keeps the reservation, and answers the idempotency key with the pending step-up | payment_authentication::a_challenge_pauses_checkout_with_the_step_up_and_no_order, payment_authentication::retrying_the_same_key_while_waiting_returns_the_pending_action, payment_authentication::a_pending_authentication_survives_a_restart |
| Resume | required | The provider’s result (read when the checkout is read) or an agent-submitted result resumes the checkout once: authorize, commit, capture, order, receipt; the original key then replays the final outcome. Resumes are claimed in the idempotency store, so replicas cannot place two orders | payment_authentication::the_provider_result_resumes_checkout_to_an_order, payment_authentication::a_submitted_result_resumes_checkout_once |
| Fail closed | required | Outcomes other than authenticated / attempt_acknowledged, an expired pause (15 minutes), a cart changed during authentication, or a step-up from a provider that did not declare 3DS2 support end the checkout unpaid (AuthFailed / TimedOut) | payment_authentication::a_denied_authentication_fails_the_checkout, an_expired_authentication_times_out, a_cart_changed_during_authentication_is_not_charged, step_up_from_a_provider_that_does_not_support_it_fails_closed |
UCP actions | optional | dev.ucp.common.payment.authentication (extends checkout) is advertised only with a 3DS-capable provider. A paused checkout is complete_in_progress with actions["dev.ucp.common.payment.device_data_collection"] and/or ["dev.ucp.common.payment.three_ds_challenge"] (id, config.payment_instrument_id, config.url), payment.instruments[], and the extension listed in ucp.capabilities, on REST, MCP and A2A (shared run_ucp_complete_checkout / run_ucp_get_checkout); Get Checkout completes it (completed + order) or reports payment_failed. Responses validate against the vendored common/payment_authentication.json | ucp_payment_authentication_test, ucp_a2a_binding_test::a_3ds_step_up_is_a_payment_authentication_action_over_a2a |
| Actions follow negotiation | required | With UCP_PROFILE_NEGOTIATION lenient or strict, REST and MCP responses carry the actions only when the platform negotiated dev.ucp.common.payment.authentication; otherwise, and on a lenient fallback, the actions, payment and the extension are removed and the checkout shows its cart status with a recoverable payment_failed message. The A2A binding does not negotiate profiles, so it behaves as off | ucp_negotiation_test::payment_actions_are_sent_when_the_extension_is_negotiated, payment_actions_are_withheld_when_the_extension_is_not_negotiated, a_lenient_fallback_does_not_send_payment_actions_either |
| ACP delegate authentication | optional | Complete Checkout Session (REST and ACP MCP, shared routes/acp.rs) returns the CheckoutSession with status: authentication_required, authentication_metadata and a requires_3ds message; Retrieve shows the same. Completing again with authentication_result resumes it: completed with the order, or 402 payment_declined (Retrieve then shows a payment_declined message). A result with nothing pending is 409 authentication_not_pending | acp_delegate_authentication_test |
| Metrics | required | payment_authentication_challenges_total, payment_authentication_outcome_<outcome>_total (incl. expired), payment_authentication_unsupported_total, payment_authentication_cart_changed_total, time to authenticate as orchestrator_operation_latency_seconds{operation="payment_authentication"}, plus checkout_outcome / checkout_authentication_submit operations | payment_authentication::outcomes_and_time_to_authenticate_are_recorded |
Decisions where the specs leave room (conservative by design):
- UCP extension negotiation. UCP says a business must not emit these actions unless the extension is active for the checkout. With negotiation
lenientorstrictthey are withheld unless negotiated (and on a lenient fallback, which negotiates nothing). With negotiationoff(the default) and on the A2A binding, which does not negotiate, the extension counts as active whenever it is advertised. - Withheld actions. A checkout whose platform did not negotiate the extension cannot finish its 3DS2 step-up, so it is shown at its cart status with a recoverable
payment_failedmessage rather thancomplete_in_progress; completing again with another instrument starts a new checkout attempt. The paused attempt expires after 15 minutes. - UCP action failures. The spec defers the status after a failed authentication to its general fallback rules. A failed, denied or expired authentication leaves the checkout at its cart status with a
payment_failederror (severity: recoverable); the platform may complete again with another instrument. - No
continue_urlfallback. A provider that asks for 3DS2 without declaring support declines the payment rather than handing off withrequires_escalation. - Instrument id. Actions point at the instrument id from the complete request (MCP
payment.instruments[0].id, RESTpayment_instrument_id), echoed underpayment.instruments; without one,instrument_1. - ACP outcomes. Only
authenticatedandattempt_acknowledgedauthorize;informationaland every failure outcome decline.outcome_detailsis required forauthenticated,attempt_acknowledgedandinformational, and an ECI must be one of01,02,05,06,07. - ACP metadata.
authentication_metadatais shown only when the provider sent bothacquirer_detailsanddirectory_server;flow_preferenceis never set, leaving the flow to the issuer. - Timeout. A pause expires after 15 minutes (
OrchestratorFacade::with_payment_authentication_ttl); the inventory reservation is refreshed on resume.
Final checkouts
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Terminal status read back | required | A completed checkout reads back completed with its order (UCP REST, MCP, A2A; ACP REST and MCP); a canceled one canceled. The cart records it (CartStatus::Completed, order_id, CheckoutCompleted event) | checkout_terminal_status_test::a_completed_ucp_checkout_reads_back_completed_on_rest_and_mcp, a_completed_acp_session_reads_back_completed_with_its_order, a2a_add_to_checkout_after_completion_is_refused |
| No changes after the end | required | Updates, adds, cancel and a second complete under a new key are refused for completed and canceled checkouts: UCP REST 409 CHECKOUT_COMPLETED / CART_CANCELED; UCP MCP and A2A an unrecoverable business error checkout_completed / cart_canceled; ACP 409 checkout_session_completed / checkout_session_canceled, cancel after completion 405 session_not_cancelable. A retry with the original key still replays the outcome | checkout_terminal_status_test |
Transport: REST
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Cart commands | required | POST /api/v1/cart/commands accepts create_cart, add_item, update_item_qty, remove_item, apply_adjustment, get_cart, start_checkout | Integration tests, consumption-guide |
| UCP cart shim | required | POST/GET/PUT /api/v1/ucp/cart paths create, retrieve, update, and cancel carts with UCP envelopes | api_integration_test |
| UCP REST binding paths | required | Every operation in UCP services/shopping/rest.openapi.json is reachable relative to the advertised /api/v1/ucp endpoint: /checkout-sessions (+ /{id}, /complete, /cancel), /carts (+ /{id}, /cancel), /catalog/{search,lookup,product}, /orders/{id}. The older /ucp/checkout and /ucp/cart paths remain as aliases | ucp_rest_binding_test suite |
| UCP checkout lifecycle | required | Checkout sessions create/get/update/complete/cancel map to cart + checkout execute, and their envelopes name dev.ucp.shopping.checkout (not cart) as the root capability | ucp_rest_binding_test::checkout_sessions_lifecycle_is_served_at_the_binding_paths |
| Checkout execute | required | POST /api/v1/checkout/execute with cart_id, cart_version, payment_intent, idempotency_key returns transaction result | happy_path, authz tests |
| Payment lifecycle | required | POST /api/v1/payments/{capture,void,refund} with tenant_id, transaction_id, idempotency_key | API tests |
| Payment-handler registry | required | Discovery advertises handlers; GET /api/v1/ucp/payment-handlers lists/gets configured handlers | discovery tests |
| Auth and tenant isolation | required | Bearer auth in production; tenant_id and scope checks; cross-tenant idempotency isolation; carts are stamped with the caller’s tenant at creation and cross-tenant read/mutate/cancel/checkout returns 403 TENANT_MISMATCH; payment delegation and identity linking take the tenant from the auth context, not the body | authz_and_adapters, cross_tenant_idempotency, cart_tenancy, honest_discovery_test::delegate_payment_refuses_a_tenant_the_caller_is_not |
| UCP response bodies | required | Cart, checkout session and order bodies validate against UCP 2026-08-25 shopping/{cart,checkout,order}.json: line item {id,title,price} + totals[], integer totals[] with one subtotal and one total, checkout status vocabulary + links[] + ucp.payment_handlers, order checkout_id, fulfillment, line quantity object and status | ucp_response_schema_test suite |
Transport: A2A / MCP (adapter layer)
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| A2A envelope normalization | required | Incoming A2A envelope (capability + payload) normalizes to CheckoutRequest / CartCommand; same authz and idempotency rules apply | a2a_adapter tests |
| A2A-Version negotiation | required | Accept A2A-Version (1.0, 0.3); reject unsupported with supported list | authz_and_adapters, discovery_test |
| Identity-linking envelope normalization | required | Incoming identity-linking envelope normalizes into identity-link request and rejects unsupported capabilities | authz_and_adapters |
| A2A order query envelope | required | POST /api/v1/a2a/orders accepts A2A envelope with payload.order_id and returns order details | api_integration_test |
| MCP dual-era tool server | required | Legacy initialize (2024-11-05/2025-11-25); modern server/discover + MCP-Protocol-Version / _meta for 2026-07-28 | orchestrator-mcp tests |
| MCP Streamable HTTP: Origin | required | 2026-07-28: an Origin header not listed in MCP_ALLOWED_ORIGINS (default: none; * allows any) is refused with 403 and a JSON-RPC error without id, before authentication, on every MCP endpoint. Requests without Origin (server-side agents) are served | mcp_transport_test::a_foreign_origin_is_refused_with_403_by_default, mcp_transport_test::a_listed_origin_is_served, mcp_transport_test::origin_is_checked_before_authentication, mcp_transport_test::a_request_without_origin_is_served, config::tests::mcp_allowed_origins_default_to_none_and_are_validated |
| MCP Streamable HTTP: request headers | required | 2026-07-28: MCP-Protocol-Version must be supported (400, -32022 with supported/requested) and match _meta (400, -32020); Mcp-Method must equal method and Mcp-Name must equal params.name (tools/call, prompts/get) or params.uri (resources/read), Base64 sentinel form decoded; missing or different → 400, -32020 | mcp_transport_test suite |
| MCP Streamable HTTP: responses | required | 2026-07-28: unknown method → 404, -32601; notifications → 202, no body; results carry resultType, list/discovery results ttlMs and cacheScope; GET/DELETE → 405; no Mcp-Session-Id issued | mcp_transport_test::a_modern_unknown_method_is_404_with_32601, mcp_transport_test::a_notification_is_accepted_with_202_and_no_body, mcp_transport_test::a_conforming_modern_request_is_served_as_a_complete_cacheable_result, mcp_transport_test::get_and_delete_are_405 |
| MCP Streamable HTTP: back-compat | required | 2025-11-25, 2024-11-05 and version-less requests need no Mcp-Method/Mcp-Name, keep HTTP 200 for unknown methods and undecorated results; a client Mcp-Session-Id is ignored | mcp_transport_test::legacy_clients_need_no_mcp_method_or_name, mcp_transport_test::a_legacy_unknown_method_keeps_its_200, mcp_transport_test::a_session_id_from_a_legacy_client_is_ignored |
| MCP tool definitions | required | All facade operations exposed as MCP tools with JSON Schema input definitions, including set_fulfillment_selection (quote-only when selected_option_id is omitted). See MCP binding | tools::tests::tools_list_includes_set_fulfillment_selection, tools::tests::set_fulfillment_selection_with_an_option_prices_the_cart |
| MCP resource definitions | required | order://{id} and cart://{id} resources readable via resources/read | orchestrator-mcp tests |
| MCP endpoint in discovery | required | /.well-known/ucp → orchestrator.mcp_endpoint and orchestrator.mcp_supported_versions | discovery tests |
| A2A 1.0 Agent Card | required | GET /.well-known/agent-card.json carries every required AgentCard field, three interfaces (HTTP+JSON 1.0 at /api/v1/a2a, JSONRPC 1.0 and JSONRPC 0.3 at /api/v1/a2a/jsonrpc), capabilities.streaming: true, only the skills this deployment can run, and Bearer securitySchemes/securityRequirements when auth is required; linked from /.well-known/ucp as orchestrator.a2a_agent_card | a2a_binding_test::the_agent_card_has_every_required_field, a2a_binding_test::the_agent_card_lists_only_skills_this_deployment_can_run, a2a_binding_test::the_agent_card_declares_bearer_auth_when_the_deployment_requires_it |
| A2A 1.0 SendMessage (HTTP+JSON) | required | POST /api/v1/a2a/message:send requires A2A-Version: 1.0, takes a ROLE_USER message whose DataPart carries a capability envelope, runs it through the same normalizers and policy as /a2a/*, and replies application/a2a+json with a ROLE_AGENT message (contextId preserved). Errors are google.rpc.Status with ErrorInfo (VERSION_NOT_SUPPORTED, INVALID_PARAMS, UNSUPPORTED_OPERATION, TASK_NOT_FOUND) | a2a_binding_test suite |
| A2A task operations | required | The agent never creates tasks, so GetTask, CancelTask and SubscribeToTask (POST as the spec text says, GET as a2a.proto says) return 404 TASK_NOT_FOUND, and ListTasks (GET /api/v1/a2a/tasks) is always empty | a2a_binding_test::tasks_are_never_created_so_task_operations_report_not_found, a2a_binding_test::list_tasks_is_always_empty |
A2A streaming (SendStreamingMessage) | required | POST /api/v1/a2a/message:stream (and JSON-RPC SendStreamingMessage / 0.3 message/stream) runs the same operation as SendMessage and answers text/event-stream with one data: event holding a StreamResponse {"message": ...}, then closes: A2A 1.0 §3.1.2 says a Message stream “MUST contain exactly one Message object and then close immediately”, so no task lifecycle is needed. Failures are found before the stream opens and answered as ordinary error responses (A2A 1.0 defines no in-stream error for HTTP+JSON). Metrics: operation="a2a_send_streaming_message", gauge orchestrator_open_streams{stream="a2a_message_stream"} | a2a_binding_test::send_streaming_message_streams_exactly_one_agent_message_then_closes, a2a_binding_test::send_streaming_message_reports_failures_before_the_stream_opens, a2a_binding_test::streams_are_counted_timed_and_tracked_as_open_streams, a2a_binding_test::jsonrpc_send_streaming_message_wraps_the_one_event_in_a_response |
| A2A JSON-RPC binding | required | POST /api/v1/a2a/jsonrpc: A2A 1.0 methods (SendMessage, SendStreamingMessage, GetTask, ListTasks, CancelTask, SubscribeToTask, push config methods, GetExtendedAgentCard) with A2A-Version: 1.0, and the 0.3 methods (message/send, message/stream, tasks/*) with 0.3 message shapes when no version is sent. Codes per A2A 1.0 §5.4: -32001 task not found, -32003 push notifications, -32004 unsupported operation, -32009 version, plus JSON-RPC -32700/-32600/-32601/-32602. Metrics: operation="a2a_jsonrpc_<method>" | a2a_binding_test::jsonrpc_send_message_answers_with_an_agent_message, a2a_binding_test::jsonrpc_speaks_the_a2a_0_3_message_shape_on_message_send, a2a_binding_test::jsonrpc_errors_use_the_a2a_error_codes, a2a_binding_test::jsonrpc_calls_are_counted_by_method_and_error_kind |
| A2A push notifications | not_supported_yet | Push configs are keyed by task and this agent creates none; declared pushNotifications: false, and every /tasks/{id}/pushNotificationConfigs operation answers 400 PUSH_NOTIFICATION_NOT_SUPPORTED (§3.3.4) | a2a_binding_test::push_notification_configs_are_not_supported |
| A2A extended agent card | not_supported_yet | Everything is on the public card; declared extendedAgentCard: false, and GET /api/v1/a2a/extendedAgentCard answers 400 UNSUPPORTED_OPERATION | a2a_binding_test::the_extended_agent_card_is_not_offered |
| A2A gRPC binding | not_supported_yet | Needs a protobuf/gRPC server stack beside axum for no new capability; HTTP+JSON and JSON-RPC cover the same operations | conformance review |
| A2A card signatures | not_supported_yet | Needs RFC 8785 canonicalization with proto3 default-stripping over the card, which no test vector pins down; the card is served over TLS and signed responses carry RFC 9421 signatures | conformance review |
| Delegated capability in handoff | optional | A2AHandoffProfile carries protocol, selected profile version, delegated_capability, and supported profile versions | adapters.rs, authz_and_adapters |
ACP (Agentic Commerce Protocol)
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| API-Version header | required | Require API-Version: 2026-04-17; mismatch/missing returns error with supported_versions | api_integration_test |
| Mandatory Idempotency-Key header | required | Every mutating ACP route (checkout_sessions create/update/complete/cancel, delegate_payment, carts create/update/cancel) requires a non-empty Idempotency-Key header; missing/blank returns 400 with code: idempotency_key_required; the key is echoed on success | acp_rest_binding_test::headers_are_required_and_errors_are_acp_errors, api_integration_test::acp_delegate_payment_requires_an_idempotency_key |
| Checkout session bodies (2026-04-17) | required | POST /checkout_sessions (201), GET and POST /checkout_sessions/{id} (update; PUT kept) take CheckoutSessionCreateRequest / CheckoutSessionUpdateRequest and return CheckoutSession, all validated against the vendored 2026-04-17 schema; items are { id } units; tenant from authentication, merchant UCP_DEFAULT_MERCHANT_ID; earlier non-ACP fields are invalid_payload | acp_rest_binding_test::create_returns_201_and_a_checkout_session, acp_rest_binding_test::get_and_update_return_checkout_sessions, acp_rest_binding_test::a_pre_2026_04_17_body_is_an_invalid_request, acp_rest_binding_test::without_a_default_merchant_a_session_is_refused, acp_rest_binding_test::the_tenant_comes_from_authentication |
| Complete session | required | POST .../complete takes CheckoutSessionCompleteRequest (payment_data.handler_id, instrument.credential.token), pays the session total under the Idempotency-Key, and returns CheckoutSessionWithOrder; same key replays, a key spent on another session is 422 idempotency_conflict | acp_rest_binding_test::complete_returns_the_session_with_its_order_and_replays_by_key |
| Cancel session | required | Optional CancelSessionRequest body; a canceled session is 405 session_not_cancelable | acp_rest_binding_test::cancel_takes_an_optional_body_and_refuses_a_second_cancel |
| ACP errors | required | Checkout session and cart failures are ACP Error bodies (type, code, message, param) with the matching status (404 session_not_found, 403 forbidden, 405, 422, …) | acp_rest_binding_test::headers_are_required_and_errors_are_acp_errors, acp_rest_binding_test::an_unknown_session_is_404_session_not_found |
| ACP REST metrics | required | orchestrator_operation_calls_total / _latency_seconds with operation="acp_rest_<operation>", status = success or the ACP error code, plus the acp_checkout_session_*_total / acp_cart_*_total counters | acp_rest_binding_test::rest_calls_are_counted_timed_and_errors_labelled_by_code |
| Delegate payment | optional | POST /api/v1/acp/delegate_payment calls the configured PSP delegation adapter and returns the PSP’s delegated token (never the caller’s own); returns 501 with code: NOT_CONFIGURED when PAYMENT_DELEGATION_BASE_URL is unset | honest_discovery_test::delegate_payment_returns_the_psp_token_when_configured, honest_discovery_test::delegate_payment_returns_501_when_no_psp_delegation_is_configured |
| Cart Capability | required | POST/GET/PUT /api/v1/acp/carts (+ POST .../cancel) take CartCreateRequest / CartUpdateRequest and return Cart (validated against the vendored schema.cart.json), cart_-prefixed ids, priced in UCP_CATALOG_CURRENCY (400 currency_required when unset); PUT replaces the contents; a canceled cart is 404 not_found | acp_rest_binding_test::cart_lifecycle_uses_the_acp_cart_shapes, acp_rest_binding_test::a_cart_needs_a_configured_currency |
| Discovery document | required | GET /.well-known/acp.json returns protocol (name/version/supported_versions), api_base_url, transports (rest, mcp), and capabilities.services with checkout and carts; delegate_payment appears only when a delegation adapter is configured | discovery_test::well_known_acp_returns_200_and_manifest, honest_discovery_test::acp_discovery_hides_delegate_payment_until_a_psp_is_configured |
| Discovery advertisement (UCP) | required | /.well-known/ucp → orchestrator.acp_discovery points at /.well-known/acp.json (the 2026-04-08 profile still lists a transport: acp binding) | discovery_test::discovery_advertises_acp_signing_and_payment_handlers |
| ACP MCP transport binding: tools | required | POST /api/v1/acp/mcp serves exactly the five tools of the vendored spec/2026-04-17/openrpc/openrpc.agentic_checkout.json; inputSchema = the OpenRPC params with every $ref bundled into the tool’s $defs, outputSchema = the result schema. Delegate payment stays REST-only, as the binding scopes it out | acp_mcp_binding_test::tools_list_matches_the_openrpc_methods_with_bundled_schemas, acp_mcp_binding_test::the_input_schemas_accept_the_official_examples |
| ACP MCP transport binding: lifecycle | required | create, get, update, complete and cancel run the shared run_acp_* code of the REST binding; results are the ACP CheckoutSession / CheckoutSessionWithOrder (validated against the vendored 2026-04-17 schema), also given as MCP structuredContent and content[]; sessions are readable over REST | acp_mcp_binding_test::checkout_lifecycle_returns_acp_sessions_and_an_order, acp_mcp_binding_test::a_session_created_over_mcp_is_readable_over_rest, acp_mcp_binding_test::cancel_is_idempotent_and_takes_an_optional_payload |
| ACP MCP transport binding: inputs | required | meta.api_version negotiated like API-Version; payload validated against the ACP request schema (invalid_request / invalid_payload with a JSONPath param); merchant from meta.merchant_id, else UCP_DEFAULT_MERCHANT_ID, else merchant_required | acp_mcp_binding_test::a_payload_that_breaks_the_acp_schema_is_an_invalid_request, acp_mcp_binding_test::an_unsupported_api_version_lists_the_supported_ones, acp_mcp_binding_test::without_a_merchant_the_session_is_refused |
| ACP MCP transport binding: idempotency | required | complete replays by meta.idempotency_key, or by session when absent; a key spent on another session is idempotency_conflict; cancel is idempotent | acp_mcp_binding_test::completing_again_with_the_same_key_replays_the_order, acp_mcp_binding_test::completing_without_a_key_is_still_idempotent_per_session, acp_mcp_binding_test::a_key_spent_on_another_session_is_an_idempotency_conflict |
| ACP MCP transport binding: errors and tenancy | required | ACP errors are JSON-RPC -32000 with a schema-valid ACP Error in data; malformed calls -32602; another tenant’s session forbidden; MCP server auth failures are HTTP 401 | acp_mcp_binding_test::an_unknown_session_is_session_not_found, acp_mcp_binding_test::malformed_tool_calls_are_invalid_params, acp_mcp_binding_test::another_tenants_session_is_forbidden, acp_mcp_binding_test::a_caller_without_credentials_is_refused_at_the_mcp_server |
| ACP MCP transport binding: discovery | required | /.well-known/acp.json lists transports: ["rest", "mcp"] and validates against the vendored DiscoveryResponse schema; the endpoint URL is out of band, as ACP specifies | acp_mcp_binding_test::acp_discovery_lists_the_mcp_transport |
| ACP MCP transport binding: metrics | required | orchestrator_operation_calls_total / _latency_seconds with operation="acp_mcp_<tool>", status = success or the ACP error code | acp_mcp_binding_test::tool_calls_are_counted_timed_and_errors_labelled_by_code |
| Delegate payment body (2026-04-17) | not_supported_yet | POST /api/v1/acp/delegate_payment keeps its earlier token-exchange body. The 2026-04-17 DelegatePaymentRequest carries raw card data (payment_method.number) and an allowance, which is the PSP’s vault API: a merchant-side orchestrator should not receive card numbers | conformance review |
| AP2 / MPP on ACP complete | not_supported_yet | 2026-04-17 PaymentData has no room for the earlier payment_method_type, ap2_consent_proof and mpp_* fields, so ACP completes pay by handler token only; AP2 and MPP stay on /api/v1/checkout/execute | conformance review |
| Idempotent replay of create/update/cancel | not_supported_yet | Idempotency-Key is required and echoed on every mutating route, but only complete replays a stored outcome (Idempotent-Replayed is never sent); a retried create makes a new session | conformance review |
| Feed API | not_supported_yet | Agent-hosted feed push is out of scope for merchant middleware | conformance review |
| Native Orders enrichment | not_supported_yet | ACP’s order-enrichment fields (carrier tracking, fulfillment events pushed back into ACP orders) are not implemented; order data remains orchestrator-native via /api/v1/orders and /api/v1/ucp/orders | conformance review |
| Delegate authentication (3DS2), seller side | optional | See Payment authentication (3DS2): authentication_required + authentication_metadata + requires_3ds on REST and ACP MCP, then complete with authentication_result; intervention_types: ["3ds"] in acp.json only with a 3DS-capable payment provider | acp_delegate_authentication_test |
Delegate authentication provider API (/delegate_authentication) | not_supported_yet | The authentication-provider endpoints (create / authenticate / retrieve an authentication session with raw card data) belong to the agent’s authentication provider, typically a PSP; the orchestrator is the seller and does not proxy card numbers | conformance review |
Decisions where the specs are silent
Choices made where MCP 2026-07-28 or ACP 2026-04-17 leave the behaviour open, each the conservative one (fail closed, keep existing clients working, advertise only what is served):
| Topic | Decision |
|---|---|
MCP request without Origin | Served: server-side agents send none. A present Origin must be listed in MCP_ALLOWED_ORIGINS (default: none); same-origin is not trusted, as DNS rebinding controls Host |
MCP request without MCP-Protocol-Version | Treated as a pre-2025-06-18 client and served as before (the spec allows it), unless _meta names a version, which is 400, -32020 |
| MCP notification headers | Not defined by the revision: a notification is held only to the headers it sends |
| MCP cache hints | ttlMs: 300000, cacheScope: "private" on list/discover results (they depend on credentials); ttlMs: 0 on resources/read |
| ACP merchant | ACP has no merchant field: meta.merchant_id (MCP only), else UCP_DEFAULT_MERCHANT_ID, else merchant_required |
| ACP cart currency | ACP lets the seller choose: UCP_CATALOG_CURRENCY, else currency_required |
| ACP canceled cart | ACP carts have no status, so a canceled cart is 404 not_found |
ACP MCP complete without meta.idempotency_key | The session id is the key (acp-mcp-complete:{id}), so a retry replays instead of paying twice |
| ACP MCP results | The CheckoutSession is the result (ACP) and is repeated as structuredContent and content[] (MCP) |
| ACP payload fields without a backend | fulfillment_details, selected_fulfillment_options, discounts, intent_trace, buyer on create/update are validated, then ignored; purchase-order payments are unsupported_payment_method |
| ACP payment declined | 402, processing_error / payment_declined |
| ACP REST session update | POST as specified; the earlier PUT stays as an alias |
Order Query API
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Order retrieval by ID | required | GET /api/v1/orders/:id returns order with tenant isolation | api_integration_test |
| Tenant-scoped order listing | required | GET /api/v1/orders returns orders for the authenticated tenant, most recent first | api_integration_test |
| OrderStore list_by_tenant | required | All store implementations (InMemory, FileBacked, Postgres) support list_by_tenant | order.rs tests |
Webhook Event Delivery
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Webhook registration | required | POST /api/v1/webhooks registers a webhook with URL, secret, and optional event filter | api_integration_test |
| Webhook listing | required | GET /api/v1/webhooks returns tenant-scoped webhook registrations | api_integration_test |
| Webhook unregistration | required | DELETE /api/v1/webhooks/:id removes a webhook | api_integration_test |
| HMAC-SHA256 signing | required | WebhookDeliverer signs payloads with X-Webhook-Signature using the registration secret | webhooks.rs HMAC test |
| RFC 9421 signed webhooks (UCP) | required when signing keys are configured | With UCP signing keys configured, every delivery also carries Content-Digest and an RFC 9421 Signature-Input/Signature (sig1) by the active key, covering @method, @authority, @path, @query (when present), content-digest and content-type. It verifies against the discovery keys[] JWK. A delivery that cannot be signed is not sent and counts webhook_signing_failure_total | signed_webhooks::webhooks_carry_signatures_verifiable_with_the_published_keys, ucp_signing::a_signed_webhook_verifies_under_the_published_keys, ucp_signing::a_signed_webhook_covers_the_query_when_the_url_has_one, webhook_delivery_metrics_test::a_configured_signer_adds_message_signatures_beside_the_hmac, webhook_delivery_metrics_test::a_delivery_that_cannot_be_signed_is_not_sent_unsigned |
| Outbox delivery via webhooks | required | WebhookDeliverer implements OutboxDeliverer and delivers to matching registrations of the tenant that owns the event; the topic lookup is tenant-scoped in every store | webhooks.rs::a_topic_lookup_never_crosses_tenants, webhook_delivery_metrics_test::another_tenants_endpoint_is_not_called |
Catalog
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Catalog item lookup | required | GET /api/v1/catalog/items/:id and POST /api/v1/ucp/catalog/product return catalog item details | api_integration_test |
| Catalog batch lookup | required | POST /api/v1/ucp/catalog/lookup returns found products and UCP messages for misses | api_integration_test |
| Catalog search | required | POST /api/v1/ucp/catalog/search returns matching products through provider-backed search | api_integration_test, catalog_http_test |
| Discovery capability | required | Latest discovery advertises dev.ucp.shopping.catalog.lookup and dev.ucp.shopping.catalog.search | discovery_test |
AP2 (Agent Payments Protocol)
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Payment intent fields | required | CheckoutRequest.payment_intent accepts payment_handler_id and ap2_consent_proof; validation rejects empty handler_id when provided | contract.rs, validation.rs, authz_and_adapters |
| AP2 metadata extraction | required | extract_ap2_metadata(request) returns handler_id and consent_proof for logging/audit without PII | adapters.rs, pii.rs, authz_and_adapters |
| Mandate/credential verification (strict mode) | required when AP2 mode enabled | When AP2_STRICT=1: verify structured consent proof fields, signature presence, issuer trust policy, expiry, and payment_handler binding; reject on invalid or missing required artifacts | ap2_verification tests |
| AP2 0.2 HNP open/closed mandates | required | Open mandate (mandate.checkout.open.1) + closed payment mandate with amount/currency constraints; fail closed on constraint mismatch | authz_and_adapters |
| Replay protection for mandates | required | Mandate ID deduplication prevents AP2 consent proof replay until mandate expiry | authz_and_adapters replay test; runtime MandateDedupeStore |
MPP (Machine Payments Protocol)
| Capability | Status | Acceptance Criteria | Evidence |
|---|---|---|---|
| Payment intent MPP fields | required | CheckoutRequest.payment_intent accepts payment_method_type="mpp", mpp_method, and mpp_intent; MPP credentials are supplied in token_or_reference | contract.rs, validation.rs, authz_and_adapters |
| MPP metadata extraction for audit | required | Adapter extraction provides method/intent metadata without exposing credential payloads in logs | adapters.rs, authz_and_adapters |
| MPP capability flag in discovery | required | Discovery capability flags include dev.ucp.payments.mpp=true for staged rollout signaling | ucp_mapping.rs, discovery_test |
| Downstream payment adapter forwarding hints | optional | HTTP payment adapter forwards MPP context to downstream payment services (X-Payment-Method, X-Mpp-Method, X-Mpp-Intent) when payment method is MPP | integration-adapters/src/payment.rs, adapters_http_test |
| Payment challenge binding primitives | optional | MppChallenge binds with HMAC-SHA256 over the published draft-httpauth-payment vectors; credentials and receipts encode/decode as base64url JCS | orchestrator-api/src/mpp.rs, mpp_wire |
402 Payment challenge on checkout | optional | With MPP_CHALLENGE_SECRET set, an MPP POST /api/v1/checkout/execute without a credential gets 402, Cache-Control: no-store, an RFC 9457 payment-required problem, and WWW-Authenticate: Payment. The challenge is bound to realm, method, intent, a charge request (amount string, lowercase currency), expires, the body’s RFC 9530 digest, header="Payment-Authorization" and a nonce in opaque. Unconfigured, MPP checkouts are not challenged | mpp_checkout_test::an_mpp_checkout_without_a_credential_is_challenged, mpp_checkout_test::without_a_challenge_secret_mpp_checkout_is_not_challenged, mpp_checkout_test::other_payment_methods_are_not_challenged |
| Credential verification and single use | optional | The credential is read only from Payment-Authorization (one header, else 400). Its echoed challenge must match this request and verify under the secret; an unexpired, unused id is claimed once in the persisted replay store. Refusals are 402 with a fresh challenge: malformed-credential, invalid-challenge (edited, other body, reused), payment-expired, verification-failed (provider refused the proof) | mpp_checkout_test::a_credential_is_accepted_only_once, …::a_credential_cannot_pay_for_a_different_request, …::an_edited_challenge_is_refused, …::an_expired_challenge_is_refused, …::a_malformed_credential_is_refused_with_a_fresh_challenge, …::a_declined_proof_is_refused_with_a_fresh_challenge |
Payment-Receipt | optional | A completed MPP checkout carries Payment-Receipt (status: success, method, RFC 3339 timestamp, reference, challengeId) and Cache-Control: private; errors never carry one. Metrics: mpp_challenge_issued_total, mpp_receipt_issued_total, mpp_credential_rejected_<problem>_total, mpp_credential_check operation latency | mpp_checkout_test::a_valid_credential_completes_checkout_with_a_receipt, mpp_checkout_test::challenges_receipts_and_rejections_are_counted |
| MPP over MCP: payment required | optional | With MPP_CHALLENGE_SECRET set, an execute_checkout tools/call on the native MCP server (/api/v1/mcp/message) whose payment_intent.payment_method_type is mpp and that carries no params._meta["org.paymentauth/credential"] gets JSON-RPC error -32042 Payment Required with data.httpStatus: 402, data.challenges[] (the challenge as a JSON object, no header) and data.problem (RFC 9457). The challenge’s digest is the RFC 9530 digest of the JCS-canonical tool arguments. Unconfigured, or for other payment methods and tools, nothing is challenged | mpp_mcp_test::an_mpp_tool_call_without_a_credential_is_payment_required, …::without_a_challenge_secret_an_mpp_tool_call_is_not_challenged, …::other_payment_methods_are_not_challenged, …::other_tools_ignore_a_credential |
| MPP over MCP: credential and receipt | optional | The credential is the draft’s JSON object in params._meta["org.paymentauth/credential"], checked and claimed once exactly as over HTTP and handed to the payment provider base64url-encoded. Refusals are -32042 with a fresh challenge (malformed-credential, invalid-challenge, payment-expired); a proof the provider refuses is -32043 Payment Verification Failed with a fresh challenge. A completed checkout carries result._meta["org.paymentauth/receipt"] (status, method, timestamp, reference, challengeId) beside the 2026-07-28 server _meta. Metrics: the mpp_* counters plus mpp_mcp_challenge_issued_total, mpp_mcp_receipt_issued_total, mpp_mcp_credential_rejected_<problem>_total, mpp_mcp_credential_check latency | mpp_mcp_test::a_valid_credential_completes_checkout_with_a_receipt_in_meta, …::a_credential_is_accepted_only_once, …::a_credential_cannot_pay_for_different_arguments, …::a_wrong_amount_is_refused, …::a_wrong_realm_is_refused, …::an_expired_challenge_is_refused, …::a_malformed_credential_is_refused_with_a_fresh_challenge, …::a_declined_proof_is_verification_failed_with_a_fresh_challenge, …::a_modern_client_gets_the_receipt_beside_the_server_meta, …::mcp_challenges_receipts_and_rejections_are_counted_per_transport |
| MPP over MCP: capability advertisement | not_supported_yet | server/discover and tools/list do not advertise MPP: no published MPP MCP transport source defines a capability or discovery key, so the -32042 challenge is the only signal | conformance review |
| MPP on UCP (REST, MCP, A2A complete) | not_supported_yet | UCP 2026-08-25 pays through payment handlers and instruments, and no published handler specification defines MPP; complete_checkout takes no Payment credential | conformance review |
| MPP on ACP (REST and MCP complete) | not_supported_yet | ACP 2026-04-17 PaymentData carries a handler token only and defines no MPP instrument or credential field | conformance review |
| MPP on A2A (native checkout and SendMessage) | not_supported_yet | Neither A2A 1.0, AP2 0.2 nor the MPP drafts define a DataPart or metadata key for MPP challenges, credentials or receipts | conformance review |
Acceptance Criteria (Summary)
- Discovery: A client can GET
/.well-known/ucpand learn UCP profile, ACP/MCP/A2A/AP2 version metadata, signing keys, and payment handlers; every advertised capability is implemented. - REST / UCP / ACP: Cart, checkout lifecycle, catalog, order, payment, and ACP session/cart endpoints behave as documented; auth and tenant checks enforced; ACP POST routes require
Idempotency-Key; ACP discovery is published at/.well-known/acp.json. - A2A/MCP: Adapter layer converts A2A (and MCP dual-era) requests into domain types and executes via the same facade; policy and idempotency unchanged.
- AP2 0.2: Payment intent carries AP2 fields; strict mode verifies closed and optional open (HNP) mandates with constraint binding.
- MPP: Payment intent can carry MPP method metadata; discovery advertises MPP capability flag; with a challenge secret configured, REST checkout runs the
402Paymentchallenge / credential / receipt flow and the native MCPexecute_checkouttool runs the MPP MCP transport (-32042,_metacredential and receipt).
Machine-Readable Conformance (for CI)
Conformance is asserted by the following tests; CI runs them in the “Conformance (discovery, REST binding, signatures, A2A, AP2, MPP)” step:
cargo test -p orchestrator-http --test discovery_test— discovery endpoint, advertised capabilities, capability-route parity, A2A/ACP routescargo test -p orchestrator-http --test ucp_negotiation_test— platform profile negotiation on the UCP REST and MCP bindings: errors, intersection, caching, metricscargo test -p orchestrator-http --test ucp_profile_schema_test—/.well-known/ucpvalidates against the official UCP2026-08-25business profile schema; profile rules the schema cannot expresscargo test -p orchestrator-http --test ucp_response_schema_test— cart, checkout and order bodies validate against the official UCP schemascargo test -p orchestrator-http --test ucp_fulfillment_schema_test— fulfillment objects validate against the official UCP fulfillment schemacargo test -p orchestrator-http --test ucp_rest_binding_test— every UCP REST binding operation is routed at its spec pathcargo test -p orchestrator-http --test ucp_mcp_binding_test— UCP’s MCP binding: tools match the official OpenRPC, results validate against the UCP schemas, idempotency, tenancy, error mapping, discovery, metricscargo test -p orchestrator-http --test ucp_signature_testandcargo test -p orchestrator-api --test ucp_signing— RFC 9421 signatures, Content-Digest, ES256/Ed25519, UCP error codes, RFC 9421 test vectorcargo test -p orchestrator-api --test signed_webhooks— webhook deliveries verify against the discovery JWKscargo test -p orchestrator-http --test a2a_binding_test— A2A 1.0 Agent Card,SendMessage,SendStreamingMessageover SSE, the JSON-RPC binding, task operations, error shapecargo test -p orchestrator-http --test ucp_a2a_binding_test— UCP’s A2A checkout binding: envelopes validate against the officialtransports/a2a_message.json, checkouts againstshopping/checkout.json; idempotency, tenancy, error mapping, discovery, metricscargo test -p orchestrator-api --test authz_and_adapters— authz, AP2 0.2 HNP, A2A version negotiation, AP2 strict modecargo test -p orchestrator-http --test mpp_checkout_test— MPP402challenge, credential binding and single use, receipts, problem typescargo test -p orchestrator-http --test mpp_mcp_test— MPP over MCP:-32042challenge,_metacredential, single use,-32043,_metareceipt, per-transport metricscargo test -p orchestrator-http --test ucp_payment_authentication_test— UCP Payment Authentication actions validate against the official schema; discovery, resume, failurecargo test -p orchestrator-http --test acp_delegate_authentication_test— ACPauthentication_required,authentication_result,3dsintervention advertisementcargo test -p orchestrator-http --test checkout_terminal_status_test— completed and canceled checkouts read back terminal and refuse changes on UCP REST/MCP/A2A and ACP REST/MCPcargo test -p orchestrator-api --test payment_authentication— 3DS2 pause, idempotent retry, resume, fail-closed paths, restartcargo test -p orchestrator-mcp— MCP dual-era discover / version errors / legacy initializecargo test -p orchestrator-http --test acp_rest_binding_test— ACP REST checkout sessions and carts against the2026-04-17schemas: bodies, errors, idempotency, tenancy, metricscargo test -p orchestrator-http --test acp_mcp_binding_test— ACP’s MCP binding: tools match the official OpenRPC, results and errors validate against the ACP2026-04-17schemas, idempotency, tenancy, discovery, metricscargo test -p orchestrator-http --test mcp_transport_test— MCP2026-07-28Streamable HTTP rules (Origin,Mcp-Method/Mcp-Name, status codes, back-compat) on every MCP endpoint
CI must pass these before claiming alignment in release notes.