Skip to content

fix(compliance): skip image-only creative phases for tag and VAST sellers in dependency impairment - #8841

Merged
bokelley merged 1 commit into
mainfrom
fix/8770-tag-vast-creative-gates
Nov 9, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/8770-tag-vast-creative-gates

Conversation

@bokelley

@bokelley bokelley commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What

Part of #8770. dependency_impairment and dependency_impairment_cardinality send a fixed 300x250 image against the first product's first format option. A seller whose option is display_tag or video_vast correctly refuses that manifest and is failed for it. A second seller is now blocked on this.

On the canonical lines (main and 3.2.x), both storyboards now run their creative phases only when the selected format_kind is image:

  • setup keeps get_products and create_media_buy.
  • The creative sync, assignment and approval steps move into a new assign_creative / assign_creatives phase.
  • That phase and every later phase carry skip_if: "context.format_kind != 'image'".

What a tag or VAST seller sees now: discovery and buy creation are graded; the creative phases are skipped, with no failed steps. Image sellers run both storyboards unchanged.

Why not $build_assets_from_format here

#8770 proposes building the manifest from the seller's format with $build_assets_from_format. On canonical formats that isn't safe with today's SDK builder (adcp-client creative-assets.ts):

  • Slot-less params break. The builder reads only an explicit params.slots and does not apply the canonical schema's default slots. A params object like { width: 300, height: 250 }, which is how most sellers and the training agent declare formats, leaves the directive unresolved. The step is then skipped as prerequisite_failed. This already happens on main: creative_fate_after_cancellation against the training agent's sales tenant skips sync_creative_with_assignment and three dependent steps for this reason.
  • Tag URLs get the wrong URL. A display_tag format's default tag_url slot is asset_type: url, and the builder fills it with the test kit's landing-page click_url.

Using the directive here would have turned image sellers' passing runs into prerequisite skips. It also would not have fixed tag sellers. The SDK work is the follow-up below.

Release path

The seller who reported this is graded on the 3.1 line (3.1.32). The 3.1 storyboards use legacy format_ids, so they get their own adapted fix in #8846 (3.1.x, ships as 3.1.33): the product-format storyboards build their creatives with $build_assets_from_format, which works on legacy formats, and the rest are gated on a declared format of the right shape. The 3.2.x backport of this PR covers 3.2 sellers.

Follow-up (#8770 item 4, not in this PR)

  1. SDK builder (adcp-client creative-assets.ts)
    • When params.slots is absent, apply the canonical default slots for the format_kind. This needs the directive to receive the kind as well as the params.
    • Fill a URL slot from click_url only when the slot is a clickthrough or landing page, and send url_type: clickthrough. A tag_url or tracker slot should use a tag fixture or grade fixture_unavailable.
    • Build display_tag, html and javascript slots from a tag fixture, and vast slots from a VAST fixture.
    • Check image max_file_size_kb, mime_types and formats against fixture metadata instead of grading every such slot fixture_unavailable.
  2. Test kit (test-kits/acme-outdoor.yaml)
    • Add an inline HTML display tag and an ad-request tag URL at the kit's image sizes.
    • Add a VAST 4.x fixture, as inline XML and as a URL, with a 16:9 MediaFile.
    • Add byte sizes to the image fixtures.
  3. Storyboards
    • Once the builder has these, swap this gate for the directive.
    • Move creative_lifecycle, creative_lifecycle_webhooks, deterministic_testing and creative_reception to it on the canonical lines.
    • Gating canonical native_in_feed on a declared native format needs a runner primitive the storyboard grammar lacks today: a capability or skip_if predicate that matches any creative.supported_formats[] entry by format.format_kind.

Verification

  • New tests/creative-format-gate-compliance.test.cjs (6 tests, in test:auction-only-compliance):
    • Structural check that every phase after setup is format-gated and still sends the image manifest.
    • Mock-seller runs for display_tag and video_vast: only get_products and create_media_buy are called, sync_creatives never is, and there are 0 failed steps.
  • Training agent, sales tenant (run-storyboards.ts --storyboard-id): dependency_impairment 15/15 passed, dependency_impairment_cardinality 23/23 passed. This is the full image path, nothing skipped.
  • Every test:storyboard-*, test:compliance-*, test:sdk-runner-capability-gates and test:auction-only-compliance suite passes (30 suites). build:compliance --check, the changeset scope check, changeset status (patch) and the pre-commit hook also pass.

Refs #8770

🤖 Generated with Claude Code

…lers in dependency impairment

dependency_impairment and dependency_impairment_cardinality send a fixed
300x250 image creative against the first product's first format option.
A seller whose option is a display_tag or video_vast format correctly
refuses that manifest and was failed for it (adcp#8770).

The creative phases now run only when the selected format_kind is image.
For any other kind they are skipped, so the storyboard no longer fails a
seller that refuses an asset its format does not take. Image sellers run
both storyboards unchanged (training agent: 15/15 and 23/23 steps).

$build_assets_from_format is not used here yet: on canonical formats the
SDK builder reads only explicit params.slots, so a params object that
relies on the canonical default slots leaves the directive unresolved
and the step is skipped as prerequisite_failed. That needs the follow-up
SDK work for canonical default slots and tag/VAST fixtures.

Refs #8770

Co-Authored-By: Claude Opus 5.5 <[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: Approve

Approve — clean compliance fix, no blocking findings.

This PR gates creative-dependent phases in the two dependency-impairment storyboards on skip_if: context.format_kind != 'image', so non-image sellers are no longer false-failed by a fixed 300x250 image manifest (adcp#8770). Verified:

  • Changeset is patch and in-scope (compliance-asset fix, no wire-shape change, non-breaking, main-line not 3.1.x).
  • No schema/docs/oneOf/dist-immutability concerns; format_kind is required on canonical-format-option, so the undefined-gate case can't silently escape.
  • New self-checking test asserts every post-setup phase is gated and that a tag/VAST seller never receives the image creative.

Medium findings

  • static/compliance/.../dependency_impairment.yaml:260 — Gate keys on format_options[0], so an image-capable seller whose first option is non-image skips the entire impairment.coherence contract (coverage narrowing distinct from the documented follow-up).

One medium finding, no critical/high, no escalation trigger (high_risk false, gated_paths false, no team gate). Falls through to row 9 → approve.

Medium findings

  • static/compliance/source/protocols/media-buy/scenarios/dependency_impairment.yaml:260 — Format gate on format_options[0] drops image-capable sellers whose first option is non-image

@bokelley
bokelley merged commit 867fdce into main Nov 9, 2026
62 checks passed
@bokelley
bokelley deleted the fix/8770-tag-vast-creative-gates branch November 9, 2026 12:56
aymeric45 pushed a commit to aymeric45/adcp that referenced this pull request Nov 11, 2026
Brings the 3.1.33 release records and immutable artifacts to main:
dist/schemas/3.1.33, dist/compliance/3.1.33, dist/protocol/3.1.33.tgz*,
the 3.1.33 CHANGELOG block, and regenerated schema discovery pointers.

Metadata resolved per the playbook's auto-resolve rules: main's
package.json, package-lock.json and static/schemas/source/index.json;
CHANGELOG via forward-merge-release-records.cjs changelog; schema
discovery via forward-merge-release-records.cjs schema-discovery.

Content: main keeps its own implementation of the two fixes that landed
separately on each line (product_signal_targeting wholesale gate: adcontextprotocol#8838
vs adcontextprotocol#8840; tag/VAST creative storyboards, adcp#8770: adcontextprotocol#8841 vs adcontextprotocol#8846).
Conflicted files resolved to main's side after reviewing each 3.1.x
hunk, and the 3.1-only asset_types gating that auto-merged into
creative_lifecycle_webhooks, native_in_feed, deterministic-testing,
cli-scenario-fixtures.test.cjs and sdk-runner-capability-gates.test.cjs
reverted to main's state. static/compliance/source and tests/ are
identical to origin/main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
aymeric45 pushed a commit to aymeric45/adcp that referenced this pull request Nov 11, 2026
Forward-merges the published 3.2.10 release (v3.2.10 = a6163fb, the
3.2.x head) and the three 3.2.x maintenance commits since v3.2.9: adcontextprotocol#8826,
adcontextprotocol#8839 and adcontextprotocol#8847, released by the adcontextprotocol#8886 Version Packages merge.

Release records:
- dist/compliance/3.2.10, dist/schemas/3.2.10 and the signed
  dist/protocol/3.2.10.tgz tuple are taken from v3.2.10 unchanged.
- dist/schemas/index.json and latest.json are regenerated
  (forward-merge-release-records.cjs schema-discovery).
- CHANGELOG.md is main's file plus the 3.2.10 block
  (forward-merge-release-records.cjs changelog).
- package.json, package-lock.json, static/schemas/source/index.json: main's.
- static/compliance/published-versions.json: main's. 3.2.x's only extra
  entry is 3.2.10, which is registered in a separate commit after
  qualification.

adcontextprotocol#8839 and adcontextprotocol#8847 are cherry-picks of main's adcontextprotocol#8838 and adcontextprotocol#8841. Their
storyboards and tests auto-merged to main's bytes; nothing changes.

Content conflicts, all from adcontextprotocol#8826 and all resolved to main's file. adcontextprotocol#8826 is
an SDK 14 narrowing of adcontextprotocol#8336 and adcontextprotocol#8428 for the 3.2 runner; main carries both
in full on SDK 17:
- advanced_delivery_reporting.yaml: main's adcontextprotocol#8336 storyboard, with the
  adcontextprotocol#8376 price snapshot and the separate time_based_delivery_reporting scope.
- collection_selection.yaml, owner_sold_channel_carriage.yaml: main's adcontextprotocol#8428
  independently qualified catalog scopes. The 3.2.x side's
  native_collection_product discovery gate is dropped.
- docs/reference/known-limitations.mdx: main's catalog reporting and
  collection bullets already state the scope and fixture_unsatisfied
  semantics the 3.2.x paragraph describes.
- tests/sdk-runner-capability-gates.test.cjs: main's reporting gate test
  (both reporting storyboards). The 3.2.x single-storyboard variant is
  dropped.

Auto-merge reverted: the non-conflicting adcontextprotocol#8826 collection gate test
("<name> grades only sellers whose catalog offers selectable collections")
asserts the 3.2-only native_collection_product handle, which main's
storyboards do not declare.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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