Skip to content

docs(creative): require format_option_ref for repeated format_kind - #8876

Merged
bokelley merged 2 commits into
adcontextprotocol:mainfrom
Synaeve:docs/8625-format-option-ref-required
Nov 24, 2026
Merged

bokelley merged 2 commits into
adcontextprotocol:mainfrom
Synaeve:docs/8625-format-option-ref-required

Conversation

@Synaeve

@Synaeve Synaeve commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #8625

Problem

The normative routing rule in canonical-formats.mdx requires format_option_ref when a product carries two or more declarations with the manifest's format_kind. Step 1 of creative-manifests.mdx § Validation ("select the unambiguous compatible format_kind declaration") can be read as counting only the declarations the manifest's assets fit. The two readings give opposite answers for the same manifest, so two conforming sellers can disagree.

Changes

Wording from the issue, with no change to the rule the schemas already state (core/creative-manifest.json format_option_ref, core/product-format-declaration.json format_option_id).

docs/creative/creative-manifests.mdx § Validation

  • Step 1: without format_option_ref, the product must carry exactly one declaration with the manifest's format_kind. With two or more, the seller rejects the manifest for the missing ref, even if its assets satisfy only one of them.

docs/creative/canonical-formats.mdx routing rule

  • After the REQUIRED bullet: the rule holds however many declarations the assets would satisfy, and a seller MUST NOT infer the option from which declaration the assets fit.

static/compliance/source/protocols/media-buy/scenarios/canonical_formats.yaml (1.1.1 → 1.2.0)

  • New phase canonical_manifest_routing, gated on media_buy.features.inline_creative_management and independent of earlier phases (depends_on: []). It seeds a product with two image declarations (300x250 and 728x90) and reads it back. It then sends the same inline 300x250 image manifest on create_media_buy, with no package format selector: with format_option_ref naming the 300x250 option the buy is accepted, and without it the seller must reject the request (VALIDATION_ERROR, INVALID_REQUEST or CREATIVE_VALIDATION_FAILED_GENERIC). The rejection probe uses enrich_request: true, so it reaches format routing instead of failing on a missing auction bid.

Tests

  • tests/canonical-compatibility-slices.test.cjs: the routing phase runs against a fake seller. A conforming seller passes. A seller that infers the option from asset fit fails only the rejection step. A seller that rejects every inline creative fails the control, and the rejection step is skipped, not passed. A seller without inline creatives grades not_applicable, with no seeding.
  • Against the training agent, with fixture_resolution bypassed in a local bundle copy: canonical_formats ✓ 23P / 2S (the existing known-failing skips). CI's /sales run is unchanged: the scenario's fixture resolution is a coverage gap there, so these steps don't execute.
  • Patch changeset canonical-formats-repeated-kind-manifest-ref.md covers the clarified rule and the new phase.

🤖 Generated with Claude Code

creative-manifests
- validation step 1 follows the canonical-formats routing rule

canonical-formats
- sellers must not infer the option from which declaration the assets fit

Closes adcontextprotocol#8625
@mintlify

mintlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 64286a9.

Approve preview

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Comment (human reviewer recommended)

Comment — normative clarification warrants a human eye, no blocking findings.

This is a clean docs-only change (26 lines across two files) that tightens the same rule in both: when a product's format_options holds two or more declarations sharing a format_kind, format_option_ref is REQUIRED and the seller MUST reject a manifest lacking it rather than infer the intended option (canonical-formats.mdx:1328, creative-manifests.mdx:114). The two edits are mutually coherent, consistent with the existing corpus (sync_creatives.mdx:289, display.mdx:130, formats.mdx:99), and align with the fail-closed / no-fallbacks principle. No schema under static/schemas/source/** is touched, so there is no wire-shape change and no schema↔docs drift; no changeset is required (the files sit under docs/creative/**, outside the docs/reference/** changeset gate).

No critical, high, or medium findings were reported, so rows 1–8 of the decision table do not fire on finding severity, and there is no gated-path, high-risk, deletion, or team-gate trigger. Row 9 would otherwise approve.

However, this edit introduces a new normative MUST (sellers MUST reject rather than infer). The hard gate on Breaking-class changes applies only to breaking-class work; a non-breaking Normative clarification proceeds normally and does not force escalation. But review_decision is REVIEW_REQUIRED, and whether this tightening qualifies as a purely editorial clarification of a previously-ambiguous rule — versus adding a genuinely new normative requirement that some conformant implementation might not already satisfy — is a judgment that belongs to a human ratifier, not an auto-merge. I am surfacing this as a comment rather than approving so a maintainer confirms the clarification reflects settled intent (and, if controlling, cites any relevant governance/decisions/ record) before merge.

No blocking findings. Recommend a maintainer ratify the normative wording, then merge.

…_ref

canonical_formats storyboard
- add canonical_manifest_routing phase, gated on inline_creative_management
- seed a product with two image declarations and read it back
- accept an inline manifest naming its option, reject the same one without it
- bump storyboard version to 1.2.0

tests
- cover the routing phase against conforming and asset-fit-inferring sellers
- keep the routing phase out of the pricing and discovery slices

changeset
- patch changeset for the clarified rule and the new phase

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve.

Reviewer found no critical, high, or medium findings. Walking the decision table top-down:

  • Row 1 (critical/high): no such findings.
  • Row 2 (gated_paths && review_decision ≠ APPROVED): gated_paths is false, so this row does not fire despite review_decision: REVIEW_REQUIRED.
  • Row 3 (deleted high-risk): high_risk is false.
  • Rows 4–5 (medium + sensitive category / modified high-risk): no medium findings.
  • Row 6 (sticky escalation): prior decision was comment, not escalate; no fresh blocking findings anyway.
  • Row 7 (no-auto-approve team): no team match.
  • Row 8 (≥3 medium findings): zero medium findings.
  • Row 9: approve.

Checks confirmed clean: no static/schemas/source/** change (no schema↔docs drift, no oneOf regression), no dist/** modification, changeset present (patch) for the compliance-asset/normative-docs change, and the new canonical_manifest_routing phase is internally consistent. Base is main, not 3.1.x, so stable patch-eligibility constraints do not apply. The graded rejection has a normative MUST basis, satisfying DR-0001. The decision-class routing question is a human/arbiter policy matter, not a code defect. No breaking-class change identified, so the breaking-change hard gate does not trigger.

@bokelley
bokelley merged commit 3e559f2 into adcontextprotocol:main Nov 24, 2026
60 checks passed
KonstantinMirin added a commit to KonstantinMirin/adcp that referenced this pull request Nov 25, 2026
…, certification retry (adcontextprotocol#9196), release-audit changesets (adcontextprotocol#8879), reporting subscriber suspend and resume (adcontextprotocol#9199), inventory goal forecast refusal (adcontextprotocol#9206), enum hoisting annotations (adcontextprotocol#9167), format_option_ref (adcontextprotocol#8876), claim-priority indexes (adcontextprotocol#9219)

Two conflicts.

Resolution ledger:
- semantic: package.json `test` -> union: this branch's chain (the
  suites it added and the build-cache and git-env steps) plus main's
  test:build-schemas-hoist-enum-annotations and
  test:build-schemas-hoist-inside-definitions, after
  test:build-schemas-exit-status. Every script main's chain runs is in
  the merged chain. Dependencies auto-merged to main's versions.
- semantic: server/src/training-agent/gcs-reporting.ts imports -> union:
  this branch's narrow `@adcp/sdk/utils` import of canonicalize; main's
  randomUUID import and its added `@adcp/sdk/server` names. The rest of
  the file auto-merged.
- mechanical: package-lock.json -> main's (auto-merged; this branch
  does not change it).

Checks: npm ci on main's lockfile (SDK 17.0.0-beta.40), npm run
typecheck, and the pre-commit hook's full run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants