Skip to content

fix(compliance): canonical_formats direct selector carries image_formats - #8161

Merged
bokelley merged 1 commit into
adcontextprotocol:mainfrom
sujanchalla0510:fix-8133-canonical-direct-selector-image-formats
Oct 13, 2026
Merged

bokelley merged 1 commit into
adcontextprotocol:mainfrom
sujanchalla0510:fix-8133-canonical-direct-selector-image-formats

Conversation

@sujanchalla0510

Copy link
Copy Markdown
Contributor

Fixes #8133.

Problem

The positive direct canonical selector in canonical_formats (create_media_buy_with_direct_canonical_selector) sent {width: 300, height: 250, max_file_size_kb: 200} against canonical_formats_mrec_display, whose image declaration also constrains image_formats: ["jpg", "png"]. The runner's canonical_format_satisfaction check classified the omitted constrained param as directionality (local_satisfied: false — "Under-specified selector: product constrains params.image_formats, but the request selector omits image_formats"), so the expected-positive step failed for every seller regardless of whether the create was accepted. This is the same defect class #7791 fixed for max_file_size_kb; image_formats was the remaining omission.

Change

  • static/compliance/source/protocols/media-buy/scenarios/canonical_formats.yaml: the direct selector now carries image_formats: ["jpg", "png"], matching the product's declared constraint.
  • Patch changeset (compliance assets are protocol surface).

No schema or wire change; the packaged dist/compliance/ cache is generated from this source.

Testing

  • Reproduced the reported check locally against the storyboard source: before the change the selector omitted image_formats (the exact validator error in compliance canonical_formats positive direct selector still omits constrained image_formats #8133); after the change it carries every constrained param (width, height, max_file_size_kb, image_formats) with the product's declared values.
  • YAML parses cleanly; node scripts/check-changeset-protocol-scope.cjs origin/main passes; PR title validated with scripts/check-pr-title.cjs.

@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 — clean compliance-scenario fix with correct changeset.

This PR adds image_formats: ["jpg", "png"] to the create_media_buy_with_direct_canonical_selector direct selector (canonical_formats.yaml:933) so the omitted param is no longer misclassified as local_satisfied: false by the runner's directionality check — matching the product's declared image constraint (L100). This is the same defect class (#7791) previously fixed for max_file_size_kb.

Checked:

  • Fix completeness: sibling positive steps resolve satisfaction via legacy format_ids / format_option_ref anchors, so only the direct-only step must carry every constrained param.
  • Changeset: patch changeset is correct — compliance source is protocol surface, no wire/schema change, dist/ untouched (immutable artifacts preserved).
  • No schema↔docs drift, no oneOf regression, no governance-precedent conflict.

No blocking or medium findings. gated_paths is false; high_risk is false; no no-auto-approve team match. Despite review_decision: REVIEW_REQUIRED, row 2 does not apply (gated_paths false). Falls through to row 9.

@bokelley
bokelley merged commit d5cfa11 into adcontextprotocol:main Oct 13, 2026
51 checks passed
bokelley added a commit that referenced this pull request Oct 13, 2026
sujanchalla0510 pushed a commit to sujanchalla0510/adcp that referenced this pull request Oct 18, 2026
Merge the published v3.2.5 maintenance release (tag v3.2.5,
3512882, the adcontextprotocol#8171 Version Packages
merge on 3.2.x) into main as a record-only merge.

The merge keeps main's tree (ours strategy) and adds only the 3.2.5
release records:

- dist/schemas/3.2.5/, dist/compliance/3.2.5/ and the signed
  dist/protocol/3.2.5.tgz{,.crt,.sha256,.sig} tuple, byte-identical to
  the tag.
- CHANGELOG.md: the 3.2.5 block, verbatim from the tag.
- static/compliance/published-versions.json: register 3.2.5, matching
  the 3.2.x manifest.
- dist/schemas/index.json and latest.json: regenerated by
  build:schemas; latest_stable, v3 and v3.2 now 3.2.5.

The 3.2.4..3.2.5 source changes (adcontextprotocol#8163, adcontextprotocol#8236) are already on main in
their main form (adcontextprotocol#8161, adcontextprotocol#8235), so no 3.2.x source is taken. The
second parent records that reconciliation so the next 3.2.x forward
merge does not re-conflict on it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.

compliance canonical_formats positive direct selector still omits constrained image_formats

2 participants