Skip to content

fix(testing): prepare bids for all auction pricing models - #3525

Merged
bokelley merged 1 commit into
mainfrom
fix/storyboard-auction-model-bids
Oct 30, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/storyboard-auction-model-bids

Conversation

@bokelley

@bokelley bokelley commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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.

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

@bokelley
bokelley merged commit 876c446 into main Oct 30, 2026
46 checks passed
@bokelley
bokelley deleted the fix/storyboard-auction-model-bids branch October 30, 2026 04:10
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