Skip to content

fix(testing): backport auction pricing model bids - #3526

Merged
bokelley merged 1 commit into
15.9.xfrom
backport/15.9-storyboard-auction-model-bids
Oct 30, 2026
Merged

bokelley merged 1 commit into
15.9.xfrom
backport/15.9-storyboard-auction-model-bids

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

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.

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

@bokelley
bokelley merged commit 19d418e into 15.9.x Oct 30, 2026
41 checks passed
@bokelley
bokelley deleted the backport/15.9-storyboard-auction-model-bids branch October 30, 2026 04:12
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