Repository navigation
Comparing changes
Open a pull request
base repository: adcontextprotocol/adcp-client-python
base: v8.1.3
head repository: adcontextprotocol/adcp-client-python
compare: v8.2.0
- 8 commits
- 34 files changed
- 3 contributors
Commits on Oct 16, 2026
-
feat(server): backport compact output schemas to 8.x so discovery is …
…servable (#1512) Backport of #1507 to `release/8.x`. `examples/seller_agent.py` on this line answers MCP discovery with a 22,777,757-byte (21.7 MiB) `tools/list` for 12 tools. A buyer applying the AdCP default 4 MiB response budget (adcontextprotocol/adcp#8190) rejects that outright, so the agent looks unreachable rather than verbose — which is how adcp-client's python reference seller gate executes zero tracks against it. Not over-advertisement: the override filter already narrows the handler to the 12 tools it implements. `_generate_pydantic_output_schemas` called `_model_to_json_schema` without a `schema_mode`, so every output schema took that function's own `"inline"` default and expanded each shared `$ref` once per reference, while input schemas had been `"compact"` since they were introduced. On this branch `list_creatives` went out as a 14,247-byte input next to a 4,802,383-byte output. Output schemas now honour `schema_mode`, compact by default, so both sides of a tool definition have the same shape. Clients already had to resolve local `$ref` to read an `inputSchema`; `schema_mode="inline"` still restores the reference-free shape for those that cannot. Three things the switch required rather than merely permitted: - `_widen_media_buy_output_schema_for_legacy_statuses` walks `anyOf` arms expecting inline `properties`, so against a `$ref` arm it silently no-ops — advertising a schema that rejects a legitimate negotiated-3.0 `status: "pending_creatives"`. It now resolves refs, and widens a copy under a new definition name rather than mutating a `$defs` entry nothing guarantees is unshared. Repointing the arm strands the definition it left, so unreachable definitions are collected again afterwards: the stranded twin still carries the narrow `status: {"const": "completed"}`, and a client resolving by model name rather than by `$ref` would pick exactly the shape this widening replaces. - `_prune_to_required_fields` flipped `additionalProperties: false` to `true` whenever it dropped an optional. With inline outputs that never applied to them; with compact outputs it would have advertised objects as accepting keys the runtime model rejects. A dropped optional now keeps its name bound to `true` instead, so the object stays closed and the field inventory survives. - The non-compact modes regenerate the whole Pydantic graph on every call, which on this line lands on four per-request callers including the pre-auth agent-card route. Adding outputs to that path would have taken it from ~1.9s to ~7.1s per request, and `schema_mode="inline"` is the documented way to restore the old shape — so the generated schemas are now memoized per (kind, mode, tool). Repeat calls: defs 7.5s -> 0.35s, inline 7.4s -> 0.44s. examples/seller_agent.py tools/list: 22,777,757 -> 1,251,781 bytes. The CHANGELOG records the advertised shape change for upgraders: output schemas gain local `$ref`s and boolean property schemas, and 38 nested input objects now advertise `additionalProperties: false` to match what the models already enforced. Released as a minor, not a patch. The advertised discovery contract changes for every non-pinned seller on this line: - `outputSchema` now uses local `$defs`/`$ref` and boolean property schemas (a dropped optional keeps its name bound to `true`) where it previously inlined everything. A client that parses `outputSchema` must resolve local references; one that indexes into a property as an object (`schema["properties"][name]["type"]`) raises `TypeError` on a kept name. - `inputSchema` gains `additionalProperties: false` on 38 nested objects across 11 tools, matching what the runtime models already enforced. - `tools/list` for the reference seller drops from ~21.7 MiB to ~1.19 MiB. `schema_mode="inline"` on `create_mcp_server()` / `serve()` / `MCPToolSet` restores the previous shape. This line does not ship the buyer-side response cap, so an 8.x buyer may have been parsing the old payload successfully — which is why this is a minor rather than a patch. The buyer-side response cap from #1504 is deliberately not backported; this is the seller-side half only. Refs #1507 Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3f770b0 - Browse repository at this point
Copy the full SHA 3f770b0View commit details
Commits on Oct 24, 2026
-
ci: backport real-TLS status tolerance and conventional-commit rerun …
Configuration menu - View commit details
-
Copy full SHA for 3c46980 - Browse repository at this point
Copy the full SHA 3c46980View commit details -
fix(governance): backport crit-marker and alg checks to 8.x (#1581)
Backport of #1539 to release/8.x. Strict base64url decoding is held: it would reject padded or standard-alphabet input 8.x accepts today.
Configuration menu - View commit details
-
Copy full SHA for c58300d - Browse repository at this point
Copy the full SHA c58300dView commit details -
fix(webhooks): backport reporting_webhook operation_id echo on schedu…
Configuration menu - View commit details
-
Copy full SHA for 9f8f705 - Browse repository at this point
Copy the full SHA 9f8f705View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a5e795 - Browse repository at this point
Copy the full SHA 3a5e795View commit details -
fix(types): backport generated creatives constraints on canonical pac…
Configuration menu - View commit details
-
Copy full SHA for 9b3d11e - Browse repository at this point
Copy the full SHA 9b3d11eView commit details
Commits on Oct 25, 2026
-
fix(types): backport open asset-union crash fixes to 8.x (#1586)
Backport of the crash fixes from #1501 to release/8.x, without its re-routing. Undeclared asset types now fall back to UnknownFormatAsset / UnknownGroupAsset inside repeatable groups and list_creative_formats responses; every document 8.x already parses keeps its result and advertised schema.
Configuration menu - View commit details
-
Copy full SHA for d64c200 - Browse repository at this point
Copy the full SHA d64c200View commit details -
chore(release/8.x): release 8.2.0 (#1520)
Co-authored-by: aao-ipr-bot[bot] <279263549+aao-ipr-bot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for da1b689 - Browse repository at this point
Copy the full SHA da1b689View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v8.1.3...v8.2.0