René's URL Explorer Experiment


Title: Tier 2 commercial-identity error codes don't conform to AdCP spec — cross-tenant oracle risk · Issue #375 · adcontextprotocol/adcp-client-python · GitHub

Open Graph Title: Tier 2 commercial-identity error codes don't conform to AdCP spec — cross-tenant oracle risk · Issue #375 · adcontextprotocol/adcp-client-python

X Title: Tier 2 commercial-identity error codes don't conform to AdCP spec — cross-tenant oracle risk · Issue #375 · adcontextprotocol/adcp-client-python

Description: Summary The Python SDK raises four non-spec error codes in src/adcp/decisioning/handler.py and src/adcp/decisioning/registry.py for the v3 buyer-agent gate. The codes the spec rejects are emitted today as load-bearing public wire errors:...

Open Graph Description: Summary The Python SDK raises four non-spec error codes in src/adcp/decisioning/handler.py and src/adcp/decisioning/registry.py for the v3 buyer-agent gate. The codes the spec rejects are emitted t...

X Description: Summary The Python SDK raises four non-spec error codes in src/adcp/decisioning/handler.py and src/adcp/decisioning/registry.py for the v3 buyer-agent gate. The codes the spec rejects are emitted t...

Opengraph URL: https://github.com/adcontextprotocol/adcp-client-python/issues/375

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tier 2 commercial-identity error codes don't conform to AdCP spec — cross-tenant oracle risk","articleBody":"## Summary\n\nThe Python SDK raises four non-spec error codes in `src/adcp/decisioning/handler.py` and `src/adcp/decisioning/registry.py` for the v3 buyer-agent gate. The codes the spec rejects are emitted today as load-bearing public wire errors:\n\n- `AGENT_SUSPENDED`\n- `AGENT_BLOCKED`\n- `REQUEST_AUTH_UNRECOGNIZED_AGENT`\n- `INVALID_BILLING_MODEL`\n\n## Why it's wrong\n\nThe AdCP spec at `static/schemas/source/error-details/agent-permission-denied.json` (line 10) explicitly considers and rejects separate codes for these scenarios on cross-tenant onboarding-oracle grounds:\n\n> If a future major version elevates `suspended` / `blocked` to dedicated error codes (e.g., `AGENT_SUSPENDED` / `AGENT_BLOCKED`), those codes will carry their own details shapes and SHOULD NOT carry an explicit `scope` field — the code itself is the discriminator on that path.\n\nAnd, more importantly, the schema description and `error-handling.mdx` (Per-Agent Authorization Gate) require **identical observable channels** — code, message, headers, latency, side effects — between the unrecognized-agent path and the recognized-but-denied path. Distinct codes per status leak which `agent_url`s are onboarded with which sellers, enabling cross-tenant enumeration of commercial relationships.\n\n## Required fixes\n\n### Code surface\n\n- `AGENT_SUSPENDED` → `PERMISSION_DENIED` with `details.scope=\\\"agent\\\"`, `details.status=\\\"suspended\\\"`. Recovery is currently `transient`; the spec treats suspension as terminal-pending-onboarding (the agent MUST surface to a human; auto-retry is not a recovery path).\n- `AGENT_BLOCKED` → `PERMISSION_DENIED` with `details.scope=\\\"agent\\\"`, `details.status=\\\"blocked\\\"`, recovery terminal.\n- `REQUEST_AUTH_UNRECOGNIZED_AGENT` → `PERMISSION_DENIED` with `scope` **omitted** (must be indistinguishable on the wire from recognized-but-denied; the schema's omit-on-unestablished-identity rule).\n- `INVALID_BILLING_MODEL` → `BILLING_NOT_PERMITTED_FOR_AGENT` with `details.rejected_billing` (required) and optional `details.suggested_billing` per `error-details/billing-not-permitted-for-agent.json`. The current details payload also leaks `permitted_billing` (the full subset), which the billing schema explicitly forbids — \\\"MUST NOT carry the agent's full permitted-billing subset\\\".\n\n### Non-trivial requirement: parity, not just renaming\n\nThe spec's clamp is normative on **latency / headers / side-effects / observability parity** between:\n\n- the unrecognized-agent path (registry returned `None`)\n- the recognized-but-denied path (status `suspended`/`blocked`/unknown, or billing not permitted)\n\nThe current eager-raise pattern in `_resolve_buyer_agent` likely violates this:\n\n- The unrecognized-agent branch raises immediately after the registry returns `None`.\n- The suspended/blocked branches raise after a successful registry hit — measurable as a different latency profile.\n- Logging may differ (status-known branches log structured details; the unknown branch may not).\n\nA correct implementation needs to fold all four denial paths through a common emit point with deliberate latency padding, identical headers, and side-effect parity (audit-log shape, metrics tags). Worth a design pass — naive renaming will close the code mismatch but leave the oracle.\n\n## Refs\n\n- Spec: `static/schemas/source/error-details/agent-permission-denied.json` line 10 (the elevation note); `static/schemas/source/error-details/billing-not-permitted-for-agent.json` (the billing details shape).\n- SDK: `src/adcp/decisioning/handler.py` lines 377, 394, 407, 421; `src/adcp/decisioning/registry.py` line 350.\n\n## Notes\n\n- This is independent of the v3 reference seller PR (#373); the SDK's existing dispatch path has the bug regardless of which adopter is wiring the registry.\n- Suggested labels: `bug`, `security`, `spec-conformance` (only `bug` exists in this repo today; the security/spec-conformance labels would be useful additions).","author":{"url":"https://github.com/bokelley","@type":"Person","name":"bokelley"},"datePublished":"2026-05-03T00:15:14Z","url":"https://github.com/adcontextprotocol/adcp-client-python/issues/375"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a7604d0c-0e5b-6635-e8a0-abc9c2e2513b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEDCC:2564F:D32278:1179C32:6B00F8BC
html-safe-nonce39b16cd0336fb1c415c3bf26c1811c5323e6dc16afc778ee4fdd2cadee1b2b25
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRENDOjI1NjRGOkQzMjI3ODoxMTc5QzMyOjZCMDBGOEJDIiwidmlzaXRvcl9pZCI6IjY3NjU4ODg4Njk2NzkyOTg3NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac948027ce151724fc15ff8ce3660ed3b9ffcbcba3d841441cc435fb5d312bfb5f
hovercard-subject-tagissue:4370427152
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/adcontextprotocol/adcp-client-python/375/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5d3f4d6508d74bdf77dbbc1ace5740df7ee07b1fef19137a11308e9c11f125b5/adcontextprotocol/adcp-client-python/issues/375
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5d3f4d6508d74bdf77dbbc1ace5740df7ee07b1fef19137a11308e9c11f125b5/adcontextprotocol/adcp-client-python/issues/375
og:image:altSummary The Python SDK raises four non-spec error codes in src/adcp/decisioning/handler.py and src/adcp/decisioning/registry.py for the v3 buyer-agent gate. The codes the spec rejects are emitted t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebokelley
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
turbo-cache-controlno-preview
go-importgithub.com/adcontextprotocol/adcp-client-python git https://github.com/adcontextprotocol/adcp-client-python.git
octolytics-dimension-user_id221690821
octolytics-dimension-user_loginadcontextprotocol
octolytics-dimension-repository_id1090305973
octolytics-dimension-repository_nwoadcontextprotocol/adcp-client-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1090305973
octolytics-dimension-repository_network_root_nwoadcontextprotocol/adcp-client-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/adcontextprotocol/adcp-client-python/issues/375#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadcontextprotocol%2Fadcp-client-python%2Fissues%2F375
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadcontextprotocol%2Fadcp-client-python%2Fissues%2F375
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=adcontextprotocol%2Fadcp-client-python
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/375
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/375
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/375
adcontextprotocolhttps://github.com/adcontextprotocol
adcp-client-pythonhttps://github.com/adcontextprotocol/adcp-client-python
Codehttps://github.com/adcontextprotocol/adcp-client-python
Issues44 (44)https://github.com/adcontextprotocol/adcp-client-python/issues
Pull requests13 (13)https://github.com/adcontextprotocol/adcp-client-python/pulls
Actionshttps://github.com/adcontextprotocol/adcp-client-python/actions
Projectshttps://github.com/adcontextprotocol/adcp-client-python/projects
Security and qualityhttps://github.com/adcontextprotocol/adcp-client-python/security
Insightshttps://github.com/adcontextprotocol/adcp-client-python/insights
https://github.com/adcontextprotocol/adcp-client-python
New issuehttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/375
New issuehttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/375
#393https://github.com/adcontextprotocol/adcp-client-python/pull/393
Tier 2 commercial-identity error codes don't conform to AdCP spec — cross-tenant oracle riskhttps://github.com/adcontextprotocol/adcp-client-python/issues/375#top
#393https://github.com/adcontextprotocol/adcp-client-python/pull/393
bugSomething isn't workinghttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22bug%22
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
v3.1Blocked on AdCP spec v3.1 — needs spec changes before SDK can landhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22v3.1%22
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#issue-4370427152
feat(examples): v3 reference seller — runnable Tier 2 + v3 wiring (#357) #373https://github.com/adcontextprotocol/adcp-client-python/pull/373
bokelleyhttps://github.com/bokelley
bugSomething isn't workinghttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22bug%22
claude-triagingTriage routine is actively working on this issue (1-3 min)https://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaging%22
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#event-25100558296
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#issuecomment-4365024697
@bokelleyhttps://github.com/bokelley
https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID}https://claude.ai/code/$%7BCLAUDE_CODE_REMOTE_SESSION_ID%7D
Claude Codehttps://claude.ai/code
bokelleyhttps://github.com/bokelley
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
v3.1Blocked on AdCP spec v3.1 — needs spec changes before SDK can landhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22v3.1%22
claude-triagingTriage routine is actively working on this issue (1-3 min)https://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaging%22
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#event-25100628206
bokelleyhttps://github.com/bokelley
completedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#393https://github.com/adcontextprotocol/adcp-client-python/pull/393
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#event-25101014579
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#event-25101014582
fix(decisioning): Tier 2 codes → spec-conformant PERMISSION_DENIED (#375https://github.com/adcontextprotocol/adcp-client-python/commit/870e98ad6657a0dd2214d695765e3b5bc6b7228b
#375https://github.com/adcontextprotocol/adcp-client-python/issues/375
870e98ahttps://github.com/adcontextprotocol/adcp-client-python/commit/870e98ad6657a0dd2214d695765e3b5bc6b7228b
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#issuecomment-4365124230
#399https://github.com/adcontextprotocol/adcp-client-python/pull/399
#399https://github.com/adcontextprotocol/adcp-client-python/pull/399
#399https://github.com/adcontextprotocol/adcp-client-python/pull/399
#399https://github.com/adcontextprotocol/adcp-client-python/pull/399
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#issuecomment-4365128232
#399https://github.com/adcontextprotocol/adcp-client-python/pull/399
https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID}https://claude.ai/code/$%7BCLAUDE_CODE_REMOTE_SESSION_ID%7D
Claude Codehttps://claude.ai/code
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/375#event-25102022922
test(spec-conformance): AdcpError codes against canonical error-code …https://github.com/adcontextprotocol/adcp-client-python/commit/36c07f4e07e3ce929a190efea75b64ed470eb9a0
36c07f4https://github.com/adcontextprotocol/adcp-client-python/commit/36c07f4e07e3ce929a190efea75b64ed470eb9a0
Sign up for freehttps://github.com/signup?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/375
Sign in to commenthttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/375
bugSomething isn't workinghttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22bug%22
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
v3.1Blocked on AdCP spec v3.1 — needs spec changes before SDK can landhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22v3.1%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.