Skip to content

feat(creative): project HTML-markup legacy formats to display_tag inline markup - #8357

Merged
bokelley merged 1 commit into
mainfrom
bokelley/html-markup-display-tag-inline-markup
Oct 20, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/html-markup-display-tag-inline-markup

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

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_html and every display_WxH_html) require one html_creative asset, asset_type: "html". The seller renders that markup verbatim. They now project to display_tag with inline-markup delivery instead of html5. html5 stays reserved for seller-hosted zip bundles. This revisits #6025/#6028 in light of #6761, which said html5 "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)

  • New optional supported_delivery_types field: a closed enum (tag_url | inline_markup | paired_redirect), minItems: 1, uniqueItems. It is valid only with kind: "display_tag", enforced by an if/then.
  • New projection rule 6: copy the field to the projected declaration's params.supported_delivery_types.
  • The description now documents the lossless legacy 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_tag slot override alone still admits tag_url and paired_redirect.

I rejected a generic params bag on the hint:

  • It would recreate the parallel-shape drift that got canonical_parameters deprecated.
  • It would overlap rule 4 (v1 requirements → params) with no precedence rule.
  • It could not be validated as a closed set.

The narrow field uses the exact name and enum of the display_tag canonical parameter, so projection is a straight copy.

Catalog: server/src/creative-agent/reference-formats.json

display_html plus the eight sized _html entries 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_js is unchanged.

Slot name decision: html_creative, not serving_tag

  • Rule 5 identifies v1 assets with projected slots by asset_id ↔ asset_group_id. Keeping the v1 id makes the round trip lossless with no alias table: the markup goes back into html_creative on the legacy wire.
  • serving_tag appears only as an illustrative, seller-chosen option slot in docs/creative/channels/display.mdx. The display_tag schema requires only "a required slot whose asset_type is display_tag", so this choice fits the 3.2 docs.
  • It also matches the 3.1 erratum (fix(creative): project HTML-markup legacy formats to display_tag (3.1 erratum) #8354).

Legacy round trip (normative docs + vectors)

  • A display_tag inline-markup creative selects the exact display_WxH_html whose size equals the html_creative asset's width/height.
  • The markup is emitted byte-for-byte as the legacy html asset's content. delivery_type and markup_type are dropped because the legacy wire has no field for them.
  • When a legacy html_creative is read back, markup_type: "standard" is used unless the sender supplied one.
  • An unsized creative matches only display_html. html5 zips, tag_url tags and paired_redirect tags do not match these formats.

Shared vectors: static/test-vectors/html-markup-legacy-projection.json + tests/html-markup-legacy-projection-vectors.test.ts

  • Product projection vectors: display_300x250_html, display_320x50_html and display_html project to inline-markup display_tag (expected params validated against formats/canonical/display_tag.json). display_js is unchanged.
  • Legacy selection vectors:
    • exact sized ref, with markup carried in html_creative;
    • unsized inline markup selects display_html;
    • an unsized creative cannot prove a fixed size;
    • a size with no matching legacy candidate fails closed;
    • negative: an html5 zip does not match an _html-only product;
    • negative: tag_url delivery does not match an inline-markup product.
  • The test also checks that every _html catalog annotation validates against canonical-projection-ref.json, that slots keep the v1 asset ids, that the catalog has no html5 entries, and that a delivery-type hint on a non-display_tag kind is rejected.
  • Mutation check: against the old catalog, 10 of the 12 cases fail.

Reference creative agent (server/src/creative-agent/)

  • Capabilities copy supported_delivery_types into params.
  • Required-slot validation checks display_tag delivery payloads (markup, url, or the paired pair).
  • manifestDimensions falls back to all supplied assets when the canonical's default slots carry no size. This lets an inline-markup manifest select its sized route.
  • Unsized display_tag manifests are disambiguated by slot compatibility, so a tag URL routes to display_js and inline markup routes to display_html.
  • Inline-markup previews render through the sandboxed HTML renderer, reading markup.
  • An html5 zip manifest no longer resolves to an _html capability. 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 an html5 option to preview_display_300x250_html, which now has a different kind (and the size never matched). It is now a 970×250 inline-markup display_tag option routed to preview_display_970x250_html.
  • static/examples/products/canonical/nytimes_homepage_{html5,mrec}.json: the html5 zip options carried v1_format_ref to the _html markup refs. That is the same conflation this PR fixes. No AAO legacy format describes a zip, so those options now use canonical_formats_only: true, per canonical-formats.mdx: "producers SHOULD set canonical_formats_only: true" when there is no clean v1 equivalent.

Migration notes

  • Buyers already send single-file HTML as html_creative and zips as html5_bundle. No _html format declares html5_bundle, so the practical breakage is small.
  • After this change, html5 zip 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.
  • Every SDK that vendors the catalog (TypeScript, Python, Go, Java) needs a catalog sync. The TypeScript SDK PR is linked on Project v1 HTML-markup formats (display_*_html) to display_tag inline_markup, not html5 (revisit #6025/#6028) #8339.

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's postinstall SDK 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: minor for adcontextprotocol.

Refs #8339. Related: #8354 (3.1 erratum), #6025, #6028, #6761, #8303.

🤖 Generated with Claude Code

…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]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json is 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.

@bokelley
bokelley merged commit 4976b61 into main Oct 20, 2026
66 checks passed
@bokelley
bokelley deleted the bokelley/html-markup-display-tag-inline-markup branch October 20, 2026 17:11
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Oct 20, 2026
…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]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Oct 25, 2026
…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]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Oct 25, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant