Repository navigation
feat(protocol)!: adopt the signed AdCP 3.3.0 bundle - #2002
Merged
Merged
Conversation
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>
…bundle 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.
Adopts the signed AdCP
3.3.0bundle, the AdCP 3.3 GA release, on the SDK 10 /nextline. 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.Pin
schemas/releases/3.3.0.jsonrecords:90c34432d990, from the Fulcio certificate. Thev3.3.0tag,77d5bcd5("Version Packages", adcp#9310), is its descendant through one training-agent commit (95e71238, adcp#9281), which does not touch the bundle.4592b26a4467…, 27,979,036 bytes, and the.sig,.crtand.sha256sidecars.cosign verify-blobagainstrelease.yml@refs/heads/mainprintsVerified OK. The CDN assets match the GitHub release assets byte for byte.sync_schemas.py --require-signed-release, which checks the checksum and the exact signing identity, thenfix_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).3.3(a stable release collapses toMAJOR.MINOR), so the cache isschemas/cache/3.3and the packaged compliance tree issrc/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, and3.3.0-rc.3added to the distribution check's retired bundles).SCHEMA_DELTAS.mdis the full rc.3 → 3.3.0 delta.make validate-generatedis clean.What 3.3.0 changes after rc.3, and what the SDK does
maxItems/maxLengthbounds on fields new in 3.3 or experimental (adcp#8512, changeset 944a5b9). Stable fields andget_adcp_capabilitiesare untouchedScalarStrsubclasses, so values are stillstr. New domain-module names:PlanId,PolicyId,Segment,PackageIdand others.core.reporting_subscription.AccountId7folds intoAccountIdtargeting_kvskeyandvalueare bounded at 255 characters (part of #8512)TargetingKvmodel. adcontextprotocol/adcp-client#3844 (head07c43536) 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 aschemas/patchesentry or a post-generate fixformat_kindneedsformat_option_ref: a seller MUST reject a manifest without it and MUST NOT infer the option (adcp#8625 via #8876)find_declaration_by_kindreturned the first declaration of the kind whenformat_option_idwas omitted. That is the inference the spec forbids, so it now raisesFormatOptionRefRequiredError;to_wire_error()isVALIDATION_ERRORonmanifest.format_option_ref, listing the referenceable option IDs. The legacyformat_idprojection already setsformat_option_refSIGNAL_NOT_FOUNDcoverssignal_idonly; an unknownsignal_agent_segment_idisREFERENCE_NOT_FOUND(adcp#8956)SignalsPlatform.activate_signal's docstring now namesREFERENCE_NOT_FOUNDformat_kindprojection limited to product format declarations (adcp#7929); bundled enum hoisting keeps call-site annotations (adcp#9167)agent-onboarding,trust.json,principal-relationship)x-status: experimentalin 3.3.0, so the identity code's experimental markers stay as they areBreaking
3.3and no longer accepts3.3-rc.3.get_supported_adcp_versions()is3.0, 3.1, 3.2, 3.3, 3.2-rc.7. Anadcp_versionpin of3.3-rc.3or3.3.0-rc.3raisesConfigurationError, and a peer that advertises only3.3-rc.3for the 3.3 line negotiates down to3.2. There is no3.3-rc.3→3.3alias (unlike3.2-rc.7→3.2), because 3.3.0 bounds fields that rc.3 left unbounded, and@adcp/sdk17.0.0 advertises3.3without 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.find_declaration_by_kindraises on a repeated kind withoutformat_option_id.AccountId7is removed (renumbering churn; import the semantic names).Recorded in
MIGRATION_v9_to_v10.md,docs/adcp-3.3-sdk-inventory.mdsection 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 that3.3-rc.3is refused and negotiates down to3.2, and that the bounds are enforced, includingtargeting_kvs.3.3-rc.3/3.3.0-rc.3to3.3/3.3.0, and paths move to the3.3cache. Parametrized version-arithmetic lists that hold both3.3and3.3-rc.3keep rc.3.test_reporting_status_page_cost: the pinned page digests change only throughledger_snapshot_id(and the cursors that carry it), which binds the servedadcp_version. I checked this by rendering under both pins and diffing.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
bandithook runs only on staged files, and regenerating the types staged code it had not scanned before. It flagged two existing lines:validated_passincreative/validate_input_result.py. Generated code can't carry# nosec, so[tool.bandit]now excludessrc/adcp/types/domains. CI doesn't run bandit.except Exception: continueinsrc/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 theBREAKING 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 touchsrc/adcp/client.pyin separate hunks (#2001 near line 6888, this PR the comments near lines 739 and 1152), andgit mergeresolves them cleanly. After a local trial merge,make validate-generatedstays clean, so #2001'spost_generate_fixes.pychanges 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_oneassertsget_bundle_adcp_version() == "3.3.0-rc.3". Whichever PR merges second must change that assertion to3.3.0and 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) andmake validate-generatedpass.pytest -n 8) on the tree before the commit: 23,164 passed, 3,322 skipped, 1 xfailed, 1 failed. The failure wastest_mcp_tools_reject_missing_schema_bundle, which used3.3as its no-bundle version. It now uses3.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 wastest_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).check_distribution_sizeand 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 andSTANDARD_ERROR_CODEScheck.scripts/check_companion_releases.py 10.0.0 --dist <that wheel>: the publishedadcp-reporting-storage 0.2.0b9installs withadcp 10.0.0, with storage contract 3 on both sides. The PostgreSQL round trip was skipped locally.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