Skip to content

compliance(media-buy): canonical_formats direct selector carries max_file_size_kb - #7791

Merged
bokelley merged 1 commit into
adcontextprotocol:mainfrom
fgranata:fix/canonical-direct-selector-max-file-size
Sep 30, 2026
Merged

bokelley merged 1 commit into
adcontextprotocol:mainfrom
fgranata:fix/canonical-direct-selector-max-file-size

Conversation

@fgranata

Copy link
Copy Markdown
Contributor

Follow-up to #7755 (closed as a duplicate of #7756), carrying the one change requested in review there that no merged PR includes.

Problem

create_media_buy_with_direct_canonical_selector in canonical_formats cannot pass for any seller. canonical_formats_mrec_display's image declaration constrains params.max_file_size_kb: 200, but the step's direct selector sends only format_kind: "image" with params: {width: 300, height: 250}. The runner's canonical_format_satisfaction check reports local_satisfied: false ("Under-specified selector: product constrains params.max_file_size_kb, but the request selector omits max_file_size_kb", bug_class: directionality) while the create itself is accepted, and the step fails against expected: {accepted: true, local_satisfied: true}.

Change

Exactly the diff requested in #7755 (comment) 's reply:

 format_kind: "image"
 params:
   width: 300
   height: 250
+  max_file_size_kb: 200

and the check description "Complete direct image dimensions satisfy the fixed canonical declaration" → "Complete direct image selector satisfies the fixed canonical declaration". No other step touched: create_media_buy_with_equivalent_direct_legacy_emission also carries a format_ids entry, so the runner satisfies it through the legacy normalization route. Changeset: adcontextprotocol patch.

Verification

Graded main's four non-guaranteed storyboards against a sales-non-guaranteed seller with @adcp/sdk 14.0.0-rc.53: this step is the only failure (30 pass / 1 fail / 10 skipped), with the actual quoted above. The 3.1.x canonical_formats has no direct-selector step, so no backport is needed.

…file_size_kb

The product's image declaration constrains max_file_size_kb: 200; the
direct canonical selector sent only width/height, so the runner's
canonical_format_satisfaction check reported local_satisfied: false
(directionality) and the step failed for every seller even when the create
was accepted. Add the constrained param to the selector and reword the check
description, as requested in review of adcontextprotocol#7755.

@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-fixture fix.

This PR makes a two-line change to a compliance scenario fixture: the direct canonical selector in create_media_buy_with_direct_canonical_selector now carries max_file_size_kb:200 to satisfy canonical_formats_mrec_display's constrained image declaration, plus an accurate "dimensions"→"selector" description reword. A correct adcontextprotocol patch changeset is included. No dist/** mutation, no wire/schema change, sibling steps untouched.

Checks applied: schema↔docs coherence (no schema source touched), changeset scope/type (correct patch changeset present), oneOf discriminator (no schema change), released-artifact immutability (no dist mutation). No blocking or medium findings.

Decision-table walk: no critical/high findings (row 1 n/a); gated_paths false (row 2 n/a); high_risk false, no deletions (rows 3-5 n/a); no prior decision (row 6 n/a); no no-auto-approve team match (row 7 n/a); zero medium findings (row 8 n/a) → row 9 approve. Note: review_decision is REVIEW_REQUIRED but gated_paths is false, so row 2 does not fire.

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.

2 participants