Repository navigation
feat: add buying_mode to get_products for explicit wholesale buying - #1165
Merged
Merged
Conversation
…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
force-pushed
the
bokelley/wholesale-buying-mode-v2
branch
from
February 22, 2026 21:30
cfdb1c5 to
427bdc8
Compare
`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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
buying_mode: "brief" | "wholesale"to theget_productsrequest schema (source, dist/latest, skills)brief-expectations.mdxand the task referencebuying_mode: "wholesale"Problem
Previously, a buyer wanting raw inventory without publisher curation had to omit the
brieffield. This was ambiguous — silence could mean wholesale intent, early exploration, or simply a forgotten brief. Publishers couldn't distinguish between them.Design
buying_modeis mutually exclusive withbrief:buying_mode: "brief"(default)buying_mode: "wholesale"When
buying_modeis absent and a brief is provided, behavior is unchanged. The field only needs to be set explicitly for wholesale.Test plan
buying_mode: "wholesale"+brieftogether as an errorbuying_mode: "wholesale"🤖 Generated with Claude Code