Repository navigation
fix(compliance): gate signal-targeting storyboards on both wholesale feeds - #8838
Conversation
…feeds (#8836) product_signal_targeting and cross_path_targeting_provenance were gated on `signals.discovery_modes present: true`. Every signals agent supports brief discovery, so a seller declaring brief-only discovery on both protocols was selected. It then failed on the wholesale get_products and get_signals reads those storyboards make, which it is allowed to reject. Both storyboards now require wholesale in media_buy.buying_modes and in signals.discovery_modes, through requires_all_capabilities. Package-level signal targeting stays a product-scoped assertion. The spec declares no seller-wide capability for it. The negative probes that consume discovered context were stateful: false, so a failed discovery did not cascade-skip them. The runner then sent the literal `$context.product_id` because expect_error steps are exempt from its unresolved-context guard (adcontextprotocol/adcp-client#3668). The probes are now stateful, and their phases depend only on the producer phases, so a readback failure does not suppress rejection coverage. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean fix to two signal-targeting compliance storyboards. The gate was previously signals.discovery_modes present: true — satisfied by every signals agent via brief discovery — which wrongly selected brief-only sellers and sent them wholesale calls they reject. The gate now uses requires_all_capabilities on media_buy.buying_modes contains wholesale and signals.discovery_modes contains wholesale, matching the actual wire reads.
Verified:
- New phase-level
depends_onsets are complete for both storyboards (reject_unknown_signal→discover_wholesale_product; reject_cross_path_substitution→discover_native_signal+register_buyer_audience cover every$contexttoken consumed). stateful: false→trueflip correctly cascade-skips a probe on discovery failure instead of shipping a literal$context.product_id.- Changeset is
patch, present, scoped tostatic/compliance/source/**; applicability/statefulness only, no wire-shape change — patch-eligible. - Tests exercise the gate for both storyboards plus the cascade-skip for product_signal_targeting.
No Critical/High/Medium findings. Non-blocking follow-up: the cross_path cascade-skip (two producers, three tokens) lacks a dedicated test — only its gate case is covered — but the mechanism is shared with the tested product_signal_targeting case.
No gated paths, no high-risk flag, no team gate, no blocking findings. review_decision: REVIEW_REQUIRED does not block since gated_paths: false. Falls through to row 9.
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]>
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]>
Closes #8836.
Problem
media_buy_seller/product_signal_targetingwas gated onsignals.discovery_modes present: true. Every signals agent supports brief discovery, so a seller advertisingmedia_buy.buying_modes: ["brief"]andsignals.discovery_modes: ["brief"]was selected. The storyboard only exercises the wholesale path:get_productswithbuying_mode: "wholesale"andget_signalswithdiscovery_mode: "wholesale". The schema lets a seller reject both calls when it hasn't declaredwholesale. The other wholesale product storyboards, gated onmedia_buy.buying_modes contains wholesale, correctly skipped the same seller.cross_path_targeting_provenancehad the same gate and also makes both wholesale reads.Change
Gate. Both storyboards now use:
The reporter also asked to gate on "package-level signal targeting". No seller-wide capability exists for that, and the spec says so on purpose.
targeting.mdx§ signal_targeting_groups: "Signal targeting limits are product-scoped, not declared in seller-wideget_adcp_capabilities, because products may be backed by different ad servers or platforms." So package-level signal targeting stays a graded assertion on the discovered product (signal_targeting_allowed,signal_targeting_rules), not an applicability gate. A seller-wide rollup would be a new capability field and would ship in a minor.Unresolved
$context.product_id. The rejection probes consumeproduct_idandpricing_option_idfrom discovery but were markedstateful: false, so a failed discovery did not cascade-skip them. The runner exemptsexpect_errorsteps from its unresolved-context guard, so it sent the literal token. That runner gap is tracked in adcontextprotocol/adcp-client#3668.The probes are now
stateful: true. Their phases setdepends_onto the producer phases only, so a readback failure still leaves rejection coverage running.Tests
tests/sdk-runner-capability-gates.test.cjs:capability_unsupportedwith zero dispatches when the seller declares brief-only modes, wholesale on one feed only, or nothing. They are applicable when both feeds declare wholesale.get_productsreturning no products, nocreate_media_buyis dispatched, no request carries a$context.token, and the probe isprerequisite_failed.create_media_buy.npm run test:sdk-runner-capability-gatespasses: 64, 51 and 176 tests, 0 failures.npm run build:compliance -- --checkpasses.npm run test:storyboards):/signalsmet its floors./salesand/governancefell below them on failures unrelated to this diff (adcp.governance_enforcement.tasks.3capabilities schema mismatch,sales_doohresponsestatus, SIGKILLed children). This worktree resolvesnode_modulesfrom the parent checkout.training-agent-storyboardsis green on main at fafe043, so the CI run on this PR is the authoritative gate.Backports
product_signal_targetingexists there. The reporter is on suite 3.1.32, so the fix reaches them in the next 3.1.x patch.🤖 Generated with Claude Code