diff --git a/CHANGELOG.md b/CHANGELOG.md index 147a21fb1..6c6e9e565 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,337 @@ # Changelog -## Unreleased +## [10.0.0](https://github.com/adcontextprotocol/adcp-client-python/compare/v9.6.2...v10.0.0) (2026-12-04) + +SDK 10 targets AdCP 3.3.0. This section consolidates the 28 betas and 9 +release candidates released from `next`: every change since 9.6.2, with +entries 9.x already shipped left out. Read +[MIGRATION_v9_to_v10.md](MIGRATION_v9_to_v10.md) before upgrading; it +gives the adopter action for each breaking change. The per-prerelease +entries remain, unchanged, in [CHANGELOG.next.md](CHANGELOG.next.md). + +### ⚠ BREAKING CHANGES + +* **protocol:** the SDK pins AdCP 3.3.0 and speaks `"3.3"`. It advertises + 3.0, 3.1, 3.2, 3.3 and the 3.2-rc.7 alias; every 3.3 prerelease pin + (`3.3-beta.0` through `3.3-rc.3`) raises `ConfigurationError`, and a peer + advertising only one negotiates down to 3.2. Generated types, bundled + schemas and validators follow the 3.3.0 bundle, including its + `maxItems` / `maxLength` bounds on new and experimental fields, the + protocol envelope on every response, the withdrawals of adcp#8537 and + adcp#8501, and the renamed experimental values of adcp#8901. +* **types:** `UniversalMacro` is a `RootModel` union (the closed enum is + `UniversalMacro3`); `adcp.types.experimental_identity` binds the generated + 3.3 types; macro declaration variants have names; `IdentityMatchTmpxMacro` + and `ProviderRegistrationTmpxMacro` are removed; `adcp.types.generated_poc` + no longer imports; generated enums drop their `_1` alias members. +* **types:** type-level changes with no changelog entry until now: + `status` on `CreateMediaBuyResponse1` / `UpdateMediaBuyResponse1` and their + `*SuccessResponse` / `Legacy*` names is the generated task-status enum + (now also `adcp.types.ProtocolTaskStatus`) instead of `Literal['completed']`, + so a subclass narrowing to `Literal['completed']` fails mypy; + `AgentPermissionDeniedDetails.reason` is a required enum; bounded list + items are `ScalarStr` subclasses (`list[PlanId]`); package-level domain + modules no longer bind names a second schema now declares (`core.Category`, + `core.Severity`, ...); request-local `Opportunity` / `Status` classes moved + to `core.opportunity_context.OpportunityContext`; numbered generated + classes renumbered, and `core.reporting_subscription.AccountId7` (from a + prerelease) is gone. +* **codegen:** `model_dump()` writes wire names for aliased fields, re-emits a + received `null`, reads a `None` keyword argument as unset, and leaves an + unset schema default off the dump. `AdCPBaseModel` keeps unknown keys + (`extra='allow'`) on open schema objects. +* **server:** a version pin, or the newest release in `supported_versions`, + sets the release handlers run on. A task the caller's release does not + define fails with `UNSUPPORTED_FEATURE`. MCP `tools/list` omits + `outputSchema` unless `advertise_output_schemas=True`, and the default + `schema_mode` is `"lean"`. `control_media_buy` refuses an undeclared + `start_requires_all_creatives_approved: true`. `validate_platform` fails a + declared `list_proposals` / `list_collections` without the method. +* **accounts:** `NaturalKeyAccounts` requires `loader_by_id`, and + `ADCPClient` sends `{"account_id": ...}` to 3.3 sellers once provisioned. + `AccountRegistry.ensure` returns an `AccountOutcome`. `list_account_changes` + records need `changed_paths`, and `idempotency_key` reaches only the + originating principal. +* **webhooks:** `WebhookReceiver` caps bodies at 1 MiB and bounds JSON depth + and members before verification. Reporting and artifact registrations + without `authentication` must be signed (`WebhookSigningProfileUnavailableError`). + Challenge helpers require `seller_agent_url` and `event_types` and an + RFC 9421 sender. Agent-level registrations of the 3.3 account-anchored + notification types need `all_authorized_accounts: true`. +* **signing:** brand.json fetchers refuse a `max_body_bytes` above 2 MiB; + RFC 9421 comes from `http-message-signatures` / `http-sf` and JWKs from + `joserfc` (`jwk_thumbprint` returns `str`; `private_key_from_jwk` checks + the public members). Constructing RFC 9421 signing or verification + without Web Bot Auth emits a `DeprecationWarning`. +* **a2a:** with request signing configured, requests that break the AdCP 3.3 + operation-resolution hardening are refused. +* **client:** responses deeper than 64 or with more than 524,288 members + raise `ADCPResponseTooComplexError`; 3.3 requests the 3.2 contract cannot + express fail before sending; `start_requires_all_creatives_approved: true` + is refused to a seller known not to declare it. +* **decisioning:** property-list domain identifiers must be lowercase ASCII + hostnames; an advertised `measurement_window` must be declared; oversized + `publisher_domains` / `data_provider_domains` are truncated; + `find_declaration_by_kind` raises `FormatOptionRefRequiredError` when + several declarations share a kind. +* **adagents:** permissive `resolve_properties_for_agent` needs + `publisher_domain=`; an origin-only `authorized_agents[].url` authorizes + every agent at that origin, and every matching entry authorizes. +* **canonical-formats:** `PixelTrackerDowngrade.v1` is `None` for 3.3 + playback events. +* **reporting:** reporting-subscription coverage, grant and controller rules + follow 3.3.0-beta.4, and `ReliableReportingService` withholds + `contract_version` 1.2 definitions from buyers below 3.3. The + `adcp-reporting-storage` storage contract is 2: install + `adcp-reporting-storage>=0.2.0b1` and run `python -m adcp migrate`. +* **deps:** `cryptography>=45.0.1`; new `joserfc`, `standardwebhooks`, + `http-message-signatures` and `http-sf` requirements. + +### Features + +* **accounts:** reference accounts by account_id under AdCP 3.3 ([#1954](https://github.com/adcontextprotocol/adcp-client-python/issues/1954)) ([6bc872e](https://github.com/adcontextprotocol/adcp-client-python/commit/6bc872e18a37e894a9661e350c5df999d2678e22)) +* **accounts:** add accounts.change and use for account requests ([6207e4c](https://github.com/adcontextprotocol/adcp-client-python/commit/6207e4c75240fc634d7f910d729b4637d12fbf74)) +* **accounts:** enforce change feed changed_paths and per-reader idempotency_key ([#1647](https://github.com/adcontextprotocol/adcp-client-python/issues/1647)) ([#1805](https://github.com/adcontextprotocol/adcp-client-python/issues/1805)) ([d9ba90c](https://github.com/adcontextprotocol/adcp-client-python/commit/d9ba90cb430ca8bc18f87d7a768dc71fdb5801b6)) +* **accounts:** read a pending account change back with change_status ([539d829](https://github.com/adcontextprotocol/adcp-client-python/commit/539d829b2d01c10216b4e7fddd5262aa39f4a938)) +* **accounts:** ensure returns an AccountOutcome and routes to request_account ([406a58d](https://github.com/adcontextprotocol/adcp-client-python/commit/406a58dc062c996f370680192a086c6cb0588e61)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **adagents:** report unchecked cross-domain claims in undetermined ([#1951](https://github.com/adcontextprotocol/adcp-client-python/issues/1951)) ([47ec1ea](https://github.com/adcontextprotocol/adcp-client-python/commit/47ec1eaee582d016c30d36fef474507ac72a6993)) +* **adagents:** attribute properties to a publisher domain, gate permissive resolution, verify cross-domain claims ([#1711](https://github.com/adcontextprotocol/adcp-client-python/issues/1711)) ([f775e13](https://github.com/adcontextprotocol/adcp-client-python/commit/f775e1344c94def42c5d018ecc9f45185a7cf2be)) +* **canonical-formats:** rewrite 3.3 playback pixel trackers to custom for 3.2 peers ([#1643](https://github.com/adcontextprotocol/adcp-client-python/issues/1643)) ([#1800](https://github.com/adcontextprotocol/adcp-client-python/issues/1800)) ([41c3988](https://github.com/adcontextprotocol/adcp-client-python/commit/41c39887dbbfbd255a1e099b13feb97df635505e)) +* **capabilities:** self-report adcp.implementation.sdks ([#1646](https://github.com/adcontextprotocol/adcp-client-python/issues/1646)) ([#1812](https://github.com/adcontextprotocol/adcp-client-python/issues/1812)) ([f01d750](https://github.com/adcontextprotocol/adcp-client-python/commit/f01d750cb1a1832144d524c51a2be3efcf5e0b6f)) +* **client:** refuse start_requires_all_creatives_approved: true to a seller known not to declare it ([#1878](https://github.com/adcontextprotocol/adcp-client-python/issues/1878)) ([8a163c9](https://github.com/adcontextprotocol/adcp-client-python/commit/8a163c9bc772aaee4a728bb6e90d728726a81ef7)), closes [#1876](https://github.com/adcontextprotocol/adcp-client-python/issues/1876) +* **client:** mark local refusals as undispatched and classify every error's recovery ([63d6ad0](https://github.com/adcontextprotocol/adcp-client-python/commit/63d6ad0722ca58282176651541964a6366161867)) +* **codegen:** mark wire-required fields, and leave an unset schema default off the dump ([#1683](https://github.com/adcontextprotocol/adcp-client-python/issues/1683)) ([d0ea184](https://github.com/adcontextprotocol/adcp-client-python/commit/d0ea1840a51aee259ce0853f5176ca17252b0651)) +* **compat:** semantic 3.3 → 3.2 downgrade rules ([#1717](https://github.com/adcontextprotocol/adcp-client-python/issues/1717)) ([fab1adf](https://github.com/adcontextprotocol/adcp-client-python/commit/fab1adf1ca606dbe174820deb901d0a62333d849)), closes [#1667](https://github.com/adcontextprotocol/adcp-client-python/issues/1667) +* **decisioning:** let a raised AdcpError reject a request with every error ([#1780](https://github.com/adcontextprotocol/adcp-client-python/issues/1780)) ([#1804](https://github.com/adcontextprotocol/adcp-client-python/issues/1804)) ([0439d67](https://github.com/adcontextprotocol/adcp-client-python/commit/0439d676584391cb310fe84463bdfca51e8575e9)) +* **decisioning:** AdCP 3.3 seller-side rules ([#1720](https://github.com/adcontextprotocol/adcp-client-python/issues/1720)) ([fbf13c9](https://github.com/adcontextprotocol/adcp-client-python/commit/fbf13c9d180e8e2a9ecd47daedba6c6b246a6bee)) +* **decisioning:** resolve account_id references in NaturalKeyAccounts for AdCP 3.3 ([#1653](https://github.com/adcontextprotocol/adcp-client-python/issues/1653)) ([dca87b9](https://github.com/adcontextprotocol/adcp-client-python/commit/dca87b95257a64ddf35197eb99fe733740b4b0b7)), closes [#1478](https://github.com/adcontextprotocol/adcp-client-python/issues/1478) +* **errors:** AdCP 3.3 mutation_outcome and unsupported-targeting-dimension details ([#1642](https://github.com/adcontextprotocol/adcp-client-python/issues/1642)) ([#1811](https://github.com/adcontextprotocol/adcp-client-python/issues/1811)) ([40a82f5](https://github.com/adcontextprotocol/adcp-client-python/commit/40a82f5b6cf73fb49a971b82e67fe0f5007f2cc2)) +* **examples:** serve the AdCP 3.3 property breakdowns from injected rows in the reference seller ([#1715](https://github.com/adcontextprotocol/adcp-client-python/issues/1715)) ([a998b82](https://github.com/adcontextprotocol/adcp-client-python/commit/a998b82242d262ad45ffded430a8386111cbceec)), closes [#1669](https://github.com/adcontextprotocol/adcp-client-python/issues/1669) +* **identity:** verify JWS artifacts on the issuer's Web Bot Auth key directory ([#1543](https://github.com/adcontextprotocol/adcp-client-python/issues/1543)) ([233ebee](https://github.com/adcontextprotocol/adcp-client-python/commit/233ebeefd1bd44640a9fa983299c6a65410b2356)) +* **media-buy:** enforce AdCP 3.3 provisional-buy, revision-origin and webhook-signing rules ([#1807](https://github.com/adcontextprotocol/adcp-client-python/issues/1807)) ([c6aa913](https://github.com/adcontextprotocol/adcp-client-python/commit/c6aa91332979a3f798eecafcadf480817ad9d520)), closes [#1644](https://github.com/adcontextprotocol/adcp-client-python/issues/1644) +* **protocol:** adopt the signed AdCP 3.3.0 bundle ([#2002](https://github.com/adcontextprotocol/adcp-client-python/issues/2002)) ([a52e164](https://github.com/adcontextprotocol/adcp-client-python/commit/a52e164279aa0e97c5230186eb827f6920ce6e5d)) +* **protocol:** adopt the signed AdCP 3.3.0-rc.3 bundle ([#1941](https://github.com/adcontextprotocol/adcp-client-python/issues/1941)) ([aa0d8bb](https://github.com/adcontextprotocol/adcp-client-python/commit/aa0d8bb4896bde20c81f6affc5e341873b81ebcb)) +* **protocol:** adopt the signed AdCP 3.3.0-rc.0 bundle ([#1919](https://github.com/adcontextprotocol/adcp-client-python/issues/1919)) ([2f46153](https://github.com/adcontextprotocol/adcp-client-python/commit/2f4615392a65730a6ee832674cd4e6860b02b387)) +* **protocol:** adopt the signed AdCP 3.3.0-beta.6 bundle ([#1901](https://github.com/adcontextprotocol/adcp-client-python/issues/1901)) ([ce9b30c](https://github.com/adcontextprotocol/adcp-client-python/commit/ce9b30c8f471925219043e76a9553d9d9ce05625)) +* **protocol:** adopt the signed AdCP 3.3.0-beta.5 bundle ([#1866](https://github.com/adcontextprotocol/adcp-client-python/issues/1866)) ([f45385d](https://github.com/adcontextprotocol/adcp-client-python/commit/f45385d841dc92a5aa2736d88e812379bf15221b)) +* **protocol:** adopt the signed AdCP 3.3.0-beta.3 bundle ([cd92060](https://github.com/adcontextprotocol/adcp-client-python/commit/cd920600706d3dec6d66e37db9ca68afc8820d94)) +* **protocol:** adopt the signed AdCP 3.3.0-beta.2 bundle ([#1732](https://github.com/adcontextprotocol/adcp-client-python/issues/1732)) ([3e23bec](https://github.com/adcontextprotocol/adcp-client-python/commit/3e23becd8a2cb392ba9cd4df343f0a9a05456394)) +* **protocol:** adopt the signed AdCP 3.3.0-beta.1 bundle ([#1691](https://github.com/adcontextprotocol/adcp-client-python/issues/1691)) ([b603eac](https://github.com/adcontextprotocol/adcp-client-python/commit/b603eac1ee0133cafea7ca18d899a1d26f8635af)) +* **protocol:** adopt the signed AdCP 3.3.0-beta.0 bundle ([#1662](https://github.com/adcontextprotocol/adcp-client-python/issues/1662)) ([7472aae](https://github.com/adcontextprotocol/adcp-client-python/commit/7472aae088de21ea77b27c4d796d72cacde0751c)) +* **reporting:** resolve live offerings per serving agent ([#1982](https://github.com/adcontextprotocol/adcp-client-python/issues/1982)) ([bdaa362](https://github.com/adcontextprotocol/adcp-client-python/commit/bdaa362b186ee9066d926bdf770e8ef3ae5a5c9d)) +* **reporting:** Bind account offerings per configuration generation ([#1962](https://github.com/adcontextprotocol/adcp-client-python/issues/1962)) ([530572b](https://github.com/adcontextprotocol/adcp-client-python/commit/530572b309c087a5907dc338a32137f1d6cc4758)) +* **reporting:** port policy-bound official finality to 10.x ([#1960](https://github.com/adcontextprotocol/adcp-client-python/issues/1960)) ([e70d0c1](https://github.com/adcontextprotocol/adcp-client-python/commit/e70d0c1d94e89643233bffab20eaa8bde73d19bc)) +* **reporting:** refuse revisions outside an obligation's frozen coverage ([#1974](https://github.com/adcontextprotocol/adcp-client-python/issues/1974)) ([e5503cd](https://github.com/adcontextprotocol/adcp-client-python/commit/e5503cd12da3ed62307284a2bc4f92575a1c6240)), closes [#1973](https://github.com/adcontextprotocol/adcp-client-python/issues/1973) +* **reporting:** serve 1.2 report definitions only to AdCP 3.3 callers ([#1959](https://github.com/adcontextprotocol/adcp-client-python/issues/1959)) ([9034062](https://github.com/adcontextprotocol/adcp-client-python/commit/9034062f32a775e20c766af293069a93973f98ce)) +* **reporting:** publish allow_partial periods over the covered denominator ([#1963](https://github.com/adcontextprotocol/adcp-client-python/issues/1963)) ([ab27a72](https://github.com/adcontextprotocol/adcp-client-python/commit/ab27a72e6c9315362d4c34af6206fbabbe5e50c7)), closes [#1961](https://github.com/adcontextprotocol/adcp-client-python/issues/1961) +* **reporting:** support reporting scope all_media_buys for sellers ([#1945](https://github.com/adcontextprotocol/adcp-client-python/issues/1945)) ([f386ba7](https://github.com/adcontextprotocol/adcp-client-python/commit/f386ba7fdf35ad7d321e4957059a66ed1f20caf8)) +* **reporting:** freeze flat package coverage at period close ([beebb36](https://github.com/adcontextprotocol/adcp-client-python/commit/beebb368457856a2de2c6e9a0244b1863626e4fe)) +* **reporting:** resolve dynamic status account surfaces ([37a610a](https://github.com/adcontextprotocol/adcp-client-python/commit/37a610ad092eed89c432728cb0a81ba9ec8bd775)) +* **reporting:** notify the adopter when a reporting issue opens, escalates or resolves ([#1875](https://github.com/adcontextprotocol/adcp-client-python/issues/1875)) ([74bbe6f](https://github.com/adcontextprotocol/adcp-client-python/commit/74bbe6facd8c4108e803babc23e979e7b2b5c3a9)) +* **reporting:** adopt AdCP 3.3.0-beta.4 coverage, grant and controller rules and the signed bundle ([#1851](https://github.com/adcontextprotocol/adcp-client-python/issues/1851)) ([a2fdc2b](https://github.com/adcontextprotocol/adcp-client-python/commit/a2fdc2b2c30edffec73567a09bc6a3a1dae86a75)) +* **reporting:** add buyer reconcile and explain on client.reporting ([c830344](https://github.com/adcontextprotocol/adcp-client-python/commit/c830344ed5297551f9bf9ef0beeea756027f12ab)) +* **reporting:** add the buyer receipts policy to reconcile ([9072f35](https://github.com/adcontextprotocol/adcp-client-python/commit/9072f3511113695e26315d55da2d57bc7171cef1)) +* **reporting:** add the reporting test kit, reference seller and pytest fixture ([0dac622](https://github.com/adcontextprotocol/adcp-client-python/commit/0dac622ff94ae020154af66ab03886c99cf3a8e9)) +* **reporting:** derive buyer reporting events with poll, events and handle_webhook ([49ea7de](https://github.com/adcontextprotocol/adcp-client-python/commit/49ea7deab231f23533548b77ce8e8f4642fc07fe)) +* **reporting:** explain coverage with a shared CoverageTrace ([a025dbd](https://github.com/adcontextprotocol/adcp-client-python/commit/a025dbd77bf9d560ffc9997a14a10ef945bdead8)) +* **reporting:** serve the reference seller standalone and pass the TypeScript storyboard ([76812b8](https://github.com/adcontextprotocol/adcp-client-python/commit/76812b8bdb836b8d061410bd9fe124fb82959865)) +* **reporting:** add the buyer write facade and guard raw sync_principal ([a161a2d](https://github.com/adcontextprotocol/adcp-client-python/commit/a161a2d0ade374eccdc66e92079423fef0030199)) +* **reporting:** apply the AdCP 3.3.0-beta.3 seller rules for subscriptions ([fc81bd2](https://github.com/adcontextprotocol/adcp-client-python/commit/fc81bd28a98a0bc7f76ee49c65c9a8bb29bdaa72)) +* **reporting:** check reporting tasks against the current subscription grant ([d34633c](https://github.com/adcontextprotocol/adcp-client-python/commit/d34633c7945bd8119cf501238aa9f7ac0ce1d9f3)) +* **reporting:** conform subscription coverage to the AdCP 3.3.0-beta.3 rules ([aefb17c](https://github.com/adcontextprotocol/adcp-client-python/commit/aefb17ca36d540904501835dafd3075e1b3b0084)) +* **reporting:** deliver reporting subscriptions through production managed delivery ([6015c72](https://github.com/adcontextprotocol/adcp-client-python/commit/6015c72582809c589b3134e98fb0ac5e72ed4c7b)) +* **reporting:** fail closed on a coverage period budget ([330ba77](https://github.com/adcontextprotocol/adcp-client-python/commit/330ba77f261b66ed3478c84ba9af249ebee9c5e2)) +* **reporting:** hold reporting-subscription owed sets in the PostgreSQL ledger ([4808ee5](https://github.com/adcontextprotocol/adcp-client-python/commit/4808ee59f62d41c4988fefd792262838671a32dc)) +* **reporting:** hold reporting-subscription owed sets in the reporting ledger ([e71bd79](https://github.com/adcontextprotocol/adcp-client-python/commit/e71bd79e31c8b5801057b7e3e9fdbf36dc3f67df)) +* **reporting:** make the grant journal the one source of authorized_at ([7851c0d](https://github.com/adcontextprotocol/adcp-client-python/commit/7851c0d448f5080e7cc74ff3bcb692afb5b70cb2)) +* **reporting:** mirror the TypeScript SDK's advanced path, engine errors and readback name ([1b8f704](https://github.com/adcontextprotocol/adcp-client-python/commit/1b8f7040b8127584288b940e89d2b62a52f4f763)) +* **reporting:** mirror the TypeScript SDK's beta.3 names and the wire regranted_at ([5925a3a](https://github.com/adcontextprotocol/adcp-client-python/commit/5925a3a6027182ce6d342fef8b1a422ebc7678f0)) +* **reporting:** read deactivated subscriptions as inactive in coverage ([e840da8](https://github.com/adcontextprotocol/adcp-client-python/commit/e840da86b66f7db94b9afa9e6f5ef398f734cc47)) +* **reporting:** route destinations per account as the TypeScript SDK does ([1a34cfa](https://github.com/adcontextprotocol/adcp-client-python/commit/1a34cfa20bdd6983ee3a4b6a6a517ad69f0c5e37)) +* **reporting:** serve reporting subscriptions from one SubscriptionOptions block ([3288d05](https://github.com/adcontextprotocol/adcp-client-python/commit/3288d05d4abc9da30941f8110bcd2402c62a5e60)) +* **reporting:** serve reporting subscriptions from ReliableReportingService ([f2559ca](https://github.com/adcontextprotocol/adcp-client-python/commit/f2559cadb50f1bb9a0617e051750315925d084b8)) +* **reporting:** subscription rows carry account_id and delivery re-checks authority ([e5d1c9a](https://github.com/adcontextprotocol/adcp-client-python/commit/e5d1c9a6974078f8f31921dc7afe4cac4e61372f)) +* **reporting:** use owed and list_subscription_principals, as the TypeScript SDK does ([0a4e101](https://github.com/adcontextprotocol/adcp-client-python/commit/0a4e10125c4e1bb09878bbc2dda9dbf9987d0a72)) +* **reporting:** accept reporting subscriptions on sync_principal and track what they owe ([#1698](https://github.com/adcontextprotocol/adcp-client-python/issues/1698)) ([04238b2](https://github.com/adcontextprotocol/adcp-client-python/commit/04238b2a5a18732bddecf03ac925eccb39db2538)) +* **reporting:** add buyer client helpers and a tracker for reporting subscriptions ([#1699](https://github.com/adcontextprotocol/adcp-client-python/issues/1699)) ([8a7f482](https://github.com/adcontextprotocol/adcp-client-python/commit/8a7f48206a695e3c5dc3cc7ca46aea1df3c02609)) +* **reporting:** apply the AdCP 3.3 reporting rules ([#1707](https://github.com/adcontextprotocol/adcp-client-python/issues/1707)) ([3e177e6](https://github.com/adcontextprotocol/adcp-client-python/commit/3e177e69fc0fcceafc40a8854f2b7099ad905ca0)), closes [#1669](https://github.com/adcontextprotocol/adcp-client-python/issues/1669) +* **reporting:** compute owed reporting-subscription periods and their capabilities ([#1696](https://github.com/adcontextprotocol/adcp-client-python/issues/1696)) ([58e825a](https://github.com/adcontextprotocol/adcp-client-python/commit/58e825a2c0f802b85edd1eba1a9e3aa7f2f160eb)) +* **reporting:** persist reporting-subscription engine state through a CAS store ([#1722](https://github.com/adcontextprotocol/adcp-client-python/issues/1722)) ([10643c7](https://github.com/adcontextprotocol/adcp-client-python/commit/10643c7fb31f22ef24956c6841c23f6315da698a)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **reporting-storage:** record issue-lifecycle transitions in a transactional outbox ([#1874](https://github.com/adcontextprotocol/adcp-client-python/issues/1874)) ([502a66f](https://github.com/adcontextprotocol/adcp-client-python/commit/502a66f103b17786606a817c1bea304ecf6f1e29)) +* **reporting-storage:** make the contract-2 ledger upgrade rolling-deploy safe with expand and contract ([#1868](https://github.com/adcontextprotocol/adcp-client-python/issues/1868)) ([32fee89](https://github.com/adcontextprotocol/adcp-client-python/commit/32fee8983a3abfa221e6ad4c884d9355414ff6aa)) +* **reporting-storage:** deliver reporting subscriptions through the PostgreSQL production store ([333772f](https://github.com/adcontextprotocol/adcp-client-python/commit/333772fafca5fc14b6ee6be4d7937757ff3550d3)) +* **reporting-storage:** one storage decision with versioned migrations ([c0753d6](https://github.com/adcontextprotocol/adcp-client-python/commit/c0753d6ef5a5794905892668b6b9745fc9f24dd2)) +* **reporting-storage:** add PostgreSQL stores for reporting subscriptions ([#1724](https://github.com/adcontextprotocol/adcp-client-python/issues/1724)) ([46a1e01](https://github.com/adcontextprotocol/adcp-client-python/commit/46a1e01a65e01d547a22a05a3858709c3309a011)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **server:** keep MCP tools/list under the 128 KiB discovery target by default ([#1958](https://github.com/adcontextprotocol/adcp-client-python/issues/1958)) ([16efbf5](https://github.com/adcontextprotocol/adcp-client-python/commit/16efbf5fd6bea278f2ff6c792271f32b48943f5a)) +* **server:** refuse an undeclared creative start policy on control_media_buy ([#1872](https://github.com/adcontextprotocol/adcp-client-python/issues/1872)) ([7baf947](https://github.com/adcontextprotocol/adcp-client-python/commit/7baf947ee3f7a02ff7601c9f91c6589b052870ab)), closes [#1869](https://github.com/adcontextprotocol/adcp-client-python/issues/1869) +* **server:** seller helper for wholesale feed versions ([#1706](https://github.com/adcontextprotocol/adcp-client-python/issues/1706)) ([b014066](https://github.com/adcontextprotocol/adcp-client-python/commit/b014066004782ef312966a90ce0871ac01f2cca2)), closes [#1676](https://github.com/adcontextprotocol/adcp-client-python/issues/1676) +* **signing:** accept any well-formed adcp_use purpose in keygen ([#1708](https://github.com/adcontextprotocol/adcp-client-python/issues/1708)) ([612f97a](https://github.com/adcontextprotocol/adcp-client-python/commit/612f97af9afd66512dc97289d4e8c7f299bcc4e7)) +* **signing:** accept brand.json up to 2 MiB for AdCP 3.3 ([#1654](https://github.com/adcontextprotocol/adcp-client-python/issues/1654)) ([ca8d422](https://github.com/adcontextprotocol/adcp-client-python/commit/ca8d42239dfe5b51d0004ca9771ab741c26f5d8c)), closes [#1635](https://github.com/adcontextprotocol/adcp-client-python/issues/1635) +* **signing:** pin the Public Suffix List snapshot used for eTLD+1 ([#1652](https://github.com/adcontextprotocol/adcp-client-python/issues/1652)) ([a6fd1fa](https://github.com/adcontextprotocol/adcp-client-python/commit/a6fd1fa4cad2e842287e8f7026199fa45ae28dfa)), closes [#1562](https://github.com/adcontextprotocol/adcp-client-python/issues/1562) +* **types:** remove the deprecated 3.1.8 TmpxMacro compatibility classes ([#1952](https://github.com/adcontextprotocol/adcp-client-python/issues/1952)) ([c4d398d](https://github.com/adcontextprotocol/adcp-client-python/commit/c4d398dedef7fec735dbb7f4db5bf0eaff640150)) +* **types:** name macro declaration variants by their asset arm ([#1801](https://github.com/adcontextprotocol/adcp-client-python/issues/1801)) ([64bc9b7](https://github.com/adcontextprotocol/adcp-client-python/commit/64bc9b773d77aba5c31e0b911d45f58306518132)), closes [#1783](https://github.com/adcontextprotocol/adcp-client-python/issues/1783) +* **types:** dump wire names by default ([#1679](https://github.com/adcontextprotocol/adcp-client-python/issues/1679)) ([9c9b1f8](https://github.com/adcontextprotocol/adcp-client-python/commit/9c9b1f80065d1e34107c1ff6d70da11e737372be)) +* **types:** let the schema decide which unknown keys a model keeps ([#1687](https://github.com/adcontextprotocol/adcp-client-python/issues/1687)) ([69ccd70](https://github.com/adcontextprotocol/adcp-client-python/commit/69ccd702a0170cc99575012d15751e03d26dc6e4)) +* **types:** re-emit a received null, and read a None keyword argument as unset ([#1681](https://github.com/adcontextprotocol/adcp-client-python/issues/1681)) ([c048a8c](https://github.com/adcontextprotocol/adcp-client-python/commit/c048a8c0a8e77b4562551ba35b8b6d2937c1db2a)) +* **types:** remove the adcp.types.generated_poc alias in v10 ([#1536](https://github.com/adcontextprotocol/adcp-client-python/issues/1536)) ([893720b](https://github.com/adcontextprotocol/adcp-client-python/commit/893720b649bf5ff5b7ac45d5e5c2c724469fbd98)) +* **version:** accept 3.3-rc.0 as an explicit alias for 3.3-rc.3 ([#1964](https://github.com/adcontextprotocol/adcp-client-python/issues/1964)) ([64dfa3c](https://github.com/adcontextprotocol/adcp-client-python/commit/64dfa3c97526273519e8e6031e185596c15edc75)) +* **webhooks:** sign deliveries under web-bot-auth when a registration asks ([#1860](https://github.com/adcontextprotocol/adcp-client-python/issues/1860)) ([6ec940d](https://github.com/adcontextprotocol/adcp-client-python/commit/6ec940d08cae91c979d1180e2146c682ff488b76)), closes [#1859](https://github.com/adcontextprotocol/adcp-client-python/issues/1859) +* **webhooks:** bound inbound bodies before verification and response JSON shape for AdCP 3.3 ([#1656](https://github.com/adcontextprotocol/adcp-client-python/issues/1656)) ([283f877](https://github.com/adcontextprotocol/adcp-client-python/commit/283f877de119cd75a5624237ea2ef67e0c1aa7c6)), closes [#1636](https://github.com/adcontextprotocol/adcp-client-python/issues/1636) +* emit platform_id and seller_id together on event sources and audiences ([#1953](https://github.com/adcontextprotocol/adcp-client-python/issues/1953)) ([97a8731](https://github.com/adcontextprotocol/adcp-client-python/commit/97a8731e46ad72b71ccf60b604de37c3cad81f5d)) +* per-account reconcile report and fleet reconcile for reporting subscriptions ([#1802](https://github.com/adcontextprotocol/adcp-client-python/issues/1802)) ([33a8bb0](https://github.com/adcontextprotocol/adcp-client-python/commit/33a8bb0e645eb9734e17b5e8d65f2ef2bd011c9f)) +* schedule status checks from expected_confirmation_at ([#1809](https://github.com/adcontextprotocol/adcp-client-python/issues/1809)) ([45a3f89](https://github.com/adcontextprotocol/adcp-client-python/commit/45a3f899436179b56a68e5615ebe933a2b3baab0)) +* serve request_account and account requests from the AccountStore ([#1808](https://github.com/adcontextprotocol/adcp-client-python/issues/1808)) ([e556c3b](https://github.com/adcontextprotocol/adcp-client-python/commit/e556c3b1ed07e1669996e79a6b481ccf3c05ef28)) +* wire the list_proposals and list_collections tasks ([#1803](https://github.com/adcontextprotocol/adcp-client-python/issues/1803)) ([0dc1b21](https://github.com/adcontextprotocol/adcp-client-python/commit/0dc1b21e23ee8136643cf37ffd0c2aafc9254b48)) + +* **signing:** RFC 9421 comes from maintained libraries for every profile. + `http-message-signatures` builds the signature base, assembles + `Signature-Input`, and signs and verifies for the AdCP RFC 9421 request and + webhook profiles and for Web Bot Auth, through an SDK component resolver + that adds the `;key` and `;req` parameters and the AdCP `@target-uri` / + `@authority` canonicalization. `http-sf` parses Structured Fields and + refuses duplicate keys and parameters; governance tokens and publisher-pin + thumbprints use `joserfc`. **Dependencies:** the archived `http-sfv` is + replaced by `http-message-signatures>=2.0.1,<3` and `http-sf>=1.4.0,<2`. + Every request-signing and webhook conformance vector passes with the same + error codes. Wire notes: the signer now emits signature parameters in the + library's order (`created`, `keyid`, `alg`, `expires`, `nonce`, `tag`), + which verifiers read from the header; `@signature-params` is the RFC 8941 + serialization of the received member; `Signature-Input`, `Signature` and + `Content-Digest` must parse as a whole; and `parse_compact_jws` requires a + JSON protected header with `alg`. Refs #1511. + +* **identity:** The experimental Web Bot Auth profile follows the final + adcontextprotocol/adcp#7894 (`e24eeb09`): one `web-bot-auth` signature + and one `Signature-Agent` member per request (relays are refused), signed + key directories only, `ed25519` and `rsa-pss-sha512` only (ES256 stays on + the RFC 9421 profile), a 64-byte nonce on every request, and a reused nonce + answered 429 with `Accept-Signature` carrying a fresh nonce. + `verify_wba_governance_issuer` runs the profile's governance-token key and + issuer checks. The removed options and other changes to this experimental + surface are listed in + [the migration guide](docs/agent-identity-3-3-migration.md#breaking-changes-to-the-experimental-api). + Refs #1511. + +### Bug Fixes + +* **a2a:** enforce the AdCP 3.3 operation-resolution hardening clauses ([#1659](https://github.com/adcontextprotocol/adcp-client-python/issues/1659)) ([b3e34c2](https://github.com/adcontextprotocol/adcp-client-python/commit/b3e34c2ff52770b53e0460c8ff4eb3982e71418b)), closes [#1637](https://github.com/adcontextprotocol/adcp-client-python/issues/1637) +* **accounts:** never serve framework-internal account metadata or auth_info ([#1826](https://github.com/adcontextprotocol/adcp-client-python/issues/1826)) ([2e79ea9](https://github.com/adcontextprotocol/adcp-client-python/commit/2e79ea9b633576965ba4bf7e9dd85ae1e015040b)) +* **accounts:** never serve destination_billing_entity on account reads ([#1823](https://github.com/adcontextprotocol/adcp-client-python/issues/1823)) ([50dc31e](https://github.com/adcontextprotocol/adcp-client-python/commit/50dc31e5d523ad0bd14198deba77d547628ae79f)) +* **accounts:** keep the account status when use re-points a key ([80ce9f0](https://github.com/adcontextprotocol/adcp-client-python/commit/80ce9f02c4dbc9eeee3057af6233299787395dd8)) +* **accounts:** compare normalized pending actions in refresh ([7873bac](https://github.com/adcontextprotocol/adcp-client-python/commit/7873bac850877243ebe0aea6153c93c15394d4a2)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **accounts:** read requests back by request_ids and dedupe across instances ([e779518](https://github.com/adcontextprotocol/adcp-client-python/commit/e779518ae362657b125eb60a8ec70a5fc1976411)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **canonical-formats:** forward projection and narrowing repairs to next ([#1759](https://github.com/adcontextprotocol/adcp-client-python/issues/1759)) ([d005f95](https://github.com/adcontextprotocol/adcp-client-python/commit/d005f959d7b08a5b2320717ba45b50e20e7caf7d)) +* **canonical-formats:** drop playback trackers on the v1 downgrade instead of firing them as impressions ([#1655](https://github.com/adcontextprotocol/adcp-client-python/issues/1655)) ([2ffa538](https://github.com/adcontextprotocol/adcp-client-python/commit/2ffa5380b3bff2a8983447efd8c48dde50964a7a)), closes [#1643](https://github.com/adcontextprotocol/adcp-client-python/issues/1643) +* **codegen:** find postal union arms by shape and pin their names ([#1939](https://github.com/adcontextprotocol/adcp-client-python/issues/1939)) ([1ce27d9](https://github.com/adcontextprotocol/adcp-client-python/commit/1ce27d929b5d14da5dc8438c7fedb75f54940390)), closes [#1935](https://github.com/adcontextprotocol/adcp-client-python/issues/1935) +* **codegen:** reuse SignalListing.Range in SignalListing subclasses by shape, and fail loudly on a miss ([#1891](https://github.com/adcontextprotocol/adcp-client-python/issues/1891)) ([c8434e2](https://github.com/adcontextprotocol/adcp-client-python/commit/c8434e2761d8d9684f2fcfcb39b739d29926eb47)) +* **codegen:** name each generated enum value once ([#1799](https://github.com/adcontextprotocol/adcp-client-python/issues/1799)) ([0357253](https://github.com/adcontextprotocol/adcp-client-python/commit/03572535a5651f5ffda217bd289ec303492f6eb5)) +* **codegen:** generate the composed envelope layout of adcp[#8547](https://github.com/adcontextprotocol/adcp-client-python/issues/8547) ([#1741](https://github.com/adcontextprotocol/adcp-client-python/issues/1741)) ([9a3bc5f](https://github.com/adcontextprotocol/adcp-client-python/commit/9a3bc5fe4382c71d0952f153de943a3c14c55644)) +* **codegen:** keep the controller task_id bounds and the governance corpus valid ([3b01fab](https://github.com/adcontextprotocol/adcp-client-python/commit/3b01fab83d1bffc5e7c1b3bbfd961fdc74244773)) +* **codegen:** find generated classes by name, and derive emitted envelope bases from the bundle ([#1705](https://github.com/adcontextprotocol/adcp-client-python/issues/1705)) ([50fe9e8](https://github.com/adcontextprotocol/adcp-client-python/commit/50fe9e8fc73ebc21635e3636d49fd3cbf512a35e)), closes [#1680](https://github.com/adcontextprotocol/adcp-client-python/issues/1680) +* **compat:** preserve installment collection identity on downgrade ([#1956](https://github.com/adcontextprotocol/adcp-client-python/issues/1956)) ([ddf83c5](https://github.com/adcontextprotocol/adcp-client-python/commit/ddf83c5ca1b01e379b6494e1f83424b6e002c6aa)) +* **compat:** decide the compact response status from the served release's schema ([#1761](https://github.com/adcontextprotocol/adcp-client-python/issues/1761)) ([ed357a7](https://github.com/adcontextprotocol/adcp-client-python/commit/ed357a7852a3a7a24ce310e1776b19a3bb60eb63)) +* **decisioning:** type the managed principal task parameters ([7fc664a](https://github.com/adcontextprotocol/adcp-client-python/commit/7fc664af01fbca75995c087397b1230aa64b9e4d)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **examples:** stop zero-filling impressions and flat multi-standard viewability in the reference seller ([#1709](https://github.com/adcontextprotocol/adcp-client-python/issues/1709)) ([a63836f](https://github.com/adcontextprotocol/adcp-client-python/commit/a63836f21dbe138d5ce021f9fab7e0a8954dbe20)), closes [#1669](https://github.com/adcontextprotocol/adcp-client-python/issues/1669) +* **identity:** one delegation-chain rule for demand-side grants ([#1817](https://github.com/adcontextprotocol/adcp-client-python/issues/1817)) ([d7ef70b](https://github.com/adcontextprotocol/adcp-client-python/commit/d7ef70b21f7c0ce61e5d70abc02211f29a10f3ac)) +* **identity:** a grantee that is not a registrable domain covers no claim ([#1542](https://github.com/adcontextprotocol/adcp-client-python/issues/1542)) ([6cb3c8a](https://github.com/adcontextprotocol/adcp-client-python/commit/6cb3c8a2be7823b3f399cd7351dfa62154439d2c)) +* **identity:** align AdCP 3.3 agent identity with the final spec and the Go and TS SDKs ([#1514](https://github.com/adcontextprotocol/adcp-client-python/issues/1514)) ([2b08ced](https://github.com/adcontextprotocol/adcp-client-python/commit/2b08cedcf5b75e7a364363e1cfcea676bd241456)) +* **identity:** implicit grant authority extends to the brand's house ([#1565](https://github.com/adcontextprotocol/adcp-client-python/issues/1565)) ([4b8b7e4](https://github.com/adcontextprotocol/adcp-client-python/commit/4b8b7e48ce9a695431c57317adbcbb77ee01d220)) +* **identity:** never send a bound origin to the 3.2 profile, and treat a missing kid as invalid ([#1549](https://github.com/adcontextprotocol/adcp-client-python/issues/1549)) ([2db4741](https://github.com/adcontextprotocol/adcp-client-python/commit/2db47417806c8e66ebf9c59c4c279be15db586df)) +* **media-buy-actions:** project change_term_id for AdCP 3.3 prereleases ([#1721](https://github.com/adcontextprotocol/adcp-client-python/issues/1721)) ([ac5d410](https://github.com/adcontextprotocol/adcp-client-python/commit/ac5d4100778534cfaf235846f275a05cd7d2283b)), closes [#1668](https://github.com/adcontextprotocol/adcp-client-python/issues/1668) +* **protocol:** serve the composed envelope on compact responses at 3.3.0-beta.3 ([a81b6e4](https://github.com/adcontextprotocol/adcp-client-python/commit/a81b6e42b4a1370894ca9e62459785453e569df2)) +* **release:** let a storage contract bump pass the companion gate ([#1948](https://github.com/adcontextprotocol/adcp-client-python/issues/1948)) ([58116d6](https://github.com/adcontextprotocol/adcp-client-python/commit/58116d6e5fcf2f6687e40c02a8bf8981d7bc98a1)), closes [#1947](https://github.com/adcontextprotocol/adcp-client-python/issues/1947) +* **reporting:** deliver notifications while a scheduled worker pass runs ([#1999](https://github.com/adcontextprotocol/adcp-client-python/issues/1999)) ([0c8a775](https://github.com/adcontextprotocol/adcp-client-python/commit/0c8a7753d7e203754f17f3e434388794a3fdf755)) +* **reporting:** publish a snapshot only when its content changes ([#1997](https://github.com/adcontextprotocol/adcp-client-python/issues/1997)) ([f19dab4](https://github.com/adcontextprotocol/adcp-client-python/commit/f19dab4b6ad67d001000c4f6b2a9dd0fab35cc74)) +* **reporting:** serve a get_reporting_status page in a linear pass over its snapshot ([#1995](https://github.com/adcontextprotocol/adcp-client-python/issues/1995)) ([409c6f4](https://github.com/adcontextprotocol/adcp-client-python/commit/409c6f4ab8ddbd91ca979e370b9bfc65cd8acfc0)) +* **reporting:** boot beside running workers without deadlocks, and optionally set aside an unrecoverable generation ([#1993](https://github.com/adcontextprotocol/adcp-client-python/issues/1993)) ([120c985](https://github.com/adcontextprotocol/adcp-client-python/commit/120c985354d64c6c2d9a2c5a5724804ed46e70c6)) +* **reporting:** hold a status read at a period close still in progress ([#1990](https://github.com/adcontextprotocol/adcp-client-python/issues/1990)) ([49788c3](https://github.com/adcontextprotocol/adcp-client-python/commit/49788c32dfaf4368e2a3b57b2340a6b86accbedf)) +* **reporting:** raise REVISION_UNREADABLE for owed content that cannot be served ([#1991](https://github.com/adcontextprotocol/adcp-client-python/issues/1991)) ([0f28e04](https://github.com/adcontextprotocol/adcp-client-python/commit/0f28e041f843d9a2dbfbfa57a863687bdc5d40aa)) +* **reporting:** acknowledge a revision when it is read, not at the consumer-status deadline ([#1985](https://github.com/adcontextprotocol/adcp-client-python/issues/1985)) ([4eaba72](https://github.com/adcontextprotocol/adcp-client-python/commit/4eaba72f18c97acd6378008ad17281e54dbe6cd4)) +* **reporting:** pick each obligation's current revision by its own finality ([#1988](https://github.com/adcontextprotocol/adcp-client-python/issues/1988)) ([264c646](https://github.com/adcontextprotocol/adcp-client-python/commit/264c6464919a04c824597c4005adb8c2b8b5a478)) +* **reporting:** preserve period timezone in status schedules ([fa324dc](https://github.com/adcontextprotocol/adcp-client-python/commit/fa324dc0258209bd92fa9bb503ccb9d76716a7ab)) +* **reporting:** align source timezone days to local midnight ([b72a016](https://github.com/adcontextprotocol/adcp-client-python/commit/b72a016e5dc5d0f9dcad29ca426bce3079120778)) +* **reporting:** unblock status webhook bootstrap ([ce0e21a](https://github.com/adcontextprotocol/adcp-client-python/commit/ce0e21ab678f03a6e12e86b344c7702ee9448ae7)) +* **reporting:** bind generated handlers to status support ([628dc29](https://github.com/adcontextprotocol/adcp-client-python/commit/628dc29566e46e3891d0938355f2400fe6ecb1f5)) +* **reporting:** freeze status snapshots and sanitize resolver logs ([c23d376](https://github.com/adcontextprotocol/adcp-client-python/commit/c23d3761b256011eb90897a56e8f74ee42e6b6d2)) +* **reporting:** preserve static lifecycle and opt-in pinning ([499429c](https://github.com/adcontextprotocol/adcp-client-python/commit/499429ca002d6edba0490d6f1113e68c7ee2ee54)) +* **reporting:** refresh status lifecycle account iteration ([427fb5d](https://github.com/adcontextprotocol/adcp-client-python/commit/427fb5defc1eda4e9babd761f5d0b491884c3e33)) +* **reporting:** resolve dynamic status account readiness ([39a5a0a](https://github.com/adcontextprotocol/adcp-client-python/commit/39a5a0a7895f35bc8d85cf0b6272b4252bd767f6)) +* **reporting:** isolate handler registrations for each installation ([#1849](https://github.com/adcontextprotocol/adcp-client-python/issues/1849)) ([5450616](https://github.com/adcontextprotocol/adcp-client-python/commit/5450616ad28f44a61984edc9c319788d4f00d0b8)) +* **reporting:** bound each seller read in reconcile; scrub account_requests[] ([#1820](https://github.com/adcontextprotocol/adcp-client-python/issues/1820)) ([f203f26](https://github.com/adcontextprotocol/adcp-client-python/commit/f203f2609bc2d33b16d15f24e03c161cc7240ab5)) +* **reporting:** compare set-valued subscription arrays without order on readback ([99abea8](https://github.com/adcontextprotocol/adcp-client-python/commit/99abea8c95851e69c5a57a7ae9e2ba8186fd4303)) +* **reporting:** consume the events doorbell before each poll ([25a6e7b](https://github.com/adcontextprotocol/adcp-client-python/commit/25a6e7b0e201b8273831c3dc31944545bf35c389)) +* **reporting:** explain periods before an open revocation as owed:withheld ([9eb96a0](https://github.com/adcontextprotocol/adcp-client-python/commit/9eb96a012f48454c3c825e83919bcf5047dd1fde)) +* **reporting:** fold whether the period has ended into the trace digest ([f1c23ca](https://github.com/adcontextprotocol/adcp-client-python/commit/f1c23ca5e9237c34a12917c4296aed9ac6eb1c23)) +* **reporting:** give each account rejoin a new account.covered event id ([db016f8](https://github.com/adcontextprotocol/adcp-client-python/commit/db016f898fbd49d9e33b2e8b3fc67335c6c726ad)) +* **reporting:** isolate a failing receipt commit and state its at-least-once contract ([80cfb79](https://github.com/adcontextprotocol/adcp-client-python/commit/80cfb798439c0df3a6b13d53116bef2f9ae77882)) +* **reporting:** keep subscriptions and losses across a partial events poll ([4c64141](https://github.com/adcontextprotocol/adcp-client-python/commit/4c641410944bfd1d02fe82bc0e40ab5d82c06894)) +* **reporting:** keep the events loop running after an ack conflict ([cf71c7d](https://github.com/adcontextprotocol/adcp-client-python/commit/cf71c7dfad87e367ec36db0f83f7710ef1286389)) +* **reporting:** key status checkpoints by resolved offering ([d490481](https://github.com/adcontextprotocol/adcp-client-python/commit/d49048161de72fe3499da1938ca406a304e278e1)) +* **reporting:** list each flight period once in the not-owed audit ([9defc4c](https://github.com/adcontextprotocol/adcp-client-python/commit/9defc4c13f4a32d670d11174c5e2a92cdbf40634)) +* **reporting:** make the managed seller pass the SDK's own capability validation ([922fb87](https://github.com/adcontextprotocol/adcp-client-python/commit/922fb8777f8f158f285fa5bd2703b581f25eddec)) +* **reporting:** name reporting_revision_id on the not-found answer for an unknown revision ([#1796](https://github.com/adcontextprotocol/adcp-client-python/issues/1796)) ([8cc8818](https://github.com/adcontextprotocol/adcp-client-python/commit/8cc8818a9ecc48e4b364320df0c53daedfd59ece)), closes [#1669](https://github.com/adcontextprotocol/adcp-client-python/issues/1669) +* **reporting:** read each package offering snapshot from get_media_buys ([131b9ba](https://github.com/adcontextprotocol/adcp-client-python/commit/131b9ba9536755445f13c045500d54f8f5d1007a)) +* **reporting:** receipt each materialization once and isolate verifier failures ([b1cc1c4](https://github.com/adcontextprotocol/adcp-client-python/commit/b1cc1c4ba6e2a96e85f937adf872f17118e772a0)) +* **reporting:** record the bare inspector code for an unverifiable revision ([cc9b9e0](https://github.com/adcontextprotocol/adcp-client-python/commit/cc9b9e08a577ea52eb2da7e390344088c3c239bd)) +* **reporting:** refuse coverage input only where a schedule reads it ([fc370c6](https://github.com/adcontextprotocol/adcp-client-python/commit/fc370c61a7e55f082ac67011fbb2d571828e110a)) +* **reporting:** report a failed principal read as a reconcile issue ([d476b42](https://github.com/adcontextprotocol/adcp-client-python/commit/d476b42a721e1545c781ea57c9f1225100dd812c)) +* **reporting:** report every owed period before an open revocation as withheld ([e112cc1](https://github.com/adcontextprotocol/adcp-client-python/commit/e112cc11c103fe2febbd71f13007aa3130da3a1c)) +* **reporting:** serve gaps in the boundaries of the schedule they removed ([6a41458](https://github.com/adcontextprotocol/adcp-client-python/commit/6a4145829908ad7c235304fb232ad48537889b23)) +* **reporting:** validate every kit buyer read except fixture buys ([d69132b](https://github.com/adcontextprotocol/adcp-client-python/commit/d69132b186984cdfffb6d34828424b9173dd9d76)) +* **reporting:** count a rejected authorized_at once and refuse buys of the wrong shape ([258b435](https://github.com/adcontextprotocol/adcp-client-python/commit/258b435fa74274ce17c3e09966b3ae42e53736f2)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **reporting:** observe a served account page in one journal write ([5e23835](https://github.com/adcontextprotocol/adcp-client-python/commit/5e23835c3b29465f4faee65b97cf3c1d7304549d)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **reporting:** observe a served authorization that lists no tasks ([14be044](https://github.com/adcontextprotocol/adcp-client-python/commit/14be0440fbc849e42268310657febe65ee9429f2)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **reporting:** parse wire instants with 1-6 fractional digits on Python 3.10 ([8495b17](https://github.com/adcontextprotocol/adcp-client-python/commit/8495b1788803e990764942ee5d0ff7ece4d0d508)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **reporting:** run write triggers off the request path and bound platform reads ([a4c9b6b](https://github.com/adcontextprotocol/adcp-client-python/commit/a4c9b6bad811405eb9f4e2e7f017303dcd6d781e)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **reporting:** serve readback counts the 3.3.0-beta.3 state schema requires ([79e8960](https://github.com/adcontextprotocol/adcp-client-python/commit/79e89606873329977ba16c7df591bd94f7d2e7d7)) +* **reporting:** warn on a managed offering whose rows omit account_id ([26f818a](https://github.com/adcontextprotocol/adcp-client-python/commit/26f818a402f717cb3e6d830f1c8d50168b5f6b33)) +* **reporting-storage:** read status and capability readiness without the account writer lock ([#1987](https://github.com/adcontextprotocol/adcp-client-python/issues/1987)) ([5cecaa6](https://github.com/adcontextprotocol/adcp-client-python/commit/5cecaa61b043430d84f1df73757a3806990d12dd)) +* **reporting-storage:** check for reporting tables in the current schema only ([#1843](https://github.com/adcontextprotocol/adcp-client-python/issues/1843)) ([65d0c54](https://github.com/adcontextprotocol/adcp-client-python/commit/65d0c54e140aedfe6449d59f9a59a414b63268ac)), closes [#1838](https://github.com/adcontextprotocol/adcp-client-python/issues/1838) +* **reporting-storage:** upgrade 0.1.0b4/0.2.0b0 ledgers in place and pin the adcp storage contract ([#1763](https://github.com/adcontextprotocol/adcp-client-python/issues/1763)) ([#1787](https://github.com/adcontextprotocol/adcp-client-python/issues/1787)) ([9cce1ff](https://github.com/adcontextprotocol/adcp-client-python/commit/9cce1ff29cc69261824bfb5c422fe7de7ba9a39d)) +* **reporting-storage:** keep adcp free of imports of the storage distribution ([7dc6905](https://github.com/adcontextprotocol/adcp-client-python/commit/7dc6905e75b8d9c4cc346207dc16faaa43dcb115)), closes [#1695](https://github.com/adcontextprotocol/adcp-client-python/issues/1695) +* **server:** pass HTTP request context to compliance controllers on next ([#1955](https://github.com/adcontextprotocol/adcp-client-python/issues/1955)) ([24b8c4d](https://github.com/adcontextprotocol/adcp-client-python/commit/24b8c4d22b7a194880d8016bc87da76a49a88e13)) +* **server:** read the A2A profile's input member, and refuse parameters when the profile is activated ([#1888](https://github.com/adcontextprotocol/adcp-client-python/issues/1888)) ([b78f5a3](https://github.com/adcontextprotocol/adcp-client-python/commit/b78f5a30e0d015cf30bfbd6c78268afaec6cd315)) +* **server:** preserve valid creatives in lenient legacy batches on next ([a541585](https://github.com/adcontextprotocol/adcp-client-python/commit/a541585495efb37752be6ce51978e37f14a8be55)) +* **server:** return task and workflow handoffs uncached from IdempotencyStore.wrap ([#1794](https://github.com/adcontextprotocol/adcp-client-python/issues/1794)) ([91fe87e](https://github.com/adcontextprotocol/adcp-client-python/commit/91fe87e35195f7884c7ddb6448ab6242d948a6e4)), closes [#1781](https://github.com/adcontextprotocol/adcp-client-python/issues/1781) +* **server:** compact a pinned seller's tools/list and size the client's member bound to the byte budget ([#1701](https://github.com/adcontextprotocol/adcp-client-python/issues/1701)) ([cb2ba54](https://github.com/adcontextprotocol/adcp-client-python/commit/cb2ba54d114e6139201048862948d56992f39059)), closes [#1692](https://github.com/adcontextprotocol/adcp-client-python/issues/1692) +* **server:** let a server's version pin set the release its handlers run on ([#1689](https://github.com/adcontextprotocol/adcp-client-python/issues/1689)) ([24d40e0](https://github.com/adcontextprotocol/adcp-client-python/commit/24d40e0127a0236694f3b261aed74a35fca2c05e)) +* **signing:** use public httpcore2 socket option type ([b3cfd65](https://github.com/adcontextprotocol/adcp-client-python/commit/b3cfd6561564f7acb928273764685da3e8de5d96)) +* **signing:** match standard Web Bot Auth, and finish the library migration ([#1537](https://github.com/adcontextprotocol/adcp-client-python/issues/1537)) ([09db189](https://github.com/adcontextprotocol/adcp-client-python/commit/09db1893c7b45ca2ca07d6a8db90bb59f05ec089)) +* **signing:** use only the directory keys with a valid signature ([#1544](https://github.com/adcontextprotocol/adcp-client-python/issues/1544)) ([56d5e73](https://github.com/adcontextprotocol/adcp-client-python/commit/56d5e7329ff8437933c9cc720520fb78d8427881)) +* **signing:** work with http-sf 1.5.0 and http-message-signatures 2.2.0 ([#1568](https://github.com/adcontextprotocol/adcp-client-python/issues/1568)) ([cf97bd2](https://github.com/adcontextprotocol/adcp-client-python/commit/cf97bd26253fcae0c59573bcf33f6f9fb138ee5c)) +* **sync:** inherit generated fields on the identity facades and skip the retired generated_poc alias test ([7d8b043](https://github.com/adcontextprotocol/adcp-client-python/commit/7d8b0439e3165ce5d0107a9ba97ae867751bf708)) +* **types:** make the domain package roots lazy so a types package imports first in any order ([#1797](https://github.com/adcontextprotocol/adcp-client-python/issues/1797)) ([8331c88](https://github.com/adcontextprotocol/adcp-client-python/commit/8331c88d0a6db6befea155b676872d6503df8e5c)), closes [#1784](https://github.com/adcontextprotocol/adcp-client-python/issues/1784) +* **types:** defer the import-time model rebuilds that cost adcp.client 560 MiB RSS ([#1713](https://github.com/adcontextprotocol/adcp-client-python/issues/1713)) ([ab39d63](https://github.com/adcontextprotocol/adcp-client-python/commit/ab39d63e0333f94fb6879a8419e6680fdf4ccfb4)) +* **validation:** keep nested properties named like annotation keywords in MCP schemas ([#1950](https://github.com/adcontextprotocol/adcp-client-python/issues/1950)) ([a381e47](https://github.com/adcontextprotocol/adcp-client-python/commit/a381e47e3ef78469f1a017bd34a7f048a3e98778)) +* **version:** retire the 3.3-rc.0 -> 3.3-rc.3 bridge alias ([#1971](https://github.com/adcontextprotocol/adcp-client-python/issues/1971)) ([fcf3525](https://github.com/adcontextprotocol/adcp-client-python/commit/fcf3525e3ad7930255a4b9431f4479fdb9576d98)) +* **webhooks:** dispatch async results by task_type and accept schema-valid create_media_buy results ([#2001](https://github.com/adcontextprotocol/adcp-client-python/issues/2001)) ([83eb28e](https://github.com/adcontextprotocol/adcp-client-python/commit/83eb28eedcb7182aca34686abab074c7c68afd2b)) +* **webhooks:** comply with challenge schema ([98d6b09](https://github.com/adcontextprotocol/adcp-client-python/commit/98d6b098fa33e40852acb7bc03afbd1088d07fb7)) +* **webhooks:** carry the task status on webhook results at 3.3.0-beta.3 ([2a965b6](https://github.com/adcontextprotocol/adcp-client-python/commit/2a965b6fcb0b0f97619853f3e45f8b0d9603193e)) +* **webhooks:** drop aggregated_totals from media_buy_delivery webhook results ([#1716](https://github.com/adcontextprotocol/adcp-client-python/issues/1716)) ([875a4fe](https://github.com/adcontextprotocol/adcp-client-python/commit/875a4fed49cba9b92aa92d2007c6c69f3467cc94)), closes [#1669](https://github.com/adcontextprotocol/adcp-client-python/issues/1669) +* page get_reporting_status by max_results and size; validate a server's own large responses ([#1967](https://github.com/adcontextprotocol/adcp-client-python/issues/1967)) ([7f89012](https://github.com/adcontextprotocol/adcp-client-python/commit/7f890124458089504909340d4e9ee582cce50c92)) +* reporting re-grant chain, adjustment offers and rejected receipts match TS ([#1806](https://github.com/adcontextprotocol/adcp-client-python/issues/1806)) ([7d36906](https://github.com/adcontextprotocol/adcp-client-python/commit/7d369066bdf76a62b2706b11ba65bc02df47af4e)) + +* **client:** the JSON member bound on agent responses rises from 100,000 to + 524,288 (`adcp._json_bounds.MAX_JSON_MEMBERS`), the 4 MiB response budget + at eight bytes per member. Keyed JSON — every AdCP task body and every + JSON Schema in a `tools/list` — cannot average much under eight bytes per + member (a quoted key, a colon, a value, a separator), so any such document + inside the byte budget is now inside the member bound too, where 100,000 + was eight times tighter than the byte budget implied and a conforming + peer's `tools/list` could exceed it at 2.5 MB. It is still a real bound: + bare-scalar arrays and empty containers (two to three bytes per member) + are refused at a quarter of what the byte budget alone would admit, and + the depth bound of 64 is unchanged. `tools/list` deliberately gets the same + bound as a tool result rather than a larger one: it travels the same + transport, and a compact listing of every tool is a small fraction of it. + Inbound webhook and push bodies keep the spec's 100,000 + (`MAX_INBOUND_JSON_MEMBERS`), sized to their 1 MiB cap. Refs #1692. + +## 9.x notes (shipped in 9.0.0 through 9.6.x) + +These hand-written notes were kept under an "Unreleased" heading during the +9.0 prereleases. Everything below shipped in 9.x (by 9.6.2) and is part of +10.0.0 too; it is not a change between 9.6.x and 10.0.0. ### ⚠ BREAKING CHANGES @@ -76,35 +407,6 @@ streaming budget, so this is its only response-size bound. Refs #1503, adcontextprotocol/adcp#8190, adcontextprotocol/adcp#8200. -* **signing:** RFC 9421 comes from maintained libraries for every profile. - `http-message-signatures` builds the signature base, assembles - `Signature-Input`, and signs and verifies for the AdCP RFC 9421 request and - webhook profiles and for Web Bot Auth, through an SDK component resolver - that adds the `;key` and `;req` parameters and the AdCP `@target-uri` / - `@authority` canonicalization. `http-sf` parses Structured Fields and - refuses duplicate keys and parameters; governance tokens and publisher-pin - thumbprints use `joserfc`. **Dependencies:** the archived `http-sfv` is - replaced by `http-message-signatures>=2.0.1,<3` and `http-sf>=1.4.0,<2`. - Every request-signing and webhook conformance vector passes with the same - error codes. Wire notes: the signer now emits signature parameters in the - library's order (`created`, `keyid`, `alg`, `expires`, `nonce`, `tag`), - which verifiers read from the header; `@signature-params` is the RFC 8941 - serialization of the received member; `Signature-Input`, `Signature` and - `Content-Digest` must parse as a whole; and `parse_compact_jws` requires a - JSON protected header with `alg`. Refs #1511. - -* **identity:** The experimental Web Bot Auth profile follows the final - adcontextprotocol/adcp#7894 (`e24eeb09`): one `web-bot-auth` signature - and one `Signature-Agent` member per request (relays are refused), signed - key directories only, `ed25519` and `rsa-pss-sha512` only (ES256 stays on - the RFC 9421 profile), a 64-byte nonce on every request, and a reused nonce - answered 429 with `Accept-Signature` carrying a fresh nonce. - `verify_wba_governance_issuer` runs the profile's governance-token key and - issuer checks. The removed options and other changes to this experimental - surface are listed in - [the migration guide](docs/agent-identity-3-3-migration.md#breaking-changes-to-the-experimental-api). - Refs #1511. - * **auth:** `BearerTokenAuth.resolve_principal` supports sync/async non-bearer principal resolution on MCP and A2A using the same metadata-only `AuthRequest`. Supplied credential headers always select bearer auth; invalid credentials @@ -137,22 +439,6 @@ a guard test pins that. `schema_mode="defs"` (and `"inline"`) keep the exact bundled schema. The startup size line now reports JSON members as well as bytes and warns past half of either bound. Fixes #1692. -* **client:** the JSON member bound on agent responses rises from 100,000 to - 524,288 (`adcp._json_bounds.MAX_JSON_MEMBERS`), the 4 MiB response budget - at eight bytes per member. Keyed JSON — every AdCP task body and every - JSON Schema in a `tools/list` — cannot average much under eight bytes per - member (a quoted key, a colon, a value, a separator), so any such document - inside the byte budget is now inside the member bound too, where 100,000 - was eight times tighter than the byte budget implied and a conforming - peer's `tools/list` could exceed it at 2.5 MB. It is still a real bound: - bare-scalar arrays and empty containers (two to three bytes per member) - are refused at a quarter of what the byte budget alone would admit, and - the depth bound of 64 is unchanged. `tools/list` deliberately gets the same - bound as a tool result rather than a larger one: it travels the same - transport, and a compact listing of every tool is a small fraction of it. - Inbound webhook and push bodies keep the spec's 100,000 - (`MAX_INBOUND_JSON_MEMBERS`), sized to their 1 MiB cap. Refs #1692. - * **server:** MCP ``outputSchema`` now honours ``schema_mode`` instead of always inlining every ``$ref``. Inlining expands each shared subtree once per reference, so ``ListCreativesResponse`` was advertised at 4.8 MB where diff --git a/MIGRATION_v9_to_v10.md b/MIGRATION_v9_to_v10.md index a76ffa883..f23691da3 100644 --- a/MIGRATION_v9_to_v10.md +++ b/MIGRATION_v9_to_v10.md @@ -7,10 +7,17 @@ The protocol-side rules are in the AdCP [3.2 to 3.3 migration guide](https://docs.adcontextprotocol.org/docs/reference/migration/3-2-to-3-3); the SDK-relevant inventory is [docs/adcp-3.3-sdk-inventory.md](docs/adcp-3.3-sdk-inventory.md). +The table lists every breaking change between 9.6.x and 10.0.0 with what to +do about it. After it come the [type-level changes](#type-level-changes), the +[two `TaskStatus` enums](#two-taskstatus-enums), changes to APIs that only +existed in the 10.0 prereleases, the entries listed under 10.0.0-beta.0 that +9.x already shipped, what is [planned for 11.0](#planned-for-110), and an +[index of every BREAKING changelog entry](#breaking-change-index). + | Change | Update your integration | | --- | --- | -| T| The wire pin is AdCP `3.3.0` | `get_adcp_version()` returns `3.3.0`; the SDK speaks `adcp_version: "3.3"` by default and advertises `3.0`, `3.1`, `3.2`, `3.3` and the `3.2-rc.7` alias. `10.0.0-beta.0` and `10.0.0-beta.1` pinned `3.3.0-beta.0`, `10.0.0-beta.2` pinned `3.3.0-beta.1`, `10.0.0-beta.3` pinned `3.3.0-beta.2`, `10.0.0-beta.4` through `10.0.0-beta.11` pinned `3.3.0-beta.3`, `10.0.0-beta.12` pinned `3.3.0-beta.4`, `10.0.0-beta.13` through `10.0.0-beta.16` pinned `3.3.0-beta.5`, `10.0.0-beta.17` through `10.0.0-beta.19` pinned `3.3.0-beta.6`, `10.0.0-beta.20` through `10.0.0-beta.22` pinned `3.3.0-rc.0`, and `10.0.0-beta.23` through `10.0.0-rc.9` pinned `3.3.0-rc.3`; none of those prereleases is advertised or accepted as an `adcp_version` pin any more (`ConfigurationError`), and a `3.3-beta.0`, `3.3-beta.1`, `3.3-beta.2`, `3.3-beta.3`, `3.3-beta.4`, `3.3-beta.5`, `3.3-beta.6`, `3.3-rc.0` or `3.3-rc.3` peer is negotiated like any other unserved prerelease (down to `3.2`). There is no `3.3-rc.3` alias: 3.3.0 bounds fields rc.3 left unbounded, so an rc.3 payload is not always a valid 3.3.0 payload. Re-pin to `3.3`, or omit the pin. Pin `adcp_version="3.2"` on a server whose handlers must keep running on the 3.2 contract (see "A server pin governs its handlers" below). On a client, `adcp_version` is a negotiation ceiling; its application models remain current. Generated types, bundled schemas and the versioned validators follow the 3.3 bundle. | -dCP 3.3.0-beta.1 adds account requests, media-buy issues and reporting subscriptions | New tasks are wired through `ADCPClient` / `ADCPMultiAgentClient`, `ADCPHandler` (each returns `not_supported()` until overridden), the MCP and A2A adapters, the MCP tool list and the CLI: `request_account` (experimental `account.requests`; it opens, matches or, with `account_id`, changes an account, guarded by `revision`), `report_media_buy_issue` and `get_media_buy_issue`. `RequestAccountRequest` / `Response`, `ReportMediaBuyIssueRequest` / `Response` and `GetMediaBuyIssueRequest` / `Response` are exported from `adcp.types`. `list_accounts` gains `include_requests`, `request_ids` and `requests_pagination`, returning `account_requests[]` and `account_requests_pagination`. Experimental principal-level `reporting_subscriptions` land on `sync_principal` / `get_principal`, with `subscription_coverage[]` on `get_reporting_status`, `configuration_tasks[]` on `media_buy.reporting_delivery`, the `ReportingDimension` enum and the `principal.changed` reason `reporting_subscription_changed`. `sync_accounts` is unchanged and stays supported. Generated class names that the generator numbers can renumber with the bundle; import the semantic names from `adcp.types` rather than a numbered class from a domain module. | +| The wire pin is AdCP `3.3.0` | `get_adcp_version()` returns `3.3.0`; the SDK speaks `adcp_version: "3.3"` by default and advertises `3.0`, `3.1`, `3.2`, `3.3` and the `3.2-rc.7` alias. `10.0.0-beta.0` and `10.0.0-beta.1` pinned `3.3.0-beta.0`, `10.0.0-beta.2` pinned `3.3.0-beta.1`, `10.0.0-beta.3` pinned `3.3.0-beta.2`, `10.0.0-beta.4` through `10.0.0-beta.11` pinned `3.3.0-beta.3`, `10.0.0-beta.12` pinned `3.3.0-beta.4`, `10.0.0-beta.13` through `10.0.0-beta.16` pinned `3.3.0-beta.5`, `10.0.0-beta.17` through `10.0.0-beta.19` pinned `3.3.0-beta.6`, `10.0.0-beta.20` through `10.0.0-beta.22` pinned `3.3.0-rc.0`, and `10.0.0-beta.23` through `10.0.0-rc.9` pinned `3.3.0-rc.3`; none of those prereleases is advertised or accepted as an `adcp_version` pin any more (`ConfigurationError`), and a `3.3-beta.0`, `3.3-beta.1`, `3.3-beta.2`, `3.3-beta.3`, `3.3-beta.4`, `3.3-beta.5`, `3.3-beta.6`, `3.3-rc.0` or `3.3-rc.3` peer is negotiated like any other unserved prerelease (down to `3.2`). There is no `3.3-rc.3` alias: 3.3.0 bounds fields rc.3 left unbounded, so an rc.3 payload is not always a valid 3.3.0 payload. Re-pin to `3.3`, or omit the pin. Pin `adcp_version="3.2"` on a server whose handlers must keep running on the 3.2 contract (see "A server pin governs its handlers" below). On a client, `adcp_version` is a negotiation ceiling; its application models remain current. Generated types, bundled schemas and the versioned validators follow the 3.3 bundle. | +| AdCP 3.3.0-beta.1 adds account requests, media-buy issues and reporting subscriptions | New tasks are wired through `ADCPClient` / `ADCPMultiAgentClient`, `ADCPHandler` (each returns `not_supported()` until overridden), the MCP and A2A adapters, the MCP tool list and the CLI: `request_account` (experimental `account.requests`; it opens, matches or, with `account_id`, changes an account, guarded by `revision`), `report_media_buy_issue` and `get_media_buy_issue`. `RequestAccountRequest` / `Response`, `ReportMediaBuyIssueRequest` / `Response` and `GetMediaBuyIssueRequest` / `Response` are exported from `adcp.types`. `list_accounts` gains `include_requests`, `request_ids` and `requests_pagination`, returning `account_requests[]` and `account_requests_pagination`. Experimental principal-level `reporting_subscriptions` land on `sync_principal` / `get_principal`, with `subscription_coverage[]` on `get_reporting_status`, `configuration_tasks[]` on `media_buy.reporting_delivery`, the `ReportingDimension` enum and the `principal.changed` reason `reporting_subscription_changed`. `sync_accounts` is unchanged and stays supported. Generated class names that the generator numbers can renumber with the bundle; import the semantic names from `adcp.types` rather than a numbered class from a domain module. | | AdCP 3.3.0-beta.2 withdraws definition pins, purchase rights and installment selection | adcontextprotocol/adcp#8537 moves all three to 4.0, so their generated types leave `adcp.types.domains.*`, `adcp.types._generated` and `adcp.types.error_details`: `DefinitionPin*`, `DefinitionPinReferenceKind`, `ReferenceDefinitionChangedDetails` (and `ErrorCode.REFERENCE_DEFINITION_CHANGED`), `DriftedPin`, `RightsScope`, `InstallmentChangeSet`, `commercial_terms.definition_pins`, `purchases[].rights` / `installments`, `installment_changes` and the `definition_changed` refinement reason. `TestControllerStore.definition_pin_probe` and the `definition_pin_probe` controller scenario are removed. Delete code that builds or reads them; a seller stops listing `media_buy.purchase_rights` and `media_buy.installment_selection` in `experimental_features`. | | AdCP 3.3.0-beta.2 adds separate-account outcomes, seller offers and measurement provenance | `RequestAccountRequest.allow_separate_account` (default `false`) lets a change request resolve as `created` (a new account carrying the change) or `matched` (an account the caller already holds), and the new correctable error code `ACCOUNT_CHANGE_REQUIRES_NEW_ACCOUNT` reports a change the seller would take only on a new account. Experimental seller offers add `proposal_initiator`, `offer_reason` on `list_proposals` rows and the `proposal.offered` notification (`ProposalOfferedWebhook`); experimental measurement provenance adds `CollectionMechanism`, `counting_mechanisms` and `vendor_metric_provenance[]` (`VendorMetricProvenance`). The reporting-subscription fields settled after beta.1 (`standard_dimensions`, `unmapped_dimensions`, `inactive_intervals`, `prior_versions[].configuration`, per-offering `offering_id`, `previous_timezone`) are now generated. `principal_kind` and `expected_principal_kind` are deprecated. `NotificationConfig.product_payload_view` loses its schema default: it is `None` when unset, and a product subscription's dump no longer adds `product_payload_view: "legacy"` (absent means legacy); read `config.product_payload_view or "legacy"`. These are generated types, imported from their domain packages (for example `adcp.types.domains.core.ProposalOfferedWebhook`); no task was added. | | AdCP 3.3.0-beta.3 composes the protocol envelope on every task response | adcontextprotocol/adcp#8547: every response root composes `core/protocol-envelope.json`, which composes `core/version-envelope.json`, so generated responses inherit `ProtocolEnvelope` alone (no separate `AdcpVersionEnvelope` base) and the local copies of envelope fields are gone. Submitted, working and input-required bodies compose `core/task-submitted.json` / `task-working.json` / `task-input-required.json`: a submitted arm still pins `status` to `submitted` and requires `task_id`. `task_id` (non-empty) and the task-level `message` (at most 2,000 characters) each have one definition (`core/task-id.json`, `core/task-message.json`); fields that refer to them stay typed `str` with those constraints, so no caller has to wrap a value. `TaskId`, `TaskMessage`, `TaskSubmitted`, `TaskWorking` and `TaskInputRequired` are generated. Consequences for handlers: `list_products` and `decline_proposals` now carry `status` (the server stamps `completed`; the 3.3 → 3.2 conversion drops it for 3.2 callers, as a recorded loss, and the 3.2 → 3.3 conversion supplies it). Whether a release carries `status` on those two tools is read from that release's own response schema (`uses_task_status_envelope(tool, version)` asks whether it composes `core/protocol-envelope.json`), not from its version string, so a 3.2.x release that later composes the envelope needs no SDK change; under a release that does not, the typed model's defaulted `completed` is not sent (a closed 3.2 `list_products` root refuses it) and nothing is stripped for any other tool; an absent `replayed` reads as `false` and `replayed: false` is valid; and on governance responses `status` is the task status, so a `check_governance` result names its decision in `verdict` and `report_plan_outcome` in `outcome_state`, never in `status`. `create_mcp_webhook_payload` gives a `result` without `status` the webhook's task status, and replaces a model result's defaulted envelope status with it, so a failed task's result never reads `completed`. | @@ -69,6 +76,165 @@ dCP 3.3.0-beta.1 adds account requests, media-buy issues and reporting subscript | `control_media_buy` refuses an undeclared `start_requires_all_creatives_approved: true` | AdCP 3.3 lets a buyer hold a package's first enablement for serving until every assigned creative is approved, and requires a seller without `media_buy.features.creative_start_policy: true` to reject `true` with `UNSUPPORTED_FEATURE` before mutation. For a handler on 3.3 or later, the dispatcher now answers such a request itself (`recovery: "correctable"`, `field` `packages[N].start_requires_all_creatives_approved` for the first opted-in package, `details.fields` listing every one, `mutation_outcome: "not_applied"`); the handler never sees it. `false` and omission still reach the handler. To accept `true`, honor the gate and declare the feature: `MediaBuy(features=Features(creative_start_policy=True))` on `DecisioningCapabilities` (or from `get_adcp_capabilities_for_request` for one tenant), or `media_buy.features.creative_start_policy: true` in your own `get_adcp_capabilities` response, which the dispatcher reads only for an opted-in request. `create_media_buy` and `update_media_buy` are not checked: 3.3 withdraws the field from their packages. | | The client refuses `start_requires_all_creatives_approved: true` to a seller known not to declare it | AdCP 3.3 forbids buyers from sending `true` without the seller's `media_buy.features.creative_start_policy: true`. On a session negotiated at 3.3 or later, `control_media_buy` now returns a failed `TaskResult` before anything is sent when the client's cached capabilities lack the feature: `dispatched=False`, `adcp_error.code` `UNSUPPORTED_FEATURE`, `adcp_error.field` naming the first opted-in package, `adcp_error.details` with `feature` and every opted-in `fields` entry (the seller's own vocabulary). A client that has not discovered the seller (a pinned `server_version`) still sends, and the seller decides. `false` and omission are unaffected, as are sessions below 3.3. Check `client.supports("creative_start_policy")` before opting in. `ADCPFeatureUnsupportedError` gains optional `field` and `details`, which such a failed result carries. | | `get_adcp_capabilities` reports `adcp.implementation` | `serve()` (and `adcp.decisioning.serve()`) now adds AdCP 3.3 `adcp.implementation.sdks[]` to capabilities served at 3.3 or later: one entry `{"name": "adcp", "version": , "components": [...]}`, listing only components the server provably wires agent-wide (`transport` always; `types` for Decisioning platforms; `schema_validation` with strict request and response validation and no `2.5` in `supported_versions`; `authentication` with `auth=BearerTokenAuth(...)` and no widened discovery set; `idempotency` when every advertised mutating task is `@IdempotencyStore.wrap`ped; `webhooks` / `signing` only when the SDK owns and signs every outbound webhook; `lifecycle` never automatically). A 3.0 to 3.2 caller never sees it. Tests that compare a whole 3.3 capabilities response need the new key. Opt out with `serve(report_implementation=False)` (or `ServeConfig(report_implementation=False)`); add components or other SDKs with `ImplementationReport(extra_components=[...], extra_sdks=[...])`; or declare the block yourself (`Adcp(implementation=...)` on `DecisioningCapabilities`, `capabilities_response(implementation=...)`, or in your own handler's response), which the SDK never overwrites. `adcp.server.adcp_sdk_entry()` builds this SDK's entry for a hand-written block. `DecisioningCapabilities.adcp.implementation` was previously dropped from the projection; it is now emitted. | +| Runtime dependencies change | `cryptography` now needs `>=45.0.1` (was `>=41.0.0`), and `joserfc>=1.7.5,<2`, `standardwebhooks>=1.1.0,<2`, `http-message-signatures>=2.1.0,<3` and `http-sf>=1.4.0,<2` are new requirements: RFC 9421 signing and verification come from maintained libraries for every profile. Resolve conflicts in your lockfile before upgrading. The signer emits signature parameters in the library's order, which verifiers read from the header. `Signature-Input`, `Signature` and `Content-Digest` must parse as a whole, and `parse_compact_jws` requires a JSON protected header with `alg`; error codes for conforming peers are unchanged. | +| Webhook challenge helpers need the seller URL and event types | `create_webhook_challenge_payload` and `challenge_webhook_destination` take required `seller_agent_url` and `event_types` keyword arguments, as the AdCP challenge schema requires. The proof-of-control challenge is always signed by an RFC 9421 `WebhookSender` (`WebhookSender.from_jwk` / `from_pem`); a bearer or HMAC config passes its `authentication` alongside that sender rather than instead of it. `challenge_webhook_destination` also takes `signing_profile` (the config's AdCP 3.3 profile) and refuses a sender that cannot sign under it. Add the two arguments to every call. | +| `AccountRegistry.ensure` returns an `AccountOutcome` | `client.accounts.ensure(key, ...)` returns `AccountReady`, `AccountPending`, `AccountAmbiguous` or `AccountRejected` (from `adcp.account_outcomes`) instead of an `AccountRecord`. It routes to `request_account` when the seller advertises `account.requests`, and to `sync_accounts` otherwise; `billing=` is optional and required only on the `sync_accounts` path. A failed or rejected row is returned as `AccountRejected` instead of raised; only a failure to process the call raises `AccountRequestError`. `AccountReady` keeps `account_id` and `status`. Replace attribute reads on the old record with a match on the outcome, or call `adcp.account_outcomes.next_step(outcome)`. See [docs/accounts-ensure-and-change.md](docs/accounts-ensure-and-change.md). | +| JWK helpers go through `joserfc` | `adcp.signing.publisher_pins.jwk_thumbprint` returns the RFC 7638 thumbprint as a base64url `str` instead of the digest `bytes`; compare against `str` values or encode stored digests once. `private_key_from_jwk` raises `ValueError` when a JWK's public members (`x`, `y`) are not the public key of its `d`; fix the key material. `public_key_from_jwk` reads the JWK through `joserfc`, so its `ValueError` messages change; match on the exception type, not the text. | +| `adcp.types.generated_poc` is gone | The 9.x deprecation alias for the pre-9.0 import path is removed as scheduled. Import from `adcp.types` or `adcp.types.domains`, or run `adcp migrate v3-to-v4 --apply` to rewrite the imports. | +| The media-buy success arms type `status` with the wire enum | See [Type-level changes](#type-level-changes): `CreateMediaBuyResponse1.status` and five sibling names are `ProtocolTaskStatus`, not `Literal['completed']`. | + +## Type-level changes + +These changes leave the wire unchanged but can fail a type check, an +`isinstance` test or an import. They come from diffing the public type surface +(`adcp`, `adcp.types` and every `adcp.types.domains` module) of 9.6.2 against +10.0.0. + +| Change | Update your integration | +| --- | --- | +| `status` on the media-buy success arms is the wire enum | `CreateMediaBuyResponse1.status` and its public names `CreateMediaBuySuccessResponse` and `LegacyCreateMediaBuySuccessResponse`, and `UpdateMediaBuyResponse1.status` with `UpdateMediaBuySuccessResponse` and `LegacyUpdateMediaBuySuccessResponse`, are typed `ProtocolTaskStatus` (`types/domains/enums/task_status.py`) where SDK 9 had `Literal['completed']`. The protocol envelope composed into every response made `status` the task status (see "AdCP 3.3.0-beta.3 composes the protocol envelope" above). A subclass that re-declares `status: Literal['completed']` now fails mypy, because a string literal is not an enum member. Narrow with `status: Literal[ProtocolTaskStatus.completed] = ProtocolTaskStatus.completed` (mypy accepts it; pyright reports any narrowing of a mutable field as `reportIncompatibleVariableOverride`), or keep the inherited type and check the value. Use `ProtocolTaskStatus`, not `adcp.TaskStatus`: see [Two `TaskStatus` enums](#two-taskstatus-enums). Code that compares `response.status == "completed"` is unaffected (the enum is a `str`). | +| `AgentPermissionDeniedDetails.reason` is required and an enum | SDK 9 had an optional `Literal['sandbox_only']`. The 3.3 error-details schema requires `reason` and adds `grant_absent`, so it is the generated `Reason` enum (`adcp.types.domains.error_details.agent_permission_denied.Reason`). Pass it when you build the details, and compare with the enum member or the string. | +| Constrained list items are `ScalarStr` subclasses | Fields such as `GetPlanAuditLogsRequest.plan_ids` / `portfolio_plan_ids` / `governance_contexts`, `CheckGovernanceResponse.policies_evaluated` / `categories_evaluated`, `IdentityMatchRequest.package_ids`, `ContextMatchRequest.package_ids`, `IdentityMatchResponse.eligible_package_ids` and `SiGetOfferingResponse.alternative_offering_ids` are now `list[PlanId]`, `list[PackageId]` and similar, because 3.3.0 bounds their items. Values are still `str` and construction from plain strings validates at runtime, but `list` is invariant, so passing a variable annotated `list[str]` fails mypy. Annotate it as `Sequence[str]` and pass `list(values)`, or build the list inline. | +| Package-level domain modules drop names that became ambiguous | A name that a second schema now also declares is no longer bound at the package level (`adcp.types.domains.core`, `.media_buy`, `.error_details`, ...): `core.Category`, `core.DerivativeOf`, `core.Items`, `core.Selector`, `core.Severity`, `error_details.Reason` and `error_details.SupportedDimension`, along with `MatchKey` (see beta.5 above). Import the class from the schema module that declares it, for example `adcp.types.domains.core.event_surface.Category` or `adcp.types.domains.core.diagnostic_issue.Severity`. | +| Inline request types moved to shared schemas | `Opportunity` and `Status` in `media_buy.create_media_buy_request`, `buy_products_request` and `accept_proposal_request` are replaced by `adcp.types.domains.core.opportunity_context.OpportunityContext`; `core.wholesale_feed_event.Range` is `core.signal_listing.Range`. The `Status` enums of `refine_proposals_response` and `request_proposals_response` and the bundled `get_adcp_capabilities_response` `SupportedBillingEnum`, `Surface` and `UniversalMacro` are gone from those modules. Import the shared class. | +| Numbered generated classes renumbered | Numbered names present in 9.6.2 are gone or renumbered in 10.0.0, for example `PostalArea11`…`PostalArea121` and `System1`…`System19` (see rc.3 above), `EvaluatorSpec3`, `RankByItem2`, `Action9` / `Action11` / `Action23` / `Action33`, `Status22` / `Status46` / `Status51`, `Proposal2`, `Result5`, `SupportedTarget3` / `SupportedTarget5` and `format.Assets31`. `core.reporting_subscription.AccountId7`, added in a 10.0 prerelease, is removed in 10.0.0 (destination overrides reuse `AccountId`). Import the semantic names from `adcp.types` (or the aliases in `adcp.types.aliases`), which stay stable; a numbered name can move again with any bundle. | +| Removed compatibility classes | `IdentityMatchTmpxMacro` and `ProviderRegistrationTmpxMacro` are gone from `adcp` and `adcp.types` (see the table above). | + +Literal widenings on response fields (`available_fields` gains +`collections`; `MediaBuyAvailableAction.action`, `ProductAllowedAction.action` +and `ActionNotAllowedDetails.attempted_action` gain +`update_creative_start_policy` and `report_media_buy_issue`) only break an +exhaustive `match` or `assert_never`; add the new cases. + +## Two `TaskStatus` enums + +The SDK exports two different task-status enums, and they are not +interchangeable: + +| Name | What it is | Members | Use it for | +| --- | --- | --- | --- | +| `adcp.TaskStatus` (`adcp.types.core.TaskStatus`) | The SDK's client-side summary of a call | `COMPLETED`, `SUBMITTED`, `NEEDS_INPUT` (`"needs_input"`), `FAILED`, `WORKING` | `TaskResult.status` on the buyer side | +| `adcp.types.ProtocolTaskStatus` (new in 10.0.0; also `adcp.ProtocolTaskStatus`) | The AdCP wire enum, `enums/task-status.json` | `submitted`, `working`, `input_required` (`"input-required"`), `completed`, `canceled`, `failed`, `rejected`, `auth_required` (`"auth-required"`), `unknown` | `status` on generated request, response and webhook models; `create_mcp_webhook_payload(status=...)`; narrowing a response subclass | + +`ProtocolTaskStatus` is the same object as `adcp.types.GeneratedTaskStatus`, +which keeps working; prefer the new name in new code. `adcp.types` does not +bind a bare `TaskStatus`. Renaming the two enums so the bare name is +unambiguous is a breaking change and is planned for 11.0. + +## Changes to APIs introduced in the 10.0 prereleases + +These APIs did not exist in 9.6.x, so they affect only code written against a +10.0 beta or release candidate: + +- **Reporting-subscription errors** (10.0.0-beta.3): the seller's + `sync_principal` validation error is `ReportingSubscriptionValidationError` + (it was `ReportingSubscriptionError`, a `ValueError`). The buyer error is + `ReportingSubscriptionError`, an `ADCPError` carrying `code`, `recovery`, + `dispatched`, `would_deactivate` and `readback`; `ReportingSubscriptionClientError` + is a deprecated alias that warns when read. Catch the new names. +- **`ReconcileReport.accounts`** (10.0.0-beta.6) holds one `ReconcileAccount` + per account instead of account-ID strings, and `to_dict()` serves objects + under `accounts`. Read `report.account_ids` for the IDs. +- **`CrossDomainVerification.undetermined`** (10.0.0-rc.1): see the table. +- **Reporting-subscription projections** (10.0.0-beta.4): see "The + reporting-subscription surface is served from 3.3.0-beta.3 on, unprojected". +- **`core.reporting_subscription.AccountId7`** (10.0.0): removed; use `AccountId`. +- **Experimental agent identity and Web Bot Auth**: the experimental API was + reshaped to the final AdCP 3.3 profile during the prereleases; see + [the identity migration notes](docs/agent-identity-3-3-migration.md#breaking-changes-to-the-experimental-api). +- **Prerelease wire pins**: every `3.3-beta.N`, `3.3-rc.0` and `3.3-rc.3` pin + is refused; see the first row of the table. + +## Listed under 10.0.0-beta.0, already in 9.x + +`next` branched before these changes reached `main`, so the 10.0.0-beta.0 +changelog lists them as breaking, but 9.x (by 9.6.2) already ships them. An +upgrade from 9.6.x needs no action for them; an upgrade from an older 9.x +release does: + +- The PostgreSQL reporting stores, row storage providers, change feed and + ownership-migration helpers live in `adcp-reporting-storage`; see + [docs/reporting-storage-package-migration.md](docs/reporting-storage-package-migration.md). +- Row storage uses the AdCP stored names (`REPORTING_ROW_FORMAT_V1`, + `REPORTING_ROW_ALGORITHM_V1`, `{period_date}` as the source-timezone + `YYYY-MM-DD`). +- `model_validate_json` refuses a JSON `null` for a property whose schema does + not admit `null` (`NoExplicitNull`). +- `SyncCreativesRequest.creatives` is `list[CreativeAsset] | None`. +- `adcp.signing.b64url_decode` accepts only RFC 7515 base64url. (The rest of + that entry, the `joserfc` JWK changes, is new in 10; see "JWK helpers go + through `joserfc`" in the table.) + +The hand-written notes for these, and for the 9.0 work (the A2A Host/Origin +policy, the 4 MiB response cap, the webhook error taxonomy, open +`format_kind`), are in [CHANGELOG.md](CHANGELOG.md) under "9.x notes". + +## Planned for 11.0 + +These are breaking, so SDK 10 does not make them: + +- **Numbered generated classes leave the public modules.** Generated names + such as `CreateMediaBuyResponse1` or `PostalArea401` are public today only + because the generator numbers anonymous variants, so a schema change can + remove one (as `AccountId7` was). 11.0 plans to keep them out of the public + modules or give them stable names. Import semantic names from `adcp.types` + now so the change does not reach you. +- **One unambiguous `TaskStatus`.** The client-side and wire enums get + distinct names; `ProtocolTaskStatus` is the name to use for the wire enum + in the meantime. +- **`status` required under strict response validation** (see "Parsing a + response does not require `status`"). +- **`model_dump_as_received()` is removed.** + +## Breaking-change index + +Every BREAKING entry in [CHANGELOG.next.md](CHANGELOG.next.md) and every `!` +commit from 10.0.0-beta.0 to 10.0.0, with the row or section above that +covers it: + +| Release | Entry | Where | +| --- | --- | --- | +| 10.0.0 | AdCP 3.3.0 pin, 3.3-rc.3 refused | The wire pin is AdCP `3.3.0` | +| 10.0.0 | 3.3.0 `maxItems` / `maxLength` bounds, `FormatOptionRefRequiredError`, `AccountId7` | AdCP 3.3.0 bounds new and experimental fields; Type-level changes | +| 10.0.0-rc.1 | `NaturalKeyAccounts` needs `loader_by_id`; `account_id` references | An account is its `account_id` | +| 10.0.0-rc.1 | `tools/list` without `outputSchema`; `schema_mode="lean"` | MCP `tools/list` no longer carries `outputSchema`; The default MCP input schema shape | +| 10.0.0-rc.1 | `TmpxMacro` compatibility classes removed | The deprecated `IdentityMatchTmpxMacro` ... are removed | +| 10.0.0-rc.1 | `CrossDomainVerification.undetermined` | `verify_cross_domain_properties` reports unchecked claims | +| 10.0.0-beta.23 | 3.3-rc.0 refused; `metric_id` withdrawn | The wire pin; AdCP 3.3.0-rc.3 withdraws `metric_id` | +| 10.0.0-beta.20 | 3.3-beta.6 refused; renamed experimental values | The wire pin; AdCP 3.3.0-rc.0 renames three experimental values | +| 10.0.0-beta.17 | 3.3-beta.5 refused; adcp#8501 withdrawals | The wire pin; AdCP 3.3.0-beta.6 withdraws the 3.3 additions | +| 10.0.0-beta.16 | Webhook challenge helpers need `seller_agent_url` and `event_types` | Webhook challenge helpers need the seller URL and event types | +| 10.0.0-beta.14 | `control_media_buy` refuses an undeclared creative start policy | `control_media_buy` refuses an undeclared ...; The client refuses ... | +| 10.0.0-beta.13 | 3.3-beta.4 refused | The wire pin | +| 10.0.0-beta.12 | Reporting-subscription coverage, grant and controller rules | AdCP 3.3.0-beta.4 changes the reporting-subscription coverage | +| 10.0.0-beta.6 | `list_account_changes` `changed_paths` and `idempotency_key` | `list_account_changes` pages are checked and projected per caller | +| 10.0.0-beta.6 | `ReconcileReport.accounts` | Changes to APIs introduced in the 10.0 prereleases | +| 10.0.0-beta.6 | Webhook signing profiles; `aggregated_totals` dropped | Reporting and artifact webhooks without `authentication` must be signed | +| 10.0.0-beta.6 | Generated enum `_1` aliases removed | Generated enums name each value once | +| 10.0.0-beta.6 | `UNSUPPORTED_FEATURE` for undefined tasks; `validate_platform`; agent-level notification configs | A task the caller's release does not define ...; `list_proposals` and `list_collections` are served from declarations; Agent-level notification configs ... | +| 10.0.0-beta.6 | Permissive adagents resolution needs `publisher_domain` | Permissive adagents.json resolution requires the fetched domain | +| 10.0.0-beta.4 | 3.3-beta.2 refused; subscription projections removed | The wire pin; The reporting-subscription surface is served ... unprojected | +| 10.0.0-beta.4 | `AccountRegistry.ensure` returns an `AccountOutcome` | `AccountRegistry.ensure` returns an `AccountOutcome` | +| 10.0.0-beta.3 | 3.3-beta.1 refused; protocol envelope | The wire pin; AdCP 3.3.0-beta.3 composes the protocol envelope | +| 10.0.0-beta.3 | Reporting-subscription error renames (`b393dce`) | Changes to APIs introduced in the 10.0 prereleases | +| 10.0.0-beta.3 | Property-list identifiers, `measurement_window`, domain-list truncation | Property-list domain identifiers ...; Advertised `measurement_window` ...; Oversized `publisher_domains` ... | +| 10.0.0-beta.3 | 3.3 → 3.2 requests the 3.2 contract cannot express | 3.3 → 3.2 downgrades apply semantic rules | +| 10.0.0-beta.2 | 3.3-beta.0 refused; definition pins withdrawn | The wire pin; AdCP 3.3.0-beta.2 withdraws definition pins | +| 10.0.0-beta.1 | Server pin governs its handlers | A server pin governs its handlers | +| 10.0.0-beta.1 | `extra='allow'` | Unknown keys on open objects are kept and written back | +| 10.0.0-beta.1 | Unset defaults left off the dump | `model_dump()` leaves an unset schema default off | +| 10.0.0-beta.1 | Received `null` re-emitted; `None` keyword is unset | A received `null` is re-emitted | +| 10.0.0-beta.1 | Dumps use wire names | `model_dump()` writes wire names | +| 10.0.0-beta.0 | AdCP 3.3 pin, `UniversalMacro`, identity preview | The wire pin; `UniversalMacro` is a union; The experimental identity preview ... | +| 10.0.0-beta.0 | A2A operation-resolution hardening | A2A requests must meet the AdCP 3.3 operation-resolution hardening | +| 10.0.0-beta.0 | Webhook body bounds; response depth and member bounds | `WebhookReceiver` bounds the body before verifying it; Client responses have JSON depth and member bounds | +| 10.0.0-beta.0 | brand.json 2 MiB cap | brand.json fetches accept up to 2 MiB | +| 10.0.0-beta.0 | `PixelTrackerDowngrade.v1` may be `None` | Pixel trackers for AdCP 3.3 playback events are dropped ... | +| 10.0.0-beta.0 | `adcp.types.generated_poc` removed | `adcp.types.generated_poc` is gone | +| 10.0.0-beta.0 | `joserfc` JWK helpers, `jwk_thumbprint` returns `str` | JWK helpers go through `joserfc` | +| 10.0.0-beta.0 | Reporting storage package, row storage names, JSON `null` refusal, optional `creatives`, strict base64url | Listed under 10.0.0-beta.0, already in 9.x | +| (no changelog entry) | `status` widened on the media-buy success arms; other type-level changes | Type-level changes | +| (no changelog entry) | New runtime dependencies | Runtime dependencies change | ## Reporting storage contract (adcp-reporting-storage) diff --git a/README.md b/README.md index cbc215abc..8901c56df 100644 --- a/README.md +++ b/README.md @@ -226,7 +226,8 @@ pip install adcp `pip install adcp` selects SDK 10, which targets AdCP 3.3. To stay on SDK 9 (AdCP 3.2), pin `adcp>=9,<10`. Read -[the SDK 10 migration guide](MIGRATION_v9_to_v10.md) before upgrading. +[the SDK 10 migration guide](MIGRATION_v9_to_v10.md) before upgrading; the +10.0.0 entry in [CHANGELOG.md](CHANGELOG.md) lists every change since 9.6.2. ## Quick Start: Test Helpers @@ -430,6 +431,7 @@ the SDK's supported versions in the error details. - **[Migrating from SDK 6 to 7](https://github.com/adcontextprotocol/adcp-client-python/blob/main/MIGRATION_v6_to_v7.md)** - Breaking API, security, concurrency, and webhook changes - **[Migrating from SDK 7 to 8](https://github.com/adcontextprotocol/adcp-client-python/blob/main/MIGRATION_v7_to_v8.md)** - Secure webhook defaults and telemetry changes - **[Migrating from SDK 8 to 9](MIGRATION_v8_to_v9.md)** - Strict validation, HTTP security and reporting caller ownership +- **[Migrating from SDK 9 to 10](MIGRATION_v9_to_v10.md)** - AdCP 3.3.0: every breaking change with its adopter action, type-level changes and the two `TaskStatus` enums - **[Migrating from AdCP 3.1 to 3.2](MIGRATION_ADCP_3.1_TO_3.2.md)** - Compact lifecycle adoption and old/new compatibility matrix - **[Durable legacy purchase continuations](docs/legacy-purchase-continuations.md)** - Safe products-only compatibility redemption and crash recovery - **[Media-buy lifecycle coordinator](docs/media-buy-lifecycle-coordinator.md)** - Negotiated catalog-to-purchase workflow across AdCP 3.0, 3.1, and 3.2; remaining buyer parity is tracked in [#1154](https://github.com/adcontextprotocol/adcp-client-python/issues/1154) diff --git a/scripts/run_pyright_type_checks.py b/scripts/run_pyright_type_checks.py index a15268399..a07dc5cf7 100755 --- a/scripts/run_pyright_type_checks.py +++ b/scripts/run_pyright_type_checks.py @@ -47,6 +47,10 @@ "reportAttributeAccessIssue: pyright does not resolve DurationUnit through " "the lazy adcp.types facade" ), + "protocol_task_status_narrowing.py": ( + "reportIncompatibleVariableOverride: pyright treats narrowing the mutable " + "status field to an enum-member Literal as incompatible; mypy admits it" + ), "reporting_buyer_submission_intents.py": ( "reportArgumentType: ADCPClient against the ReportingReceiptSubmissionClient protocol" ), diff --git a/src/adcp/__init__.py b/src/adcp/__init__.py index 794cb0b2a..d3cabd9f1 100644 --- a/src/adcp/__init__.py +++ b/src/adcp/__init__.py @@ -516,6 +516,7 @@ def _resolve_version() -> str: "Format", "FormatOptionReference", "GeneratedTaskStatus", + "ProtocolTaskStatus", "GetAccountFinancialsRequest", "GetAccountFinancialsResponse", "GetBrandIdentityRequest", @@ -1729,6 +1730,7 @@ def get_adcp_version() -> str: "generated", "aliases", "GeneratedTaskStatus", + "ProtocolTaskStatus", # Semantic type aliases (for better API ergonomics) "AccountReferenceById", "AccountReferenceByNaturalKey", @@ -2391,6 +2393,7 @@ def get_adcp_version() -> str: PropertyIdActivationKey, PropertyTagActivationKey, Proposal, + ProtocolTaskStatus, ProvidePerformanceFeedbackRequest, ProvidePerformanceFeedbackResponse, PublishedPostAsset, diff --git a/src/adcp/types/__init__.py b/src/adcp/types/__init__.py index 942f1ce1b..77f4c5b8c 100644 --- a/src/adcp/types/__init__.py +++ b/src/adcp/types/__init__.py @@ -959,6 +959,7 @@ class name, or a numbered variant has no semantic alias — import it by its "GetCreativeFeaturesSuccessResponse", # Internal/special exports "GeneratedTaskStatus", + "ProtocolTaskStatus", # Backward compatibility aliases (deprecated) "Action", "Capability", @@ -1875,6 +1876,7 @@ def __dir__() -> list[str]: Protocol, ProtocolEnvelope, ProtocolResponse, + ProtocolTaskStatus, Provenance, ProvenanceDeclaredBy, ProvidePerformanceFeedbackByBuyerRefRequest, diff --git a/src/adcp/types/_eager.py b/src/adcp/types/_eager.py index e5534fd9d..414f7e7e5 100644 --- a/src/adcp/types/_eager.py +++ b/src/adcp/types/_eager.py @@ -559,6 +559,11 @@ Offer as TmpOffer, ) from adcp.types._generated import TaskStatus as GeneratedTaskStatus + +# Stable, unambiguous name for the wire task-status enum (enums/task-status.json). +# ``adcp.TaskStatus`` is the client-side ``TaskResult.status`` enum, a different +# type with different members; see MIGRATION_v9_to_v10.md#two-taskstatus-enums. +ProtocolTaskStatus = GeneratedTaskStatus from adcp.types._generated import ( TextAsset as TextContent, ) @@ -1498,6 +1503,7 @@ def __init__(self, *args: object, **kwargs: object) -> None: "FrequencyCap", "FrequencyCapScope", "GeneratedTaskStatus", + "ProtocolTaskStatus", "GeoCountry", "GeoMetro", "GeoRegion", diff --git a/src/adcp/types/core.py b/src/adcp/types/core.py index 1ec00dcc0..bb276aac7 100644 --- a/src/adcp/types/core.py +++ b/src/adcp/types/core.py @@ -202,7 +202,16 @@ def _validate_security_constraints(self) -> AgentConfig: class TaskStatus(str, Enum): - """Task execution status.""" + """Client-side status of a :class:`TaskResult` (``adcp.TaskStatus``). + + This is the SDK's summary of a call's outcome, not the AdCP wire enum: it + has ``NEEDS_INPUT`` where the protocol has ``input-required``, and no + ``canceled``, ``rejected``, ``auth-required`` or ``unknown``. Compare + :attr:`TaskResult.status` with it. For a ``status`` field on a generated + request, response or webhook model, use + :data:`adcp.types.ProtocolTaskStatus` (also exported as + ``GeneratedTaskStatus``). + """ COMPLETED = "completed" SUBMITTED = "submitted" diff --git a/tests/fixtures/public_api_snapshot.json b/tests/fixtures/public_api_snapshot.json index 92ccebec2..9c36801c4 100644 --- a/tests/fixtures/public_api_snapshot.json +++ b/tests/fixtures/public_api_snapshot.json @@ -490,6 +490,7 @@ "PropertyTagActivationKey": "core.activation_key:ActivationKey2", "Proposal": "core.proposal", "Protocol": "adcp.types.core", + "ProtocolTaskStatus": "enums.task_status:TaskStatus", "ProvidePerformanceFeedbackByBuyerRefRequest": "media_buy.provide_performance_feedback_request:ProvidePerformanceFeedbackRequest", "ProvidePerformanceFeedbackByMediaBuyRequest": "media_buy.provide_performance_feedback_request:ProvidePerformanceFeedbackRequest", "ProvidePerformanceFeedbackErrorResponse": "media_buy.provide_performance_feedback_response:ProvidePerformanceFeedbackResponse2", @@ -1846,6 +1847,7 @@ "Protocol": "adcp.types.core", "ProtocolEnvelope": "core.protocol_envelope", "ProtocolResponse": "core.response", + "ProtocolTaskStatus": "enums.task_status:TaskStatus", "Provenance": "core.provenance", "ProvenanceDeclaredBy": "core.provenance:DeclaredBy", "ProvidePerformanceFeedbackByBuyerRefRequest": "media_buy.provide_performance_feedback_request:ProvidePerformanceFeedbackRequest", diff --git a/tests/test_protocol_task_status_alias.py b/tests/test_protocol_task_status_alias.py new file mode 100644 index 000000000..9456eef33 --- /dev/null +++ b/tests/test_protocol_task_status_alias.py @@ -0,0 +1,37 @@ +"""``ProtocolTaskStatus`` names the wire task-status enum unambiguously (#2012).""" + +from __future__ import annotations + +import adcp +import adcp.types +from adcp.types.domains.enums.task_status import TaskStatus as WireTaskStatus + + +def test_protocol_task_status_is_the_generated_wire_enum() -> None: + assert adcp.types.ProtocolTaskStatus is WireTaskStatus + assert adcp.types.ProtocolTaskStatus is adcp.types.GeneratedTaskStatus + assert adcp.ProtocolTaskStatus is adcp.types.ProtocolTaskStatus + assert "ProtocolTaskStatus" in adcp.types.__all__ + assert "ProtocolTaskStatus" in adcp.__all__ + + +def test_media_buy_success_status_is_typed_by_the_wire_enum() -> None: + for model in ( + adcp.types.CreateMediaBuyResponse1, + adcp.types.CreateMediaBuySuccessResponse, + adcp.types.UpdateMediaBuyResponse1, + adcp.types.UpdateMediaBuySuccessResponse, + ): + assert model.model_fields["status"].annotation is adcp.types.ProtocolTaskStatus + + +def test_client_task_status_is_a_different_enum() -> None: + assert adcp.TaskStatus is not adcp.types.ProtocolTaskStatus + assert {m.value for m in adcp.TaskStatus} == { + "completed", + "submitted", + "needs_input", + "failed", + "working", + } + assert "input-required" in {m.value for m in adcp.types.ProtocolTaskStatus} diff --git a/tests/type_checks/protocol_task_status_narrowing.py b/tests/type_checks/protocol_task_status_narrowing.py new file mode 100644 index 000000000..29f2560a5 --- /dev/null +++ b/tests/type_checks/protocol_task_status_narrowing.py @@ -0,0 +1,49 @@ +"""Adopter pattern: narrow a response's wire ``status`` in a subclass (#2012). + +SDK 10 types ``status`` on the media-buy success arms +(``CreateMediaBuyResponse1``, ``UpdateMediaBuyResponse1`` and their +``*SuccessResponse`` / ``Legacy*`` names) as the generated wire enum, where +SDK 9 had ``Literal['completed']``. A subclass that re-declares +``status: Literal['completed']`` no longer type-checks: a string literal is not +a member of the enum. Narrow with an enum-member literal of +``ProtocolTaskStatus`` instead. ``adcp.TaskStatus`` is the client-side +``TaskResult`` enum and is the wrong type here. +""" + +from __future__ import annotations + +from typing import Literal + +from typing_extensions import assert_type + +from adcp import TaskResult, TaskStatus +from adcp.types import ( + CreateMediaBuyResponse1, + CreateMediaBuySuccessResponse, + GeneratedTaskStatus, + ProtocolTaskStatus, + UpdateMediaBuySuccessResponse, +) + + +class CompletedCreateMediaBuy(CreateMediaBuySuccessResponse): + status: Literal[ProtocolTaskStatus.completed] = ProtocolTaskStatus.completed + + +class CompletedUpdateMediaBuy(UpdateMediaBuySuccessResponse): + status: Literal[ProtocolTaskStatus.completed] = ProtocolTaskStatus.completed + + +def wire_status(response: CreateMediaBuyResponse1) -> ProtocolTaskStatus: + assert_type(response.status, ProtocolTaskStatus) + return response.status + + +def same_enum(status: GeneratedTaskStatus) -> ProtocolTaskStatus: + # ``ProtocolTaskStatus`` is the stable name of ``GeneratedTaskStatus``. + return status + + +def client_status(result: TaskResult[object]) -> bool: + # ``TaskResult.status`` is the client-side enum, not the wire enum. + return result.status is TaskStatus.NEEDS_INPUT