Repository navigation
fix(testing): backport auction pricing model bids - #3526
Merged
Merged
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean patch, no blocking or medium findings.
Checked:
- Auction-bid synthesis extended from cpm-only to the full auction-capable pricing set {cpm,vcpm,cpc,cpcv,cpv,cpp,flat_rate,time}, verified against schema PricingModelValues; correctly excludes cpa (requires fixed_price) and revenue_share (contingent). Witness-faithful.
- Floor hardening (request-builder.ts:49-53) handles zero floors, sub-cent floors (Math.max avoids rounding below floor), non-finite/negative/non-numeric floors skipped, overflow falls back to floor — all matched by tested vectors.
- Dropping string-floor coercion is strictly more witness-faithful.
- Changeset present and patch type correct for the wire impact.
No high-risk flag, no gated paths, no author team gate. Decision table falls through to row 9 (approve).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maintenance backport of #3525 for SDK 15.9.x. Merge after the main fix; publication remains held until the signed AdCP 3.1.31 corpus is included so customers receive one complete patch.
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; 112 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.
This 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.