Skip to content

Commit 5cefe33

Browse files
authored
Remove the unused identity-token path (#161)
## Summary Removes the unused identity-token path from the merchant SDK, matching the Node package. - **`Checkout`:** the gate option for it, its offline verifier and key cache, the per-issuer policy override that applied only to it, and its deny bodies. A gate is back to wallet and operator-token identity only, with its own compliance fields sent as before. - **Adapters:** the dedicated gates and accessors in all six framework adapters (FastAPI, Flask, Django, AIOHTTP, Sanic, ASGI). - **Advertising:** the A2A agent-card extension builder, and the token path in the agent-memory hint, missing-identity instructions, `llms.txt`, `skill.md` and OpenAPI security schemes. - **`has_identity_header`:** no longer counts that header. - **Dependency:** takes `agentscore-py` >=2.8.0, which drops the same input. Version 3.2.0: a minor, because no merchant uses it. The content-type passthrough on deny responses stays, since a merchant's own `on_denied` can still set one. Worked with Varun, who asked for the feature to be removed everywhere. ## Type of change - [ ] Bug fix (no breaking change) - [ ] New feature (no breaking change) - [ ] Breaking change (existing callers must update) - [x] Docs, tests, or internal maintenance only ## Public API Removes the gate option and its exported verifier, signing, key-cache and type surface, the adapter gates and their accessors, the agent-card extension builder and URI, and the token flag on the discovery builders (`agentscore_security_schemes` now takes no arguments). ## Test plan ruff check, ruff format --check, ty, vulture (as CI runs it) and pytest (1673 passed, 4 skipped, coverage 97.46%), all green locally. A replacement test pins that only an operator token or a wallet address counts as an identity. ## Checklist - [x] Tests cover the new behavior, and the suite passes locally - [x] Lint, format, and type checks pass - [x] Docs and README examples updated if the public surface changed - [x] No secrets, credentials, or personal data in the diff or the tests
1 parent fc59726 commit 5cefe33

40 files changed

Lines changed: 86 additions & 7561 deletions

‎agentscore_commerce/__init__.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
MppxComposeOutcome,
2626
PricingResult,
2727
SettleOutcome,
28-
build_aip_trusted_issuers,
2928
format_pydantic_errors,
3029
get_identity_status,
3130
pricing_result,
@@ -60,7 +59,6 @@
6059
A2A_DEFAULT_TRANSPORT,
6160
A2A_PROTOCOL_VERSION,
6261
AGENTSCORE_UCP_CAPABILITY,
63-
AIP_A2A_EXTENSION_URI,
6462
FIXABLE_DENIAL_REASONS,
6563
UCP_A2A_EXTENSION_URI,
6664
A2AAgentCard,
@@ -93,7 +91,6 @@
9391
UCPSigningKey,
9492
UCPVerificationError,
9593
VerifyWalletSignerResult,
96-
aip_a2a_extension,
9794
build_a2a_agent_card,
9895
build_agent_memory_hint,
9996
build_contact_support_next_steps,
@@ -172,7 +169,6 @@
172169
"A2A_DEFAULT_TRANSPORT",
173170
"A2A_PROTOCOL_VERSION",
174171
"AGENTSCORE_UCP_CAPABILITY",
175-
"AIP_A2A_EXTENSION_URI",
176172
"FIXABLE_DENIAL_REASONS",
177173
"UCP_A2A_EXTENSION_URI",
178174
"VERIFICATION_SESSION_HEADER",
@@ -243,10 +239,8 @@
243239
"WorkOutcome",
244240
"X402BaseRailSpec",
245241
"__version__",
246-
"aip_a2a_extension",
247242
"build_a2a_agent_card",
248243
"build_agent_memory_hint",
249-
"build_aip_trusted_issuers",
250244
"build_contact_support_next_steps",
251245
"build_default_checkout_rails",
252246
"build_gate_from_policy",

‎agentscore_commerce/aip/__init__.py‎

Lines changed: 0 additions & 168 deletions
This file was deleted.

0 commit comments

Comments
 (0)