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.

24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ pip install adcp

> **Note**: This client requires Python 3.10 or later and supports both synchronous and asynchronous workflows.

### Upgrading to SDK 9
### Upgrading to SDK 10

`pip install adcp` selects SDK 9, which targets AdCP 3.2. To stay on SDK 8,
pin `adcp>=8,<9`. Read [the SDK 9 migration guide](MIGRATION_v8_to_v9.md)
before upgrading.
`pip install adcp` selects SDK 10, which targets AdCP 3.3. To stay on SDK 9
(AdCP 3.2), pin `adcp>=9,<10`. Read
[the SDK 10 migration guide](MIGRATION_v9_to_v10.md) before upgrading.

## Quick Start: Test Helpers

Expand Down 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
84 changes: 66 additions & 18 deletions 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.3 bundle, agent identity, Web Bot Auth) | Pre-releases only (`10.0.0-rc.N`, after `10.0.0-beta.0` to `-beta.27`), from its own release-please configuration |
| `next` | SDK 10 on AdCP 3.3 (the 3.3.0 GA bundle, agent identity, Web Bot Auth) | Stable SDK 10 releases from `10.0.0` (after `10.0.0-beta.0` to `-beta.27` and `10.0.0-rc.1` to `-rc.9`), from its own release-please configuration, until the ratification merge (see [SDK 10.0.0 shipped from `next`](#sdk-1000-shipped-from-next)) |

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 Expand Up @@ -50,7 +50,7 @@ limited:
`.github/workflows/release-please-next.yml` exist only on `next`. `main`
never changes them.
- The `[project] version` line in `pyproject.toml` conflicts after both lines
have released. Keep `next`'s version (`10.0.0rcN`).
have released. Keep `next`'s version (`10.0.0` or later).

## Releasing from `next`

Expand All @@ -59,10 +59,10 @@ so that merges in either direction never change the other line's release flow:

- `.github/workflows/release-please-next.yml` runs on pushes to `next` only,
with its own concurrency group and `target-branch: next`.
- `release-please-config.next.json` sets `versioning: prerelease`,
`prerelease-type: rc`, and `prerelease: true` for `adcp`, and writes
`CHANGELOG.next.md`. `.release-please-manifest.next.json` holds `next`'s
current version.
- `release-please-config.next.json` writes `CHANGELOG.next.md`, and since
the SDK 10.0.0 GA commit its `adcp` package carries no prerelease keys, so
`next` releases stable versions. `.release-please-manifest.next.json` holds
`next`'s current version.
- The channel moved from alpha to beta with the AdCP 3.3.0-beta.0 adoption:
the commit that switched it ends with `Release-As: 10.0.0-beta.0`, so the
first SDK 10 release is `10.0.0-beta.0` (the earlier `10.0.0-alpha.0`
Expand All @@ -71,20 +71,28 @@ so that merges in either direction never change the other line's release flow:
switched it ends with `Release-As: 10.0.0-rc.1`, so the first SDK 10 release
candidate is `10.0.0-rc.1` (PEP 440 `10.0.0rc1`). Every later release
increments the rc number (`10.0.0-rc.2`, ...), whatever the commit type.
Don't merge a `next` release PR that proposes a version without `-rc.N`. A
`Release-As:` footer must survive the squash: paste it into the squash commit
message when merging the PR that carries it.
Release candidates ran to `10.0.0-rc.9`. A `Release-As:` footer must
survive the squash: paste it into the squash commit message when merging the
PR that carries it.
- The channel moved from rc to stable for SDK 10.0.0 GA, once `next` pinned
the AdCP 3.3.0 GA bundle: the commit that removed `versioning: prerelease`,
`prerelease-type: rc`, and `prerelease: true` from the `adcp` package ends
with `Release-As: 10.0.0`. Later releases are stable 10.x versions. A
release PR that merges before that commit still proposes `10.0.0-rc.N`; don't
merge one once the GA work has started.
- After release-please opens or updates the release PR, the workflow runs
`scripts/normalize_pyproject_prerelease --release-prs --target-branch next`
to rewrite `pyproject.toml` to PEP 440 (`10.0.0rc1`). The normalizer accepts
only `release-please--branches--next--components--adcp` PRs into `next`.
- When the release PR merges, release-please tags `v10.0.0-rc.N`, creates a
GitHub release marked as a pre-release, and dispatches `release-publish.yml`
with `--ref next`. That workflow waits for `next`'s CI at the release commit,
to rewrite `pyproject.toml` to PEP 440 (`10.0.0rc1`); a stable version such
as `10.0.0` needs no rewrite, and the step leaves it unchanged. The
normalizer accepts only `next`'s own release-please branches into `next`.
- When the release PR merges, release-please tags `v10.0.0` (or later),
creates a GitHub release, and dispatches `release-publish.yml` with
`--ref next`. That workflow waits for `next`'s CI at the release commit,
then publishes to PyPI after the `release-publish` environment approval.
PyPI treats `10.0.0rcN` as a pre-release: `pip install adcp` keeps resolving
to `main`'s releases, and adopters opt in with `pip install --pre adcp` or
`adcp==10.0.0rc1`.
The GitHub release is not a pre-release, and GitHub marks it Latest. On
PyPI `10.0.0` is the newest stable release, so `pip install adcp` resolves
to SDK 10; adopters who stay on SDK 9 pin `adcp>=9,<10`. The `10.0.0rcN`
releases stay on PyPI as pre-releases.

- `next` releases two components, like `main`: `adcp` (`10.0.0-rc.N`) and
its SDK 10 companion `adcp-reporting-storage` (`0.2.0-beta.N`, tags
Expand Down Expand Up @@ -133,6 +141,44 @@ branches (GitHub Settings → Environments). The PyPI Trusted Publisher needs no
change, because it is bound to the `release-publish.yml` file name and the
`release-publish` environment, not to a branch.

## SDK 10.0.0 shipped from `next`

[Ratification](#ratification) below merges `next` into `main` and releases the
new major from `main`. SDK 10.0.0 deviates from that: it ships from `next`, on
the AdCP 3.3.0 GA bundle, right after `@adcp/sdk` 17.0.0, and the
`next` → `main` ratification merge happens later. Until that merge:

- `next` releases stable SDK 10 versions (`10.0.0`, then `10.0.x` / `10.x`)
through `release-please-next.yml`, and `main` keeps releasing stable 9.x
versions through `release-please.yml`. Both publish through
`release-publish.yml` and the `release-publish` environment.
- PyPI resolves `pip install adcp` to the highest stable version, SDK 10. A
9.x release from `main` doesn't change that.
- GitHub marks each new non-prerelease release Latest by default (release-please
passes no `make_latest`), so a 9.x release from `main` after 10.0.0 takes
the Latest badge from SDK 10. Set it back on the SDK 10 release by hand, or
add `"make-latest": false` to `main`'s `release-please-config.json` while
this lasts.
- `adcp-reporting-storage` stays on its `0.2.0-beta.N` line from `next`. Its
range (`adcp>=10.0.0b24,<11`) already accepts `10.0.0`.

What remains:

1. The ratification merge of `next` into `main` (steps below), adjusted for a
major that already shipped: `main` must not propose `10.0.0` again (the
`v10.0.0` tag exists, and PyPI refuses the files). Set `main`'s
`.release-please-manifest.json` root to `next`'s newest release, from
`.release-please-manifest.next.json`, in the merge, and use no
`Release-As:` footer unless you pick a later version. `main`'s config is
already on the stable channel. Fold `CHANGELOG.next.md` into
`CHANGELOG.md`.
2. Create `release/9.x` from `main`, with its own release-please workflow
like `release/8.x`'s, before the merge if the 9.x line still needs fixes.
3. Delete the next-only release files: `.github/workflows/release-please-next.yml`,
`release-please-config.next.json`, `.release-please-manifest.next.json`,
and `CHANGELOG.next.md`. Move the storage line to `main`, narrowing its
range to `adcp>=10.0.0,<11`.

## Moving #1502 from `main` to `next` (one time)

#1502 added the experimental AdCP 3.3 identity code to `main`.
Expand Down Expand Up @@ -184,7 +230,9 @@ When the draft spec that `next` tracks is ratified:
`release-please-config.json`'s channel to match (see `docs/releasing.md`).
This must be the newest `Release-As:` commit. Release-please uses the
newest footer it finds, so it overrides `next`'s earlier
`Release-As: 10.0.0-rc.1`.
`Release-As: 10.0.0-rc.1`. For SDK 10, which already released `10.0.0`
from `next`, follow [SDK 10.0.0 shipped from `next`](#sdk-1000-shipped-from-next)
instead.
6. If the 9.x line still needs fixes, create `release/9.x` from `main`, with
its own release-please workflow like `release/8.x`'s.
7. Open a PR from `next` into `main` and merge it with **Create a merge
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
Loading
Loading