Skip to content

feat(protocol)!: adopt the signed AdCP 3.3.0-rc.3 bundle - #1941

Merged
bokelley merged 1 commit into
nextfrom
feat/adopt-adcp-3.3.0-rc.3
Nov 22, 2026
Merged

bokelley merged 1 commit into
nextfrom
feat/adopt-adcp-3.3.0-rc.3

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Adopts the signed AdCP 3.3.0-rc.3 bundle on the SDK 10 / next line. It follows #1919 (rc.0) and ships as the next 10.0.0 beta. 3.3.0-rc.1 was never published; 3.3.0-rc.2 carried its changes. So this is the whole rc.0 → rc.3 delta.

Pin

  • schemas/releases/3.3.0-rc.3.json records:
    • source commit 6043df676d21, from the Fulcio certificate. The v3.3.0-rc.3 tag, c5f39849, is its "Version Packages (rc)" child.
    • bundle sha256 9c0f4b2b61be…, 28,092,484 bytes.
    • 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.
  • The tree was synced from the CDN with a strict sync_schemas.py --require-signed-release, which verified the checksum and the exact signing identity, then fix_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.
  • Types were regenerated from the rc.0 tree, so SCHEMA_DELTAS.md is the full rc.0 → rc.3 delta. make validate-generated is clean.

What rc.3 changes, and what the SDK does

Spec change SDK
metric_id withdrawn from performance standards (adcp#8854, #8501 entries 6 and 26). It moves to 4.0. x-entity-types restores evaluator as deprecated Generated. No hand-written code read metric_id on a performance standard
Reporting subscriptions name geography systems (adcp#9049): postal_area dimension, dimension_systems on offerings and on selectors, and 1.2 report-definition geography codes SDK change, below. The 1.2 report-definition naming rule isn't checked by the SDK
Experimental DOOH impression basis (adcp#8736): ImpressionEstimationBasis, ImpressionBasisBreakdownEntry, and new optional fields on DOOH delivery, forecast points and placements Generated
PROPOSAL_TERMS_CHANGED (adcp#9168) Generated. adcp_error("PROPOSAL_TERMS_CHANGED") reads correctable from the pinned error-code.json
Single-value form of 17 scalar-or-list unions deprecated (adcp#9123) Generated (deprecation descriptions). No payload validates differently
oneOf branches that both matched now refuse each other with not (adcp#9170) The models ignore not, so parsing is unchanged; only descriptions moved. Schema validation follows the bundle
Campaign governance rules settled (adcp#9006, #9015) Descriptions only

SDK change the candidate needed: selector dimension_systems

rc.3 adds three reporting-subscription coverage vectors (match-metro-system-named, match-metro-system-omitted, match-postal-systems-subset). The SDK ignored a selector's dimension_systems, so it resolved dimension_systems.metro: nielsen_dma to a lower-id UK ITL2 offering. Selector resolution is shared by buyer and seller, and now follows the schema:

  • an offering matches only when its dimension_systems.metro equals the selector's;
  • its dimension_systems.postal_area must include every selector {country, system} entry;
  • an omitted key accepts any system.

Related changes:

  • STANDARD_REPORTING_DIMENSIONS gains postal_area. Without it, capabilities dropped a postal_area mapping from standard_dimensions.
  • SUBSCRIPTION_SELECTOR_UNMATCHED names dimension_systems among the failed attributes.
  • The subscription registry treats a resend that only reorders dimension_systems.postal_area as the same version (uniqueItems compare as sets, as for dimensions).
  • The vendored coverage vectors move to rc.3's bytes (SPEC_COMMIT 6043df67). All 149 parity cases pass. A negative control, with the systems filter disabled, fails exactly match-metro-system-named and match-postal-systems-subset.
  • The cross-SDK coverage trace (explain.py) is unchanged. Its digest doesn't carry offering dimensions.

Breaking

  • The SDK speaks 3.3-rc.3 and no longer accepts 3.3-rc.0. get_supported_adcp_versions() is 3.0, 3.1, 3.2, 3.3-rc.3, 3.2-rc.7. An adcp_version pin of 3.3-rc.0 or 3.3.0-rc.0 raises ConfigurationError. A peer that advertises only 3.3-rc.0 for the 3.3 line negotiates down to 3.2. That includes @adcp/sdk builds that still bundle rc.0 (17.0.0-beta.32 per the rc.3 changelog), until they move to rc.3.
  • metric_id is no longer a field on PerformanceStandard, CanonicalPerformanceStandard or RequiredPerformanceStandard. The models allow extras, so a payload carrying it still parses and passes it through untyped.
  • Renumbered generated classes (public API snapshot refreshed):
    • adcp.types.domains.core.postal_area: PostalArea11…PostalArea121 → PostalArea401…PostalArea4021, and System1/2/3/9 → System41/42/43/49.
    • adcp.types.domains.core.postal_country_system: System11/12/13/19 → System51/52/53/59.
    • The union arms the SDK imports stay pinned as PostalArea1 and PostalArea2 (fix(codegen): find postal union arms by shape and pin their names #1939).
  • brand_discovery.ColorValue2Item now derives from ScalarStr instead of ColorValue1, so it's a separate class now. Its value is unchanged.

Recorded in MIGRATION_v9_to_v10.md and docs/adcp-3.3-sdk-inventory.md section 18.

Not done (follow-ups)

  • The framework doesn't compare accept_proposal.proposal_terms_digest with the committed terms_digest itself. The platform does, and can now raise PROPOSAL_TERMS_CHANGED.
  • No SDK check of the contract_version 1.2 geography naming rule on report definitions.
  • Carried over from feat(protocol)!: adopt the signed AdCP 3.3.0-rc.0 bundle #1919: RATE_LIMITED all → global mapping in untyped error.details, the buyer-side assignment_operations refusal, and scope-aware signing pins.

Verification

  • make lint, make validate-generated and make typecheck-all pass. That's mypy on 1,711 source files, the strict adopter fixtures and pyright.
  • Full suite (pytest -n auto): 22,136 passed, 3,026 skipped, 1 xfailed. The one failure, test_error_code_conformance expecting 125 canonical codes, was the new PROPOSAL_TERMS_CHANGED (126). It now asserts the new code, and the module passes.
  • The adoption test (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 that 3.3-rc.0 is refused as a pin, and covers the metric_id removal, postal_area, PROPOSAL_TERMS_CHANGED and the pinned postal arms.
  • tests/test_reporting_subscription_dimension_systems.py (18 tests) covers selector resolution, parsing from wire and generated models, _mismatches and _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

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>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bokelley
bokelley merged commit aa0d8bb into next Nov 22, 2026
41 checks passed
@bokelley
bokelley deleted the feat/adopt-adcp-3.3.0-rc.3 branch November 22, 2026 22:21
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