OCP is a transport-agnostic semantic layer for AI commerce.
OCP unifies three execution modes:
- protocol-native structured commerce;
- agentic/delegated checkout;
- browser-mediated fallback when API-only execution is insufficient.
OCP standardizes semantic consistency (discovery / intention / deal), not a single API style.
# 1) Read documentation entrypoint
cat docs/index.md
# 2) Browse specification docs
ls docs/specification
# 3) Validate example JSON (placeholder command)
python -m json.tool examples/messages/01-discovery-request.json >/dev/null- Docs entrypoint:
docs/index.md - Implementation docs:
docs/documentation/ - Protocol spec:
docs/specification/ - Schemas:
schemas/ - Examples:
examples/ - Conformance scaffold:
conformance/
This repository is a draft scaffold aligned with docs/OCP_PROTOCOL_SPEC_DRAFT.md. Next steps are machine-verifiable schemas, runnable examples, and executable conformance tests.