Skip to content

media_buy_seller/total_budget_redistribution: hard-coded USD in update_total_budget fails sellers that do not price in USD #8232

Closed

Description

@dasilvaidm

Summary

media_buy_seller/total_budget_redistribution (bundle 3.2.4) tests total_budget redistribution, not currency handling. Its update_total_budget step sends total_budget.currency: "USD" written into the storyboard. A seller that sells in another currency fails the storyboard even when its redistribution is correct.

Source (tag v3.2.4): dist/compliance/3.2.4/domains/media-buy/scenarios/total_budget_redistribution.yaml

  • Lines 50 and 55: the seeded pricing options are in USD.
  • Line 134 (update_total_budget) and line 191: currency: "USD" in the request.

Observed (heartbeat run 39678d17-bf02-4a14-9d89-9dcee0fdb3f8, SDK 15.8.1, agent https://idm.demo.briefable.ai/mcp)

  • The seller sells in EUR only. Its seeded products price in EUR, and create_fixed_buy commits the buy in EUR. That step passes, total_budget 100000 included.
  • update_total_budget sends total_budget {amount: 50000, currency: "USD"}.
  • The seller answers VALIDATION_ERROR on total_budget.currency: "USD" is not the currency of this media buy (EUR). An update cannot change the currency of a buy.
  • read_redistributed_budget then reads 100000 instead of 50000, as a consequence.

Suggested fix

  1. Capture currency from the create_media_buy response (context_outputs) and send total_budget.currency: "$context.currency" in update_total_budget and line 191. This keeps the test on redistribution.
  2. Or, if USD support is the intent, gate the storyboard on a declared currency so that a seller without USD grades it not_applicable.

Currency selection already has its own storyboard, media_buy_seller/pricing_currency_filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions