Skip to content

fix: support player-sized VAST creative assignments - #3502

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-player-sized-creative-refs
Oct 28, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/fix-player-sized-creative-refs

Conversation

@bokelley

@bokelley bokelley commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3496.

A 30-second VAST creative assigned to 640×360 and 640×480 packages previously failed because their selector refs were pooled. Resolve each package independently, then let sellers opt into creativeFormatProjection.playerSizedRefs: 'omit_unstated_size' to emit the shared owner/ID/duration without player dimensions.

The default still requires identical refs. Size omission is limited to video_vast and audio_vast, preserves stated creative constraints, and refuses ambiguous, missing, canonical-only, or incompatible package evidence. Projection errors include details.package_refs with each package's selected ref or unresolved choices. Multi-package delivery honors selected options instead of falling back to unselected sibling refs; migrated IDs and explicit creative-only resolver mappings remain supported. Canonical delivery retains its existing path.

Document the per-package resolver context and selector migration, and include a minor changeset.

Validation: formatting, TypeScript checks, and library build pass. All 234 focused and related regression tests pass against the fresh build, including official in-process MCP delivery. Claude DX, protocol, code, and security expert reviews plus independent code/protocol reviews completed; findings addressed.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

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 per-package creative projection rework and opt-in playerSizedRefs: 'omit_unstated_size'.

Checks performed (all clean):

  • Witness fidelity: The size-omission merge (creative-delivery.ts L494-498) drops only width/height; V1FormatId holds exactly agent_url/id/width/height/duration_ms, so nothing beyond the omitted dimensions is lost. Merge is gated behind strict agreement (sameLegacyIdentity, single parameterKeys, no stated size, duration-range match). No fabrication or silent re-shaping — witness-not-translator preserved.
  • DR-0033 pathway: The omitted-size ref remains a valid V1FormatId, so no VersionAdapter is required; the semantic tightening lands in 17.0.0 beta (already major), making the minor-impact changeset defensible.
  • Changeset: Present (.changeset/player-sized-creative-assignments.md) and documents the per-package refusal / resolver-container contract shift. Type is defensible given the beta-major context.
  • Transport: Pure projection, no new HTTP/SSE; tests use the official in-process MCP transport.
  • Additive Error details arg: 3-arg call sites unaffected; SingleAgentClient passes full projection but projector reads only .playerSizedRefs, with tests confirming no leak onto delivered params.
  • 609-line test covers both VAST kinds, single/multi package, asset-duration, ambiguity, canonical-only opt-out, nested selectors, and resolver snapshotting.

No critical/high/medium findings. high_risk false, gated_paths false, no author team gate. The non-blocking semantic-tightening note is documented and defensible. Falls through to row 9 — approve.

@bokelley
bokelley merged commit 13c162c into main Oct 28, 2026
47 checks passed
@bokelley
bokelley deleted the bokelley/fix-player-sized-creative-refs branch October 28, 2026 22:35
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.

projectSyncCreativesForDelivery refuses a VAST creative assigned to packages with different player sizes

1 participant