Repository navigation
Commit 5cefe33
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 tests1 parent fc59726 commit 5cefe33
40 files changed
Lines changed: 86 additions & 7561 deletions
File tree
- agentscore_commerce
- aip
- challenge
- discovery
- identity
- payment
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
96 | | - | |
97 | 94 | | |
98 | 95 | | |
99 | 96 | | |
| |||
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
175 | | - | |
176 | 172 | | |
177 | 173 | | |
178 | 174 | | |
| |||
243 | 239 | | |
244 | 240 | | |
245 | 241 | | |
246 | | - | |
247 | 242 | | |
248 | 243 | | |
249 | | - | |
250 | 244 | | |
251 | 245 | | |
252 | 246 | | |
| |||
This file was deleted.
0 commit comments