Repository navigation
fix(projection): drop 3.3 rendered size from the legacy html asset - #3450
Merged
Merged
Conversation
Projecting a canonical inline-markup display_tag onto display_html or display_WxH_html copied the asset's width, height and sizes onto the legacy html asset. Those are AdCP 3.3 fields, and the legacy wire only serves sellers before 3.2, so the version translation refused them and sized inline-markup creatives could not reach a 3.0 or 3.1 seller. The size still selects the sized legacy ref, which carries it. The canonical wire and canonical reads of legacy html are unchanged. Closes #3436 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, tightly-scoped bug fix with no blocking or medium findings.
Checked:
- Removal of AdCP 3.3 rendered dimensions (width/height/sizes) from the legacy
htmlasset inprojectInlineMarkupToLegacyHtml(creative-delivery.ts:1304). These fields are 3.3-only and the legacy wire serves pre-3.2 sellers, so they must not be projected onto the legacy shape. - Witness-not-translator compliance: read direction (:1347) correctly retained, invents no size from the ref, no fabrication at the seam.
- DR-0033 pathway: droppable projection — size survives via the sized legacy ref, nothing identity-bearing (spend/targeting/caps/account identity) lost, so dropping is in-bounds and does not require refusal.
- Changeset present and patch-level, appropriate for a projection-shape bug fix in beta pre-mode.
- Test coverage added in new test file and version-translation.test.js.
Decision table: no critical/high/medium findings; gated_paths false; high_risk false; no team gate. Falls through to row 9 → approve. (review_decision is REVIEW_REQUIRED, but gated_paths is false so row 2 does not fire.)
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.
Closes #3436. Follows adcontextprotocol/adcp#8339 (vectors from adcontextprotocol/adcp#8357).
What
When SDK 17 projects a canonical inline-markup
display_tagcreative onto an HTML-markup legacy format (display_html/display_WxH_html), the legacy asset is now{ asset_type: 'html', content }, plusprovenanceif the asset has it.projectInlineMarkupToLegacyHtmlno longer spreadsrenderedSizeFields(asset), so the asset'swidth,heightandsizesare not copied. The AdCP vectorinline-markup-selects-the-exact-sized-legacy-refnow matches exactly.The maintainers chose option 1 from the issue: the SDK drops the fields, and the spec vector stays as written.
Why
width/height/sizesoncore/assets/html-asset.jsonarex-added-in: 3.3.0. The legacy wire never reaches a 3.2+ peer.resolveCreativeFormatWireModeand the server'screativeWireModeForRequestput every negotiated 3.2+ release on the canonical wire. So the legacyhtmlasset always goes to a seller that doesn't define these fields.This was more than a vector mismatch. On a real client call, the version translation (3.3 → 3.1/3.0) found the copied fields and refused the mutation. In 17.0.0-beta.0,
syncCreativesandcreateMediaBuythrewProtocolFeatureUnsupportedError: ... html_creative.width, ... height require AdCP 3.3for every sized inline-markup creative sent to a 3.0 or 3.1 seller. The error told the buyer to remove the size, which is the field that picks thedisplay_WxH_htmlref.Version-awareness
format_parametersfirst and then the asset's rendered size, but it is not emitted as asset fields. Thedisplay_WxH_htmlref carries the size.display_tagwithwidth/heightas sent. That is tested end to end.html_creativedoesn't have this leak. Its target is the SDK's 3.3 surface, wheredisplay_tagdefines these fields. It only moves the asset's ownwidth/height/sizesand invents none from the format ref. Both behaviours are now pinned by a test.Tests
New
test/lib/creative-delivery-legacy-html-size.test.js, plus a client-level pathway block intest/lib/version-translation.test.js. Fail before the fix (7):deepEqualof the whole projected creative and a check that the input is not mutatedsizesdropped as welldisplay_htmlrefdeepEqual)sync_creatives/create_media_buy/update_media_buyprojections emit the same assetsyncCreatives+createMediaBuyagainst a 3.0 seller and a 3.1 seller withcanonical_creatives: false: each sends the vector asset at the negotiated release with noversion_downgrade_fields_droppeddrift (before the fix, both threwProtocolFeatureUnsupportedError)Guards that pass before and after: selection by asset size and by
format_parametersfor each sized ref,format_parametersprecedence over the asset size, therendered_size_unproven/no_size_matchvectors still failing closed, the unsized vector, a 3.3 seller keepingwidth/heighton the canonicaldisplay_tag(client level), and the reverse-direction read.I updated five existing assertions in
creative-delivery-most-constrained.test.jsthat had pinned the copied fields.Local: 744/744 across the creative-delivery, projection, wire-mode, version-translation and canonical suites, and the full
test:node:fastsuite (see CI).Not changed / out of scope
format_idplus anhtmlasset with 3.3width/height) is still passed through unchanged on the legacy wire, and the version translation refuses those buyer-authored fields as before.display_tagrefused by the version translation, becausedisplay_tagwidth/heightare also 3.3 fields. That is the existing DR-0033 policy for fields the buyer writes, not this projection. I'm noting it here as a possible follow-up.Backport
None. The
_html→display_taginline-markup projection is new in the SDK 17 major.16.x(AdCP 3.2.7) and15.9.xdon't haveprojectInlineMarkupToLegacyHtmlor any 3.3 rendered-size fields.Changeset:
patch. This fixes behaviour shipped in the 17 beta, with no API change. I also updated the HTML-markup section ofdocs/migration-16-to-17.md.🤖 Generated with Claude Code