Skip to content
Draft
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
  •  
  •  
  •  
File renamed without changes.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Changelog

## 4.0.0-beta.0

### Major Changes

- 27d131d: Begin AdCP 4.0: a cleanup-first major (RFC #8756). `main` is now the 4.0 line, in beta pre mode, so its next Version Packages cut is `4.0.0-beta.0`. As the November 9 working group session decided, 4.0 removes the second way of doing things that 3.x accumulated (duplicate buying flows, format systems, signal IDs, identity profiles and webhook auth schemes) and reorganizes the schemas, rather than adding features. 3.3 is the last 3.x minor; there is no 3.4. 3.3 stays supported on the `3.3.x` line for at least 12 months after 4.0 GA. Versions & Compatibility now lists 4.0 as pending beta. This changeset makes no wire change by itself. It marks the start of the major, so additive changes that land on `main` resolve to 4.0 betas instead of a 3.4 that will never ship.

### Patch Changes

- 0339005: Compliance storyboards (4.0): the 4.x bundle no longer probes `adcp_major_version`, which AdCP 4.0 removes. A 4.x agent correctly rejects `adcp_major_version: 3` sent next to its 4.x release pin, so the old probes would fail agents that follow the 4.0 wire. `universal/error_compliance` drops its `unsupported_major_version` and `supported_major_version` steps. `universal/error_compliance_signals` drops the same two steps and gains an `unsupported_release_version` step, the signals counterpart of the media-buy step. Both storyboards now grade version negotiation through `adcp_version` alone: an unsupported release pin (`"99.0"`) must return `VERSION_UNSUPPORTED`. Every other step is already sent with the negotiated `adcp_version`, which covers acceptance of a supported release. Agents need no change for this: an agent that already rejects unsupported `adcp_version` pins passes both storyboards. The 3.3.x line and released 3.x bundles keep their `adcp_major_version` probes.
- 2929f9f: `get_products` response schema no longer refuses in-flight responses (#9353).

`media-buy/get-products-response.json` refused two kinds of valid payload:

- It forbade `reason` and `suggestions` on every status except `rejected`. That also caught `input-required`, whose own envelope (`media-buy/get-products-async-response-input-required.json`) declares both fields, and `canceled`, `auth-required`, `unknown` and the other in-flight statuses. The guard now applies only to `completed` and `failed`, the bodies this document defines.
- Its "standard response" arm required `products` and `cache_scope` for every status except `unchanged`, `rejected` and `failed`, including in-flight statuses that have no product result yet. That arm now applies only when `status` is `completed` (or absent). `submitted`, `working`, `input-required`, `auth-required`, `canceled` and `unknown` get no body requirements from this document; their status-specific schemas govern them.

So a paused search such as `{"status": "input-required", "reason": "BUDGET_REQUIRED", "suggestions": [...], "partial_results": []}`, or `{"status": "canceled", "reason": "..."}`, now validates against the response schema `manifest.json` names for `get_products`.

This change only loosens validation. Nothing that validated before is refused now: a `completed` response still needs `products` and `cache_scope` and still may not carry `reason` or `suggestions`, and the `failed`, `rejected` and wholesale `unchanged` arms are unchanged.
- 2929f9f: `get_signals` response schema no longer refuses in-flight responses (sibling of #9353).

`signals/get-signals-response.json` required `signals` and `cache_scope` for every status except `failed` (and the wholesale `unchanged` arm), including in-flight statuses that have no signal result yet. That "standard response" arm now applies only when `status` is `completed` (or absent). `submitted`, `working`, `input-required`, `auth-required`, `canceled` and `unknown` get no body requirements from this document; their status-specific schemas govern them. `get_signals` defines no `rejected` body, so `rejected` gets none either.

So `{"status": "submitted", "task_id": "..."}` or `{"status": "working", "percentage": 40}` now validates against the response schema `manifest.json` names for `get_signals`, as well as against its per-status envelope.

This change only loosens validation. Nothing that validated before is refused now: a `completed` response still needs `signals` and `cache_scope`, and the `failed` and wholesale `unchanged` arms are unchanged.
- dac3406: Reliable Reporting (experimental): a seller SHOULD NOT fire `reporting.ledger_changed` for an empty first snapshot revision, meaning a `snapshot` revision with `row_count` 0 when no earlier revision of the same logical slice was ever committed. Firstness comes from the slice's commit history, not from whether `supersedes_reporting_revision_id` is present, because a predecessor may have aged out of retention. A short-period pacing feed commits a revision for every period, including quiet ones, so a five-minute feed can ring 288 doorbells per account per day with nothing changed. Every other revision still fires: one with rows, any later snapshot, and every `official` revision, including a zero-row one. Every adjustment still fires. Unchanged: every elapsed period still gets its obligation and revision, `get_reporting_status` with `changes_after` still returns every revision, polling stays authoritative, and `reporting.status_changed` still announces health transitions. Buyers already poll, so they learn about empty periods by reading. The advisory rule is recorded as `x-adcp-validation.empty_first_snapshot` on `core/reporting-ledger-changed-webhook.json`; the webhook, notification-type, and capability descriptions and the reporting docs now say the same. No field, enum, or capability changes.
- 2929f9f: Reporting-subscription test vectors (experimental `media_buy.reporting_subscriptions`): new case `account-timezone-change-on-a-billing-feed-owes-a-stub`. An account timezone change on a billing offering is a cutover, so the stretch from the `timezone_cutovers` entry's `effective_at` to the first new-timezone boundary is owed as one `stub: true` period, as `get_reporting_status` ("Account timezone change"), `reporting-subscription-coverage.json` `timezone_cutovers`, and `reporting-delivery-config.json` `billing_continuity` already say. The repository's reference coverage model (`scripts/reference/reporting-coverage/`) applied the billing stub only on version cutovers and now applies it on account timezone changes too; both SDKs already did. No spec text changes, and an implementation that follows the spec text needs no change.
- 78e099a: Security docs (#9204): a seller that doesn't advertise request signing (`request_signing.supported` false or absent) ignores signature headers, so it must not answer a signed request with `request_signature_required`, a code that means an unsigned request needed a signature. Buyers sign only for sellers that advertise request signing. The signing guide, the transport error taxonomy and the `request_signature_required` description in `request-signing-error-code.json` now say so. Clarification only: the signature profile, error codes and wire shapes are unchanged. A distinct code for a seller that refuses signed requests is tracked for 4.0.
- 2c870c1: Compliance storyboards (#9346): hosted grades no longer depend on the order storyboards run in. `universal/idempotency` and `universal/deterministic_testing` booked media buys against the test kit's account (`acmeoutdoor.example` through `pinnacle-agency.example`) without declaring or seeding it. A seller with buyer-declared accounts correctly answers `ACCOUNT_NOT_FOUND` for an account nobody declared, so these steps passed only when an earlier storyboard in the same run had already created the account, and the hosted runner starts from a different storyboard on every run. Both storyboards now seed that account through `fixtures.accounts` under their own storyboard-scoped `operator_unit`, the same way the other media-buy storyboards already do. `deterministic_testing` still provisions `test.example` with `sync_accounts` for its account state-machine phase. No seller change is needed: a seller that passes these storyboards today keeps passing, and a seller with buyer-declared accounts no longer fails them when they run first. The storyboard account-fixture check now also catches a storyboard that declares one account with `sync_accounts` and then books against a different one.
- f723358: CI: training-agent storyboards on the `3.3.x` maintenance line now run in candidate-version mode, as they already do for `main`, so the branch's training agent serves the 3.3 release line from the branch's own bundle. No protocol, schema, or storyboard content changes.
- 78e099a: Schema description and docs (#9224): the `creative-assignment.json` note said `sync_creatives` supports no rotation, `placement_refs` or `placement_ids`, which contradicted the `sync_creatives` request schema. It now says what the schema already accepts: the deprecated `assignments[]` shorthand and `assignment_operations` `assign` and `replace` carry `weight` and legacy `placement_ids`; none carry `rotation_mode`, `group_id`, `sequence_position` or `placement_refs`; and `replace` transfers the replaced assignment's rotation settings and placement routing, `placement_refs` included, unless it supplies `placement_ids`. The 3.0 creative migration guide gets the same correction. Description and docs text only: no schema keyword, field or wire behavior changes.
- 78e099a: Brand schema (#8735): `brand.json#/definitions/data_subject_contestation` now carries `title: "Data Subject Contestation"`, so code generators have a stable name for this structure. Annotation only: no validation keyword changes, and no instance changes validity.

## 3.3.4

### Patch Changes
Expand Down
196 changes: 196 additions & 0 deletions dist/compliance/4.0.0-beta.0/domains/brand/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
id: brand_baseline
version: "1.0.0"
title: "Brand baseline"
protocol: brand
category: brand_baseline
summary: "Baseline protocol storyboard — every brand agent must declare the brand protocol in capabilities and return a schema-valid brand identity."
track: brand
required_tools:
- get_brand_identity

narrative: |
Brand protocol agents are the identity layer of AdCP. Their job is to hold
brand identity data (names, logos, colors, fonts, tone) and expose it to
other agents — buyer agents, creative agents, DSPs — that need to render
on-brand creative or verify who a campaign is for.
The baseline tests the minimum contract that every brand agent honors,
regardless of what additional capabilities (rights licensing, creative
approval) it layers on top:
1. Declare `brand` in `supported_protocols` on `get_adcp_capabilities`.
2. Respond to `get_brand_identity` with a schema-valid identity manifest.
3. Reject unknown `brand_id` values with a structured error.
Rights licensing (`get_rights`, `acquire_rights`, `update_rights`,
`creative_approval`) ships experimentally in 3.0 and is covered by the
`brand-rights` specialism storyboard, not this baseline.
agent:
interaction_model: brand_agent
capabilities: []
examples:
- "Any brand agent (simple identity host or full rights platform)"
- "Brand-owned agents (Acme Outdoor)"
- "Third-party brand identity platforms"
- "Agency-hosted brand agents"

caller:
role: buyer_agent
example: "Any buyer, creative agent, or DSP needing brand identity"

prerequisites:
description: |
The test kit provides a sample brand (Nova Motors) that any brand agent
can serve identity for.
test_kit: "test-kits/nova-motors.yaml"

phases:
- id: capability_discovery
title: "Capability discovery"
narrative: |
The buyer calls `get_adcp_capabilities` to confirm the agent declares
the brand protocol before issuing any brand-identity call.
steps:
- id: get_capabilities
title: "Check agent capabilities"
narrative: |
Verify that the agent declares `brand` in `supported_protocols`.
Without this claim the buyer MUST NOT send `get_brand_identity`.
task: get_adcp_capabilities
schema_ref: "protocol/get-adcp-capabilities-request.json"
response_schema_ref: "protocol/get-adcp-capabilities-response.json"
doc_ref: "/protocol/get_adcp_capabilities"
comply_scenario: capability_discovery
stateful: false
expected: |
Return capabilities declaring `brand` in `supported_protocols`.
sample_request:
context:
correlation_id: "brand_baseline--get_capabilities"
validations:
- check: response_schema
description: "Response matches get-adcp-capabilities-response.json schema"
- check: field_present
path: "supported_protocols"
description: "Response declares supported_protocols"

- id: brand_identity_retrieval
title: "Brand identity retrieval"
narrative: |
The buyer calls `get_brand_identity` to retrieve the brand's identity
manifest. The minimum contract is a schema-valid response that echoes
the requested `brand_id` and carries at least one name.
steps:
- id: get_brand_identity
title: "Retrieve brand identity"
narrative: |
The buyer calls `get_brand_identity` with a known `brand_id`. The
response MUST match the brand-identity schema and echo the
requested `brand_id`. Rich fields (logos, colors, fonts, tone,
visual_guidelines) are optional at the baseline level — the
minimum bar is that identity resolution works and is schema-valid.
task: get_brand_identity
schema_ref: "brand/get-brand-identity-request.json"
response_schema_ref: "brand/get-brand-identity-response.json"
doc_ref: "/brand-protocol/tasks/get_brand_identity"
stateful: false
expected: |
Return a schema-valid brand identity that echoes the requested
brand_id and includes at least one name.
sample_request:
brand_id: "nova_motors"
context:
correlation_id: "brand_baseline--get_brand_identity"
context_outputs:
- path: "brand_id"
key: "brand_id"

validations:
- check: response_schema
description: "Response matches get-brand-identity-response.json schema"
- check: field_present
path: "brand_id"
description: "Response includes brand_id"
- check: field_value
path: "brand_id"
value: "nova_motors"
description: "Returned brand_id echoes the requested brand"
- check: field_present
path: "names"
description: "Response includes brand names"

- id: unknown_brand_rejection
title: "Unknown brand rejection"
narrative: |
Agents MUST reject unknown `brand_id` values with a structured
AdCP error rather than returning an empty or fabricated manifest.
steps:
- id: get_brand_identity_unknown
title: "Reject unknown brand ID"
narrative: |
The buyer calls `get_brand_identity` with a `brand_id` the agent
does not serve. The response MUST be a structured error with a
recovery classification — not a success response with empty
fields.
task: get_brand_identity
schema_ref: "brand/get-brand-identity-request.json"
response_schema_ref: "brand/get-brand-identity-response.json"
doc_ref: "/brand-protocol/tasks/get_brand_identity"
stateful: false
expected: |
Return an AdCP error response indicating the brand is not known
to this agent.
sample_request:
brand_id: "brand_that_does_not_exist_12345"
context:
correlation_id: "brand_baseline--get_brand_identity_unknown"

expect_error: true
negative_path: payload_well_formed
validations:
- check: error_code
value: "REFERENCE_NOT_FOUND"
description: "Error code indicates brand-not-found. REFERENCE_NOT_FOUND is the canonical fallback per error-handling.mdx (brands lack a dedicated *_NOT_FOUND code)."

- id: brand_discovery
title: "Optional brand discovery"
narrative: |
Agents that implement the experimental `search_brands` task expose a
schema-valid discovery surface without making that task part of the
baseline brand protocol requirement.
steps:
- id: search_brands
title: "Search the agent's brand roster"
task: search_brands
schema_ref: "brand/search-brands-request.json"
response_schema_ref: "brand/search-brands-response.json"
doc_ref: "/brand-protocol/tasks/search_brands"
comply_scenario: brand_discovery
requires_tool: search_brands
stateful: false
expected: |
Return a schema-valid ranked array of brand stubs. An empty array is
valid when the agent has no matching roster entry.
sample_request:
query: "automotive brands with electric vehicles"
countries: ["US"]
context:
correlation_id: "brand_baseline--search_brands"
validations:
- check: response_schema
description: "Response matches search-brands-response.json schema"
- check: field_present
path: "brands"
description: "Discovery response includes the brands array"
- check: field_value
path: "context.correlation_id"
value: "brand_baseline--search_brands"
description: "Context correlation_id returned unchanged"
Loading
Loading