Skip to content

docs: complete the SDK 9 to 10 migration guide and consolidate the 10.0.0 changelog - #2014

Merged
bokelley merged 3 commits into
nextfrom
docs/migration-v9-to-v10
Dec 5, 2026
Merged

bokelley merged 3 commits into
nextfrom
docs/migration-v9-to-v10

Conversation

@bokelley

@bokelley bokelley commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Closes #2011
Refs #2012

What changed

MIGRATION_v9_to_v10.md already existed but missed several breaks. It now covers every BREAKING entry from 10.0.0-beta.0 through GA, each with the adopter action:

  • New rows in the main table: runtime dependency changes (cryptography>=45.0.1, plus joserfc, standardwebhooks, http-message-signatures and http-sf), the required seller_agent_url / event_types arguments on the webhook challenge helpers (beta.16), AccountRegistry.ensure returning an AccountOutcome (beta.4), the joserfc JWK helper changes (jwk_thumbprint now returns str), and the removal of adcp.types.generated_poc.
  • Type-level changes (#2012a), found by diffing the public type surface of 9.6.2 against 10.0.0 (adcp, adcp.types and every adcp.types.domains module):
    • status on CreateMediaBuyResponse1, UpdateMediaBuyResponse1 and their *SuccessResponse / Legacy* names widened from Literal['completed'] to the wire enum.
    • AgentPermissionDeniedDetails.reason is now a required enum.
    • Bounded list items are ScalarStr subclasses. Because list is invariant, passing a list[str] now fails mypy.
    • Package-level domain modules no longer bind names that a second schema now declares (core.Category, core.Severity, …).
    • Request-local Opportunity / Status classes moved to core.opportunity_context.OpportunityContext.
    • Numbered classes were renumbered, and AccountId7 is gone.
  • Two TaskStatus enums (#2012b): which enum to use where.
  • Changes to APIs that only existed in the prereleases: the reporting-subscription error renames, ReconcileReport.accounts, AccountId7, and the experimental identity API.
  • Listed under 10.0.0-beta.0, already in 9.x: next forked before these reached main, so 9.6.2 already ships them.
  • Planned for 11.0 (#2012c): keeping numbered generated classes out of the public modules, a single TaskStatus, and the other deferred items.
  • A breaking-change index that maps every changelog BREAKING entry and every ! commit to the row that covers it.
  • Repairs the table's corrupted first two rows (| T| The wire pin… / dCP 3.3.0-beta.1…).

CHANGELOG.md now has one ## [10.0.0] section (compared against v9.6.2):

  • A consolidated breaking list.
  • Every prerelease feature and fix from CHANGELOG.next.md, deduplicated. Entries whose commit is already an ancestor of v9.6.2 are left out (63 bullets).
  • CHANGELOG.next.md is unchanged and keeps the per-prerelease history.

The old ## Unreleased heading was stale: its content was written during the 9.0 prereleases and is present in v9.6.2. It is renamed 9.x notes, and its three 10-only items (RFC 9421 libraries, Web Bot Auth, the JSON member bound) move into the 10.0.0 section.

adcp.types.ProtocolTaskStatus (also adcp.ProtocolTaskStatus) is a non-breaking, stable alias of GeneratedTaskStatus, the wire enum. The adcp.TaskStatus docstring now says which enum to use where. The public API snapshot is updated.

An adopter type-check fixture pins narrowing status to Literal[ProtocolTaskStatus.completed]. The fixture is excluded from pyright, which rejects any narrowing of a mutable field (same as composing_root_subclassing.py).

Review notes

  • Relabelling Unreleased to 9.x notes in CHANGELOG.md changes what main will see when next merges. Every remaining item there is in v9.6.2.
  • Nothing is renamed in 10.x: GeneratedTaskStatus and adcp.TaskStatus keep their meaning.

Tests

  • tests/test_protocol_task_status_alias.py, test_public_api.py, test_export_surface_is_derived.py and the release/doc contract tests pass.
  • mypy --strict passes on the new type-check fixture; a negative probe confirms Literal['completed'] fails.

🤖 Generated with Claude Code

bokelley and others added 2 commits December 5, 2026 12:15
…status enum

adcp.TaskStatus is the client-side TaskResult enum (COMPLETED, SUBMITTED,
NEEDS_INPUT, FAILED, WORKING), while `status` on generated models is the
AdCP wire enum, exported only as GeneratedTaskStatus. Since 10.0.0 types
`status` on the media-buy success arms with the wire enum, narrowing it needs
that enum by an unambiguous name.

adcp.types.ProtocolTaskStatus (also adcp.ProtocolTaskStatus) is the same
object as GeneratedTaskStatus, which keeps working. The client enum's
docstring now says which to use where. An adopter type-check fixture pins
narrowing `status` to `Literal[ProtocolTaskStatus.completed]`; pyright rejects
any narrowing of a mutable field, so the fixture is excluded there like
composing_root_subclassing.py. Renaming the two enums is left to 11.0.

Refs #2012

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….0.0 changelog

MIGRATION_v9_to_v10.md now covers every BREAKING entry from 10.0.0-beta.0
through 10.0.0 with its adopter action, and an index maps each changelog
entry and `!` commit to the row that covers it. Added: the runtime
dependency changes, the webhook challenge helper arguments,
AccountRegistry.ensure returning an AccountOutcome, the joserfc JWK helper
changes and the removed generated_poc alias; a type-level section from a
diff of the 9.6.2 and 10.0.0 public type surface (the widened media-buy
`status`, AgentPermissionDeniedDetails.reason, ScalarStr list items, names
package-level domain modules no longer bind, moved request types and
renumbered classes); which TaskStatus enum to use; changes to APIs that only
existed in the prereleases; the beta.0 entries 9.x already shipped; and what
is planned for 11.0. Also repairs the table's broken first two rows.

CHANGELOG.md gains one 10.0.0 section: a consolidated breaking list plus every
prerelease feature and fix not already shipped in 9.6.2, deduplicated.
CHANGELOG.next.md keeps the per-prerelease history unchanged. The stale
"Unreleased" heading becomes "9.x notes", and its three 10-only items move
into the 10.0.0 section. The README links the guide.

Closes #2011
Refs #2012

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bokelley
bokelley merged commit b41d738 into next Dec 5, 2026
39 checks passed
@bokelley
bokelley deleted the docs/migration-v9-to-v10 branch December 5, 2026 13:58
bokelley added a commit that referenced this pull request Dec 5, 2026
Resolve MIGRATION_v9_to_v10.md and the create_mcp_server signature
against #2014 and #2015, and update the README, migration notes and
3.3 inventory statements that 3.3-rc.3 has no alias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant