René's URL Explorer Experiment


Title: feat(schema): bump ACP schema to v1.19.0 (extensible unions + lenient deserialization) by michelTho · Pull Request #117 · agentclientprotocol/python-sdk · GitHub

Open Graph Title: feat(schema): bump ACP schema to v1.19.0 (extensible unions + lenient deserialization) by michelTho · Pull Request #117 · agentclientprotocol/python-sdk

X Title: feat(schema): bump ACP schema to v1.19.0 (extensible unions + lenient deserialization) by michelTho · Pull Request #117 · agentclientprotocol/python-sdk

Description: Summary Bumps the ACP schema schema-v1.16.0 → v1.19.0 and adds the codegen support v1.18+ requires — a plain bump produces invalid models, because v1.18 added two idioms datamodel-codegen can't express: Extensible unions (CreateElicitationRequest/Response, ElicitationPropertySchema, MultiSelectItems) — known variants + a "custom/future" catch-all. Codegen strips the discriminator, preserves the catch-all payload, and injects a validator that rejects known tags so a malformed known variant errors instead of silently parsing as custom. Lenient deserialization — honors x-deserialize-default-on-error (salvage a bad field to its default) and x-deserialize-skip-invalid-items (drop bad array items) via src/acp/_deserialize.py. New public types: CreateOtherElicitationRequest, OtherElicitationResponse, ElicitationOtherPropertySchema. Approach mirrors the TypeScript SDK's schema-deserialize.ts. Also fixes an edge case this change exposed: an incoming unknown elicitation mode now returns a clean invalid_params (-32602) rather than an opaque internal error. Broader dispatch hardening for unknown/forward-compat variants is tracked in a follow-up. Related issues N/A for the bump. A follow-up issue (dispatch hardening for unknown variants) will be linked once filed. Testing pytest --doctest-modules → 142 passed, 1 skipped. Adds unit tests (fallback rules, tag extraction), behavioral round-trips (catch-all routing, field salvage, item skip), and a dispatch regression test (unknown mode → clean error). ruff check, ruff format --check, ty check → clean. Regenerated with ACP_SCHEMA_VERSION=schema-v1.19.0 make gen-all; regeneration is idempotent (re-running is a no-op). Manually verified over a real agent↔client socket connection: custom responses round-trip with payload preserved, malformed fields salvage, invalid array items drop, and an unknown mode returns -32602. Docs & screenshots None needed — schema/types are generated and there's no prose doc referencing them; the new types are additive and self-describing. Checklist Conventional Commit title (e.g. feat:, fix:). Tests cover the change or are not required (explain above). Docs/examples updated when behaviour is user-facing. — N/A (generated types, no doc surface). Schema regenerations (make gen-all) are called out if applicable.

Open Graph Description: Summary Bumps the ACP schema schema-v1.16.0 → v1.19.0 and adds the codegen support v1.18+ requires — a plain bump produces invalid models, because v1.18 added two idioms datamodel-codegen can't...

X Description: Summary Bumps the ACP schema schema-v1.16.0 → v1.19.0 and adds the codegen support v1.18+ requires — a plain bump produces invalid models, because v1.18 added two idioms datamodel-codegen can&#...

Opengraph URL: https://github.com/agentclientprotocol/python-sdk/pull/117

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:157c8ee8-fef1-4b8c-984b-c29dfc717467
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDAE2:24C069:396746:4F31F1:6B046D47
html-safe-nonce28c89dd5c5542465649c61f9ca47cc8913f5a6eb9e01aa6e547854a324224d4c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUUyOjI0QzA2OTozOTY3NDY6NEYzMUYxOjZCMDQ2RDQ3IiwidmlzaXRvcl9pZCI6IjQxMTAxODA5Njg0NDk3MzE5MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb0355b4166446e2dc8942915e4794a2f33c557baf5f4743084473670b911ce69
hovercard-subject-tagpull_request:4029601398
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/agentclientprotocol/python-sdk/pull/117/files
twitter:imagehttps://avatars.githubusercontent.com/u/51709227?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/51709227?s=400&v=4
og:image:altSummary Bumps the ACP schema schema-v1.16.0 → v1.19.0 and adds the codegen support v1.18+ requires — a plain bump produces invalid models, because v1.18 added two idioms datamodel-codegen can't...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/agentclientprotocol/python-sdk git https://github.com/agentclientprotocol/python-sdk.git
octolytics-dimension-user_id235308037
octolytics-dimension-user_loginagentclientprotocol
octolytics-dimension-repository_id1051445009
octolytics-dimension-repository_nwoagentclientprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1051445009
octolytics-dimension-repository_network_root_nwoagentclientprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecfb5f24c6e01d85f70804652a5107e5cac03a161
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/agentclientprotocol/python-sdk/pull/117/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fagentclientprotocol%2Fpython-sdk%2Fpull%2F117%2Ffiles
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%2Fagentclientprotocol%2Fpython-sdk%2Fpull%2F117%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=agentclientprotocol%2Fpython-sdk
Reloadhttps://github.com/agentclientprotocol/python-sdk/pull/117/files
Reloadhttps://github.com/agentclientprotocol/python-sdk/pull/117/files
Reloadhttps://github.com/agentclientprotocol/python-sdk/pull/117/files
agentclientprotocolhttps://github.com/agentclientprotocol
python-sdkhttps://github.com/agentclientprotocol/python-sdk
Codehttps://github.com/agentclientprotocol/python-sdk
Issues4 (4)https://github.com/agentclientprotocol/python-sdk/issues
Pull requests12 (12)https://github.com/agentclientprotocol/python-sdk/pulls
Discussionshttps://github.com/agentclientprotocol/python-sdk/discussions
Actionshttps://github.com/agentclientprotocol/python-sdk/actions
Projectshttps://github.com/agentclientprotocol/python-sdk/projects
Security and qualityhttps://github.com/agentclientprotocol/python-sdk/security
Insightshttps://github.com/agentclientprotocol/python-sdk/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fagentclientprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fagentclientprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
PsiACEhttps://github.com/PsiACE
mainhttps://github.com/agentclientprotocol/python-sdk/tree/main
micheltho/bump-acp-schema-v1.19.0https://github.com/agentclientprotocol/python-sdk/tree/micheltho/bump-acp-schema-v1.19.0
Conversation 5 https://github.com/agentclientprotocol/python-sdk/pull/117
Commits 4 https://github.com/agentclientprotocol/python-sdk/pull/117/commits
Checks 16 https://github.com/agentclientprotocol/python-sdk/pull/117/checks
Files changed https://github.com/agentclientprotocol/python-sdk/pull/117/files
Please reload this pagehttps://github.com/agentclientprotocol/python-sdk/pull/117/files
feat(schema): bump ACP schema to v1.19.0 (extensible unions + lenient deserialization) https://github.com/agentclientprotocol/python-sdk/pull/117/files#top
Show all changes 4 commits https://github.com/agentclientprotocol/python-sdk/pull/117/files
73d18fb feat(schema): support custom/future variants and bump ACP schema to v… michelTho Jul 10, 2026 https://github.com/agentclientprotocol/python-sdk/pull/117/commits/73d18fbdd2e49f8d0cb2d77a589b07bd000682ad
a5595e7 feat(schema): honor x-deserialize-default-on-error and skip-invalid-i… michelTho Jul 10, 2026 https://github.com/agentclientprotocol/python-sdk/pull/117/commits/a5595e7e747d23331a06843571e7bcaa350c4630
ecc5522 fix(client): reject unknown elicitation modes with a clean error michelTho Jul 10, 2026 https://github.com/agentclientprotocol/python-sdk/pull/117/commits/ecc5522237950fe3738b973b7804c85e9c7aa8ea
136ca75 fix(schema): terminate generated JSON with a trailing newline michelTho Jul 10, 2026 https://github.com/agentclientprotocol/python-sdk/pull/117/commits/136ca757a6f40e0985793fcd98d4900bd0ce1746
Clear filters https://github.com/agentclientprotocol/python-sdk/pull/117/files
Please reload this pagehttps://github.com/agentclientprotocol/python-sdk/pull/117/files
Please reload this pagehttps://github.com/agentclientprotocol/python-sdk/pull/117/files
VERSION https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-2a69ecaa89fed73fbedd25d8340afe1f21e670155dc73966d1f447643ed37d9b
schema.json https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-0b2fc27ac0471e3c69834e795e5af9bd15eed23346db630db41a10525bbc44e6
gen_all.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-12eb2e323819396b6e1e67dde0bc1cab3c2b9c9e52a2cb3dba63a9ef265bd8ab
gen_schema.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-2a8c4bc2b507719195d92fe730bd2f171ed57425ddc1cc1dd152366238c5dd51
__init__.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-49169bbce7f6c3373bf60b361555f30f07cd2b7e61f02ae497f70570ae28b771
_deserialize.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-363c00a6bd59e2086537b68a3eeba9815527770913e50e8a4407fb401fb6f50f
router.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-d3bf3b4866891d951081c5f3682080bb5a5b1ee8d565d75e5ea12c7d5189e87a
meta.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-515276fdf9bdaeff17b9098e8ddcd5de52f0f43911b6a8369a57088c1e547ef1
schema.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-4019a5753f795f058795e9b4642fa18f1738634a3ee1d79574a787d944c1ca33
test_deserialize.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-72020c041d014380dab4d68da64680d4f923a85664a3dd5cf86103541c1a175c
test_elicitation_catchall.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-56ea1cbe62f25230523f64dd7ec348dba4effd483a81c7d166d1ce2a53f34f3d
test_gen_all.py https://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-6aa1a32593906206488b5b7d30da5e6533e857b4edf69c5ed9b45b45fe1a0c1c
schema/VERSIONhttps://github.com/agentclientprotocol/python-sdk/pull/117/files#diff-2a69ecaa89fed73fbedd25d8340afe1f21e670155dc73966d1f447643ed37d9b
View file https://github.com/agentclientprotocol/python-sdk/blob/136ca757a6f40e0985793fcd98d4900bd0ce1746/schema/VERSION
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/agentclientprotocol/python-sdk/pull/117/{{ revealButtonHref }}
Please reload this pagehttps://github.com/agentclientprotocol/python-sdk/pull/117/files
Please reload this pagehttps://github.com/agentclientprotocol/python-sdk/pull/117/files
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.