feat(acp): add experimental ACP checkout adapter - #9
Merged
Conversation
SergeevDmitry
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add experimental, opt-in support for the Agentic Commerce Protocol checkout service, pinned to the stable
2026-04-17snapshot.The adapter maps checkout creation, retrieval, updates, completion, and cancellation onto the existing canonical execution pipeline. Merchants keep their checkout and payment logic; the gateway handles protocol validation, authentication, and durable request idempotency.
What changed
/acpas the default mount path. All five checkout operations require explicit mappings to resources withexpose: [acp]./.well-known/acp.json, advertising the checkout service and REST transport.API-Version: 2026-04-17on checkout routes, plusIdempotency-Keyon every POST.409, and conflicting bodies return422. Responses with5xxstatus are not cached.payment_dataunchanged to the merchant. Reject mappings to resources that charge for invocation or configure Agent Commerce payments.agent-commerce doctor, including supported capabilities and unsupported operations.Supported scope
This initial implementation supports:
2026-04-17Checkout state, expiry, and state transitions remain the merchant backend's responsibility. The gateway persists idempotency records rather than the ACP-owned checkout state.
Idempotency protects ordinary retries and concurrent requests. It does not guarantee exactly-once execution across a merchant HTTP call and a local database commit. If the process crashes after the merchant acts but before the response is stored, the key remains in flight until it expires.
Carts, feeds, standalone orders, delegated payment and authentication services, webhooks, ACP's MCP binding, signature and timestamp verification, extensions, and other API versions are not implemented.
Compatibility
ACP remains disabled unless explicitly enabled. Existing HTTP, MCP, and A2A configurations continue to work, and an ACP startup failure remains isolated from other adapters.
Checkout resources must be free at the Agent Commerce invocation layer. Merchant purchase payments remain separate from x402 payments.
The adapter uses vendored schemas and examples; it does not fetch specifications at runtime or require an ACP SDK.