Repository navigation
fix(compliance): grade inline creative format routes by advertised representation - #8234
Conversation
…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]>
There was a problem hiding this comment.
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.
…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]>
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 canonicalformat_options[]path and the legacyformat_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 referenceddisplay_300x250onyour-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 usedrate, 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:
format_option_refs[]format_option_idformat_kindalone on the creativeformat_options[]with no selectable idformat_idon the creativeformat_ids[]The unnamed route exists because
format_option_idis a SHOULD, not a MUST. Percore/creative-asset.json(3.1oneOfarm requires onlyformat_kind),core/format-option-ref.json("optional whenformat_kindalone routes the creative to a single declaration") andmedia-buy/package-request.json(requires onlyproduct_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_productsresponse, 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_setpeers, so a create/update/replacement-readback failure on an advertised route fails the storyboard even when another route passes. A closingassert_contributionrequires 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_iffor runners that read context, and afield_absentcheck onproducts[0].format_options[0].format_option_idin its own discovery probe for runners that do not. A product with severalformat_options[]entries sharing oneformat_kindgenuinely requires aformat_option_ref, and a correct seller rejects a package without one.Validation
Verified against
@adcp/sdk9.6.2 (repo pin), 15.8.1 (hosted grader per #8199) and 15.9.2 (current) — identical 10/10 on all three:canonicalcanonical-unnamedcanonicallegacycanonical,legacyselectorless=0for every named catalog on every version is the line that matters: no bare-format_kindpurchase reaches a product that needs aformat_option_ref.Also: 19/19 in the new
tests/cli-scenario-fixtures.test.cjs(wired into thetestchain astest:storyboard-scenario-fixtures), 22 storyboard/compliance lint suites green,build:complianceclean, changeset scope check andchangesets statusclean.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
adcpCLI both treat the run as green (overall_passed: true, exit 0), but--format junitemits:Confirmed present on 9.6.2, 15.8.1 and 15.9.2.
<testsuites failures>counts per step;<testsuite failures>issb.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(additiveStoryboardStepResult.counts_toward_failure: falseon 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_formatsblock, soseed_creative_formatjoinsseed_productandseed_pricing_optionas a requiredcomply_test_controllerscenario for them. A seller whoselist_scenariosdoes not advertiseseed_creative_formatwill see all three gradenot_applicable(fixture_seed_unsupported) rather than run — the runner skips the whole storyboard instead of seeding partially.Also included
storyboard-schema.yamlnow documents thecreative_formatsfixture key (this is the first media-buy scenario to use it) and the rule that declaring any fixture key makes itsseed_*scenario required storyboard-wide.🤖 Generated with Claude Code
Open workspace in Conductor