Skip to content

feat(protocol)!: adopt the signed AdCP 3.3.0 bundle - #2002

Merged
bokelley merged 3 commits into
nextfrom
feat/adopt-adcp-3.3.0
Dec 4, 2026
Merged

bokelley merged 3 commits into
nextfrom
feat/adopt-adcp-3.3.0

Conversation

@bokelley

@bokelley bokelley commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Adopts the signed AdCP 3.3.0 bundle, the AdCP 3.3 GA release, on the SDK 10 / next line. It follows #1941 (rc.3). This is the protocol half of SDK 10.0.0 GA; the release-channel half is the stacked PR that leaves the rc channel.

Release note: do not merge an rc.10 release PR. next is still on the rc channel, so once this merges, release-please opens a 10.0.0-rc.10 release PR. Leave it unmerged: the stacked channel PR, squashed with Release-As: 10.0.0, turns that same release PR into 10.0.0.

Pin

  • schemas/releases/3.3.0.json records:
    • source commit 90c34432d990, from the Fulcio certificate. The v3.3.0 tag, 77d5bcd5 ("Version Packages", adcp#9310), is its descendant through one training-agent commit (95e71238, adcp#9281), which does not touch the bundle.
    • bundle sha256 4592b26a4467…, 27,979,036 bytes, and the .sig, .crt and .sha256 sidecars.
  • cosign verify-blob against release.yml@refs/heads/main prints Verified OK. The CDN assets match the GitHub release assets byte for byte.
  • Synced from the CDN with a strict sync_schemas.py --require-signed-release, which checks the checksum and the exact signing identity, then fix_schema_refs.py. The 3.2.7 and 3.1.27 preview bundles, the skills and the compatibility vectors re-synced unchanged. With a stable pin, CI's schema-check job now does its own CDN sync and drift check (it skipped them for prereleases).
  • The bundle key is 3.3 (a stable release collapses to MAJOR.MINOR), so the cache is schemas/cache/3.3 and the packaged compliance tree is src/adcp/_compliance/3.3.0. The wheel ships those; the rc.3 trees stay in the repo as history and leave the wheel (MANIFEST.in, package data, and 3.3.0-rc.3 added to the distribution check's retired bundles).
  • Types regenerated from the rc.3 tree, so SCHEMA_DELTAS.md is the full rc.3 → 3.3.0 delta. make validate-generated is clean.

What 3.3.0 changes after rc.3, and what the SDK does

Spec change SDK
657 maxItems / maxLength bounds on fields new in 3.3 or experimental (adcp#8512, changeset 944a5b9). Stable fields and get_adcp_capabilities are untouched Generated. The models enforce the bounds, and constrained string items are ScalarStr subclasses, so values are still str. New domain-module names: PlanId, PolicyId, Segment, PackageId and others. core.reporting_subscription.AccountId7 folds into AccountId
The TMP targeting_kvs key and value are bounded at 255 characters (part of #8512) No carve-out. The SDK ships no TMP router, so these bounds reach only the generated TargetingKv model. adcontextprotocol/adcp-client#3844 (head 07c43536) changes only .changeset/pre.json, so it has no carve-out to match. If the TS 17.0.0 GA commit relaxes these two bounds, the Python SDK can match in a patch, through a schemas/patches entry or a post-generate fix
The account operator is a registrable domain, eTLD+1 (adcp#8913 via #8951). A seller MAY refuse a subdomain. Patterns unchanged Descriptions regenerated. The SDK does not refuse a subdomain operator
A repeated format_kind needs format_option_ref: a seller MUST reject a manifest without it and MUST NOT infer the option (adcp#8625 via #8876) SDK change. find_declaration_by_kind returned the first declaration of the kind when format_option_id was omitted. That is the inference the spec forbids, so it now raises FormatOptionRefRequiredError; to_wire_error() is VALIDATION_ERROR on manifest.format_option_ref, listing the referenceable option IDs. The legacy format_id projection already sets format_option_ref
SIGNAL_NOT_FOUND covers signal_id only; an unknown signal_agent_segment_id is REFERENCE_NOT_FOUND (adcp#8956) SignalsPlatform.activate_signal's docstring now names REFERENCE_NOT_FOUND
format_kind projection limited to product format declarations (adcp#7929); bundled enum hoisting keeps call-site annotations (adcp#9167) Descriptions only. The bundled capabilities model regains its field descriptions
Identity schemas (agent-onboarding, trust.json, principal-relationship) Still x-status: experimental in 3.3.0, so the identity code's experimental markers stay as they are

Breaking

  • The SDK speaks 3.3 and no longer accepts 3.3-rc.3. get_supported_adcp_versions() is 3.0, 3.1, 3.2, 3.3, 3.2-rc.7. An adcp_version pin of 3.3-rc.3 or 3.3.0-rc.3 raises ConfigurationError, and a peer that advertises only 3.3-rc.3 for the 3.3 line negotiates down to 3.2. There is no 3.3-rc.3 → 3.3 alias (unlike 3.2-rc.7 → 3.2), because 3.3.0 bounds fields that rc.3 left unbounded, and @adcp/sdk 17.0.0 advertises 3.3 without rc.3 too (fix(scripts): let sync-version accept the AdCP 3.3.0 stable release adcp-client#3847). That is a call for you to confirm. If agentic-api or ESA still need rc.3 peers, an explicit alias is a small follow-up.
  • Payloads over the new bounds fail validation where rc.3 accepted them.
  • find_declaration_by_kind raises on a repeated kind without format_option_id.
  • AccountId7 is removed (renumbering churn; import the semantic names).

Recorded in MIGRATION_v9_to_v10.md, docs/adcp-3.3-sdk-inventory.md section 19, the README's version-support section and the cross-version, identity and reporting-testing docs.

Tests changed

  • tests/test_adcp_3_3_0_rc_3_adoption.py → tests/test_adcp_3_3_0_adoption.py. It pins the identity values: manifest 4,735 files, provenance 249 files and 1,770 schemas. It also asserts that 3.3-rc.3 is refused and negotiates down to 3.2, and that the bounds are enforced, including targeting_kvs.
  • Tests that named the SDK's own pin move from 3.3-rc.3 / 3.3.0-rc.3 to 3.3 / 3.3.0, and paths move to the 3.3 cache. Parametrized version-arithmetic lists that hold both 3.3 and 3.3-rc.3 keep rc.3.
  • test_reporting_status_page_cost: the pinned page digests change only through ledger_snapshot_id (and the cursors that carry it), which binds the served adcp_version. I checked this by rendering under both pins and diffing.
  • The production-packaging conformance helper now separates the schema bundle key (3.3) from the compliance release (3.3.0); for a prerelease the two were the same string.

Hook fixes needed to commit

The pre-commit bandit hook runs only on staged files, and regenerating the types staged code it had not scanned before. It flagged two existing lines:

  • B105 on the generated enum member validated_pass in creative/validate_input_result.py. Generated code can't carry # nosec, so [tool.bandit] now excludes src/adcp/types/domains. CI doesn't run bandit.
  • B112 on an existing except Exception: continue in src/adcp/testing/reporting.py, now marked # nosec B112.

Merge note

Squash title: feat(protocol)!: adopt the signed AdCP 3.3.0 bundle. The squash body must keep the BREAKING CHANGE: footer below: the conventional-commit policy requires it for a ! subject, and on the rc channel a breaking commit still bumps only the rc number (as #1941 did, beta.22 → beta.23).

Conflicts with #2001 (webhook dispatch by task_type): no textual conflict, but one test conflicts. Both PRs touch src/adcp/client.py in separate hunks (#2001 near line 6888, this PR the comments near lines 739 and 1152), and git merge resolves them cleanly. After a local trial merge, make validate-generated stays clean, so #2001's post_generate_fixes.py changes regenerate identically on the 3.3.0 tree, and #2001's tests pass except one. tests/test_async_result_dispatch.py::test_the_bundle_under_test_is_the_reported_one asserts get_bundle_adcp_version() == "3.3.0-rc.3". Whichever PR merges second must change that assertion to 3.3.0 and reword its docstring, which says both defects were reported against rc.3.

Verification

  • make lint, make typecheck-all (mypy on 1,720 source files, the strict adopter fixtures, pyright) and make validate-generated pass.
  • Full suite (pytest -n 8) on the tree before the commit: 23,164 passed, 3,322 skipped, 1 xfailed, 1 failed. The failure was test_mcp_tools_reject_missing_schema_bundle, which used 3.3 as its no-bundle version. It now uses 3.4, and that file and the other touched files pass. The full suite then ran on the stacked channel PR's head, which contains this commit: 23,165 passed, 3,322 skipped, 1 xfailed, 1 failed. The failure was test_installed_cleanup_resumes_stopped_supervisor_and_reaps_descendants, a process-supervision timing test, while the host's load average was about 80. Rerun alone, its module passes (10 passed, 1 skipped).
  • The wheel builds (77.9 MB, under the 90 MB budget) and passes check_distribution_size and the retired-bundle check. Installed in a clean venv, it ships _schemas/{3.0,3.1,3.1.15,3.2,3.3} and _compliance/3.3.0, and passes CI's packaged-schema assertion and STANDARD_ERROR_CODES check.
  • scripts/check_companion_releases.py 10.0.0 --dist <that wheel>: the published adcp-reporting-storage 0.2.0b9 installs with adcp 10.0.0, with storage contract 3 on both sides. The PostgreSQL round trip was skipped locally.
  • A trial merge with fix(webhooks): dispatch async results by task_type and accept schema-valid create_media_buy results #2001 (git merge-tree) is clean.

BREAKING CHANGE: the SDK pins AdCP 3.3.0 (GA) and speaks "3.3". It no longer advertises or accepts 3.3-rc.3: get_supported_adcp_versions is 3.0, 3.1, 3.2, 3.3 and 3.2-rc.7; an adcp_version pin of 3.3-rc.3 or 3.3.0-rc.3 raises ConfigurationError, and a peer that advertises only 3.3-rc.3 negotiates down to 3.2. Re-pin to 3.3 or omit the pin. The generated models enforce the 3.3.0 maxItems/maxLength bounds on new and experimental fields, so payloads over them fail validation. find_declaration_by_kind raises FormatOptionRefRequiredError when several declarations share the kind and no format_option_id is given, instead of returning the first. core.reporting_subscription.AccountId7 is removed; destination overrides use AccountId.

🤖 Generated with Claude Code

Pin src/adcp/ADCP_VERSION to 3.3.0, the AdCP 3.3 GA release, from the
audited, cosign-verified release: schemas/releases/3.3.0.json, source commit
90c34432d990 from the Fulcio certificate (the v3.3.0 tag, 77d5bcd5, is its
Version Packages descendant), bundle sha256 4592b26a4467. Resync the schema
cache, packaged compliance inputs and request-signing vector manifest from the
CDN with --require-signed-release, regenerate the types from the rc.3 tree and
refresh the public API snapshot. A stable release caches under the bundle key
3.3; the wheel ships schemas/cache/3.3 and _compliance/3.3.0, and the rc.3
trees stay in the repository as history.

3.3.0 bounds the arrays and strings that are new in 3.3 or experimental
(adcp#8512): the generated models enforce the 657 maxItems/maxLength limits,
including the TMP targeting_kvs key and value. The SDK ships no TMP router, so
no carve-out is taken. A seller must reject a manifest without
format_option_ref when two or more format_options share its format_kind
(adcp#8625), so find_declaration_by_kind raises FormatOptionRefRequiredError
instead of returning the first declaration of the kind. The account operator
is described as a registrable domain (adcp#8913) and SIGNAL_NOT_FOUND covers
signal_id only (adcp#8956); descriptions regenerated.

BREAKING CHANGE: the SDK pins AdCP 3.3.0 and speaks "3.3". It no longer
advertises or accepts 3.3-rc.3: get_supported_adcp_versions is 3.0, 3.1, 3.2,
3.3 and 3.2-rc.7; an adcp_version pin of 3.3-rc.3 or 3.3.0-rc.3 raises
ConfigurationError, and a peer that advertises only 3.3-rc.3 negotiates down
to 3.2. Re-pin to 3.3 or omit the pin. The generated models enforce the 3.3.0
maxItems/maxLength bounds on new and experimental fields, so payloads over
them fail validation. find_declaration_by_kind raises
FormatOptionRefRequiredError when several declarations share the kind and no
format_option_id is given. core.reporting_subscription.AccountId7 is removed;
destination overrides use AccountId.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bokelley
bokelley merged commit a52e164 into next Dec 4, 2026
40 checks passed
@bokelley
bokelley deleted the feat/adopt-adcp-3.3.0 branch December 4, 2026 08:58
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