René's URL Explorer Experiment


Title: feat(buyer-agent-registry): with_full_stack() — compose caching + rate-limiting + auditing in one factory · Issue #697 · adcontextprotocol/adcp-client-python · GitHub

Open Graph Title: feat(buyer-agent-registry): with_full_stack() — compose caching + rate-limiting + auditing in one factory · Issue #697 · adcontextprotocol/adcp-client-python

X Title: feat(buyer-agent-registry): with_full_stack() — compose caching + rate-limiting + auditing in one factory · Issue #697 · adcontextprotocol/adcp-client-python

Description: Follow-up to #380 / #692. Context PgBuyerAgentRegistry.with_caching(**kwargs) shipped in #692 collapses cache wiring into one call. But the canonical production stack documented in registry_cache.py is three layers: Caching(RateLimited(A...

Open Graph Description: Follow-up to #380 / #692. Context PgBuyerAgentRegistry.with_caching(**kwargs) shipped in #692 collapses cache wiring into one call. But the canonical production stack documented in registry_cache.p...

X Description: Follow-up to #380 / #692. Context PgBuyerAgentRegistry.with_caching(**kwargs) shipped in #692 collapses cache wiring into one call. But the canonical production stack documented in registry_cache.p...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(buyer-agent-registry): with_full_stack() — compose caching + rate-limiting + auditing in one factory","articleBody":"Follow-up to #380 / #692.\n\n## Context\n\n`PgBuyerAgentRegistry.with_caching(**kwargs)` shipped in #692 collapses cache wiring into one call. But the canonical production stack documented in [`registry_cache.py`](https://github.com/adcontextprotocol/adcp-client-python/blob/main/src/adcp/decisioning/registry_cache.py#L1-L30) is three layers:\n\n```\nCaching(RateLimited(Auditing(inner)))\n```\n\nAdopters who want the full stack still hand-compose:\n\n```python\npg = PgBuyerAgentRegistry(pool=pool)\naudited = AuditingBuyerAgentRegistry(pg, audit_sink=sink)\nlimited = RateLimitedBuyerAgentRegistry(audited, rps_per_tenant=100, audit_sink=sink)\ncache = CachingBuyerAgentRegistry(limited, ttl_seconds=60, audit_sink=sink)\npg.add_mutation_observer(lambda _op, _url: cache.clear_sync())\nserve(buyer_agent_registry=cache, ...)\n```\n\nThe mutation-observer wiring at the end is the part most adopters will forget.\n\n## Proposed\n\n```python\nregistry = PgBuyerAgentRegistry(pool=pool).with_full_stack(\n    ttl_seconds=60,\n    max_entries=10_000,\n    rps_per_tenant=100,\n    audit_sink=sink,\n)\nserve(buyer_agent_registry=registry, ...)\n```\n\nReturns the outermost `CachingBuyerAgentRegistry`, pre-wired with the mutation observer, with `audit_sink` threaded through every layer that accepts one.\n\n## Tradeoffs\n\n- More opinionated than `with_caching` — fixes a layer order (\\`Cache -> RateLimit -> Audit -> inner\\`). Adopters who need a different order still go manual.\n- Worth doing because the current manual path is the most-foot-shootable section of the registry composition story.\n\n## Alternative considered\n\nStacking method-chained factories (`pg.with_caching(...).with_rate_limiting(...).with_auditing(...)`) reads nicely but inverts the layer order — `Auditing` would end up outermost, which is wrong for this use case. The single-call factory dodges that confusion.\n\n## Acceptance\n\n- `with_full_stack(**kwargs)` on `PgBuyerAgentRegistry`\n- `audit_sink` parameter threaded to all three wrapper layers (so cache/rate-limit/resolve events all emit)\n- Conformance test: mutation through `pg` invalidates cache; rate-limit fires on burst; audit events emitted at each layer\n- Docstring documents layer order and points to manual composition for non-default orderings","author":{"url":"https://github.com/bokelley","@type":"Person","name":"bokelley"},"datePublished":"2026-05-12T15:07:46Z","url":"https://github.com/adcontextprotocol/adcp-client-python/issues/697"}

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:a58e7258-d51e-c798-546c-62d8e262e065
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id932C:24ACB9:10B8236:160DB3F:6B01097A
html-safe-nonce8b6ecae96c79ecd6c335539d99a61d93ac3d48c4c48bbc59bfaec89789e88280
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzJDOjI0QUNCOToxMEI4MjM2OjE2MERCM0Y6NkIwMTA5N0EiLCJ2aXNpdG9yX2lkIjoiNDk2NzM0NjA2ODY2MTUzNzE0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4707865e22d06f357651e48a810ed4833e119002e696312b9c330dcb8985464a
hovercard-subject-tagissue:4430278095
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/697/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6307fbeb0b872d6b3d869377666e90d9d46a2eb6713dbf68abef82003acc90bb/adcontextprotocol/adcp-client-python/issues/697
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6307fbeb0b872d6b3d869377666e90d9d46a2eb6713dbf68abef82003acc90bb/adcontextprotocol/adcp-client-python/issues/697
og:image:altFollow-up to #380 / #692. Context PgBuyerAgentRegistry.with_caching(**kwargs) shipped in #692 collapses cache wiring into one call. But the canonical production stack documented in registry_cache.p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebokelley
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/adcontextprotocol/adcp-client-python/issues/697#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadcontextprotocol%2Fadcp-client-python%2Fissues%2F697
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%2F697
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/697
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/697
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/697
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/697
New issuehttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/697
#862https://github.com/adcontextprotocol/adcp-client-python/pull/862
feat(buyer-agent-registry): with_full_stack() — compose caching + rate-limiting + auditing in one factoryhttps://github.com/adcontextprotocol/adcp-client-python/issues/697#top
#862https://github.com/adcontextprotocol/adcp-client-python/pull/862
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
enhancementNew feature or requesthttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 12, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/697#issue-4430278095
#380https://github.com/adcontextprotocol/adcp-client-python/issues/380
#692https://github.com/adcontextprotocol/adcp-client-python/pull/692
#692https://github.com/adcontextprotocol/adcp-client-python/pull/692
registry_cache.pyhttps://github.com/adcontextprotocol/adcp-client-python/blob/main/src/adcp/decisioning/registry_cache.py#L1-L30
bokelleyhttps://github.com/bokelley
enhancementNew feature or requesthttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
on May 12, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/697#event-25436728493
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 23, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/697#issuecomment-4526559402
#765https://github.com/adcontextprotocol/adcp-client-python/pull/765
#697https://github.com/adcontextprotocol/adcp-client-python/issues/697
#697https://github.com/adcontextprotocol/adcp-client-python/issues/697
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
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 23, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/697#event-25889524622
bokelleyhttps://github.com/bokelley
completedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#862https://github.com/adcontextprotocol/adcp-client-python/pull/862
on May 26, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/697#event-25946023296
Sign up for freehttps://github.com/signup?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/697
Sign in to commenthttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/697
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
enhancementNew feature or requesthttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22enhancement%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.