Repository navigation
fix(compliance): make buyer fixture products valid as legacy and canonical Products - #7811
Merged
Merged
Conversation
…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]>
Contributor
There was a problem hiding this comment.
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_publisherproduct valid as both legacy Product (core/product.json) and canonical Product (core/canonical-product.json) — addingname/description/publisher_properties/reporting_capabilities/format_options, correcting invalidrate→fixed_price, and dropping the canonical-undefinedaudience_activationblock with matching narrative/grading updates. - A new adversarial test is wired into
npm testenforcing dual-shape validity. - Changeset present, correct type (
patch), in-scope; nopackage.jsonversion hand-edit (only dependency/test wiring). - No
dist/**immutability impact — changes are understatic/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The buyer fixture publisher serves the same
fixtures.fixture_publisher.productsfromget_productsandlist_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:buyer_discoverydescription,publisher_properties,reporting_capabilitiesaudience_activation(not defined),pricing_options[].rate(not defined)buyer_activationnameand formatsname,ratebuyer_negotiationnameand formatsname,ratebuyer_recoverynameand formatsnamebuyer_activationalso grades creatives against "the product's format_options", which its products never declared.Change
format_options(300x250 image for display, 30s 1080p hosted video for CTV). The CTV price moves fromratetofixed_price.buyer_discoverydrops the per-productaudience_activationand 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.yamlstates the rule asproduct_shape_constraint. A newtests/buyer-fixture-products-schema.test.cjs(npm run test:storyboard-buyer-fixture-products, innpm test) validates every fixture product against both schemas, with a negative case for each shape.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