Add Deals Protocol for inventory package discovery and activation (formerly known as Curation Protocol) #218
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
This PR implements the complete Deals Protocol (renamed from Curation Protocol) to enable buyer agents to discover and activate pre-packaged and ad-hoc inventory deal packages from SSPs and curation platforms.
New Protocol: Deals Protocol
The Deals Protocol provides an alternative to the Media Buy Protocol for package-based buying, enabling:
Tasks Implemented
get_dealsdeal_specparameter (no filters, no deliver_to)platformsarray showing where they can be activatedactivate_dealCore Schemas Added
Data Models (
/static/schemas/v1/core/)deal.json: Deal package with platforms, pricing, targeting, statusdeal-pricing.json: Floor/Fixed/Market pricing with optional margins for curated dealsdeal-targeting.json: Geo, devices, allow/block lists, segments (can reference Signal IDs)Task Schemas (
/static/schemas/v1/deals/)get-deals-request.json: Natural language spec onlyget-deals-response.json: Returns deals array with platform availabilityactivate-deal-request.json: Deal ID + destination platformsactivate-deal-response.json: Atomic response with deployments or errorsArchitecture
Integration Flow:
Buyer Agent → Deals Agent → Signals Agent
(Deals Protocol) (Signals Protocol)
Documentation
/docs/deals/overview.mdx: User-friendly protocol introduction with use cases/docs/deals/specification.mdx: Complete RFC specification with task definitions and data modelsKey Design Decisions
get_deals: Natural language handles all filtering (no separate filters object)platformsarray showing where it can be activatedTesting
✅ All schema validation tests pass (111 schemas validated)
✅ All example data validation tests pass
✅ TypeScript type checking passes
Changeset
A changeset has been included for minor version bump automation.
🤖 Generated with Claude Code