Repository navigation
fix(testing): backport specialized seller discovery checks to SDK 15.9 - #3516
Conversation
There was a problem hiding this comment.
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
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
dataextension 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: