Repository navigation
feat(creative): project HTML-markup legacy formats to display_tag inline markup - #8357
Conversation
…ine markup The AAO reference catalog's HTML-markup formats (display_html and every display_WxH_html) require one html_creative asset that the seller renders verbatim, so they project to display_tag with inline-markup delivery instead of html5, which stays reserved for seller-hosted zip bundles. - canonical-projection-ref gains an optional supported_delivery_types hint (display_tag only, rule 6) copied to params.supported_delivery_types, and documents the lossless legacy html <-> inline markup mapping. - The catalog annotates these formats with an html_creative display_tag slot and supported_delivery_types: ["inline_markup"]. - The reference creative agent copies the hint into its capabilities, validates display_tag delivery payloads, routes inline-markup previews to the HTML renderer, and disambiguates unsized display_tag manifests by slot compatibility. - New shared vectors cover the projection, exact sized legacy-ref selection with markup in html_creative, and the negative cases. Refs #8339 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS approval.
This PR modifies static/schemas/source/core/canonical-projection-ref.json, which is under a deterministic hard approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the gate is not satisfied and the PR cannot be auto-approved.
The reviewer found the change clean — reprojecting the 9 HTML-markup legacy formats from html5 to display_tag inline markup, with verified schema↔docs coherence (canonical-formats.mdx, canonical-projection-ref description, adagents.mdx), a defensible minor changeset for the additive supported_delivery_types field, fail-closed if/then kind-pin, and display_tag payload validation matching display-tag-asset.json. No Critical/High/Medium findings. The additive schema change does not read as a breaking-class change, so the breaking-change hard gate is not independently triggered — but the path-based schema gate still requires an explicit human/CODEOWNERS approval before merge.
Escalation reasons
static/schemas/source/core/canonical-projection-ref.jsonis a gated schema path; human/CODEOWNERS review (review_decision: APPROVED) is required before this can merge.
Why human review
- static/schemas/source/core/canonical-projection-ref.json is under a hard approval gate (static/schemas/source/**) and review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-projection-ref.json (modified) matches
static/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
…line markup Follow adcontextprotocol/adcp#8339 (spec: adcontextprotocol/adcp#8357). The bundled AAO catalog's display_html and display_WxH_html entries now project to display_tag with an html_creative display_tag slot and supported_delivery_types: ['inline_markup'] instead of html5. - v1->v2: copy the catalog hint canonical.supported_delivery_types into params.supported_delivery_types. - Legacy delivery: a display_tag inline-markup creative selects the exact seller display_WxH_html ref (size from format_parameters or the single rendered zip/html/display_tag asset size), only among refs that accept its delivery type, and emits the markup as the legacy html asset's content under html_creative. - Canonical reads turn a legacy html_creative asset into an inline-markup display_tag asset with markup_type 'standard'. - html5 zip creatives no longer match HTML-markup-only products (intended). - Sync the NYTimes canonical fixtures: their html5 zip options are now canonical_formats_only instead of claiming _html markup refs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…line markup Follow adcontextprotocol/adcp#8339 (spec: adcontextprotocol/adcp#8357). The bundled AAO catalog's display_html and display_WxH_html entries now project to display_tag with an html_creative display_tag slot and supported_delivery_types: ['inline_markup'] instead of html5. - v1->v2: copy the catalog hint canonical.supported_delivery_types into params.supported_delivery_types. - Legacy delivery: a display_tag inline-markup creative selects the exact seller display_WxH_html ref (size from format_parameters or the single rendered zip/html/display_tag asset size), only among refs that accept its delivery type, and emits the markup as the legacy html asset's content under html_creative. - Canonical reads turn a legacy html_creative asset into an inline-markup display_tag asset with markup_type 'standard'. - html5 zip creatives no longer match HTML-markup-only products (intended). - Sync the NYTimes canonical fixtures: their html5 zip options are now canonical_formats_only instead of claiming _html markup refs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* chore(release): prepare SDK 17 beta for AdCP 3.3 * docs(release): target AdCP 3.3.0-beta.0 for SDK 17 * feat(creatives): project HTML-markup legacy formats to display_tag inline markup Follow adcontextprotocol/adcp#8339 (spec: adcontextprotocol/adcp#8357). The bundled AAO catalog's display_html and display_WxH_html entries now project to display_tag with an html_creative display_tag slot and supported_delivery_types: ['inline_markup'] instead of html5. - v1->v2: copy the catalog hint canonical.supported_delivery_types into params.supported_delivery_types. - Legacy delivery: a display_tag inline-markup creative selects the exact seller display_WxH_html ref (size from format_parameters or the single rendered zip/html/display_tag asset size), only among refs that accept its delivery type, and emits the markup as the legacy html asset's content under html_creative. - Canonical reads turn a legacy html_creative asset into an inline-markup display_tag asset with markup_type 'standard'. - html5 zip creatives no longer match HTML-markup-only products (intended). - Sync the NYTimes canonical fixtures: their html5 zip options are now canonical_formats_only instead of claiming _html markup refs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(creatives): preserve display tag delivery contracts across legacy projection * chore(release): reserve display tag mapping for SDK 17 * ci(release): preserve the SDK 16 stable release path * feat(protocol): adopt signed AdCP 3.3.0-beta.0 for SDK 17 * fix(ci): default standalone changeset checks to main * test(release): align preview discovery and packaged schema checks * fix: preserve stable interop from the AdCP 3.3 preview * fix(ci): select the stable compliance contract with the supported CLI flag * test: scope legacy capability webhooks and retain reporting failure diagnostics * fix(ci): serve the pinned Python reporting contract from the candidate SDK * fix(creatives): refuse lossy legacy HTML macro declaration conversion --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Summary
This is the current-line (next minor, 3.3) half of #8339, approved by the AdCP lead.
The AAO reference catalog's HTML-markup legacy formats (
display_htmland everydisplay_WxH_html) require onehtml_creativeasset,asset_type: "html". The seller renders that markup verbatim. They now project todisplay_tagwith inline-markup delivery instead ofhtml5.html5stays reserved for seller-hosted zip bundles. This revisits #6025/#6028 in light of #6761, which saidhtml5"remains reserved for seller-hosted HTML5 bundles, not arbitrary third-party tag snippets".The 3.1 maintenance-line erratum, which uses only 3.1 vocabulary, is #8354.
Changes
Schema:
core/canonical-projection-ref.json(additive,minor)supported_delivery_typesfield: a closed enum (tag_url|inline_markup|paired_redirect),minItems: 1,uniqueItems. It is valid only withkind: "display_tag", enforced by anif/then.params.supported_delivery_types.html↔ inline-markup mapping, with a new example.Why this shape: it is the smallest additive change that can express "inline markup only". A
display_tagslot override alone still admitstag_urlandpaired_redirect.I rejected a generic
paramsbag on the hint:canonical_parametersdeprecated.The narrow field uses the exact name and enum of the
display_tagcanonical parameter, so projection is a straight copy.Catalog:
server/src/creative-agent/reference-formats.jsondisplay_htmlplus the eight sized_htmlentries are now annotated:{ "kind": "display_tag", "asset_source": "buyer_uploaded", "slots_override": [{ "asset_group_id": "html_creative", "asset_type": "display_tag", "required": true }], "supported_delivery_types": ["inline_markup"] }Fixed width and height still come from
renders.display_jsis unchanged.Slot name decision:
html_creative, notserving_tagasset_id↔asset_group_id. Keeping the v1 id makes the round trip lossless with no alias table: the markup goes back intohtml_creativeon the legacy wire.serving_tagappears only as an illustrative, seller-chosen option slot indocs/creative/channels/display.mdx. Thedisplay_tagschema requires only "a required slot whoseasset_typeisdisplay_tag", so this choice fits the 3.2 docs.Legacy round trip (normative docs + vectors)
display_taginline-markup creative selects the exactdisplay_WxH_htmlwhose size equals thehtml_creativeasset'swidth/height.htmlasset'scontent.delivery_typeandmarkup_typeare dropped because the legacy wire has no field for them.html_creativeis read back,markup_type: "standard"is used unless the sender supplied one.display_html.html5zips,tag_urltags andpaired_redirecttags do not match these formats.Shared vectors:
static/test-vectors/html-markup-legacy-projection.json+tests/html-markup-legacy-projection-vectors.test.tsdisplay_300x250_html,display_320x50_htmlanddisplay_htmlproject to inline-markupdisplay_tag(expected params validated againstformats/canonical/display_tag.json).display_jsis unchanged.html_creative;display_html;html5zip does not match an_html-only product;tag_urldelivery does not match an inline-markup product._htmlcatalog annotation validates againstcanonical-projection-ref.json, that slots keep the v1 asset ids, that the catalog has nohtml5entries, and that a delivery-type hint on a non-display_tagkind is rejected.Reference creative agent (
server/src/creative-agent/)supported_delivery_typesinto params.display_tagdelivery payloads (markup,url, or the paired pair).manifestDimensionsfalls back to all supplied assets when the canonical's default slots carry no size. This lets an inline-markup manifest select its sized route.display_tagmanifests are disambiguated by slot compatibility, so a tag URL routes todisplay_jsand inline markup routes todisplay_html.markup.html5zip manifest no longer resolves to an_htmlcapability. This is intended: the reference renderer never previewed zips anyway.Docs and examples
docs/creative/canonical-formats.mdx: new "HTML-markup legacy formats (normative)" section. The display_tag summary row now reads "ad-request URL, inline markup, or paired redirect".docs/reference/test-vectors/index.mdx: new vector row.docs/governance/property/adagents.mdx: the preview-route example routed anhtml5option topreview_display_300x250_html, which now has a different kind (and the size never matched). It is now a 970×250 inline-markupdisplay_tagoption routed topreview_display_970x250_html.static/examples/products/canonical/nytimes_homepage_{html5,mrec}.json: thehtml5zip options carriedv1_format_refto the_htmlmarkup refs. That is the same conflation this PR fixes. No AAO legacy format describes a zip, so those options now usecanonical_formats_only: true, per canonical-formats.mdx: "producers SHOULD setcanonical_formats_only: true" when there is no clean v1 equivalent.Migration notes
html_creativeand zips ashtml5_bundle. No_htmlformat declareshtml5_bundle, so the practical breakage is small.html5zip creatives stop matching_html-only products. This is intended: those sellers render markup and never unpack or host bundles. A real zip can reach them only as buyer-served markup that loads a buyer-hosted bundle.Validation
npm run test:unit: vitest 80 files / 1,272 tests passed (includes the new vector suite: 12 tests). The node:test portion passed with 0 failures.npm run test:server-unit: 786 files, 13,058 passed, 31 skipped (creative-agent.test.ts: 119 passed).npm run typecheck: clean (after the repo'spostinstallSDK probe install).npm run build: success.npm run test:schemas: 702 passed, 0 failed.npm run test:canonical-fixtures: 27/27.test:canonical-negative: 80/80.test:canonical-conventions: clean (69 catalog entries).test:examples: 11/11.test:docs-nav,test:schema-links: pass.node scripts/check-changeset-protocol-scope.cjs origin/main: passed.npx @changesets/cli status --since=origin/main:minorforadcontextprotocol.Refs #8339. Related: #8354 (3.1 erratum), #6025, #6028, #6761, #8303.
🤖 Generated with Claude Code