Skip to content

feat: add buying_mode to get_products for explicit wholesale buying - #1165

Merged
bokelley merged 2 commits into
mainfrom
bokelley/wholesale-buying-mode-v2
Feb 23, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/wholesale-buying-mode-v2

Conversation

@bokelley

@bokelley bokelley commented Feb 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds buying_mode: "brief" | "wholesale" to the get_products request schema (source, dist/latest, skills)
  • Documents the wholesale buying mode in brief-expectations.mdx and the task reference
  • Updates Standard Catalog Discovery example to use explicit buying_mode: "wholesale"

Problem

Previously, a buyer wanting raw inventory without publisher curation had to omit the brief field. This was ambiguous — silence could mean wholesale intent, early exploration, or simply a forgotten brief. Publishers couldn't distinguish between them.

Design

buying_mode is mutually exclusive with brief:

buying_mode: "brief" (default) buying_mode: "wholesale"
Brief required Yes No (error if provided)
Publisher curates Yes, via AI/LLM No
Proposals returned Yes No
Targeting Publisher-managed Buyer-managed (e.g. AXE)

When buying_mode is absent and a brief is provided, behavior is unchanged. The field only needs to be set explicitly for wholesale.

Test plan

  • Schema validates (passes existing test suite)
  • Publisher implementations should treat buying_mode: "wholesale" + brief together as an error
  • Publisher implementations should skip curation and omit proposals when buying_mode: "wholesale"

🤖 Generated with Claude Code

…ying

Adds buying_mode: "brief" | "wholesale" to the get_products request schema.

Previously, a buyer wanting raw inventory without publisher curation had to
omit the brief, which was ambiguous — it could mean wholesale intent, catalog
exploration, or a forgotten brief. buying_mode makes the intent explicit.

When buying_mode is "wholesale":
- Publisher returns products supporting buyer-directed targeting
- No AI curation or personalization is applied
- No proposals are returned
- brief must not be provided (mutually exclusive)

Buyers with their own audience stacks (DMPs, CDPs, AXE integrations) can now
clearly declare they want vanilla inventory and will handle targeting themselves.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@bokelley
bokelley force-pushed the bokelley/wholesale-buying-mode-v2 branch from cfdb1c5 to 427bdc8 Compare February 22, 2026 21:30
`buying_mode` is now required on all `get_products` requests. The schema
enforces a discriminated union: `"brief"` mode requires a `brief` field,
`"wholesale"` mode forbids it.

Bumped changeset to major since this is a breaking change — existing
requests without `buying_mode` will no longer validate.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@bokelley
bokelley merged commit 4c33b99 into main Feb 23, 2026
7 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