Skip to content

feat: update conformance suite for UCP 2026-04-08#41

Open
koustubh25 wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
koustubh25:feat/april-2026-conformance
Open

feat: update conformance suite for UCP 2026-04-08#41
koustubh25 wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
koustubh25:feat/april-2026-conformance

Conversation

@koustubh25
Copy link
Copy Markdown

@koustubh25 koustubh25 commented Apr 30, 2026

Summary

Updates conformance to the official UCP 2026-04-08 release.

Dependency chain for April validation:

  • Universal-Commerce-Protocol/python-sdk#28
  • Universal-Commerce-Protocol/samples#91
  • this PR

This PR removes stale 2026-01-23 protocol expectations from the suite, updates official ucp.dev spec/schema references to April, and adapts the tests to the April Python SDK model layout where the existing suite assumed January-era imports and scalar wrappers.

Changes

  • update hard-coded UCP version expectations from 2026-01-23 to 2026-04-08
  • update official spec/schema URLs to https://ucp.dev/2026-04-08/...
  • update ReverseDomainName imports for the April Python SDK layout
  • make conformance assertions compatible with April SDK RootModel wrappers used for Amount, SignedAmount, and Totals
  • update the shopping agent profile fixture to advertise April capability metadata

Why

The official latest UCP spec release is 2026-04-08, but conformance still contains January-era protocol pins and SDK assumptions. That causes the suite to drift from the current published spec and from the April Python SDK update.

This PR keeps the scope limited to conformance-suite April alignment. Merchant-server fixes remain in samples#91, and SDK model updates remain in python-sdk#28.

Validation

Validated against:

  • official spec overview: https://ucp.dev/latest/specification/overview/
  • official April snapshot: https://ucp.dev/2026-04-08/specification/overview/
  • python-sdk#28
  • samples#91
  • this branch

Serial test run result against the local April validation target:

  • protocol_test.py OK
  • validation_test.py OK
  • fulfillment_test.py OK
  • business_logic_test.py OK
  • checkout_lifecycle_test.py OK
  • idempotency_test.py OK
  • order_test.py OK
  • webhook_test.py OK
  • simulation_url_security_test.py OK
  • ap2_test.py OK
  • binding_test.py OK
  • card_credential_test.py OK

test_discovery_urls remains skipped because the remote schema publication check is not yet live on ucp.dev.

Scope

Included here:

  • conformance version/spec/schema alignment
  • test-harness compatibility with April SDK model shapes

Explicitly not included here:

  • merchant-server implementation fixes in samples
  • SDK generator or model-shape changes in python-sdk

@koustubh25 koustubh25 requested review from a team as code owners April 30, 2026 20:46
@koustubh25 koustubh25 requested review from jingyli and yanheChen April 30, 2026 20:46
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 30, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@koustubh25 koustubh25 force-pushed the feat/april-2026-conformance branch from 47d64d6 to f3f80bf Compare April 30, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant