Repository navigation
fix(compliance): backport native_in_feed negotiation fixtures to 3.2 - #8706
Conversation
… (3.2.x backport) typed_proposal_negotiation and refine_frequency_cap_negotiation seeded products[2] with format_kind "native" and channels ["native"], neither of which is valid. Use native_in_feed with the params every format declaration requires, and the display channel. Both storyboard files now match main byte for byte. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean backport to 3.2.x of a compliance-fixture correction (2 storyboard YAMLs + 1 changeset, 57 lines).
Both fixtures swapped the invalid format_kind: "native" (absent from 3.2.x canonical-format-kind.json) for native_in_feed and added the params the product-format-declaration branch requires (title/body limits, 1200×627 main image), verified valid against formats/canonical/native_in_feed.json and _base.json. Channel ["native"] → ["display"] matches enums/channels.json. Patch changeset correctly scoped to static/compliance/source/**; released dist/** bundles untouched.
No schema-source edit (coherence N/A), no oneOf regression, no dist mutation, not Breaking-class. No Critical/High/Medium findings. No gated paths, no high-risk flag, no author-team gate.
Rows 1–8 do not fire; falls through to row 9.
Backports the fixture fix from #8705 to 3.2.x. I opened this before #8705 merged, so hold this PR until #8705 lands on main.
What
typed_proposal_negotiation.yamlandrefine_frequency_cap_negotiation.yaml(understatic/compliance/source/protocols/media-buy/scenarios/) seed a native product atfixtures.products[2]with two invalid values on 3.2.x:format_kind: "native": not in 3.2.x'score/canonical-format-kind.json, so the declaration matches nocore/product-format-declaration.jsonbranch. This is the same defect as on main, and gets the same fix:native_in_feed, plus theparamsevery format declaration requires (title_max_chars: 90,body_text_max_chars: 140,main_image_sizes: [{1200×627}]).channels: ["native"]: not a valid 3.2.x channel. fix(compliance): respect seller pricing and optional capabilities #8599 already changed this todisplayon main, but fix(compliance): respect seller pricing and optional capabilities #8599 wasn't backported to 3.2.x. Without this change the seeded product still failscore/product.json, so I included it. That one line in each file is the only part of this PR that fix(compliance): seed native negotiation fixtures with native_in_feed #8705 doesn't contain.Both storyboard files are now byte-identical to main's after #8705. No step asserts on the format kind or the channel, and the product's role in each storyboard is unchanged. See #8705 for why
native_in_feedis the right kind.The patch changeset covers the source compliance correction. Package version, SDK pin, schemas and published artifacts are unchanged. This PR doesn't include #8705's guard test; I ran it locally against this branch, and it passes.
Verification (after
npm ciwith the 3.2.x lockfile)format_optionsentry in both storyboards now validates as 3.2.xcore/product-format-declaration.json, and every pricing option ascore/pricing-option.json. The native product is missing only the sparse top-level fields that seeds leave to the seller's baseline. Before the channel change, it also failed/channels/0.tests/storyboard-fixture-discriminators.test.cjs, run locally against this tree, passes 5/5.build:complianceandbuild:compliance -- --checkpass.test:schemas,test:json-schema,test:oneof-discriminators,test:contractsandtest:immutable-release-artifactspass.test:storyboard-*lint passes.test:refine-finalize-validation-ids,test:compliance-packaged-refs,test:compliance-source-authorityandtest:pagination-invariantpass./sales/profiles/typed-negotiationwith this branch's built schemas.typed_proposal_negotiation: 20 passed, 1 skipped (revise_unsupported_dimension, N/A).refine_frequency_cap_negotiation: 6 passed, 1 failed. The failure isrevise_exceed_constraints, where the profile returnsrevisedinstead ofunable. On main the identical result occurs with the original fixture, so the failure predates this change; I didn't repeat that before/after comparison on 3.2.x. CI doesn't grade this storyboard.revise_include_non_participating, which includes the native product, passes.typecheck. I pushed withADCP_SKIP_STORYBOARD_MATRIX=1and skipped no other hooks.check-changeset-protocol-scope.cjs origin/3.2.xpasses, andchangeset status --since=origin/3.2.xreports a patch.🤖 Generated with Claude Code