Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: adcontextprotocol/adcp-client-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.1.3
Choose a base ref
...
head repository: adcontextprotocol/adcp-client-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.2.0
Choose a head ref
  • 8 commits
  • 34 files changed
  • 3 contributors

Commits on Oct 16, 2026

  1. 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]>
    bokelley and claude authored Oct 16, 2026
    Configuration menu
    Copy the full SHA
    3f770b0 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2026

  1. ci: backport real-TLS status tolerance and conventional-commit rerun …

    …fix to 8.x (#1580)
    
    Backport of #1576 and the conventional-commit rerun part of #1550 to release/8.x.
    bokelley authored Oct 24, 2026
    Configuration menu
    Copy the full SHA
    3c46980 View commit details
    Browse the repository at this point in the history
  2. 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.
    bokelley authored Oct 24, 2026
    Configuration menu
    Copy the full SHA
    c58300d View commit details
    Browse the repository at this point in the history
  3. fix(webhooks): backport reporting_webhook operation_id echo on schedu…

    …led delivery to 8.x (#1582)
    
    Backport of #1552 to release/8.x (refs #1092), using approach (a): operation_id is read from ReportingWebhook extras and validated at send time; no typed field.
    
    fix(webhooks): media_buy_delivery reports no longer default notification_id to {task_id}.terminal
    bokelley authored Oct 24, 2026
    Configuration menu
    Copy the full SHA
    9f8f705 View commit details
    Browse the repository at this point in the history
  4. fix(canonical-formats): backport full format-parameter comparison and…

    … symmetric implied 1x to 8.x (#1583)
    
    Backport of #1518 and #1553 to release/8.x.
    bokelley authored Oct 24, 2026
    Configuration menu
    Copy the full SHA
    3a5e795 View commit details
    Browse the repository at this point in the history
  5. fix(types): backport generated creatives constraints on canonical pac…

    …kages and sync to 8.x (#1584)
    
    Backport of #1548 to release/8.x. SyncCreativesRequest.creatives stays required on 8.x; #1546 is not ported.
    bokelley authored Oct 24, 2026
    Configuration menu
    Copy the full SHA
    9b3d11e View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2026

  1. 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.
    bokelley authored Oct 25, 2026
    Configuration menu
    Copy the full SHA
    d64c200 View commit details
    Browse the repository at this point in the history
  2. 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>
    aao-ipr-bot[bot] authored Oct 25, 2026
    Configuration menu
    Copy the full SHA
    da1b689 View commit details
    Browse the repository at this point in the history
Loading