Skip to content

fix: load sandbox brands from SDK, simplify training agent rights#2165

Merged
bokelley merged 2 commits into
mainfrom
bokelley/fix-test-agent-508
Apr 15, 2026
Merged

fix: load sandbox brands from SDK, simplify training agent rights#2165
bokelley merged 2 commits into
mainfrom
bokelley/fix-test-agent-508

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Replace hardcoded ADVERTISER_BRANDS with getSandboxBrands() from @adcp/client — new sandbox brands added to the SDK appear in the training agent automatically
  • Simplify rights handlers to talent-only (remove session state, brand-level rights offerings)
  • Restore campaign.description null guard in acquire_rights
  • Restore uses.length > 0 guard in get_rights (empty array was filtering out all results)
  • Add rights_id validation to creative_approval (must match a known offering)
  • Fix dry_run type errors from SDK bump (removed from ComplyOptions/StoryboardRunOptions)
  • Update creative_template storyboard test for new 4-phase structure
  • Make TestKit.brand and TestKit.assets optional

Bump @adcp/client from 4.26.2 to 4.30.1.

Partially addresses adcontextprotocol/adcp-client#508 (items 2-4).

Test plan

  • 599 unit tests pass
  • TypeScript compiles clean
  • All 5 sandbox brands load (acme_outdoor, nova_motors, bistro_oranje, osei_natural, summit_foods)
  • Authorized fields returned for sandbox brands
  • creative_approval rejects unknown rights_id
  • CI passes

🤖 Generated with Claude Code

bokelley and others added 2 commits April 15, 2026 06:26
…ights (#508)

Replace hardcoded advertiser brands with getSandboxBrands() from the SDK.
Simplify rights handlers to talent-only (remove session state, brand-level
rights offerings). Restore input guards on acquire_rights and get_rights.
Fix creative_approval to validate rights_id against known offerings.

Bump @adcp/client to 4.30.1. Remove dry_run from ComplyOptions and
StoryboardRunOptions call sites (removed upstream in SDK).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Keep our getSandboxBrands() loading, stateless rights handlers, and
dry_run removal. Take main's package.json versions with @adcp/client bump.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bokelley bokelley merged commit b891973 into main Apr 15, 2026
13 checks passed
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