Skip to content

fix(compliance): support auction-only 3.1 sellers and optional features - #8603

Merged
bokelley merged 5 commits into
3.1.xfrom
backport/3.1.x-seller-compliance
Oct 30, 2026
Merged

bokelley merged 5 commits into
3.1.xfrom
backport/3.1.x-seller-compliance

Conversation

@bokelley

@bokelley bokelley commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Backports the seller compliance fixes from #8599 to AdCP 3.1. Auction-only sellers can complete pricing-independent discovery and purchase flows without fixed-rate or guaranteed inventory. Fixtures use valid channel values and auction CPM floors with valid bids.

Optional metric and canonical-format checks discover native support before preparing their positive fixtures. The 3.1 canonical slices require explicit canonical_creatives support; custom and experimental declarations have independent applicability. Currency checks use effective account pricing, accept valid empty results, and validate every returned pricing option across the full feed. Collected reads omit caller idempotency keys so cursor requests remain fresh.

The production SDK remains 9.6.2. Only the existing private test-runner package moves from SDK 17.0.0-beta.3 to the published 17.0.0-beta.8. Current seller manual scenarios use that modern runner; unrelated cohorts and frozen 3.0 checks retain SDK 9.6.2. The training agent now advertises stable 3.1, which it already serves, so a client configured for 3.1.30 no longer negotiates down to 3.0 and rejects valid inline product cards. The backport retains 3.1 account and governance contracts and reads immutable 3.1 schemas; it changes no task schemas, release versions, or published artifacts.

Validation: clean npm ci from the public registry; all 116 cases across the eight regression files passed against SDK 17.0.0-beta.8 without loader overrides. All 502 training-agent/tenant smoke tests and four runner-boundary/real-HTTP negotiation tests passed. Compliance authoring checks, the compliance build, and production typechecking passed. Normal commit hooks passed all 1,012 general tests, the 116 compliance cases, 4,401 server tests (3 existing skips), and production typechecking. Normal push hooks passed every current-source and frozen 3.0.26 tenant floor and required-clean gate; no floors or skip lists changed. Current seller coverage is 111 clean storyboards / 522 passing steps.

The public beta.8 bid helper derives bids from all supported auction models, including native CPC options. Two real MCP witnesses pass the authored create validators against the frozen 3.1.30 schema, sending CPM 15 and CPC 1.2 from the returned floors. The full delivery-reporting scenario passes 11 steps with no failures; three existing viewed_seconds checks skip because that optional metric is not advertised. The regression suite runs sequentially and exits naturally after all 116 cases and cleanup complete. Optional capability cases are grouped into measurement, vendor, and canonical files to stay within the existing 30-second per-file limit; all 30 case names and callback bodies are unchanged.

Merge order: #8599 must land before this maintenance backport.


Open workspace in Conductor

@bokelley
bokelley requested a review from a team as a code owner October 30, 2026 04:13

@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 — backport of seller-compliance fixes to 3.1.x with 1 medium finding.

No critical/high findings. gated_paths is false; high_risk is false; no no-auto-approve team match; no prior decision. Only a single medium finding is present, which falls through to row 9 (approve) — 1–2 medium findings with no escalation trigger and no team gate do not block.

Medium findings

  • static/compliance/source/protocols/media-buy/scenarios/delivery_reporting.yaml:68 — Scenario converted to auction pricing but its two create_media_buy packages omit the bid_price the training-agent seller requires (task-handlers.ts:4689); outside the new bid-consistency test's coverage. Worth a developer pass before merge, but not blocking.

Version-negotiation change (CURRENT_ADCP_VERSION '3.1', SUPPORTED_RELEASE_VERSIONS addition) is coherent and well-tested; olv channel enum is correct; sdk-runner bump is test-only; new .cjs suites are sound.

Medium findings

  • static/compliance/source/protocols/media-buy/scenarios/delivery_reporting.yaml:68 — delivery_reporting converted to auction pricing but create packages omit required bid_price

@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 delta pass, no blocking or medium findings.

This is a subsequent review of a prior approve. The delta covers 6 trivial files: SDK pin bumped beta.7→beta.8 consistently across tests/sdk-runner/package.json, package-lock.json, README, and run-storyboards.ts; package.json swaps --test-force-exit to --test-concurrency=1 (serial execution, sound given prior replay-isolation work); test version constant 3.1-rc.15→3.1 now that 3.1 ships. No Medium-or-worse findings. The prior Medium (delivery_reporting.yaml:68) is out of this delta's scope and no Critical/High blockers ever existed.

Decision-table walk: no critical/high (row 1 n/a); gated_paths false (row 2 n/a) and review_decision is APPROVED regardless; high_risk false (rows 3/5 n/a); no medium findings (rows 4/8 n/a); prior decision was approve, not escalate (row 6 n/a); no no-auto-approve team match (row 7 n/a). Falls through to row 9 → approve.

@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.

No blocking findings. This PR is a pure test reorganization: the nativeProduct/prepare/featureSeeds fixtures are extracted verbatim into tests/helpers/optional-seller-capability-fixtures.cjs, and the combined optional-seller-capabilities.test.cjs is split into three per-scope files (measurement/vendor/canonical) with package.json wiring the new files into test:auction-only-compliance. Coverage parity verified — every per-scope loop iteration, standalone test, and the required_metric_filter loop lands in exactly one split file; extracted helpers are byte-identical; no behavior change, no protocol-surface edit, no coverage loss.

Gate checks: no no-auto-approve team match; gated_paths is false; high_risk is false; review_decision is APPROVED. No critical/high/medium findings. Rows 1–8 do not fire → row 9 approve. Prior decision was also approve.

@bokelley
bokelley merged commit eb9b943 into 3.1.x Oct 30, 2026
12 checks passed
@bokelley
bokelley deleted the backport/3.1.x-seller-compliance branch October 30, 2026 09:57
bokelley added a commit that referenced this pull request Nov 3, 2026
… storyboard (#8707)

#8603 removed is_fixed_price, the only filter on the inline-creatives
get_products_legacy_format step, so the step no longer carries a filters
object. The "legacy-only seller honouring format_kinds" case still
assigned filters.format_kinds onto it and threw a TypeError before the
runner started.

Add the filter to the request instead of assuming the object exists. The
case now also asserts that the authored probe does not already narrow
and that it found exactly one legacy discovery step, so the simulation
cannot pass vacuously. The mechanism assertions are unchanged.

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