Skip to content

fix(compliance): gate product_signal_targeting on both wholesale feeds (3.1.x backport) - #8840

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

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

Conversation

@bokelley

@bokelley bokelley commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

3.1.x backport of #8838 for #8836. This is the line the reporter is on (suite 3.1.32).

product_signal_targeting was gated on signals.discovery_modes present: true. That passes for a seller that advertises only brief discovery, even though the storyboard reads the wholesale get_products and get_signals feeds. It now requires wholesale in media_buy.buying_modes and in signals.discovery_modes. That uses requires_all_capabilities, which other 3.1 wholesale storyboards (measurement_accountability, canonical_formats) already use.

The rejection probe is now stateful: true, with phase depends_on: [discover_wholesale_product]. A failed discovery now cascade-skips it instead of sending an unresolved $context.product_id. The runner side of that problem is adcontextprotocol/adcp-client#3668.

Backport notes

  • cross_path_targeting_provenance does not exist on 3.1.x, so only product_signal_targeting changes.
  • The new tests use @adcp-protocol/fixture-test-sdk/testing, because the line's production @adcp/sdk 9.6.2 predates requires_all_capabilities. The seller's runner, @adcp/sdk 16.7.0, supports it (support starts at 14.0.0-beta.4).
  • Patch changeset. Conformance-harness applicability fixes are patch-eligible.

Tests (3.1.x)

  • tests/sdk-runner-capability-gates.test.cjs: 14 tests pass. Both new tests fail against the unpatched storyboard.
  • These storyboard lints pass with 0 failures: scoping, branch-sets, provides-state-for, context-entity, sample-request-schema, response-schema, context-output-paths, validations-paths, compliance-source-authority, fixture-discriminators.
  • build-compliance passes, and the changeset protocol-scope check passes against origin/3.1.x.

🤖 Generated with Claude Code

…s (3.1.x backport) (#8836)

Backport of the main-line fix for product_signal_targeting.
cross_path_targeting_provenance does not exist on the 3.1 line.

The storyboard was 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 the storyboard makes, which it is allowed to
reject.

The storyboard now requires wholesale in media_buy.buying_modes and in
signals.discovery_modes, through requires_all_capabilities, matching the other
3.1 wholesale storyboards. Package-level signal targeting stays a
product-scoped assertion.

The negative probe consumed discovered context but was stateful: false, so a
failed discovery did not cascade-skip it. The runner then sent the literal
`$context.product_id` (adcontextprotocol/adcp-client#3668). The probe is now
stateful, and its phase depends only on product discovery.

The regression tests use the test-only fixture SDK, because the 3.1 line's
production @adcp/sdk predates requires_all_capabilities.

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.1.x backport of #8838 with no blocking or medium findings.

Checked:

  • Gate change on product_signal_targeting.yaml (requires_capability signals.discovery_modes present:true → requires_all_capabilities on wholesale across media_buy.buying_modes and signals.discovery_modes) correctly aligns applicability with the wholesale get_products/get_signals feeds the storyboard reads; shape matches existing 3.1 precedent (measurement_accountability, canonical_formats).
  • depends_on:[discover_wholesale_product] + stateful:true on the reject_unknown_signal probe is the load-bearing fix: cascade-skips on failed product discovery instead of dispatching an unresolved $context.product_id token, correctly scoped to product discovery (phantom signal is hardcoded).
  • Two new tests cover the gate and the cascade-skip.
  • Patch changeset appropriate for a conformance applicability fix; no static/schemas/source/** or wire change.

No high-risk flag, no gated paths, no author team gate, no prior decision. Falls through to row 9.

@bokelley
bokelley merged commit a740dd9 into 3.1.x Nov 9, 2026
12 checks passed
@bokelley
bokelley deleted the backport/3.1.x-product-signal-targeting-gate branch November 9, 2026 12:54
aymeric45 pushed a commit to aymeric45/adcp that referenced this pull request Nov 11, 2026
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]>
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