Repository navigation
compliance(media-buy): canonical_formats direct selector carries max_file_size_kb - #7791
Conversation
…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.
There was a problem hiding this comment.
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.
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_selectorincanonical_formatscannot pass for any seller.canonical_formats_mrec_display's image declaration constrainsparams.max_file_size_kb: 200, but the step's direct selector sends onlyformat_kind: "image"withparams: {width: 300, height: 250}. The runner'scanonical_format_satisfactioncheck reportslocal_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 againstexpected: {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: 200and 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_emissionalso carries aformat_idsentry, so the runner satisfies it through the legacy normalization route. Changeset:adcontextprotocolpatch.Verification
Graded
main's four non-guaranteed storyboards against asales-non-guaranteedseller with@adcp/sdk14.0.0-rc.53: this step is the only failure (30 pass / 1 fail / 10 skipped), with theactualquoted above. The3.1.xcanonical_formatshas no direct-selector step, so no backport is needed.