Skip to content

fix(compliance): backport native_in_feed negotiation fixtures to 3.2 - #8706

Merged
bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-native-format-kind-fixtures
Nov 3, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-native-format-kind-fixtures

Conversation

@bokelley

@bokelley bokelley commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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.yaml and refine_frequency_cap_negotiation.yaml (under static/compliance/source/protocols/media-buy/scenarios/) seed a native product at fixtures.products[2] with two invalid values on 3.2.x:

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_feed is 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 ci with the 3.2.x lockfile)

  • Fixture schemas: every seeded format_options entry in both storyboards now validates as 3.2.x core/product-format-declaration.json, and every pricing option as core/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.
  • Discriminator guard: fix(compliance): seed native negotiation fixtures with native_in_feed #8705's tests/storyboard-fixture-discriminators.test.cjs, run locally against this tree, passes 5/5.
  • Build and storyboard tests:
    • build:compliance and build:compliance -- --check pass.
    • test:schemas, test:json-schema, test:oneof-discriminators, test:contracts and test:immutable-release-artifacts pass.
    • Every test:storyboard-* lint passes.
    • test:refine-finalize-validation-ids, test:compliance-packaged-refs, test:compliance-source-authority and test:pagination-invariant pass.
  • Training agent: I ran both storyboards against /sales/profiles/typed-negotiation with 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 is revise_exceed_constraints, where the profile returns revised instead of unable. 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.
  • Hooks: the normal pre-commit hook passed: root unit tests (74 files), the server unit suite (697 files) and typecheck. I pushed with ADCP_SKIP_STORYBOARD_MATRIX=1 and skipped no other hooks.
  • Changeset: patch. check-changeset-protocol-scope.cjs origin/3.2.x passes, and changeset status --since=origin/3.2.x reports a patch.

🤖 Generated with Claude Code

… (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]>

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

@bokelley
bokelley merged commit 241e5eb into 3.2.x Nov 3, 2026
62 of 64 checks passed
@bokelley
bokelley deleted the backport/3.2.x-native-format-kind-fixtures branch November 3, 2026 00:32
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.

1 participant