Context
The training agent's get_brand_identity handler returns a custom BrandEntry format (flat object with brand_id, house object, names, industries, etc.). Real seller agents serve the actual brand.json schema — $schema, house (domain string), brands[] array with identity fields like name, voice, logos, colors, fonts.
The storyboard compliance tests in @adcp/client validate against the brand.json spec. Returning a non-standard shape means the training agent's responses don't match what a real agent would return.
What needs to happen
- Refactor
handleGetBrandIdentity to return brand.json format directly
- For sandbox brands loaded via
getSandboxBrands(), serve brand_json as-is (scoped by fields/authorization)
- For talent brands (Loti Entertainment), restructure seed data to match
brand.json format
- Update tests to assert
brand.json shape
Related
Context
The training agent's
get_brand_identityhandler returns a customBrandEntryformat (flat object withbrand_id,houseobject,names,industries, etc.). Real seller agents serve the actualbrand.jsonschema —$schema,house(domain string),brands[]array with identity fields likename,voice,logos,colors,fonts.The storyboard compliance tests in @adcp/client validate against the brand.json spec. Returning a non-standard shape means the training agent's responses don't match what a real agent would return.
What needs to happen
handleGetBrandIdentityto returnbrand.jsonformat directlygetSandboxBrands(), servebrand_jsonas-is (scoped by fields/authorization)brand.jsonformatbrand.jsonshapeRelated