Skip to content

fix(creative): project HTML-markup legacy formats to display_tag (3.1 erratum) - #8354

Merged
bokelley merged 1 commit into
3.1.xfrom
bokelley/html-markup-display-tag-3.1-erratum
Oct 27, 2026
Merged

bokelley merged 1 commit into
3.1.xfrom
bokelley/html-markup-display-tag-3.1-erratum

Conversation

@bokelley

@bokelley bokelley commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This is an erratum to AdCP 3.1, approved by the AdCP lead (#8339).

The AAO reference catalog tagged the HTML-markup legacy formats as canonical: { kind: "html5" }. That tag contradicts normative rule 5 of core/canonical-projection-ref.json (present in 3.1):

v1 format's assets[*] shape MUST be consistent with the resulting slots[]

The only required asset these formats declare is html_creative, asset_type: "html" (markup the seller renders verbatim). The html5 canonical's slot is html5_bundle, a zip the seller unpacks and hosts. The two cannot be consistent.

Change (catalog data only, no schema changes)

  • server/src/creative-agent/reference-formats.json: display_html and the six sized display_WxH_html entries on 3.1.x (300x250, 728x90, 160x600, 336x280, 300x600, 970x250) change from { "kind": "html5" } to:
    {
      "kind": "display_tag",
      "asset_source": "buyer_uploaded",
      "slots_override": [{ "asset_group_id": "html_creative", "asset_type": "html", "required": true }]
    }
    • display_tag is the kind display_js already uses.
    • html is a listed 3.1 slot asset type, and core/assets/html-asset.json exists in 3.1.
    • asset_source: "buyer_uploaded" is the default. It is spelled out because tests/canonical-format-conventions.test.cjs warns when slots_override appears without it.
  • Also added: display_320x50_html and display_300x50_html, with the same annotation. fix(creative): publish deployed legacy format aliases #6028 added these on main but never backported them. They are copied from main, apart from the annotation, and use no 3.2-only fields. This is additive, following the feat(creative): backport retina catalog formats to 3.1 #6195 precedent.
  • docs/reference/release-notes.mdx: erratum entry.
  • .changeset/fix-html-markup-legacy-formats-display-tag-3-1.md: patch changeset. The catalog alone is not protocol-scoped, so it would not cut a release (fix(creative): publish deployed legacy format aliases #6028 dropped its changeset for that reason). The release-notes entry under docs/reference/ is a normative reference change, which lets the erratum ship and be recorded in a 3.1.x patch.
  • Tests: server/tests/unit/creative-agent.test.ts asserts the new annotation and dimensions for all nine _html entries, asserts display_js is unchanged, and updates the format count from 71 to 73. The comment count in task-handlers.ts changes from 64 to 66.

The full inline-markup target (supported_delivery_types: ["inline_markup"], a display_tag asset slot, and a catalog-hint extension) depends on 3.2-only surfaces. It goes to main in a separate minor PR, not to 3.1.

Compatibility

  • 3.1 SDKs that follow the old tag projected these formats to html5. With the corrected catalog they project them to display_tag, as they already do for display_js.
  • A buyer that sends an html5 zip creative to an _html-only product will no longer match. Those sellers render markup and never accepted bundles.
  • Markup creatives still project back to the seller's exact display_WxH_html ref, with the markup in html_creative.
  • No schema, enum, task, or error-code change, so no 3.2 dependency.

Backport procedure note

.agents/shortcuts/cut-patch.md lands patch candidates on main first. This PR is not a cherry-pick: it is the 3.1-adapted counterpart of the main PR, because main takes the full 3.2+ inline-markup shape. #6195 used the same adaptation. Please merge after, or together with, the main PR: #8357.

Validation (against origin/3.1.x)

  • npx vitest run --config server/vitest.config.ts server/tests/unit/creative-agent.test.ts: 61 passed
  • npm run test:server-unit: 285 files, 4,393 passed, 3 skipped
  • npm run test:unit: 62 files, 1,012 passed
  • npm run test:canonical-conventions: all conventions clean (66 catalog entries)
  • npm run test:schemas: pass
  • npm run test:docs-nav: pass
  • npm run typecheck: clean
  • node scripts/check-changeset-protocol-scope.cjs origin/3.1.x: passed
  • npx @changesets/cli status --since=origin/3.1.x: patch bump for adcontextprotocol only

Refs #8339. Related: #6025, #6028, #6761, #6195.

🤖 Generated with Claude Code

… erratum)

The AAO reference catalog tagged display_html and display_WxH_html as
canonical html5. That contradicts canonical-projection-ref rule 5: these
formats require one html asset (html_creative), while the html5 slot is a
zip bundle. Re-tag them as display_tag with an html_creative (html) slot
override, matching display_js, and publish display_320x50_html and
display_300x50_html with the same mapping. Catalog data only; no schema
changes.

Refs #8339

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@bokelley
bokelley requested a review from a team as a code owner October 20, 2026 00:59

@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: Approve

Approve.

Reviewed PR #8354 — an erratum re-tagging the 7 HTML-markup legacy formats from the html5 (zip-bundle) canonical to display_tag with an html_creative: html slot override, plus two net-new _html formats. The change corrects a canonical-projection rule-5 violation: these formats carry a single required html markup asset, so the override now matches the v1 assets. All 7 base html5 tags are converted (none remain), no code path consumed the old string, tests pin the exact shape and counts, and a patch changeset + release note ship with the change.

No Critical, High, or Medium findings. No gated paths, no high-risk flag, no author team gate. Rows 1–8 do not fire; falls through to row 9 → approve.

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.

1 participant