René's URL Explorer Experiment


Title: feat(examples): multi-platform-per-process proof — mock platforms with PlatformRouter, refactor v3 reference seller along the way · Issue #477 · adcontextprotocol/adcp-client-python · GitHub

Open Graph Title: feat(examples): multi-platform-per-process proof — mock platforms with PlatformRouter, refactor v3 reference seller along the way · Issue #477 · adcontextprotocol/adcp-client-python

X Title: feat(examples): multi-platform-per-process proof — mock platforms with PlatformRouter, refactor v3 reference seller along the way · Issue #477 · adcontextprotocol/adcp-client-python

Description: Context The SDK ships DecisioningPlatform + specialism mixins as the platform contract. Adopters subclass once per platform, declare capabilities, implement specialism methods. Today we have one worked example — examples/v3_reference_sel...

Open Graph Description: Context The SDK ships DecisioningPlatform + specialism mixins as the platform contract. Adopters subclass once per platform, declare capabilities, implement specialism methods. Today we have one wo...

X Description: Context The SDK ships DecisioningPlatform + specialism mixins as the platform contract. Adopters subclass once per platform, declare capabilities, implement specialism methods. Today we have one wo...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(examples): multi-platform-per-process proof — mock platforms with PlatformRouter, refactor v3 reference seller along the way","articleBody":"## Context\n\nThe SDK ships `DecisioningPlatform` + specialism mixins as the platform contract. Adopters subclass once per platform, declare capabilities, implement specialism methods. Today we have one worked example — `examples/v3_reference_seller/` — which assumes **one platform per process, one tenant per platform** (the upstream HTTP client is held on `__init__`).\n\nMulti-tenant SaaS sales agents (e.g. Prebid's salesagent) need the opposite shape: **N platforms per process, dispatched per tenant**. That pattern doesn't have a worked example in the SDK today, even though `DecisioningPlatform` supports it cleanly via composition.\n\nThis issue (a) builds the worked example with two pure-Python in-process mock platforms, (b) ships the `PlatformRouter` recipe, and (c) refactors the v3 reference seller to use the same pattern as a degenerate single-platform case so we have one consistent way to compose platforms.\n\n## Goal\n\nStand up `examples/multi_platform_seller/` that:\n\n1. Boots a single `serve()` process.\n2. Hosts two tenants, each backed by a different `DecisioningPlatform` subclass.\n3. Passes the `media_buy_seller` storyboard for both tenants.\n4. Doubles as the migration target for salesagent-style adapter-registry architectures.\n\n## Non-goals\n\n- Not adding new SDK runtime — the `PlatformRouter` lands as an example recipe first. If the pattern proves out, we promote it into `adcp.decisioning.dispatch` in a follow-up.\n- Not pulling in the JS mock-server. These are pure-Python in-process platforms — easier to read, easier to test, easier to fork.\n- Not adding new platform specialisms — both mocks claim `sales-non-guaranteed` and `sales-guaranteed`. Multi-protocol bridging is a separate seam.\n\n## Scope\n\n### 1. `MockGuaranteedPlatform(DecisioningPlatform, SalesPlatform)`\n\nIn-process, fixed-allocation. Models pre-bookable inventory: `create_media_buy` reserves capacity from a finite pool; rejects when sold out. Status lifecycle exercises `pending_creatives → pending_start → active → completed`. Pricing fixed CPM.\n\n### 2. `MockNonGuaranteedPlatform(DecisioningPlatform, SalesPlatform)`\n\nIn-process, auction-time allocation. Models programmatic remnant: `create_media_buy` always succeeds, delivery scales with budget, status starts `active`. Pricing variable CPM with floor.\n\n### 3. `PlatformRouter`\n\nA `DecisioningPlatform` subclass that holds a `dict[tenant_id, DecisioningPlatform]` and delegates each method to the resolved platform. Wired via tenant `ResolveContext`. Minimal — fewer than 200 LOC.\n\n```python\nrouter = PlatformRouter({\n    \"tenant-a\": MockGuaranteedPlatform(...),\n    \"tenant-b\": MockNonGuaranteedPlatform(...),\n})\nserve(router, transport=\"both\", asgi_middleware=[SubdomainTenantMiddleware(...)])\n```\n\n### 4. Storyboard validation\n\n`media_buy_seller` storyboard passes for both tenants. Tested via the existing storyboard runner with separate subdomain → tenant routing.\n\n### 5. README + migration doc\n\n`examples/multi_platform_seller/MIGRATION_FROM_ADAPTER_REGISTRY.md` — explicit translation table from salesagent's `ADAPTER_REGISTRY` / `AdServerAdapter` model to `PlatformRouter` + `DecisioningPlatform + SalesPlatform`.\n\n### 6. Refactor `examples/v3_reference_seller/` (the bundled work)\n\nThe reference seller currently has its own ad-hoc tenant routing logic. Refactor to:\n\n- Use `PlatformRouter` as the entry point even though it has only one platform — the degenerate case is the migration target for new adopters who'll add platforms later.\n- Move the upstream HTTP client into the platform's `__init__` (already there) but wire the router's tenant lookup consistently with the new examples.\n- Update `MIGRATION.md` to reference the multi-platform doc as the next step.\n\nThis refactor is unavoidable once we ship `PlatformRouter` — the reference seller becomes inconsistent if we don't update it. Bundling keeps the docs coherent.\n\n## Acceptance criteria\n\n- [ ] `examples/multi_platform_seller/` directory exists with the two mock platforms + router + README\n- [ ] Storyboard run (`@adcp/client adcp storyboard run ...`) passes for both tenant subdomains\n- [ ] `MIGRATION_FROM_ADAPTER_REGISTRY.md` documents the translation from salesagent-shaped adapter code\n- [ ] `examples/v3_reference_seller/` uses `PlatformRouter` (degenerate single-platform case)\n- [ ] `examples/v3_reference_seller/MIGRATION.md` updated to point at the multi-platform example\n- [ ] CI: new `pytest` integration test that boots `multi_platform_seller` and runs at least one tool against each tenant\n- [ ] No regressions in existing reference-seller tests\n\n## Out of scope (separate issues)\n\n- Promoting `PlatformRouter` into `adcp.decisioning.dispatch` (do this after the example proves out)\n- Capability projection completeness (separate PR — see corresponding issue)\n- Multi-protocol buyer bridge — speculative, hold until needed\n- Performance / scale testing of the router — single-process latency is fine for the example","author":{"url":"https://github.com/bokelley","@type":"Person","name":"bokelley"},"datePublished":"2026-05-03T14:18:58Z","url":"https://github.com/adcontextprotocol/adcp-client-python/issues/477"}

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:a846f123-53de-677c-81ea-f5220b60a560
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC0C2:296654:BE5D03:100371B:6B00F865
html-safe-nonce03a04dbd37c0df5ee43e02b083ad55faf7364b28096611603242a03feaebdc1f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEMyOjI5NjY1NDpCRTVEMDM6MTAwMzcxQjo2QjAwRjg2NSIsInZpc2l0b3JfaWQiOiIzOTY3MzY3MDQzNzk1MTg3ODEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0d152c22582dcfb1b6672d6b813d47f074cfa2e1f08b43efa7bbdc30620c19a3
hovercard-subject-tagissue:4372033882
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/477/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a778b849e82695a31da5dbe9e6fb7d7df1ad50d0090768fb48180f3c1ce0aa02/adcontextprotocol/adcp-client-python/issues/477
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a778b849e82695a31da5dbe9e6fb7d7df1ad50d0090768fb48180f3c1ce0aa02/adcontextprotocol/adcp-client-python/issues/477
og:image:altContext The SDK ships DecisioningPlatform + specialism mixins as the platform contract. Adopters subclass once per platform, declare capabilities, implement specialism methods. Today we have one wo...
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/477#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadcontextprotocol%2Fadcp-client-python%2Fissues%2F477
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%2F477
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/477
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/477
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/477
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/477
New issuehttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/477
#490https://github.com/adcontextprotocol/adcp-client-python/pull/490
feat(examples): multi-platform-per-process proof — mock platforms with PlatformRouter, refactor v3 reference seller along the wayhttps://github.com/adcontextprotocol/adcp-client-python/issues/477#top
#490https://github.com/adcontextprotocol/adcp-client-python/pull/490
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/477#issue-4372033882
bokelleyhttps://github.com/bokelley
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/477#event-25108222762
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/477#issuecomment-4366392805
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
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/477#event-25108292495
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/477#event-25113756830
feat(decisioning): PlatformRouter + multi-platform proof (#477) (#490)https://github.com/adcontextprotocol/adcp-client-python/commit/786e6a2708522e4b6308b91534b1f412ca58ae9d
#477https://github.com/adcontextprotocol/adcp-client-python/issues/477
#490https://github.com/adcontextprotocol/adcp-client-python/pull/490
786e6a2https://github.com/adcontextprotocol/adcp-client-python/commit/786e6a2708522e4b6308b91534b1f412ca58ae9d
bokelleyhttps://github.com/bokelley
completedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#490https://github.com/adcontextprotocol/adcp-client-python/pull/490
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/477#event-25113756869
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/477#event-25113757363
docs(proposals): product architecture — layered model + two-platform …https://github.com/adcontextprotocol/adcp-client-python/commit/69c585c962c2e531fd7d5d76d9be0a326ca7eea7
69c585chttps://github.com/adcontextprotocol/adcp-client-python/commit/69c585c962c2e531fd7d5d76d9be0a326ca7eea7
Sign up for freehttps://github.com/signup?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/477
Sign in to commenthttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/477
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%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.