Title: v3.0.0-rc.4: migrate to reallocation_threshold + human_review_required (breaking) · Issue #185 · adcontextprotocol/adcp-client-python · GitHub
Open Graph Title: v3.0.0-rc.4: migrate to reallocation_threshold + human_review_required (breaking) · Issue #185 · adcontextprotocol/adcp-client-python
X Title: v3.0.0-rc.4: migrate to reallocation_threshold + human_review_required (breaking) · Issue #185 · adcontextprotocol/adcp-client-python
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 suppor...
Open Graph 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 is...
X 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 is...
Opengraph URL: https://github.com/adcontextprotocol/adcp-client-python/issues/185
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"v3.0.0-rc.4: migrate to reallocation_threshold + human_review_required (breaking)","articleBody":"## Summary\n\nAdCP 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.\n\nResolves the SDK-side implications of [adcontextprotocol/adcp#2310](https://github.com/adcontextprotocol/adcp/issues/2310).\n\nSpec changes land in adcp PR [bokelley/policy-framework-2310 branch]; release notes in `docs/reference/release-notes.mdx` under 3.0.0-rc.4.\n\n## Breaking changes (must migrate)\n\n1. **`budget.authority_level` is removed.** The enum (`agent_full | agent_limited | human_required`) is gone. Replace with two orthogonal fields:\n\n - `budget.reallocation_threshold: number ≥ 0` — budget reallocation autonomy, denominated in `budget.currency`\n - `budget.reallocation_unlimited: true` — explicit full-autonomy sentinel (mutually exclusive with threshold)\n\n Migration mapping:\n ```\n authority_level: 'agent_full' → reallocation_unlimited: true\n authority_level: 'agent_limited' → reallocation_threshold: \u003cpositive value>\n authority_level: 'human_required' → plan.human_review_required: true\n (+ reallocation_threshold: 0 if strict)\n ```\n\n2. **Exactly one of `reallocation_threshold` / `reallocation_unlimited` is required.** Budget now has a `oneOf` constraint.\n\n## New fields\n\n- `plan.human_review_required: boolean` — every plan action escalates for human review under GDPR Art 22 / EU AI Act Annex III\n- `plan.human_override: { reason, approver, approved_at? }` — artifact required to downgrade human_review_required true → false on re-sync\n- `plan.policy_categories: string[]` — already existed but now cross-validated\n- `policy-entry.json` gains `requires_human_review: boolean`\n- `policy-category-definition.json` gains `requires_human_review: boolean`\n- `brand.json` gains `data_subject_contestation: { url?, email?, languages? }` at brand and house levels\n- `brand-ref.json` gains inline `industries` and `data_subject_contestation` for callers who don't control brand.json\n- `restricted-attribute` enum adds `age` and `familial_status`\n- `objectives` has `maxLength: 2000`; `policy-entry.policy` has `maxLength: 5000`; `description` has `maxLength: 500`\n\n## Cross-field invariants\n\nThe schema enforces two `if/then` rules that some codegen tools drop:\n\n- If `policy_categories` contains `fair_housing | fair_lending | fair_employment | pharmaceutical_advertising`, then `human_review_required: true` is required\n- If `policy_ids` contains `eu_ai_act_annex_iii`, then `human_review_required: true` is required\n\nThese 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.\n\n## SDK tasks\n\n### Required\n\n- [ ] Regenerate types from the 3.0.0-rc.4 schemas\n- [ ] Update MIGRATING.md (or equivalent) with the `authority_level` → `reallocation_threshold` / `reallocation_unlimited` / `human_review_required` mapping as the top migration item\n- [ ] Update every `sync_plans` example, test fixture, and quickstart that currently uses `authority_level`\n- [ ] Ensure `oneOf` on budget (threshold XOR unlimited) is enforced either by the validator or by a client-side check\n- [ ] Verify that `age` and `familial_status` are accepted as `restricted-attribute` values (any hardcoded 8-value lists need expanding)\n\n### Recommended\n\n- [ ] Add a client-side validator for the `policy_categories` ∋ regulated-vertical → `human_review_required: true` invariant (specifically important if your codegen drops `if/then`)\n- [ ] Add a helper for building Annex III plans — one-liner that sets `policy_categories`, `human_review_required`, and nudges the caller about `data_subject_contestation`\n- [ ] Add a helper for building `human_override` artifacts (validates reason length, email format)\n- [ ] Add typed accessors for `check_governance` response fields: `escalation.reason`, `humanReviewAutoFlippedBy` (if the server surfaces it), and the new findings: `data_subject_contestation_missing`, `annex_iii_industry_advisory`\n\n### For governance-agent implementors using the SDK\n\n- [ ] Ensure your governance agent auto-flips `human_review_required` based on resolved `policy_categories`, `policy_ids`, and `custom_policies`\n- [ ] Emit a critical `data_subject_contestation` finding when the plan requires human review but no contestation contact is discoverable\n- [ ] Resolve contestation in order: plan.brand inline → brand.json → brand.json.house → missing\n- [ ] Do not allow `mode: advisory | audit` to downgrade denied/escalated when `human_review_required: true`\n- [ ] Require `human_override` artifact for re-sync downgrades (reason ≥20 chars, email approver)\n- [ ] Append-only plan revisions — do not silently replace prior state\n\n## References\n\n- Release notes section: https://adcontextprotocol.org/docs/reference/release-notes (3.0.0-rc.4)\n- Annex III obligations: https://adcontextprotocol.org/docs/governance/annex-iii-obligations\n- Issue that prompted the work: https://github.com/adcontextprotocol/adcp/issues/2310\n\n## One-line pitch for your SDK README\n\n> 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.\n","author":{"url":"https://github.com/bokelley","@type":"Person","name":"bokelley"},"datePublished":"2026-04-18T21:12:59Z","url":"https://github.com/adcontextprotocol/adcp-client-python/issues/185"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:26617924-8e97-822d-649e-67c1d66d72c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3E2:2E7EBB:B67255:E7899F:6B00F692 |
| html-safe-nonce | 3d9d24dc866a339c9c2e74229d3268fdd3a492b179afc2cb1745a7fb95682a0c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0UyOjJFN0VCQjpCNjcyNTU6RTc4OTlGOjZCMDBGNjkyIiwidmlzaXRvcl9pZCI6IjE2NjkyNDI2NjYzMzgwMjMwNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 908defcf60ea1effbbe99372505a2b23d106808130457bac449c18fd8dae0c90 |
| hovercard-subject-tag | issue:4289196109 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/adcontextprotocol/adcp-client-python/185/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dcfcd8c1f377023a8282b32e08029f189e1ed5aaa3befd3d41e5f0f268b1f28/adcontextprotocol/adcp-client-python/issues/185 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dcfcd8c1f377023a8282b32e08029f189e1ed5aaa3befd3d41e5f0f268b1f28/adcontextprotocol/adcp-client-python/issues/185 |
| og:image:alt | 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 is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bokelley |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/adcontextprotocol/adcp-client-python git https://github.com/adcontextprotocol/adcp-client-python.git |
| octolytics-dimension-user_id | 221690821 |
| octolytics-dimension-user_login | adcontextprotocol |
| octolytics-dimension-repository_id | 1090305973 |
| octolytics-dimension-repository_nwo | adcontextprotocol/adcp-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1090305973 |
| octolytics-dimension-repository_network_root_nwo | adcontextprotocol/adcp-client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width