Skip to content

feat(schema): compliance fields on creative brief, manifest unification - #1262

Merged
bokelley merged 5 commits into
mainfrom
bokelley/regulatory-fields-analysis
Feb 28, 2026
Merged

bokelley merged 5 commits into
mainfrom
bokelley/regulatory-fields-analysis

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Add compliance object to creative-brief schema with required_disclosures (structured disclosure items with text, position, regions, regulation, min_duration_ms, language) and prohibited_claims
  • Extract disclosure position to shared disclosure-position.json enum with subtitle for CTV/accessibility
  • Unify creative manifest to format_id + assets — briefs and catalogs are now proper asset types declared by the format
  • Add supported_disclosure_positions to format schema so formats declare which positions they can render
  • Add max_items to catalog-requirements for fixed-slot layouts
  • Create brief-asset.json and catalog-asset.json as thin wrappers via allOf/$ref
  • Remove creative_brief from build-creative-request.json, delete creative-brief-ref.json, remove supports_brief capability
  • Align anyOf (not oneOf), regex pattern (^[a-z0-9_]+$), and asset ref lists across creative-manifest, creative-asset, and list-creatives-response schemas (all 14 asset types)

All structural changes are non-breaking — removed fields were added during this beta cycle and never released.

Test plan

  • All 304 tests pass (npm test)
  • Schema validation: 344 schemas validated, all cross-references resolve
  • Example validation: manifest-with-brief and manifest-with-catalog tests pass
  • OpenAPI spec regenerated and matches
  • TypeScript type check passes
  • Pre-push: no broken doc links, version sync verified
  • CI passes on GitHub

🤖 Generated with Claude Code

… to format_id + assets

Add regulatory compliance support and simplify the creative manifest model.

Compliance: Add optional `compliance` object to creative-brief.json with
`required_disclosures` (text, position, regions, regulation, min_duration_ms,
language) and `prohibited_claims`. Extract disclosure position to shared
`disclosure-position.json` enum with subtitle support for CTV accessibility.
Add `supported_disclosure_positions` to format.json so formats declare which
positions they can render.

Manifest unification: Move creative_brief and catalogs from top-level manifest
fields to proper asset types (brief and catalog) within the assets map. The
manifest is now format_id + assets. Create brief-asset.json and
catalog-asset.json. Move format-level catalog_requirements into catalog asset
requirements. Add max_items to catalog-requirements.json.

Cleanup: Remove creative_brief from build-creative-request.json, delete
creative-brief-ref.json, remove supports_brief capability flag.

All structural changes are non-breaking — the removed fields were added during
this beta cycle and never released.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions

github-actions Bot commented Feb 28, 2026 •

Copy link
Copy Markdown
Contributor

Schema Link Check Results

Commit: 510f3ba - fix(docs): address red team round 3 findings

⚠️ Warnings (schema not yet released)

These schemas exist in source but haven't been released yet. The links will be broken until the next version is published:

  • https://adcontextprotocol.org/schemas/v1/media-buy/get-media-buy-delivery-request.json
    • No releases found for version v1 yet
  • https://adcontextprotocol.org/schemas/v1/media-buy/get-media-buy-delivery-response.json
    • No releases found for version v1 yet
  • https://adcontextprotocol.org/schemas/v2/media-buy/sync-audiences-request.json
    • Schema exists in latest (source) but not yet released in v2
    • Action: This link will work after next 2.x release is published
  • https://adcontextprotocol.org/schemas/v2/media-buy/sync-audiences-response.json
    • Schema exists in latest (source) but not yet released in v2
    • Action: This link will work after next 2.x release is published

To fix: Either:

  1. Wait for the next release and merge this PR after the release is published
  2. Use latest instead of a version alias if you need the link to work immediately (note: latest is the development version and may change)
  3. Coordinate with maintainers to cut a new release before merging

Comment thread docs/creative/catalogs.mdx Resolved
bokelley and others added 4 commits February 28, 2026 09:45
Rename `regions` to `jurisdictions` on disclosure items in creative-brief.json.
The field carries regulatory scope (where a law applies), not delivery geography.
Using a distinct name avoids confusion with geo_countries/geo_regions on
targeting and offering schemas.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Fix stale "regions" in required_disclosures description → "jurisdictions"
- Register COMPLIANCE_UNSATISFIED in error-code.json enum with description
- Add COMPLIANCE_UNSATISFIED to build_creative error codes table
- Add max_items row to list_creative_formats catalog requirements table
- Clarify supported_disclosure_positions absence semantics on format.json
- Update asset-types/index.json lastUpdated date

Co-Authored-By: Claude Opus 4.6 <[email protected]>
…s refs

- Add disclosure_positions filter to list-creative-formats-request.json
  for agent-driven compliance format discovery
- Add supports_compliance capability to creative protocol capabilities
- Add Example 6 (commerce media with brief + product catalog) to
  build_creative.mdx showing unified assets model
- Update stale catalog_requirements references in sync_catalogs.mdx,
  commerce-media.mdx, account-state.mdx, and whats-new-in-v3.mdx to
  reference catalog asset types in format's assets array

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Fix stale creative_brief references in generative-creative.mdx
  (lines 64, 209) → brief asset (assets.brief)
- Move Example 6 from Key Concepts section to Examples section in
  build_creative.mdx
- Add creative capabilities section to get_adcp_capabilities.mdx
  documenting supports_compliance

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@bokelley
bokelley merged commit cc41e01 into main Feb 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants