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
Domain: github.com
IPv4 address: 140.82.112.4
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:157c8ee8-fef1-4b8c-984b-c29dfc717467 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DAE2:24C069:396746:4F31F1:6B046D47 |
| html-safe-nonce | 28c89dd5c5542465649c61f9ca47cc8913f5a6eb9e01aa6e547854a324224d4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUUyOjI0QzA2OTozOTY3NDY6NEYzMUYxOjZCMDQ2RDQ3IiwidmlzaXRvcl9pZCI6IjQxMTAxODA5Njg0NDk3MzE5MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b0355b4166446e2dc8942915e4794a2f33c557baf5f4743084473670b911ce69 |
| hovercard-subject-tag | pull_request:4029601398 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/agentclientprotocol/python-sdk/pull/117/files |
| twitter:image | https://avatars.githubusercontent.com/u/51709227?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/51709227?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/agentclientprotocol/python-sdk git https://github.com/agentclientprotocol/python-sdk.git |
| octolytics-dimension-user_id | 235308037 |
| octolytics-dimension-user_login | agentclientprotocol |
| octolytics-dimension-repository_id | 1051445009 |
| octolytics-dimension-repository_nwo | agentclientprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1051445009 |
| octolytics-dimension-repository_network_root_nwo | agentclientprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width