Repository navigation
Description
Summary
AdCP 3.0-rc.4 (unreleased, targeting GA) introduces a breaking change to the campaign governance plan schema and adds several new fields across policy, brand, and brand-ref schemas. This issue tracks the SDK work needed to support it.
Resolves the SDK-side implications of adcontextprotocol/adcp#2310.
Spec changes land in adcp PR [bokelley/policy-framework-2310 branch]; release notes in docs/reference/release-notes.mdx under 3.0.0-rc.4.
Breaking changes (must migrate)
-
budget.authority_levelis removed. The enum (agent_full | agent_limited | human_required) is gone. Replace with two orthogonal fields:budget.reallocation_threshold: number ≥ 0— budget reallocation autonomy, denominated inbudget.currencybudget.reallocation_unlimited: true— explicit full-autonomy sentinel (mutually exclusive with threshold)
Migration mapping:
authority_level: 'agent_full' → reallocation_unlimited: true authority_level: 'agent_limited' → reallocation_threshold: <positive value> authority_level: 'human_required' → plan.human_review_required: true (+ reallocation_threshold: 0 if strict) -
Exactly one of
reallocation_threshold/reallocation_unlimitedis required. Budget now has aoneOfconstraint.
New fields
plan.human_review_required: boolean— every plan action escalates for human review under GDPR Art 22 / EU AI Act Annex IIIplan.human_override: { reason, approver, approved_at? }— artifact required to downgrade human_review_required true → false on re-syncplan.policy_categories: string[]— already existed but now cross-validatedpolicy-entry.jsongainsrequires_human_review: booleanpolicy-category-definition.jsongainsrequires_human_review: booleanbrand.jsongainsdata_subject_contestation: { url?, email?, languages? }at brand and house levelsbrand-ref.jsongains inlineindustriesanddata_subject_contestationfor callers who don't control brand.jsonrestricted-attributeenum addsageandfamilial_statusobjectiveshasmaxLength: 2000;policy-entry.policyhasmaxLength: 5000;descriptionhasmaxLength: 500
Cross-field invariants
The schema enforces two if/then rules that some codegen tools drop:
- If
policy_categoriescontainsfair_housing | fair_lending | fair_employment | pharmaceutical_advertising, thenhuman_review_required: trueis required - If
policy_idscontainseu_ai_act_annex_iii, thenhuman_review_required: trueis required
These are load-bearing invariants — regulated-vertical campaigns cannot opt out of human oversight. Codegen that drops if/then (e.g., datamodel-code-generator in strict mode) will fail to enforce this client-side.
SDK tasks
Required
- Regenerate types from the 3.0.0-rc.4 schemas
- Update MIGRATING.md (or equivalent) with the
authority_level→reallocation_threshold/reallocation_unlimited/human_review_requiredmapping as the top migration item - Update every
sync_plansexample, test fixture, and quickstart that currently usesauthority_level - Ensure
oneOfon budget (threshold XOR unlimited) is enforced either by the validator or by a client-side check - Verify that
ageandfamilial_statusare accepted asrestricted-attributevalues (any hardcoded 8-value lists need expanding)
Recommended
- Add a client-side validator for the
policy_categories∋ regulated-vertical →human_review_required: trueinvariant (specifically important if your codegen dropsif/then) - Add a helper for building Annex III plans — one-liner that sets
policy_categories,human_review_required, and nudges the caller aboutdata_subject_contestation - Add a helper for building
human_overrideartifacts (validates reason length, email format) - Add typed accessors for
check_governanceresponse fields:escalation.reason,humanReviewAutoFlippedBy(if the server surfaces it), and the new findings:data_subject_contestation_missing,annex_iii_industry_advisory
For governance-agent implementors using the SDK
- Ensure your governance agent auto-flips
human_review_requiredbased on resolvedpolicy_categories,policy_ids, andcustom_policies - Emit a critical
data_subject_contestationfinding when the plan requires human review but no contestation contact is discoverable - Resolve contestation in order: plan.brand inline → brand.json → brand.json.house → missing
- Do not allow
mode: advisory | auditto downgrade denied/escalated whenhuman_review_required: true - Require
human_overrideartifact for re-sync downgrades (reason ≥20 chars, email approver) - Append-only plan revisions — do not silently replace prior state
References
- Release notes section: https://adcontextprotocol.org/docs/reference/release-notes (3.0.0-rc.4)
- Annex III obligations: https://adcontextprotocol.org/docs/governance/annex-iii-obligations
- Issue that prompted the work: GDPR Art 22 / EU AI Act Annex III: block agent_full for regulated verticals adcp#2310
One-line pitch for your SDK README
AdCP is the first open advertising protocol where GDPR Article 22 and EU AI Act Annex III are load-bearing schema invariants, not policy PDFs — regulated-vertical campaigns cannot opt out of human oversight, and every decision is audit-logged by default.
Activity
feat: sync rc.4 schemas + wire update_rights task
feat!: sync rc.4 schemas + wire update_rights task