Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ recursive-include src/adcp py.typed
recursive-include src/adcp/reporting/materializer/assets *.json
recursive-include src/adcp/_compliance/3.2.1 *.json *.jsonl *.yaml *.md
recursive-include src/adcp/_compliance/3.2.4 *.json *.jsonl *.yaml *.md
recursive-include src/adcp/_compliance/3.3.0-rc.3 *.json *.jsonl *.yaml *.md
recursive-include src/adcp/_compliance/3.3.0 *.json *.jsonl *.yaml *.md
recursive-include src/adcp/_compliance/3.2.7 *.json *.jsonl *.yaml *.md
# build_py copies the tracked cache into wheels. Do not duplicate those
# inputs with ignored, generated package copies in the source distribution.
Expand All @@ -21,6 +21,7 @@ prune src/adcp/_compliance/3.3.0-beta.4
prune src/adcp/_compliance/3.3.0-beta.5
prune src/adcp/_compliance/3.3.0-beta.6
prune src/adcp/_compliance/3.3.0-rc.0
prune src/adcp/_compliance/3.3.0-rc.3
# A clean VCS source tree has no ignored ``src/adcp/_schemas`` directory.
# Keep the tracked inputs needed by the build_py hook in source distributions
# so wheels built from an sdist have the same schema set as direct VCS wheels.
Expand All @@ -29,7 +30,7 @@ recursive-include schemas/cache/3.0 *.json
recursive-include schemas/cache/3.1 *.json
recursive-include schemas/cache/3.1.15 *.json
recursive-include schemas/cache/3.2 *.json
recursive-include schemas/cache/3.3.0-rc.3 *.json
recursive-include schemas/cache/3.3 *.json
prune schemas/cache/2.5
prune schemas/cache/3.2.0-beta.6
prune schemas/cache/3.2.0-rc.3
Expand All @@ -43,9 +44,10 @@ prune schemas/cache/3.3.0-beta.4
prune schemas/cache/3.3.0-beta.5
prune schemas/cache/3.3.0-beta.6
prune schemas/cache/3.3.0-rc.0
prune schemas/cache/3.3.0-rc.3
prune schemas/releases
include schemas/releases/3.2.1.json
include schemas/releases/3.2.4.json
include schemas/releases/3.2.7.json
include schemas/releases/3.1.27.json
include schemas/releases/3.3.0-rc.3.json
include schemas/releases/3.3.0.json
9 changes: 5 additions & 4 deletions MIGRATION_v9_to_v10.md

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,18 +382,20 @@ Guides: [seller](docs/reporting-subscriptions-seller.md) · [buyer](docs/reporti

## AdCP version support

SDK 8 is built against **AdCP 3.2.1**, the AdCP 3.2 general-availability
release, and makes canonical creatives the primary Python contract. It
negotiates AdCP 3.0, 3.1, and 3.2. On the wire, 3.2 is `"3.2"`, because
`adcp_version` carries release precision only. AdCP 3.2.0 was withdrawn and
is not a supported target. The SDK package version and protocol version are
SDK 10 is built against **AdCP 3.3.0**, the AdCP 3.3 general-availability
release, and keeps canonical creatives the primary Python contract. It
negotiates AdCP 3.0, 3.1, 3.2 and 3.3. On the wire, 3.3 is `"3.3"`, because
`adcp_version` carries release precision only. The 3.3 release candidates
(`"3.3-rc.3"` and earlier) are not accepted pins; a peer that advertises only
one of them negotiates down to `"3.2"`. AdCP 3.2.0 was withdrawn and is not a
supported target. The SDK package version and protocol version are
intentionally independent:

```python
import adcp

adcp.get_adcp_sdk_version() # SDK package version, e.g. "8.0.0"
adcp.get_adcp_spec_version() # AdCP spec this build targets, e.g. "3.2.1"
adcp.get_adcp_sdk_version() # SDK package version, e.g. "10.0.0"
adcp.get_adcp_spec_version() # AdCP spec this build targets, e.g. "3.3.0"
```

Client calls and server handlers use current application models while the SDK
Expand Down
81 changes: 35 additions & 46 deletions SCHEMA_DELTAS.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,40 @@
# Generated-types delta

## Files added

- `core/impression_basis_breakdown_entry.py` — ImpressionBasisBreakdownEntry
- `core/reporting_dimension_systems.py` — ReportingDimensionSystems
- `enums/impression_estimation_basis.py` — ImpressionEstimationBasis

## Field changes

- `brand_discovery.py`
- **classes added**: ColorValue2Item
- `ColorValue1`: `+_json_schema_extra`
- `bundled/protocol/get_adcp_capabilities_response.py`
- **classes added**: Country32, DimensionSystems, Metro, PostalArea, PostalArea1, PostalArea2, PostalArea3, PostalArea4, PostalArea5, PostalArea6, PostalArea7, PostalArea8, PostalArea9, System, System1, System2, System3, System9
- `Offering`: `+dimension_systems`
- `ReportingDimension`: `+postal_area`
- `core/canonical_forecast_point.py`
- `CanonicalForecastPoint`: `+audience_multiplier`, `+impression_basis`, `+impression_basis_breakdown`
- `core/canonical_performance_standard.py`
- `CanonicalPerformanceStandard`: `-metric_id`
- `core/canonical_placement.py`
- `CanonicalDoohPlacementAttributes`: `+audience_multiplier`, `+impression_basis`
- `core/delivery_metrics.py`
- **classes added**: BasisMetric
- `DoohMetrics1`: `+audience_multiplier`, `+basis_metric`, `+impression_basis`, `+impression_basis_breakdown`
- `VenueBreakdownItem`: `+impression_basis`, `+plays`
- `core/forecast_point.py`
- `ForecastPoint`: `+audience_multiplier`, `+impression_basis`, `+impression_basis_breakdown`
- `core/performance_standard.py`
- `PerformanceStandard`: `-metric_id`
- `core/placement.py`
- `ProductDoohPlacementAttributes`: `+audience_multiplier`, `+impression_basis`
- `core/postal_area.py`
- **classes added**: PostalArea401, PostalArea4010, PostalArea4011, PostalArea4012, PostalArea4013, PostalArea4014, PostalArea4015, PostalArea4016, PostalArea4017, PostalArea4018, PostalArea4019, PostalArea402, PostalArea4020, PostalArea4021, PostalArea403, PostalArea404, PostalArea405, PostalArea406, PostalArea407, PostalArea408, PostalArea409, System41, System42, System43, System49
- **classes removed**: PostalArea11, PostalArea110, PostalArea111, PostalArea112, PostalArea113, PostalArea114, PostalArea115, PostalArea116, PostalArea117, PostalArea118, PostalArea119, PostalArea12, PostalArea120, PostalArea121, PostalArea13, PostalArea14, PostalArea15, PostalArea16, PostalArea17, PostalArea18, PostalArea19, System1, System2, System3, System9
- `core/postal_country_system.py`
- **classes added**: System51, System52, System53, System59
- **classes removed**: System11, System12, System13, System19
- `core/product_offer_filters.py`
- `RequiredPerformanceStandard`: `-metric_id`
- `core/reporting_delivery_offering.py`
- `ReportingDeliveryOffering`: `+dimension_systems`
- `core/canonical_installment.py`
- **classes added**: Topic
- `core/demographic_targeting_resolution.py`
- **classes added**: Age4, Age5, IntervalId1
- `core/reporting_subscription.py`
- `Selector`: `+dimension_systems`
- `core/x_entity_types.py`
- `XEntityTypes`: `+evaluator`
- `enums/error_code.py`
- `ErrorCode`: `+PROPOSAL_TERMS_CHANGED`
- `enums/reporting_dimension.py`
- `ReportingDimension`: `+postal_area`
- **classes removed**: AccountId7
- `formats/canonical/coordinated_placements.py`
- **classes added**: CtaValue
- `formats/canonical/image_carousel.py`
- **classes added**: CtaValue
- `governance/check_governance_response.py`
- **classes added**: CategoriesEvaluatedItem, PoliciesEvaluatedItem
- `governance/get_plan_audit_logs_request.py`
- **classes added**: GovernanceContext, PlanId
- `governance/get_plan_audit_logs_response.py`
- **classes added**: CategoriesEvaluatedItem, PoliciesEvaluatedItem
- `governance/sync_plans_request.py`
- **classes added**: Country, PolicyCategory, PolicyId
- `media_buy/list_proposals_request.py`
- **classes removed**: ProposalId
- `sponsored_intelligence/si_get_offering_response.py`
- **classes added**: AlternativeOfferingId
- `sponsored_intelligence/si_send_message_response.py`
- **classes added**: AppliedOffer
- `trusted_match/context_match_request.py`
- **classes added**: ContentPolicy, PackageId, Topic
- `trusted_match/context_match_response.py`
- **classes added**: Segment
- `trusted_match/identity_match_request.py`
- **classes added**: PackageId
- `trusted_match/identity_match_response.py`
- **classes added**: EligiblePackageId
- `trusted_match/provider_context_match_response.py`
- **classes added**: Segment
- `trusted_match/provider_identity_match_response.py`
- **classes added**: EligiblePackageId
26 changes: 24 additions & 2 deletions docs/adcp-3.3-sdk-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ it adopted the bundle, and what is left to the codegen/wire-fidelity (2) and

| Item | Detail | SDK status |
| --- | --- | --- |
| Wire pin | `src/adcp/ADCP_VERSION` is `3.3.0-rc.3` (was `3.3.0-beta.0`, then `3.3.0-beta.1` through `3.3.0-beta.6` and `3.3.0-rc.0`; see sections 11 to 18); bundle key `3.3.0-rc.3` (prereleases keep their full identifier, `resolve_bundle_key`). The 3.2 cache stays synced from the signed 3.2.4 release as a preview bundle (`PREVIEW_VERSIONS`), beside 3.1.27. | done (1) |
| Advertised versions | `COMPATIBLE_ADCP_VERSIONS = ("3.0", "3.1", "3.2", "3.3")`; `get_supported_adcp_versions()` advertises the exact prerelease `3.3-rc.3`, never a stable `3.3`, so buyers opt into the prerelease they validated against (DR-0024). Full set: `3.0, 3.1, 3.2, 3.3-rc.3, 3.2-rc.7`. | done (1) |
| Wire pin | `src/adcp/ADCP_VERSION` is `3.3.0`, the GA release (was `3.3.0-beta.0`, then `3.3.0-beta.1` through `3.3.0-beta.6`, `3.3.0-rc.0` and `3.3.0-rc.3`; see sections 11 to 19); bundle key `3.3` (a stable release collapses to `MAJOR.MINOR`, `resolve_bundle_key`). The 3.2 cache stays synced from the signed 3.2.4 release as a preview bundle (`PREVIEW_VERSIONS`), beside 3.1.27. | done (1) |
| Advertised versions | `COMPATIBLE_ADCP_VERSIONS = ("3.0", "3.1", "3.2", "3.3")`; `get_supported_adcp_versions()` advertised the exact prerelease while the pin was one, never a stable `3.3`, so buyers opted into the prerelease they validated against (DR-0024). With the GA pin it advertises `3.3`. Full set: `3.0, 3.1, 3.2, 3.3, 3.2-rc.7`. | done (1) |
| Negotiation | `negotiate_version` matches prereleases exactly. The client's outgoing conversion treats the SDK's served prerelease as its line (`is_convertible_version`), so a 3.3-beta.0 buyer still negotiates down to a 3.1 or 3.2 seller. | done (1) |
| Translation | `convert_payload` steps 3.3-beta.0 ↔ 3.2 ↔ 3.1 ↔ 3.0 through the bundled schemas; the 3.3 step uses the `3.3.0-beta.0` bundle. Downgrades go through `_require_target_valid`, so a converted payload the older schema refuses fails as `ADCPVersionConversionError` (#1621 / #1630). | done (1); per-field rules below are (3) |
| Restricted servers | A server that lists `supported_versions` without `adcp_version` now pins to the newest listed release (`version_policy.default_adcp_version`), instead of refusing because the SDK default (3.3-beta.0) is outside the list. | done (1) |
Expand Down Expand Up @@ -389,3 +389,25 @@ adcontextprotocol/adcp#8854, #8736, #9049, #9123, #9168, #9170, #9006 and #9015.
| Scalar-or-list deprecation (#9123) | The single-value branch of 17 unions carries `deprecated: true`; senders send a one-item array. No payload validates differently. | generated |
| `oneOf` disambiguation (#9170) | Branches that both matched now refuse each other with `not`: property IDs in `property-feature-result`, content-standards success bodies with `errors`, `adagents.json` with both `authoritative_location` and inline agents, and calibration exemplars. | The generated models ignore `not`, so parsing is unchanged; schema validation follows the bundle |
| Campaign governance (#9006, #9015) | Normative rules settled within the 3.3 prerelease (budget cut below committed spend, `PLAN_NOT_FOUND` for inaccessible plans, human review in every mode); descriptions only on the wire. | descriptions regenerated; the SDK ships no governance agent logic that these change |

## 19. 3.3.0 GA delta

Adopted from the signed `3.3.0` bundle, the AdCP 3.3 GA release (pinned in
`schemas/releases/3.3.0.json`, source commit
`90c34432d990439b3232f4a40c604ccea1b0c900` from the Fulcio certificate; the
`v3.3.0` tag, `77d5bcd5`, is its "Version Packages" descendant through one
training-agent commit; bundle sha256
`4592b26a4467ea7609aee29f4fd6427b6072db49f57accc87db13c386296aa89`). This is
the whole rc.3 → 3.3.0 delta. Sources: the bundle's `CHANGELOG.md` and
adcontextprotocol/adcp#8913 (PR #8951), #8625 (PR #8876), #8512, #8956,
#7929 and #9167.

| Item | Detail | SDK status |
| --- | --- | --- |
| Wire pin | `3.3.0` / `3.3`; bundle key `3.3`. `3.3-rc.3` is no longer advertised or accepted as a pin and gets no alias, because 3.3.0 bounds fields rc.3 left unbounded. Its cache and compliance trees stay in the source tree and leave the wheel. | done |
| Bounds on new and experimental fields (#8512) | 657 `maxItems` / `maxLength` keywords on 158 schemas, only on fields absent from 3.2.12 or experimental; `get_adcp_capabilities` and stable fields are untouched. This includes the TMP `targeting_kvs` `key` and `value` (255 characters). | generated: the models enforce the bounds, and constrained string items are `ScalarStr` subclasses (still `str`). No carve-out: the SDK ships no TMP router, so the `targeting_kvs` bounds only reach the generated `TargetingKv` model. `core.reporting_subscription.AccountId7` is folded into `AccountId` |
| Operator is a registrable domain (#8913) | `operator` in `account-ref`, `canonical-account-ref`, `sync_accounts`, `request_account`, brand.json `authorized_operator.domain`, `operator-identity` and the SI `paying_principal` is the eTLD+1 of the operating organization; a seller MAY refuse a subdomain. The patterns are unchanged. | descriptions regenerated; the SDK does not refuse a subdomain operator |
| Repeated `format_kind` needs `format_option_ref` (#8625) | A seller MUST reject a manifest without `format_option_ref` when two or more `format_options` share its `format_kind`, and MUST NOT infer the option. The `canonical_formats` storyboard (1.2.0) checks it for sellers with `inline_creative_management`. | `find_declaration_by_kind` raises `FormatOptionRefRequiredError` (`VALIDATION_ERROR` on `format_option_ref`) instead of returning the first match. The legacy `format_id` projection already sets `format_option_ref` |
| `SIGNAL_NOT_FOUND` scope (#8956) | Covers `signal_id` only; an unresolvable `signal_agent_segment_id` is `REFERENCE_NOT_FOUND`. | `SignalsPlatform.activate_signal`'s docstring names `REFERENCE_NOT_FOUND` |
| `format_kind` projection scope (#7929) | Projection of a newer `format_kind` applies to product format declarations only; elsewhere a newer kind is a tolerated enum value. | description only |
| Bundled enum hoisting (#9167) | `bundled/` schemas keep call-site annotations on hoisted enums and hoist inside `definitions`. | `bundled/protocol/get_adcp_capabilities_response.py` regains field descriptions; no type change |
2 changes: 1 addition & 1 deletion docs/agent-identity-3-3-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Typed client results preserve `adcp_error`, including its code, recovery guidanc

Use the preview `RequestSigning` model (`adcp.types.experimental_identity`) to advertise `profiles=["adcp/request-signing/v1", "web-bot-auth"]` on a server accepting both. The preview reader models preserve unknown onboarding requirement kinds so applications can fall back to the posture's message and URL; unknown kinds cannot be satisfied automatically. Authoring validation still enforces the pinned schema, including its conditionals: `aao_verified` requires `role`, and `storyboard` and `experimental_feature` require `id`. A trust record whose posture breaks them fails validation, for readers as for authors.

The schemas are the 3.3.0-rc.3 bundle's (`core/agent-onboarding.json`, `core/buyer-onboarding-posture.json`, `core/principal-relationship.json`, `trust/v1/trust.json` and their enums), the same documents the earlier preview vendored from adcp main after #8168, #8169 and #8170 merged: the buyer posture lives only in trust.json, at `profiles.adcp.onboarding` on the record and on an agent entry; one mode enum (`open`, `application`, `invite_only`) serves sellers and buyers; the `agent_identity` requirement kind and `documentation_url` are gone; `aao_verified` uses `verified_specialisms`; `relationship.status` uses `pending_approval`.
The schemas are the 3.3.0 bundle's (`core/agent-onboarding.json`, `core/buyer-onboarding-posture.json`, `core/principal-relationship.json`, `trust/v1/trust.json` and their enums), the same documents the earlier preview vendored from adcp main after #8168, #8169 and #8170 merged: the buyer posture lives only in trust.json, at `profiles.adcp.onboarding` on the record and on an agent entry; one mode enum (`open`, `application`, `invite_only`) serves sellers and buyers; the `agent_identity` requirement kind and `documentation_url` are gone; `aao_verified` uses `verified_specialisms`; `relationship.status` uses `pending_approval`.

Import experimental models from `adcp.types.experimental_identity`: `AgentOnboarding`, its modes/tiers/requirements, `BuyerOnboardingPosture`, `TrustRecord`, `GetPrincipalResponse`, `PrincipalRelationship`, `PrincipalRelationshipStatus`, `PrincipalChangedWebhook`, and `GrantAbsentDetails`. They are the generated 3.3 types (`adcp.types.domains.core.*`, `adcp.types.domains.trust.v1.trust`) under those names; validate behavioral constraints with the trust helpers.

Expand Down
Loading