Skip to content

fix(compliance): gate signal-targeting storyboards on both wholesale feeds (3.2.x backport) - #8839

Merged
bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-product-signal-targeting-gate
Nov 9, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-product-signal-targeting-gate

Conversation

@bokelley

@bokelley bokelley commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

3.2.x backport of #8838 for #8836.

product_signal_targeting and cross_path_targeting_provenance were gated on signals.discovery_modes present: true. That passes for a seller that advertises only brief discovery, even though both storyboards read the wholesale get_products and get_signals feeds. Both storyboards now require wholesale in media_buy.buying_modes and in signals.discovery_modes (requires_all_capabilities).

Their rejection probes are now stateful: true, with phase depends_on scoped 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

  • Cherry-pick of the main commit. The one conflict was in 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.
  • Patch changeset. Conformance-harness applicability fixes are patch-eligible.

Tests (3.2.x, @adcp/sdk 14.0.0-rc.53)

  • tests/sdk-runner-capability-gates.test.cjs: 50 tests pass, including the two new ones.
  • These storyboard lints pass: scoping, context-resolution, provides-state-for, branch-sets, controller-requires.
  • build-compliance --check passes.
  • test:storyboard-sample-request-schema failed locally with resolveCreativeBuildProbe is not a function while loading the script. That is a local install artifact (npm ci --ignore-scripts), unrelated to this YAML. CI is authoritative.

🤖 Generated with Claude Code

…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]>

@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 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; no dist/** 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_capabilities is the correct shape; present: true previously over-selected brief-only sellers.
  • depends_on/stateful: true on reject probes correctly ties them to the producer phase emitting product_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.)

@bokelley

bokelley commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

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 /schemas/v3/ and /schemas/v3.2/ currently return 404. The RELEASING recovery dispatch re-checks the 3.2.x tip before every object, so any merge into 3.2.x before it finishes breaks the recovery again. This lifts once 3.2.9 is fully on the CDN; it then ships in 3.2.10.

@bokelley
bokelley merged commit 8f159e4 into 3.2.x Nov 9, 2026
49 checks passed
@bokelley
bokelley deleted the backport/3.2.x-product-signal-targeting-gate branch November 9, 2026 12:55
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