Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

FAQ

What is the Commerce Orchestrator?

An open-source Rust service that sits between AI agents and your existing commerce backends. Agents talk to it over the agentic commerce protocols (UCP, ACP, A2A, MCP, AP2, MPP). It talks to your catalog, pricing, tax, geo, payment and receipt services over plain HTTP. In between it runs one cart and checkout model with idempotency, amount and geo checks, signed messages, retries and an outbox.

You deploy it next to your platform. Your backends do not change and do not need an SDK.

What is it not?

  • Not a storefront or a commerce platform. It holds no product catalog, prices or tax rules of its own. Those stay in your systems; it calls them.
  • Not a payment processor. It authorizes, captures, voids and refunds through your payment provider. Checkout carries a payment token or reference, and the provider does the money movement.
  • Not an agent. It does not decide what to buy. It is the merchant side that agents buy from.
  • Not a library you embed. The supported integration is the HTTP service. The consumer example shows the in-process facade, but the HTTP API is the contract.

Which protocols does it support?

ProtocolVersion
UCP (Universal Commerce Protocol)2026-08-25, with older profiles served through supported_versions
ACP (Agentic Commerce Protocol)2026-04-17
A2A (Agent2Agent)1.0, with 0.3 envelopes accepted
MCP (Model Context Protocol)2026-07-28, plus 2025-11-25 and 2024-11-05
AP2 (Agent Payments Protocol)0.2
MPP (Machine Payments Protocol)draft-httpauth-payment-01
HTTP Message SignaturesRFC 9421 with RFC 9530 Content-Digest
Web Bot Authdraft-ietf-webbotauth-httpsig-protocol-01

Coverage is not all-or-nothing. The conformance matrix lists every requirement of each protocol as supported, optional or not supported yet, with the test that proves each supported row.

How does it compare with implementing each protocol myself?

Each protocol brings its own discovery document, message shapes, error model, signature scheme and versioning, and several of them revise every few months. Building them into your platform means doing that work once per protocol and again for every revision, inside the system that also takes your money.

With the orchestrator:

  • One integration. You implement six small HTTP endpoints once (see the provider API). Every protocol reaches them through the same cart and checkout model.
  • One place for money rules. Idempotency keys, the amount the agent expects to pay, the geo verdict and the cart version are enforced in one code path for every protocol, instead of once per protocol.
  • Spec tracking is in the open. Protocol versions, schema checks and conformance tests live in this repository and run in CI on every change.

Building it yourself is the better choice when you only need one protocol, have no plans to add others, and want it inside an existing service rather than as a separate deployment.

Do I need to change my backends?

Usually not much. Each backend needs to expose the endpoints in the provider API: for example POST /tax/resolve returning { "total_tax_minor": 160 }. If your services have different shapes, put a thin adapter in front of them. Every provider can use bearer tokens, API keys, OAuth 2.0 client credentials or mutual TLS.

Is it production ready?

What is in place:

  • PostgreSQL persistence with migrations, required when ENV=production.
  • Production startup fails closed: without a database, API authentication, signing keys and all six backend URLs, the server refuses to start.
  • Idempotent checkout, amount and geo integrity checks, tenant isolation, retries with circuit breakers, an outbox with dead-letter replay, and payment reconciliation.
  • Prometheus metrics, a Grafana dashboard, Kubernetes manifests with HPA, PDB and NetworkPolicy, and runbooks.
  • CI runs formatting, Clippy with warnings denied, the full test suite, protocol conformance tests, a live PostgreSQL job, a Docker smoke test and a dependency advisory audit.

What to weigh:

  • It is pre-1.0 (0.13.0). Minor versions can change behaviour; the changelog says what changed and how to upgrade.
  • Releases are source-only. Nothing is published to crates.io; you build from a pinned tag, or build the Docker image from the Dockerfile.
  • Some protocol features are not implemented yet, such as ACP’s MCP transport binding. The conformance matrix has the full list.

Run your own staging validation before taking real orders. Plug and deploy ends with a checklist for it.

Does it store personal or payment data?

It stores carts, orders, idempotency results and outbox messages in your database. A checkout can carry a customer email and name and a shipping address, and those are part of the cart and are forwarded to your backends. Logs redact PII. Payment data is whatever token or reference your payment provider issued; the orchestrator passes it to that provider. See SECURITY.md.

Can it run more than one replica?

Yes, with PostgreSQL. Idempotency claims, outbox claims (FOR UPDATE SKIP LOCKED), inbox dedupe and orders all live in the database, so replicas coordinate through it. The Kubernetes manifests include an HPA.

How is it licensed?

Dual-licensed under MIT or Apache-2.0, at your option. You can run it commercially, modify it and keep your modifications private.

How do I report a bug or a security issue?

Open an issue on GitHub. Report security issues privately, as described in SECURITY.md.