You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(decisioning): ProductConfigStore lookup helper for create_media_buy (#498)
* feat(decisioning): ProductConfigStore lookup helper for create_media_buy
Adds a pluggable ProductConfigStore Protocol that the framework calls
before invoking SalesPlatform.create_media_buy, injecting seller-side
per-product implementation configs as a configs= kwarg. Adopters who
don't wire a store or don't declare configs in their signature see no
change (fully backward-compatible). Closes#497.
https://claude.ai/code/session_01WS8EChCkSo6diBNgbXBMM1
* fix(decisioning): stable product_id ordering, extra_kwargs TypeError diagnostic, test warning scope
- dict.fromkeys() instead of set comprehension in handler.py for stable
insertion-order deduplication of product_ids before store lookup
- targeted TypeError diagnostic branch in dispatch.py so extra_kwargs
signature drift surfaces as INVALID_REQUEST rather than INTERNAL_ERROR
- move warnings.catch_warnings() to wrap _make_handler() construction in
test_no_store_wired_adopter_gets_empty_configs (warning fires at init,
not at call time)
https://claude.ai/code/session_01WS8EChCkSo6diBNgbXBMM1
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments