Repository navigation
Description
Filed off the SDK-team implementor review on #3307 (creative formats canonical / canonical-formats).
Problem
The canonical-formats base schema is intentionally permissive: additionalProperties: true everywhere, x-canonical-policy-required-params-not-enforced on /schemas/formats/canonical/_base.json, no required parameter fields on any canonical. This is correct for the canonical (it's a loose contract — products narrow it) but it means JSON Schema validation passes on almost any conformant-shaped declaration.
The current "fixtures validate" evidence is Schroedinger conformance: the fixtures pass because they were authored against the schema, not because adopters' independent emissions would. Until we have a conformance harness that exercises:
- v1↔v2 projection in both directions (including divergence detection per feat(canonical-formats): AdCP 3.1 — 12 canonicals + publisher catalog + projection-ref + size flexibility #3307's new normative section)
format_schemafetch contract (digest mismatch, $ref sandbox, invalid-schema handling) per IR3validate_inputthree-wayresult_kinddiscrimination across all 12 format_kind variantsruntime_statusskip-gating (compliance storyboards SHOULD gracefully skipdeclared_only)synthesis_nondeterministic×*_sourcecompatibility rules from_base.json
…we don't actually know whether independent v2 emitters and consumers agree.
What this issue tracks
Build a canonical-formats storyboard track in the compliance harness (storyboard infrastructure already exists for other AdCP surfaces). Scope:
- Producer storyboards: emit a product with
format_ids+format_options(agreeing),format_idsonly,format_optionsonly,format_kind: "custom"(must havev2_only: true), divergent dual-emission (negative — must be flagged by consumer). - Consumer storyboards: read each producer-shape, assert the SDK projects/warns correctly (silent-loss-of-inventory must be caught).
format_schemafetch storyboards: serve a digest-matched schema, a digest-mismatched schema, an invalid-JSON-Schema body, a $ref-out-of-sandbox schema. Assert SDK responses (resolved / hard-fail / hard-fail / hard-fail with structured warning).validate_inputstoryboards: per-canonical positive (validated_pass), per-canonical negative (validated_fail with violations), nondeterministic (unvalidatable_nondeterministic).runtime_statusskip-gate: assertdeclared_onlyentries are skipped gracefully, not failed.
Why this is GA-blocking, not 3.1-beta-blocking
The schema work is shippable as beta. The conformance harness is the artifact that lets us promote individual canonicals from preview to stable under the rubric in _base.json#status (2 adopters × 90 days no breakage). Without it, promotion is on vibes.
Dependencies
- Storyboard infrastructure already exists ([reference path needed])
- IR1 (v2_only) and IR3 (format_schema fetch contract) landed inline on feat(canonical-formats): AdCP 3.1 — 12 canonicals + publisher catalog + projection-ref + size flexibility #3307
- v1-canonical-mapping.json structural/glob matching is the basis for projection storyboards
Out of scope here
- Adapter-contract docs for
sponsored_placement(IR5 — separate issue) - Codegen-vs-runtime documentation (IR6 — landed inline on feat(canonical-formats): AdCP 3.1 — 12 canonicals + publisher catalog + projection-ref + size flexibility #3307)
Tracking: gates 3.1 GA promotion rubric for individual canonicals.
Activity
bokelley commentedon May 16, 2026
Extends #4591 (canonical-formats conformance storyboard track).
Updated scope
Original issue framed storyboards by canonical (11 cells). The real complexity is the (canonical × production_source) matrix — a single
audio_hostedcanonical coversbuyer_uploaded,publisher_host_recorded, andagent_synthesizedwith different required slots, validation rules, and SLA semantics.Matrix cells (incomplete list)
For canonicals that carry
audio_source/image_source/video_source/item_production_model:audio_hosted× {buyer_uploaded, publisher_host_recorded, agent_synthesized} = 3 storyboard cellsvideo_hosted× {buyer_uploaded, agent_synthesized, seller_pre_rendered_from_brief} = 3 cellsimage× {buyer_uploaded, agent_synthesized, seller_pre_rendered_from_brief} = 3 cellssponsored_placement×item_production_model×fanout_mode= adapter-family-dependent (see sponsored_placement adapter-contract docs — gates canonical promotion to stable #4592)Plus the canonical alone for:
display_tag,video_vast,audio_daast(no production-source axis — render-verbatim).Why this matters
Storyboards organized by canonical alone treat "audio_hosted ships fine" as evidence — but a seller's runtime may handle buyer-uploaded MP3 perfectly and silently fail on host-read script handoff. The matrix cells are the actual conformance unit.
Dependencies
consumed_for_productionboolean lands inline on this PR (B1 from the second implementor review)Tracking: matrix-cell enumeration is the conformance evidence required to promote Track-B canonicals from preview to stable post-GA.
feat(canonical-formats): second expert-review pass on PR #3307 — wire…
bokelley commentedon May 26, 2026
Progress from the current 4591 slice:
media_buy_seller/canonical_formatscoverage has been expanded to cover agreeing dual emission, v1-only, v2-only, custom v2-only, experimental, and divergent dual-emission declarations.format_option_id/format_option_refon media-buy product/package/manifest surfaces.capability_idremains valid for creative-agent build capabilities (creative.supported_formats) only, and should not be used in this storyboard's product declarations.format_options-only seeded products and emitsFORMAT_DECLARATION_DIVERGENTwhenformat_options[].v1_format_ref[]does not resolve to the product'sformat_ids[].Remaining #4591 work after this slice:
format_schemafetch/validation storyboards: digest mismatch, invalid schema body, and$refsandbox cases need runner/tooling support rather than field-only assertions.supported_formats/build_creativecapability selection.validate_inputcoverage remains blocked until that tool/surface exists in the training agent/SDK.bokelley commentedon May 29, 2026
Progress update after PR #5144:
Completed in this repo:
format_schemaresolver fixture CI coverage using the SDK resolver.$ref,$refdepth, unsafe regex compile budget, invalid schema bodies, and persistent 404 graceful degradation.npm testand build-check CI.Remaining #4591 work:
creative.supported_formatsandbuild_creativecapability selection.validate_inputmatrix coverage beyond the current tool/version-gating checks.#4623 is now split/superseded for this repo: SDK helper implementation is tracked upstream, and remaining conformance/storyboard coverage should stay here under #4591.