Skip to content

fix(testing): backport specialized seller discovery checks to SDK 15.9 - #3516

Merged
bokelley merged 17 commits into
15.9.xfrom
backport/15.9-discovery-filter-invariants
Oct 30, 2026
Merged

bokelley merged 17 commits into
15.9.xfrom
backport/15.9-discovery-filter-invariants

Conversation

@bokelley

@bokelley bokelley commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Sellers that offer auction prices, account-currency conversion, or legacy creative declarations should be tested against their effective discovery responses. This maintenance backport validates currency and required-metric filters for every returned product, respects negotiated creative capabilities, and supports explicit complete wholesale reads when a storyboard needs products or advisories beyond page one.

Depends on #3514 and #3515. Do not merge until both main PRs have passed review and CI and merged. Hold the SDK 15.9 release until this complete backport is approved and green, so the next 15.9 patch includes both changes together.

The pagination port retains 15.9 fixture-resolution behavior and excludes unrelated main features. Each physical page receives schema and invariant checks; logical products and advisories cover the final stable enumeration, including after the response-evidence retention limit. Optional unsupported metric declarations remain optional without filters. A schema-allowed unrelated data extension cannot hide actual top-level products from either invariant. Empty currency matches and unverifiable custom charges remain explicit coverage gaps rather than false failures.

Validation:

  • Full TypeScript typecheck and library build passed.
  • 294 focused tests passed across discovery currency/metrics, default invariants, fixture resolution, controller seeding, and wholesale page collection.
  • Includes the official SDK MCP transport on AdCP 3.1.29 with legacy-only format_ids, native USD pricing, and a product on page two.
  • Includes all-product/all-option currency leaks, compulsory versus optional signal charges, account FX, vendor pin matching, page 17 advisories, and feed-restart evidence.
  • Changed-file formatting and git diff checks passed; ESLint reported zero errors.
  • Package audit passed at 19.6 MiB packed, 107.0 MiB unpacked, and 6,582 files. File-count allowance covers exactly three dual-format module sets and the collection guide; all byte caps remain unchanged.

@bokelley
bokelley marked this pull request as ready for review October 30, 2026 00:50

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve.

Reviewed all 18 files: two new default-on discovery invariants (pricing-currency, required-metric), the bounded unkeyed wholesale page collector, runner integration preserving logical-vs-physical evidence, loader guards, types, and ~1,900 lines of tests (restarts, retention budget, safety limits, auth/key refusal, official-SDK transport, 3.1/3.2 schema negotiation). The design is witness-preserving: logical_response is explicitly labelled, response/response_record keep actual physical pages, idempotency-key reads are refused fail-closed, and collection is bounded (3 restarts / 1000 pages / 100k products/errors) honoring the abort signal per iteration.

Medium findings

  • src/lib/testing/storyboard/pricing-currency-filter.ts:141 — Default-on media pricing_currency check assumes prune, not eligibility; confirm DR-0001 normative basis to avoid false-positive grades on compliant sellers.

Non-blocking note: both changesets are patch though the PR adds new public exports and a collect_product_pages step field — conventionally minor, not a shape removal/required-param flip, so not a changeset-impact violation under this repo's rules. ValidationResult.request/response widened to nullable.

Single medium finding, no blocking issues, no escalation triggers (high_risk false, gated_paths false, no team gate). Falls through to row 9 — approve.

Medium findings

  • src/lib/testing/storyboard/pricing-currency-filter.ts:141 — Default-on media pricing_currency check assumes prune, not eligibility

@bokelley
bokelley merged commit 3ee98d8 into 15.9.x Oct 30, 2026
43 checks passed
@bokelley
bokelley deleted the backport/15.9-discovery-filter-invariants branch October 30, 2026 01:51
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