qoliber / agent-readiness-commerce
Qoliber Agent Readiness. Audit x402, MPP, UCP, ACP, and AP2 agentic commerce discovery.
Package info
github.com/qoliber/agent-readiness-commerce
Type:magento2-module
pkg:composer/qoliber/agent-readiness-commerce
Requires
- php: ~8.3.0 || ~8.4.0 || ~8.5.0
- magento/framework: ^103.0
- qoliber/agent-readiness-audit: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Adds the Agentic commerce group to the audit: whether an agent can find out how to pay and check out. All its checks are optional, because each covers a protocol only some stores offer. Its results appear in Read the report.
Installation
composer require qoliber/agent-readiness-commerce bin/magento setup:upgrade
This package adds one group of checks to qoliber/agent-readiness-audit, which Composer installs with it. To install all five check groups at once, require qoliber/ai-readiness-audit instead.
Configuration
This module has no configuration fields. Who can run audits is set by a role permission: see Configuration.
Checks
| Check | Core or optional | What it looks for |
|---|---|---|
| x402 | Optional | An HTTP 402 payment challenge with valid x402 payment requirements on the home page, /api or /api/v1. A public HTTPS store listed in Coinbase's public x402 catalog without a live challenge gives a warning |
| Machine Payments Protocol (MPP) | Optional | An OpenAPI 3.1 or later document at /openapi.json whose operations carry x-payment-info offers and a 402 response |
| Universal Commerce Protocol (UCP) | Optional | The store view's UCP profile at .well-known/ucp, with versioned service bindings and capability schemas. A profile with no service bindings gives a warning |
| Agentic Commerce Protocol (ACP) | Optional | An ACP manifest at /.well-known/acp.json with its protocol versions, API base URL, transports and services |
| Agent Payments Protocol (AP2) | Optional | The AP2 Mandates extension with its checkout capability in the UCP profile, or an AP2 extension with a role in the A2A Agent Card |
Verified by tests
- Unit tests: 50 tests in 3 classes.
VerdictMatrixTestproves every check of this module three ways: it passes on a storefront that publishes what it looks for, needs attention on one that conclusively does not or serves an invalid document, and stays unverified when the storefront answers 503, 429 or 403 or times out. - Playwright:
Test/Playwright/verdicts.jsondeclares what each check reports on the six test storefronts of the audit package's suite, which runs every check through Magento's scanner and asserts each result exactly; the admin report tests confirm each result row. - Real Magento storefront: the integration suite of
qoliber/ai-readiness-suiteaudits a Magento storefront running Qoliber's storefront modules (Agent Readiness with its Markdown and UCP companions, Markdown Content, UCP and UCP MCP), with robots.txt rules set in Magento's own configuration, and asserts that the Universal Commerce Protocol (UCP) check passes with UCP enabled. With all of them enabled the storefront reaches Verified level 4, Agent-Integrated.
Documentation
The full documentation lives in qoliber/ai-readiness-audit: installation, configuration, usage, troubleshooting and the developer guide.
Contributing
Issues and pull requests are welcome at github.com/qoliber/agent-readiness-commerce. See CONTRIBUTING.md; AGENTS.md has the same guidance for AI coding agents.
Security
Report vulnerabilities privately as described in SECURITY.md, never in a public issue.
License
MIT © Qoliber. Commercial support and custom work: qoliber.com.