Summary
Sales agents return format_ids on products from get_products, each referencing an agent_url and id. There is currently no storyboard that validates these references actually resolve to real formats on the declared creative agent. A sales agent can return a non-existent id, a wrong agent_url, or a stale format that has been removed — and nothing catches it until a buyer agent fails at sync_creatives time.
Proposed storyboard: media_buy_format_id_integrity
A new storyboard step (or addition to media_buy_seller) that:
- Calls
get_products on the sales agent
- Collects all
format_ids arrays across returned products
- Groups them by
agent_url
- For each unique
agent_url, calls list_creative_formats
- Asserts every referenced
id exists in the returned formats list
- Fails with a clear error naming the specific invalid
{ agent_url, id } combo
Why this matters
- Invalid format references are silent until
sync_creatives fails — which is after the media buy is already committed
- The
video_640x480 example above is a real case: the format doesn't exist on the reference creative agent but nothing catches it at product discovery time
- Stale format_ids are a common production issue when creative agents deprecate formats without sellers updating their product catalog
Scope
Two options for where this lives:
Option A: New standalone storyboard media_buy_format_id_integrity that only tests this. Easy to run in isolation.
Option B: Add as a step to the existing media_buy_seller storyboard between get_products and list_creative_formats. Runs automatically for all sellers.
Option B is preferred — this is a baseline correctness check that should run for every seller agent, not opt-in.
Affected files
storyboards/media_buy_seller.json (add step) OR storyboards/media_buy_format_id_integrity.json (new)
storyboards/README.md (update index)
Notes
- The storyboard runner may need to authenticate against third-party creative agent URLs — handle gracefully if the creative agent requires auth the runner doesn't have
- Should warn (not fail) if a creative agent URL is unreachable, since the sales agent may reference a buyer-deployed creative agent
Summary
Sales agents return
format_idson products fromget_products, each referencing anagent_urlandid. There is currently no storyboard that validates these references actually resolve to real formats on the declared creative agent. A sales agent can return a non-existentid, a wrongagent_url, or a stale format that has been removed — and nothing catches it until a buyer agent fails atsync_creativestime.Proposed storyboard:
media_buy_format_id_integrityA new storyboard step (or addition to
media_buy_seller) that:get_productson the sales agentformat_idsarrays across returned productsagent_urlagent_url, callslist_creative_formatsidexists in the returned formats list{ agent_url, id }comboWhy this matters
sync_creativesfails — which is after the media buy is already committedvideo_640x480example above is a real case: the format doesn't exist on the reference creative agent but nothing catches it at product discovery timeScope
Two options for where this lives:
Option A: New standalone storyboard
media_buy_format_id_integritythat only tests this. Easy to run in isolation.Option B: Add as a step to the existing
media_buy_sellerstoryboard betweenget_productsandlist_creative_formats. Runs automatically for all sellers.Option B is preferred — this is a baseline correctness check that should run for every seller agent, not opt-in.
Affected files
storyboards/media_buy_seller.json(add step) ORstoryboards/media_buy_format_id_integrity.json(new)storyboards/README.md(update index)Notes