Repository navigation
fix(testing): prepare bids for all auction pricing models - #3525
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean diff, no blocking or medium findings.
Extends storyboard bid synthesis from CPM-only to all 8 auction-capable pricing models. The AUCTION_PRICING_MODELS set matches the generated schema exactly (cpm/vcpm/cpc/cpcv/cpv/cpp/flat_rate/time permit optional fixed_price; cpa requires it and revenue_share is contingent — both correctly excluded, no spec drift). Floor handling is fail-closed (invalid/negative/non-finite floors skip via continue), zero floors preserved, sub-cent floors protected via Math.max, and authored bids/policies/caller overrides stay authoritative. Comprehensive new tests cover all branches with immutability assertions. Patch changeset present and correctly scoped (test-harness utility, no exported API or wire-shape change).
Gate checks: no no-auto-approve team match; gated_paths false; high_risk false; first review. No critical/high/medium findings, so rows 1–8 do not fire — falls through to row 9 (approve). review_decision REVIEW_REQUIRED does not block since gated_paths is false.
Storyboard requests can select an auction CPC offer in a later package yet omit its required bid, even when discovery returned the exact product and floor. For example, a CPM floor of 10 received bid 15 while a second CPC floor of 0.8 received no bid.
Recognize the eight pricing models whose published schemas permit auction offers, preserving fixed and contingent offers, authored bids, bidding policies and caller request overrides. Preserve zero floors and prevent cent rounding from falling below valid sub-cent floors.
Validation: full build and normal pre-push formatting/typecheck/build passed; 119 focused request-builder and runner tests passed, including all auction models, later-product CPC, fixed/contingent controls, zero/absent/sub-cent floors and overrides. Both protocol and SDK experts reviewed the change; an independent focused run also passed 119/119. Includes a patch changeset.
The stable backport also passed both original native-catalog HTTP witnesses over the official MCP client with AdCP 3.1.30 schemas: delivery_reporting and creative_generative/seller each created packages with CPM bid 15 and CPC bid 1.2, passing their authored validations.