Commit 04966d7
* fix(examples): seller_agent.py passes AdCP 3.0.1 storyboard compliance (items 1–6 of #304)
Six gaps identified by the media_buy_seller storyboard runner after the #296
transport fix exposed content-side failures in the reference example:
1. declare `adcp.idempotency` in capabilities so the runner does not downgrade
to v2 mode (`idempotency={"supported": False}`)
2. include `total_budget` (schema-required number) in `get_media_buys` entries,
computed as the sum of per-package budgets
3. return `status=pending_creatives` from `create_media_buy` when no
`creative_assignments`/`creatives` are in the request packages, and
transition to `active` in `update_media_buy` when creatives are attached
4. fix `list_creative_formats` render shape: wrap width/height in a
`dimensions` object and add the required `role` field
5. honour the `format_ids` filter in `list_creative_formats`, matching on the
full `(agent_url, id)` pair
6. return `PACKAGE_NOT_FOUND` in `update_media_buy` when a package ID in the
update request does not exist in the stored media buy
Item 7 (seed_product / controller_detected) remains blocked on #282.
https://claude.ai/code/session_01HAP5upax2a7FrcrmgVwTX2
* fix(examples): align DemoStore.simulate_delivery reported_spend type with base class
The base TestControllerStore declares reported_spend as dict[str, Any] | None
(matching the ReportedSpend schema {amount, currency}). DemoStore had it as
float | None, causing type mismatch and incorrect stored structure when the
storyboard sends a structured object.
https://claude.ai/code/session_01HAP5upax2a7FrcrmgVwTX2
* fix(examples): explicitly pass valid_actions for pending_creatives status
MEDIA_BUY_STATE_MACHINE on main lacks the pending_creatives key (it lands with
PR #296). Without explicit valid_actions, media_buy_response() and
update_media_buy_response() return valid_actions=[] for pending_creatives buys,
blocking the storyboard from discovering that sync_creatives is available.
Pass the expected actions list explicitly until #296 merges.
https://claude.ai/code/session_01HAP5upax2a7FrcrmgVwTX2
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6be0232 commit 04966d7
1 file changed
Lines changed: 93 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
226 | 233 | | |
227 | 234 | | |
228 | | - | |
| 235 | + | |
229 | 236 | | |
230 | 237 | | |
231 | 238 | | |
232 | 239 | | |
233 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
234 | 246 | | |
235 | 247 | | |
236 | 248 | | |
237 | 249 | | |
238 | 250 | | |
239 | 251 | | |
240 | 252 | | |
| 253 | + | |
241 | 254 | | |
242 | 255 | | |
243 | 256 | | |
244 | 257 | | |
245 | 258 | | |
246 | 259 | | |
| 260 | + | |
247 | 261 | | |
248 | 262 | | |
249 | 263 | | |
| |||
257 | 271 | | |
258 | 272 | | |
259 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
260 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
261 | 293 | | |
262 | 294 | | |
263 | 295 | | |
| |||
269 | 301 | | |
270 | 302 | | |
271 | 303 | | |
272 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
273 | 312 | | |
274 | 313 | | |
275 | 314 | | |
276 | 315 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
298 | 321 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
318 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
319 | 365 | | |
320 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
321 | 369 | | |
322 | 370 | | |
323 | 371 | | |
| |||
414 | 462 | | |
415 | 463 | | |
416 | 464 | | |
417 | | - | |
| 465 | + | |
418 | 466 | | |
419 | 467 | | |
420 | 468 | | |
| |||
0 commit comments