Repository navigation
feat(schema): compliance fields on creative brief, manifest unification - #1262
Merged
Merged
Conversation
… 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]>
Contributor
Schema Link Check ResultsCommit:
|
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
complianceobject to creative-brief schema withrequired_disclosures(structured disclosure items with text, position, regions, regulation, min_duration_ms, language) andprohibited_claimsdisclosure-position.jsonenum withsubtitlefor CTV/accessibilityformat_id+assets— briefs and catalogs are now proper asset types declared by the formatsupported_disclosure_positionsto format schema so formats declare which positions they can rendermax_itemsto catalog-requirements for fixed-slot layoutsbrief-asset.jsonandcatalog-asset.jsonas thin wrappers viaallOf/$refcreative_brieffrombuild-creative-request.json, deletecreative-brief-ref.json, removesupports_briefcapabilityanyOf(notoneOf), 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
npm test)🤖 Generated with Claude Code