Repository navigation
docs: complete the SDK 9 to 10 migration guide and consolidate the 10.0.0 changelog - #2014
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2011
Refs #2012
What changed
MIGRATION_v9_to_v10.mdalready existed but missed several breaks. It now covers every BREAKING entry from 10.0.0-beta.0 through GA, each with the adopter action:cryptography>=45.0.1, plusjoserfc,standardwebhooks,http-message-signaturesandhttp-sf), the requiredseller_agent_url/event_typesarguments on the webhook challenge helpers (beta.16),AccountRegistry.ensurereturning anAccountOutcome(beta.4), thejoserfcJWK helper changes (jwk_thumbprintnow returnsstr), and the removal ofadcp.types.generated_poc.adcp,adcp.typesand everyadcp.types.domainsmodule):statusonCreateMediaBuyResponse1,UpdateMediaBuyResponse1and their*SuccessResponse/Legacy*names widened fromLiteral['completed']to the wire enum.AgentPermissionDeniedDetails.reasonis now a required enum.ScalarStrsubclasses. Becauselistis invariant, passing alist[str]now fails mypy.core.Category,core.Severity, …).Opportunity/Statusclasses moved tocore.opportunity_context.OpportunityContext.AccountId7is gone.TaskStatusenums (#2012b): which enum to use where.ReconcileReport.accounts,AccountId7, and the experimental identity API.nextforked before these reachedmain, so 9.6.2 already ships them.TaskStatus, and the other deferred items.!commit to the row that covers it.| T| The wire pin…/dCP 3.3.0-beta.1…).CHANGELOG.mdnow has one## [10.0.0]section (compared against v9.6.2):CHANGELOG.next.md, deduplicated. Entries whose commit is already an ancestor of v9.6.2 are left out (63 bullets).CHANGELOG.next.mdis unchanged and keeps the per-prerelease history.The old
## Unreleasedheading was stale: its content was written during the 9.0 prereleases and is present in v9.6.2. It is renamed9.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(alsoadcp.ProtocolTaskStatus) is a non-breaking, stable alias ofGeneratedTaskStatus, the wire enum. Theadcp.TaskStatusdocstring now says which enum to use where. The public API snapshot is updated.An adopter type-check fixture pins narrowing
statustoLiteral[ProtocolTaskStatus.completed]. The fixture is excluded from pyright, which rejects any narrowing of a mutable field (same ascomposing_root_subclassing.py).Review notes
Unreleasedto9.x notesinCHANGELOG.mdchanges whatmainwill see whennextmerges. Every remaining item there is in v9.6.2.GeneratedTaskStatusandadcp.TaskStatuskeep their meaning.Tests
tests/test_protocol_task_status_alias.py,test_public_api.py,test_export_surface_is_derived.pyand the release/doc contract tests pass.mypy --strictpasses on the new type-check fixture; a negative probe confirmsLiteral['completed']fails.🤖 Generated with Claude Code