Repository navigation
fix: support player-sized VAST creative assignments - #3502
Merged
Merged
Conversation
There was a problem hiding this comment.
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
detailsarg: 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.
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.
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_vastandaudio_vast, preserves stated creative constraints, and refuses ambiguous, missing, canonical-only, or incompatible package evidence. Projection errors includedetails.package_refswith 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.