Repository navigation
feat(protocol)!: adopt the signed AdCP 3.3.0-rc.3 bundle - #1941
Conversation
Pin src/adcp/ADCP_VERSION to 3.3.0-rc.3 from the audited, cosign-verified release: schemas/releases/3.3.0-rc.3.json, source commit 6043df676d21 from the Fulcio certificate (the v3.3.0-rc.3 tag, c5f39849, is its Version Packages child), bundle sha256 9c0f4b2b61be. 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.0 tree and refresh the public API snapshot. The wheel ships the rc.3 schemas and compliance tree; the rc.0 trees stay in the repository as history. Reporting subscriptions name geography systems (adcp#9049). Selector resolution, shared by buyer and seller, now honours a selector's dimension_systems: an offering matches only when its metro system equals the selector's and its postal (country, system) pairs include every selector entry. STANDARD_REPORTING_DIMENSIONS gains postal_area, which capabilities otherwise dropped from standard_dimensions; SUBSCRIPTION_SELECTOR_UNMATCHED names dimension_systems; a resend that only reorders postal_area is the same version. The vendored coverage vectors move to rc.3, with three new selector cases. Also generated: metric_id withdrawn from performance standards (adcp#8854), evaluator restored as a deprecated x-entity-types value, the experimental DOOH impression basis (adcp#8736), PROPOSAL_TERMS_CHANGED (adcp#9168), the scalar-or-list deprecations (adcp#9123), the oneOf not guards (adcp#9170) and the campaign-governance description updates (adcp#9006, #9015). BREAKING CHANGE: the SDK no longer advertises or accepts AdCP 3.3-rc.0. get_supported_adcp_versions is 3.0, 3.1, 3.2, 3.3-rc.3 and 3.2-rc.7; an adcp_version pin of 3.3-rc.0 or 3.3.0-rc.0 raises ConfigurationError, and a peer that advertises only 3.3-rc.0 for the 3.3 line negotiates down to 3.2. Re-pin to 3.3-rc.3 or omit the pin. metric_id is removed from PerformanceStandard, CanonicalPerformanceStandard and RequiredPerformanceStandard, and the generated postal classes in adcp.types.domains.core.postal_area and postal_country_system are renumbered (PostalArea11-121 to PostalArea401-4021, System1/2/3/9 to System41/42/43/49, System11/12/13/19 to System51/52/53/59). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — rc.0 → rc.3 schema-bundle adoption.
The large diff (~2.8M lines) is generated schema cache plus renumbered codegen churn (e.g. PostalArea11-121 → PostalArea401-4021). This is datamodel-code-generator traversal renumbering, not a semantic schema delta. Per repo rules, the pinned union arms (PostalArea1/PostalArea2, #1939) held and aliases.py still binds only the stable names, so the forward-compat/alias layer remains intact.
The one hand-written change — selector dimension_systems filtering in reporting/subscriptions (resolution.py reports_in/_dimension_systems, facade _mismatches, registry _semantic set-reorder) — is correct and symmetric between offering and selector sides, and is covered by 18 new tests including a negative control.
Semver signal is correct: the breaking change ships under feat(protocol)!: with a BREAKING CHANGE footer and migration notes, satisfying the mandatory public-surface semver rule.
Decision path: no critical/high/medium findings. gated_paths is false; review_decision unknown (gate not triggered). high_risk is true but every reason is (added) — new generated schema-cache files, which are normal scaffolding, not an escalation trigger. No (deleted)/(modified) entries, no medium findings, no team gate. Rows 1–8 do not fire → row 9 approve.
Adopts the signed AdCP
3.3.0-rc.3bundle on the SDK 10 /nextline. It follows #1919 (rc.0) and ships as the next 10.0.0 beta.3.3.0-rc.1was never published;3.3.0-rc.2carried its changes. So this is the whole rc.0 → rc.3 delta.Pin
schemas/releases/3.3.0-rc.3.jsonrecords:6043df676d21, from the Fulcio certificate. Thev3.3.0-rc.3tag,c5f39849, is its "Version Packages (rc)" child.9c0f4b2b61be…, 28,092,484 bytes..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 verified the checksum and the exact signing identity, thenfix_schema_refs.py. CI skips its CDN download and drift steps for a prerelease pin, so this local sync is the CDN check. The 3.2.7 and 3.1.27 preview bundles re-synced unchanged, and so did the skills and compatibility vectors.SCHEMA_DELTAS.mdis the full rc.0 → rc.3 delta.make validate-generatedis clean.What rc.3 changes, and what the SDK does
metric_idwithdrawn from performance standards (adcp#8854, #8501 entries 6 and 26). It moves to 4.0.x-entity-typesrestoresevaluatoras deprecatedmetric_idon a performance standardpostal_areadimension,dimension_systemson offerings and on selectors, and 1.2 report-definition geography codesImpressionEstimationBasis,ImpressionBasisBreakdownEntry, and new optional fields on DOOH delivery, forecast points and placementsPROPOSAL_TERMS_CHANGED(adcp#9168)adcp_error("PROPOSAL_TERMS_CHANGED")readscorrectablefrom the pinnederror-code.jsononeOfbranches that both matched now refuse each other withnot(adcp#9170)not, so parsing is unchanged; only descriptions moved. Schema validation follows the bundleSDK change the candidate needed: selector
dimension_systemsrc.3 adds three reporting-subscription coverage vectors (
match-metro-system-named,match-metro-system-omitted,match-postal-systems-subset). The SDK ignored a selector'sdimension_systems, so it resolveddimension_systems.metro: nielsen_dmato a lower-id UK ITL2 offering. Selector resolution is shared by buyer and seller, and now follows the schema:dimension_systems.metroequals the selector's;dimension_systems.postal_areamust include every selector{country, system}entry;Related changes:
STANDARD_REPORTING_DIMENSIONSgainspostal_area. Without it,capabilitiesdropped apostal_areamapping fromstandard_dimensions.SUBSCRIPTION_SELECTOR_UNMATCHEDnamesdimension_systemsamong the failed attributes.dimension_systems.postal_areaas the same version (uniqueItemscompare as sets, as fordimensions).SPEC_COMMIT6043df67). All 149 parity cases pass. A negative control, with the systems filter disabled, fails exactlymatch-metro-system-namedandmatch-postal-systems-subset.explain.py) is unchanged. Its digest doesn't carry offering dimensions.Breaking
3.3-rc.3and no longer accepts3.3-rc.0.get_supported_adcp_versions()is3.0, 3.1, 3.2, 3.3-rc.3, 3.2-rc.7. Anadcp_versionpin of3.3-rc.0or3.3.0-rc.0raisesConfigurationError. A peer that advertises only3.3-rc.0for the 3.3 line negotiates down to3.2. That includes@adcp/sdkbuilds that still bundle rc.0 (17.0.0-beta.32 per the rc.3 changelog), until they move to rc.3.metric_idis no longer a field onPerformanceStandard,CanonicalPerformanceStandardorRequiredPerformanceStandard. The models allow extras, so a payload carrying it still parses and passes it through untyped.adcp.types.domains.core.postal_area:PostalArea11…PostalArea121→PostalArea401…PostalArea4021, andSystem1/2/3/9→System41/42/43/49.adcp.types.domains.core.postal_country_system:System11/12/13/19→System51/52/53/59.PostalArea1andPostalArea2(fix(codegen): find postal union arms by shape and pin their names #1939).brand_discovery.ColorValue2Itemnow derives fromScalarStrinstead ofColorValue1, so it's a separate class now. Its value is unchanged.Recorded in
MIGRATION_v9_to_v10.mdanddocs/adcp-3.3-sdk-inventory.mdsection 18.Not done (follow-ups)
accept_proposal.proposal_terms_digestwith the committedterms_digestitself. The platform does, and can now raisePROPOSAL_TERMS_CHANGED.contract_version1.2 geography naming rule on report definitions.RATE_LIMITEDall→globalmapping in untypederror.details, the buyer-sideassignment_operationsrefusal, and scope-aware signing pins.Verification
make lint,make validate-generatedandmake typecheck-allpass. That's mypy on 1,711 source files, the strict adopter fixtures and pyright.pytest -n auto): 22,136 passed, 3,026 skipped, 1 xfailed. The one failure,test_error_code_conformanceexpecting 125 canonical codes, was the newPROPOSAL_TERMS_CHANGED(126). It now asserts the new code, and the module passes.tests/test_adcp_3_3_0_rc_3_adoption.py) pins the identity values: manifest 4,727 files, provenance 249 files and 1,770 schemas. It also checks that3.3-rc.0is refused as a pin, and covers themetric_idremoval,postal_area,PROPOSAL_TERMS_CHANGEDand the pinned postal arms.tests/test_reporting_subscription_dimension_systems.py(18 tests) covers selector resolution, parsing from wire and generated models,_mismatchesand_semantic.BREAKING CHANGE: the SDK no longer advertises or accepts AdCP 3.3-rc.0. get_supported_adcp_versions is 3.0, 3.1, 3.2, 3.3-rc.3 and 3.2-rc.7; an adcp_version pin of 3.3-rc.0 or 3.3.0-rc.0 raises ConfigurationError, and a peer that advertises only 3.3-rc.0 for the 3.3 line negotiates down to 3.2. Re-pin to 3.3-rc.3 or omit the pin. metric_id is removed from PerformanceStandard, CanonicalPerformanceStandard and RequiredPerformanceStandard, and the generated postal classes in adcp.types.domains.core.postal_area and postal_country_system are renumbered (PostalArea11-121 to PostalArea401-4021, System1/2/3/9 to System41/42/43/49, System11/12/13/19 to System51/52/53/59).
🤖 Generated with Claude Code