Repository navigation
fix(compliance): gate signal-targeting storyboards on both wholesale feeds (3.2.x backport) - #8839
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 3.2.x backport of #8838 with no blocking or medium findings.
Verified against repo rules:
- Source-only edits under
static/compliance/source/**plus a test; nodist/**artifacts touched, so immutability holds. - Changeset present (
.changeset/product-signal-targeting-wholesale-gate.md) and correctly scoped as a patch for a conformance-applicability fix. - Gate on both wholesale feeds via
requires_all_capabilitiesis the correct shape;present: truepreviously over-selected brief-only sellers. depends_on/stateful: trueon reject probes correctly ties them to the producer phase emittingproduct_id/pricing_option_id, so failed discovery cascade-skips rather than sending an unresolved$context.product_id; the new test exercises exactly this.
No high-risk flag, no gated paths, no author-team gate, no prior decision. Rows 1–8 do not fire → row 9 approve. (Non-blocking note: author discloses a local test:storyboard-sample-request-schema failure attributed to a local install artifact; CI is authoritative.)
|
HOLD: please don't merge into 3.2.x yet. The 3.2.9 release is partly published. The tag and GitHub Release are out, but the CDN upload stopped when another PR merged mid-publication, so |
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]>
3.2.x backport of #8838 for #8836.
product_signal_targetingandcross_path_targeting_provenancewere gated onsignals.discovery_modes present: true. That passes for a seller that advertises only brief discovery, even though both storyboards read the wholesaleget_productsandget_signalsfeeds. Both storyboards now requirewholesaleinmedia_buy.buying_modesand insignals.discovery_modes(requires_all_capabilities).Their rejection probes are now
stateful: true, with phasedepends_onscoped to the producer phases. A failed discovery now cascade-skips them instead of sending an unresolved$context.product_id. The runner side of that problem is adcontextprotocol/adcp-client#3668.Package-level signal targeting has no seller-wide capability. The spec keeps it product-scoped, so it stays a graded assertion and is not a gate. See the main PR for the reasoning.
Backport notes
tests/sdk-runner-capability-gates.test.cjs, where main carries tests 3.2.x lacks. It was resolved by keeping 3.2.x's file and appending only the two new tests.Tests (3.2.x,
@adcp/sdk14.0.0-rc.53)tests/sdk-runner-capability-gates.test.cjs: 50 tests pass, including the two new ones.build-compliance --checkpasses.test:storyboard-sample-request-schemafailed locally withresolveCreativeBuildProbe is not a functionwhile loading the script. That is a local install artifact (npm ci --ignore-scripts), unrelated to this YAML. CI is authoritative.🤖 Generated with Claude Code