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.0 *.json *.jsonl *.yaml *.md
recursive-include src/adcp/_compliance/3.3.0-rc.3 *.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 @@ -20,6 +20,7 @@ prune src/adcp/_compliance/3.3.0-beta.3
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
# 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 @@ -28,7 +29,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.0 *.json
recursive-include schemas/cache/3.3.0-rc.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 @@ -41,9 +42,10 @@ prune schemas/cache/3.3.0-beta.3
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/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.0.json
include schemas/releases/3.3.0-rc.3.json
5 changes: 3 additions & 2 deletions MIGRATION_v9_to_v10.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ releases ([#1525](https://github.com/adcontextprotocol/adcp-client-python/issues
| --- | --- | --- |
| `main` | Work against the latest ratified AdCP version (3.2.x today) | The current major (9.x), through release-please |
| `release/N.x` (`release/8.x`, `release/7.x`) | Fixes for an older major | Patch releases of that major, from the branch's own release workflow |
| `next` | SDK 10 on AdCP 3.3 (the 3.3.0-rc.0 bundle, agent identity, Web Bot Auth) | Pre-releases only (`10.0.0-beta.N`), from its own release-please configuration |
| `next` | SDK 10 on AdCP 3.3 (the 3.3.0-rc.3 bundle, agent identity, Web Bot Auth) | Pre-releases only (`10.0.0-beta.N`), from its own release-please configuration |

Open a PR against the branch that carries the spec it implements. Code written
to an unratified spec (an open adcontextprotocol/adcp PR or a draft) targets
Expand Down
74 changes: 46 additions & 28 deletions SCHEMA_DELTAS.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,51 @@
# 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**: AssignmentOperation
- `Change`: `+clickthrough` `-click_through`
- `Creative`: `+assignment_operations`
- `core/registry_event.py`
- `Tracks`: `+passed`
- `core/signal_definition.py`
- `MatchKey`: `+full_name`
- `core/signal_definition_enrichment.py`
- `MatchKey`: `+full_name`
- `enums/binary_verdict.py`
- `BinaryVerdict`: `+passed`
- `enums/creative_change_kind.py`
- `CreativeChangeKind`: `+clickthrough` `-click_through`
- `enums/delivery_projection_end_state.py`
- `DeliveryProjectionEndState`: `+under_delivery` `-underdelivery`
- `enums/distribution_identifier_type.py`
- `DistributionIdentifierType`: `+facebook_page_handle`, `+facebook_page_id`, `+instagram_account_id`, `+instagram_handle`, `+snapchat_handle`, `+snapchat_profile_id`, `+x_handle`, `+x_user_id`
- `error_details/rate_limited.py`
- `Scope`: `+all`
- `formats/canonical/coordinated_placements.py`
- `Params4`: `+cta_values`
- `formats/canonical/image_carousel.py`
- `CanonicalFormatImageCarousel`: `+cta_values`
- `protocol/get_adcp_capabilities_response.py`
- **classes added**: AssignmentOperation
- `Creative`: `+assignment_operations`
- `signals/get_signals_response.py`
- `MatchKey`: `+full_name`
- **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/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`
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.0` (was `3.3.0-beta.0`, then `3.3.0-beta.1` through `3.3.0-beta.6`; see sections 11 to 17); bundle key `3.3.0-rc.0` (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.0`, 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.0, 3.2-rc.7`. | done (1) |
| 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) |
| 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 @@ -367,3 +367,25 @@ the bundle's `CHANGELOG.md` and adcontextprotocol/adcp#8901, #8791, #8933,
| Assignment operations (#8933) | `creative.assignment_operations` on capabilities; buyers send only listed operations; live updates require `replace`; a compact-buy seller with a creative library lists `assign`. | generated. The SDK does not refuse an unlisted operation before sending, nor check the compact-buy `assign` rule at startup |
| Other | Audience targeting without inline member push (#8936), social distribution identifiers (#8992), `image_carousel` `cta_values` (#8960), aligned inline `submitted` branches (#8856), campaign governance `human_review_required` (#8733). | generated |
| Reporting subscriptions | No change: the six vendored coverage-vector files are byte-identical to the bundle's; adcontextprotocol/adcp#8797 is not in rc.0. | the parity test passes unchanged |

## 18. 3.3.0-rc.3 delta

Adopted from the signed `3.3.0-rc.3` bundle (pinned in
`schemas/releases/3.3.0-rc.3.json`, source commit
`6043df676d2176a19c8d69923a654234c83f70cb`, bundle sha256
`9c0f4b2b61bee902931b68b581c979dab1620d718f5ca16fa0c30dc066520dd7`). `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. Sources: the bundle's `CHANGELOG.md` and
adcontextprotocol/adcp#8854, #8736, #9049, #9123, #9168, #9170, #9006 and #9015.

| Item | Detail | SDK status |
| --- | --- | --- |
| Wire pin | `3.3.0-rc.3` / `3.3-rc.3`. `3.3-rc.0` is no longer advertised or accepted as a pin; its cache and compliance trees stay in the source tree and leave the wheel. | done |
| `metric_id` withdrawn (#8854, #8501 entries 6 and 26) | Removed from `core/performance-standard.json`, `core/canonical-performance-standard.json` and `required_performance_standards` in `core/product-offer-filters.json`; planned for 4.0. `x-entity-types` restores `evaluator` as deprecated. | generated; no hand-written code read `metric_id` on a performance standard |
| Reporting geography systems (#9049) | `postal_area` joins the dimension vocabulary; `core/reporting-dimension-systems.json` names the metro system and the postal `{country, system}` pairs; an offering with `metro` or `postal_area` in `standard_dimensions` must publish `dimension_systems` (schema `if`/`then`); a selector's `dimension_systems` narrows matching; a `contract_version` 1.2 report definition names geography dimensions by their standard names and fills them with codes. | Selector resolution (`resolve_subscription_offerings`, shared by buyer and seller) matches an offering only when its metro system equals the selector's and its postal pairs include every selector entry; `SUBSCRIPTION_SELECTOR_UNMATCHED` names `dimension_systems` among the failed attributes; `STANDARD_REPORTING_DIMENSIONS` includes `postal_area`; a resend that only reorders `dimension_systems.postal_area` is the same version. The vendored coverage vectors move to rc.3 (three new selector cases) and pass. The 1.2 geography naming rule on report definitions is not checked by the SDK |
| Postal renumber | The `postal_area` change renumbers the generated postal classes: `core.postal_area` `PostalArea11`…`PostalArea121` → `PostalArea401`…`PostalArea4021` and `System1`/`2`/`3`/`9` → `System41`/`42`/`43`/`49`; `core.postal_country_system` `System11`/`12`/`13`/`19` → `System51`/`52`/`53`/`59`. | The union arms stay pinned as `PostalArea1` / `PostalArea2` by `fix_postal_union_arm_order` (#1939); the public API snapshot is refreshed |
| DOOH impression basis (#8736) | `enums/impression-estimation-basis.json` and `core/impression-basis-breakdown-entry.json`; `impression_basis`, `audience_multiplier`, `basis_metric` and `impression_basis_breakdown` on DOOH delivery metrics, `venue_breakdown[]` `plays`, and the same on forecast points and DOOH placement attributes. All optional. | generated |
| `PROPOSAL_TERMS_CHANGED` (#9168) | A seller refuses an `accept_proposal` whose `proposal_terms_digest` does not match the committed terms with this `correctable` code and `error.field: proposal_terms_digest`. | `adcp_error` reads the code and its recovery from the pinned `error-code.json`. The framework does not compare `proposal_terms_digest` itself; the platform does |
| 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 |
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.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`.
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`.

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
Loading