Skip to content

fix(compliance): make buyer fixture products valid as legacy and canonical Products - #7811

Merged
bokelley merged 1 commit into
mainfrom
fix/buyer-discovery-canonical-fixture
Sep 30, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/buyer-discovery-canonical-fixture

Conversation

@bokelley

@bokelley bokelley commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The buyer fixture publisher serves the same fixtures.fixture_publisher.products from get_products and list_products (universal/buyer-fixture-publisher.yaml), so each product must be both a legacy Product (core/product.json) and a canonical Product (core/canonical-product.json). Every buyer storyboard declaring products failed both:

Storyboard Legacy Product Canonical Product
buyer_discovery missing description, publisher_properties, reporting_capabilities audience_activation (not defined), pricing_options[].rate (not defined)
buyer_activation also missing name and formats missing name, rate
buyer_negotiation also missing name and formats missing name, rate
buyer_recovery also missing name and formats missing name

buyer_activation also grades creatives against "the product's format_options", which its products never declared.

Change

  • Complete the four fixtures with fictional domains: name, description, publisher properties, reporting capabilities, and format_options (300x250 image for display, 30s 1080p hosted video for CTV). The CTV price moves from rate to fixed_price.
  • buyer_discovery drops the per-product audience_activation and its "notes audience_activation methods" expectation. No validation graded it, and the canonical Product has no per-product activation field; that field is deferred to 3.3 with its matching offer filter.
  • buyer-fixture-publisher.yaml states the rule as product_shape_constraint. A new tests/buyer-fixture-products-schema.test.cjs (npm run test:storyboard-buyer-fixture-products, in npm test) validates every fixture product against both schemas, with a negative case for each shape.
  • Patch storyboard version bumps and a patch changeset.

Verification

The new test passes and fails on the pre-fix fixtures. The storyboard lints (scoping, sample-request and response schema, validation paths, test kits, doc parity, fixture resolution, contradictions, lifecycle tools, source authority, packaged refs), build:compliance, the test-coverage guard, and the pre-commit server unit suite pass.

🤖 Generated with Claude Code


Open workspace in Conductor

…nical Products

The fixture publisher serves the same products from get_products and
list_products, but four buyer storyboards declared products that failed both
schemas. Complete them, state the rule in the fixture-publisher contract, and
enforce it with a test.

Co-Authored-By: Claude Opus 5.5 (1M context) <[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 compliance-fixture fix with no blocking or medium findings.

What I checked:

  • Reviewer reports no Critical/High/Medium findings.
  • The PR makes every buyer-storyboard fixture_publisher product valid as both legacy Product (core/product.json) and canonical Product (core/canonical-product.json) — adding name/description/publisher_properties/reporting_capabilities/format_options, correcting invalid rate → fixed_price, and dropping the canonical-undefined audience_activation block with matching narrative/grading updates.
  • A new adversarial test is wired into npm test enforcing dual-shape validity.
  • Changeset present, correct type (patch), in-scope; no package.json version hand-edit (only dependency/test wiring).
  • No dist/** immutability impact — changes are under static/compliance/source/**, not versioned artifacts.
  • No schema-source (static/schemas/source/**) changes, so no schema↔docs coherence or oneOf-discriminator concern.

Decision path: No critical/high findings (row 1 n/a). gated_paths: false (row 2 n/a) — note review_decision: REVIEW_REQUIRED only matters when gated_paths is true or a prose gate applies; this is a non-breaking compliance-fixture correction, not a Breaking-class protocol change. high_risk: false (rows 3, 5 n/a). No medium data-loss/schema/infra findings (row 4 n/a). No prior escalate (row 6 n/a). No no-auto-approve team match (row 7 n/a). Zero medium findings, so row 8 n/a. Falls through to row 9 → approve.

@bokelley
bokelley merged commit 3af5ca9 into main Sep 30, 2026
58 checks passed
@bokelley
bokelley deleted the fix/buyer-discovery-canonical-fixture branch September 30, 2026 17:11
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