Skip to content

fix(compliance): grade inline creative format routes by advertised representation - #8234

Merged
bokelley merged 1 commit into
3.1.xfrom
conductor/cli-test-fixtures-protocol-31-backport
Oct 16, 2026
Merged

bokelley merged 1 commit into
3.1.xfrom
conductor/cli-test-fixtures-protocol-31-backport

Conversation

@bokelley

@bokelley bokelley commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Backport of the inline-creative and provenance compliance fixes to 3.1.x. Closes the applicability gaps behind adcp-client#3268 and #3269.

What was wrong

#3268 — inline_creatives_without_sync. The storyboard required every seller to satisfy both the canonical format_options[] path and the legacy format_ids[] path. A seller publishing only one representation failed on a representation it is not required to publish.

#3269 — the three provenance scenarios. Seeded products omitted the schema-required publisher_properties, reporting_capabilities, and format declarations, and the creative probes referenced display_300x250 on your-platform.example.com, which nothing seeded. A seller that correctly rejected an unknown format failed the scenario for being right. The fixed-CPM pricing option also used rate, which validated only because the pricing option allows additional properties, so the option was being read as auction-based.

What this does

Three routes, each graded only when the seller advertises it:

Route Selector Applies to
named canonical format_option_refs[] products publishing a selectable format_option_id
unnamed canonical none on the package; format_kind alone on the creative products publishing format_options[] with no selectable id
legacy format_id on the creative products publishing format_ids[]

The unnamed route exists because format_option_id is a SHOULD, not a MUST. Per core/creative-asset.json (3.1 oneOf arm requires only format_kind), core/format-option-ref.json ("optional when format_kind alone routes the creative to a single declaration") and media-buy/package-request.json (requires only product_id / budget / pricing_option_id), such a product is conformant and buyable. It was previously failed.

Each route opens with its own optional discovery phase and buys from that same get_products response, so the signal deciding whether a route runs and the identifiers it buys with are one observation, not two that can disagree when a seller re-ranks brief-driven results.

Fatality is preserved. Path phases stay non-optional and are deliberately not branch_set peers, so a create/update/replacement-readback failure on an advertised route fails the storyboard even when another route passes. A closing assert_contribution requires at least one route to reach the replacement readback, so a run where every route skips cannot pass.

The unnamed route is gated twice so a selector-less purchase never reaches a named catalog — a phase-level skip_if for runners that read context, and a field_absent check on products[0].format_options[0].format_option_id in its own discovery probe for runners that do not. A product with several format_options[] entries sharing one format_kind genuinely requires a format_option_ref, and a correct seller rejects a package without one.

Validation

Verified against @adcp/sdk 9.6.2 (repo pin), 15.8.1 (hosted grader per #8199) and 15.9.2 (current) — identical 10/10 on all three:

Seller shape Routes that bought Selector-less buys Result
canonical-only (named) canonical 0 pass
canonical-only (unnamed) canonical-unnamed 1 pass
named same-kind catalog rejecting selector-less buys canonical 0 pass
legacy-only legacy — pass
dual emission canonical, legacy — pass
discovery returns a different product per call each route buys its own — pass
representation moves between calls each route buys its own — pass
no usable representation none — fails (intended)
dual, canonical path broken both ran — fails (intended)

selectorless=0 for every named catalog on every version is the line that matters: no bare-format_kind purchase reaches a product that needs a format_option_ref.

Also: 19/19 in the new tests/cli-scenario-fixtures.test.cjs (wired into the test chain as test:storyboard-scenario-fixtures), 22 storyboard/compliance lint suites green, build:compliance clean, changeset scope check and changesets status clean.

Release dependency — SDK reporting fix

One reporting-surface wart remains, and no storyboard change can avoid it. A conformant canonical-only or legacy-only seller leaves one deliberately non-gating failed step: the optional discovery probe for the representation it does not publish. The runner and the adcp CLI both treat the run as green (overall_passed: true, exit 0), but --format junit emits:

<testsuites name="adcp-storyboards" tests="7" failures="1" …>
<testsuite  name="Inline media-buy creatives without sync_creatives" tests="7" failures="0" …>

Confirmed present on 9.6.2, 15.8.1 and 15.9.2. <testsuites failures> counts per step; <testsuite failures> is sb.failed_count, which excludes optional-phase failures. A pipeline gating on the JUnit aggregate rather than the exit code goes red on a passing run.

The fix is in @adcp/sdk (additive StoryboardStepResult.counts_toward_failure: false on deliberately-optional failures; required OAuth and step assertions keep failing CI) and ships with that SDK release — handled separately. Until then, gate on the CLI exit code, not the JUnit aggregate. This is documented in the changeset so it reaches release notes.

No SDK pin is changed here.

Action required for seeding sellers

The three provenance scenarios now declare a fixtures.creative_formats block, so seed_creative_format joins seed_product and seed_pricing_option as a required comply_test_controller scenario for them. A seller whose list_scenarios does not advertise seed_creative_format will see all three grade not_applicable (fixture_seed_unsupported) rather than run — the runner skips the whole storyboard instead of seeding partially.

Also included

storyboard-schema.yaml now documents the creative_formats fixture key (this is the first media-buy scenario to use it) and the rule that declaring any fixture key makes its seed_* scenario required storyboard-wide.

🤖 Generated with Claude Code


Open workspace in Conductor

…presentation

inline_creatives_without_sync required every seller to satisfy both the
canonical format_options[] path and the legacy format_ids[] path, so
canonical-only and legacy-only sellers failed on a representation they are
not required to publish (adcp-client#3268).

Three routes now, each gated on what the seller actually advertises:
the named canonical path (format_option_refs[]), an unnamed canonical path
for products whose format_options[] entries publish no selectable
format_option_id, and the legacy format_ids[] path. Each route opens with
its own optional discovery phase and buys from that same get_products
response, so the signal deciding whether a route runs and the identifiers it
buys with are one observation rather than two that can disagree.

Path phases stay non-optional, so a create, update, or replacement-readback
failure on an advertised route fails the storyboard even when another route
passes. A closing assert_contribution requires at least one route to reach
the replacement readback, so a run where every route skips cannot pass.

The unnamed route is gated twice so a selector-less purchase never reaches a
named catalog: a phase-level skip_if for runners that read context, and a
field_absent check on products[0].format_options[0].format_option_id in its
own discovery probe for runners that do not.

The three provenance scenarios seeded products missing publisher_properties,
reporting_capabilities, and format declarations, and their creative probes
referenced a format nothing seeded, so a seller that correctly rejected an
unknown format failed for being right (adcp-client#3269). Each now seeds a
schema-valid product plus a fixture-local legacy format declaring the assets
its probes submit, and the fixed-CPM pricing option moves from rate to
fixed_price.

Verified against @adcp/sdk 9.6.2, 15.8.1, and 15.9.2.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@bokelley
bokelley requested a review from a team as a code owner October 16, 2026 12:46

@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 all 8 files in the 1534-line diff. No blocking, escalation, or team-gate triggers fired.

Checks applied (decision table, top-down):

  • Rows 1: no critical/high findings.
  • Row 2: gated_paths is false — not applicable.
  • Rows 3–5: high_risk is false — not applicable.
  • Row 6: no prior decision.
  • Row 7: no no-auto-approve team match.
  • Row 8: zero medium findings (fewer than three).
  • Row 9: approve.

Reviewer confirmed the inline_creatives_without_sync.yaml restructuring into three independently-gated format routes is correct (unnamed route double-gated via phase skip_if + field_absent discovery probe; verify_format_coverage blocks an all-skip pass). The three provenance fixtures seed schema-valid products and move fixed-CPM to fixed_price correctly. The new cli-scenario-fixtures.test.cjs is a real gate (rejects pre-fix product shape, checks required-asset/asset_type parity, guarded against vacuous pass). Patch changeset present and accurate.

No blocking findings. Clean diff.

@bokelley
bokelley merged commit 2803498 into 3.1.x Oct 16, 2026
12 checks passed
@bokelley
bokelley deleted the conductor/cli-test-fixtures-protocol-31-backport branch October 16, 2026 12:54
sujanchalla0510 pushed a commit to sujanchalla0510/adcp that referenced this pull request Oct 18, 2026
…main

Merge the published v3.1.29 maintenance release (tag v3.1.29,
f082c7a, the adcontextprotocol#8247 Version Packages
merge on 3.1.x) into main as a record-only merge. v3.1.29 descends from
v3.1.28 (f4d53b8, adcontextprotocol#8069), so both releases' records come in.

The merge keeps main's tree (ours strategy) and adds only:

- dist/schemas/3.1.28/, dist/schemas/3.1.29/, dist/compliance/3.1.28/,
  dist/compliance/3.1.29/ and the signed dist/protocol/3.1.28.tgz* and
  3.1.29.tgz* tuples, byte-identical to the tag.
- CHANGELOG.md: the 3.1.29 and 3.1.28 blocks, verbatim from the tag,
  above main's 3.1.27 block.
- dist/schemas/index.json: regenerated by build:schemas; v3.1 and
  latest_by_minor 3.1 now 3.1.29. latest.json is unchanged (3.2.5).

The 3.1.27..3.1.29 source changes (adcontextprotocol#7907, adcontextprotocol#8020, adcontextprotocol#8234, adcontextprotocol#8237, adcontextprotocol#8245)
are 3.1-line adaptations of fixes main already carries in its own form
(adcontextprotocol#7580, adcontextprotocol#7583, adcontextprotocol#7617, adcontextprotocol#8235; main's root request-signing vectors are
already unpadded base64url), so no 3.1.x source, tests or tooling are
taken. The second parent records that reconciliation so the next 3.1.x
forward merge starts from v3.1.29.

Co-Authored-By: Claude Opus 5.5 (1M context) <[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