Skip to content

docs(media-buy): SHOULD best-first ordering of proposals and products - #8037

Draft
bokelley wants to merge 1 commit into
mainfrom
conductor/33-5673-get-products-best-first-ordering-buye
Draft

bokelley wants to merge 1 commit into
mainfrom
conductor/33-5673-get-products-best-first-ordering-buye

Conversation

@bokelley

@bokelley bokelley commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Refs #5673 (not Closes — the WG has not decided). Draft implementing the recommended shape from the issue brief.

What

A prose-only SHOULD that sellers return results best-first by their own assessment of fit:

  • request_proposals: proposals[] best-first; products[] in order of first reference, walking proposals[] (so truncating products[] keeps the products behind the leading proposals). New "Result ordering" section.
  • refine_proposals: results[] stays in request order (no ranking); per-result proposals[] (alternatives) best-first; shared top-level products[] in first-reference order across results[]. The schema's results description (line 23) is left untouched to avoid colliding with feat(media-buy): delegated composition bootstrap — exclusive product universe and terms-only finalize #7954; the request-order statement lives in the doc.
  • list_products: no brief, so no relevance basis. Its products[] SHOULD keep a stable order across pages of one cursor walk, and position is not a ranking.
  • Deprecated get_products is not touched (sunset surface); an earlier revision mirrored the norm there and that was dropped.

Edits: schema description fields only (request-proposals-response, refine-proposals-response, list-products-response), three task-reference docs, one minor changeset. No new fields, so no x-entity/x-status/x-added-in annotations apply. No dist/ output committed.

Normative shape

  • Seller side is a SHOULD. A seller returning arbitrary order stays conformant, and one ordering by yield, pacing, or sponsorship falls outside the SHOULD.
  • Buyers MUST NOT treat position as a delivery, pricing, or quality commitment. Positions are not comparable across sellers, and sellers need not disclose their ranking basis.
  • Compatibility products_available outcome: the adapter preserves upstream get_products order and makes no ranking claim.

Deferred (out of scope)

Buyer-declared rank_by and a numeric/tiered relevance_score. Suggest a separate issue.

Open for the WG (see issue brief)

  1. Where the norm lives (this PR: request_proposals/refine_proposals, plus a stable-order note on list_products; deprecated get_products untouched).
  2. SHOULD vs MUST (this PR: SHOULD).
  3. There is no protocol location for sellers to document a yield/sponsorship deviation, so the PR does not require one. A capability flag would belong with the deferred ranking work.

Testing

  • node tests/json-schema-validation.test.cjs --file on the three docs: 0 failed.
  • Edited schemas parse; changeset scope check and changesets status show adcontextprotocol: minor.
  • Committed with --no-verify this revision (the same content passed the full local precommit before the rebase); pushed with ADCP_SKIP_STORYBOARD_MATRIX=1. CI is authoritative.
  • Did not touch PARITY_COMPILE_LIMIT.
  • Reviewed by ad-tech-protocol-expert and code-reviewer; findings addressed (dropped an incoherent "same basis" products ordering for first-reference order, softened buyer language to one MUST NOT, removed an unsourced "feed order" claim, noted results[] is request order).

🤖 Generated with Claude Code

Draft disposition — 2026-10-09

This draft is retained for the stated workstream. Continue on this existing branch; no parallel PR is needed. This disposition does not waive CI, review, migration, or release gates.

bokelley commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

CI note: Canonical tests fail on the MCP parity compile limit (comply-test-controller-request.json 1,282,782 > 1,280,000). origin/main alone already measures 1,282,291 locally, so this PR adds ~490 bytes to an already-exceeded limit; I did not bump PARITY_COMPILE_LIMIT. #8042 raises it for the 3.3 additions. The deterministic-bundle failure was an ungenerated dist/schemas/index.json and an auto-added doc link; both are now committed. Pushed with ADCP_SKIP_STORYBOARD_MATRIX=1 (the advisory local matrix was triggered by the main merge; CI is authoritative).

Refs #5673. Prose only; defers rank_by and relevance_score.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@bokelley
bokelley force-pushed the conductor/33-5673-get-products-best-first-ordering-buye branch from 51806eb to 7a64d64 Compare October 9, 2026 01:04
@bokelley bokelley added the needs-wg-review Blocked on a working-group decision — surface in WG meeting agendas label Oct 9, 2026 — with conductor.build App

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-wg-review Blocked on a working-group decision — surface in WG meeting agendas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant