Skip to content

fix(compliance): make four media-buy storyboards runnable by non-guaranteed sellers - #7756

Merged
bokelley merged 1 commit into
mainfrom
fix/non-guaranteed-storyboard-fixtures
Sep 29, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/non-guaranteed-storyboard-fixtures

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Fixes #7754

Summary

canonical_formats, billing_finality_delivery, measurement_accountability, and vendor_metric_accountability seeded only delivery_type: "guaranteed" products. canonical_formats also filtered discovery on guaranteed. A seller that declares only sales-non-guaranteed correctly rejects create_media_buy with DELIVERY_MODE_NOT_SUPPORTED, so every step after the create cascaded to prerequisite_failed. None of the four grades guaranteed semantics. They check format declaration shapes, provisional-vs-final finality, required_metrics with missing_metrics, and vendor-metric commitments. So the fixtures move to non_guaranteed, the same precedent as #5703 and #5731 (option (a) from the issue, not a requires_capability gate).

  • Pricing stays fixed_price, which departs from the issue's suggestion of floor_price. measurement_accountability and vendor_metric_accountability filter discovery on is_fixed_price: true and assert pricing_options[0].fixed_price. None of the four create steps sends a bid. Floor-priced (auction) options need bid_price/bidding, which would change what these storyboards grade. The schema allows non_guaranteed with fixed_price, and many existing storyboards already use it.
  • is_guarantee_basis is kept. core/measurement-window.json defines it as the basis for "delivery guarantees, reconciliation, and invoicing" and does not condition it on delivery_type. The same applies to the measurement_terms (billing measurement variance, makegood credit) on the billing_finality_delivery create. They are reconciliation terms on a fixed-price buy, not delivery guarantees.
  • measurement_accountability's fixture now declares reporting_capabilities.available_metrics (impressions, completed_views, spend). Before, the seeded product did not match its own required_metrics: ["completed_views"] filter, so discovery depended on the seller's own catalog.
  • Storyboard versions get a patch bump (canonical_formats 1.1.1, others 1.0.1). Patch changeset included. Test fixtures only; no schema changes, so this is allowed under the 3.2 freeze.

Testing

  • All test:storyboard-* and test:compliance-* lint suites pass, plus node --test tests/lint-storyboard-*.test.cjs (235/235), test:compliance-snippets, test:doc-compliance-drift, and build:compliance.

  • Ran the four storyboards against the training agent /sales tenant with the freshly built bundle. All had 0 failed steps:

    • canonical_formats: 22 passed, 2 skipped. Both skipped steps are on the existing known-failing SDK list.
    • billing_finality_delivery: 9 passed.
    • measurement_accountability: 7 passed.
    • vendor_metric_accountability: skipped as capability_unsupported. The training agent does not declare committed_metrics_supported, and this was already the case before this PR.
  • Non-guaranteed-only check. The training agent has no non-guaranteed-only tenant. I made a temporary local patch (not committed) that rejects creates on guaranteed products with DELIVERY_MODE_NOT_SUPPORTED and limits get_products to non-guaranteed products.

    Storyboard Before (main fixtures) After
    canonical_formats 1 failed / 16 skipped 22 passed, 0 failed
    billing_finality_delivery create fails with DELIVERY_MODE_NOT_SUPPORTED 9 passed, 0 failed
    measurement_accountability 1 failed 7 passed, 0 failed
    vendor_metric_accountability (capability forced on) fails at discovery discovery passes and the create is accepted

    With the capability forced on, vendor_metric_accountability still fails one check: the create response does not stamp committed_metrics.committed_at as the storyboard expects. That is a gap in the training agent, which is why it doesn't declare the capability. It is not caused by this fixture change.

  • A partial full /sales isolated run (40 of 161 storyboards) had no failures before I stopped it. CI runs the full matrix.

  • Commit and push used HUSKY=0, so the pre-push storyboard matrix was skipped locally and CI covers it.

Follow-ups

🤖 Generated with Claude Code

…anteed sellers

canonical_formats, billing_finality_delivery, measurement_accountability,
and vendor_metric_accountability seeded only guaranteed products, so a
seller declaring only sales-non-guaranteed correctly rejected
create_media_buy with DELIVERY_MODE_NOT_SUPPORTED and every later step
cascaded. None of them grades guaranteed semantics, so the fixtures (and
canonical_formats' discovery filters) move to non_guaranteed, following
#5703 and #5731. Pricing stays fixed_price because the create steps send
no bid. measurement_accountability's fixture now declares completed_views
so it matches its own required_metrics filter.

Fixes #7754

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 fixtures-only change.

This PR flips four media-buy compliance storyboards from guaranteed to non_guaranteed so non-guaranteed-only sellers stop cascading to prerequisite_failed. Verified:

  • All 13 guaranteed references in canonical_formats flipped with no orphaned assertions.
  • is_guarantee_basis retention is schema-valid; fixed_price/is_fixed_price and the new available_metrics set are internally consistent with their filters and delivery assertions.
  • The patch changeset is correct and in scope (compliance-asset change).

No schema (static/schemas/source/**) files were touched, so no schema↔docs coherence check applies. No oneOf discriminator changes. No released dist/** artifacts modified. No Critical, High, or Medium findings.

Gate checks: gated_paths is false, high_risk is false, no no-auto-approve team match, first review of this PR. Although review_decision is REVIEW_REQUIRED, row 2 only fires when gated_paths is true — it is false here, so no hard gate applies. With zero findings, none of decision-table rows 1–8 fire; falls through to row 9.

@bokelley
bokelley merged commit 6fd64c4 into main Sep 29, 2026
53 checks passed
@bokelley
bokelley deleted the fix/non-guaranteed-storyboard-fixtures branch September 29, 2026 17:36
bokelley added a commit that referenced this pull request Sep 29, 2026
…anteed sellers (3.1.x backport)

Backport of #7756 (cherry picked from commit 6fd64c4) onto the 3.1.x
versions of canonical_formats, billing_finality_delivery,
measurement_accountability, and vendor_metric_accountability. Fixture
products and canonical_formats' discovery filters move from guaranteed to
non_guaranteed so sellers declaring only sales-non-guaranteed no longer
fail create_media_buy with DELIVERY_MODE_NOT_SUPPORTED. Pricing stays
fixed_price because the create steps send no bid.
measurement_accountability's fixture declares completed_views so it
matches its own required_metrics filter. Storyboards bump 1.0.0 -> 1.0.1.
No 3.2-only fields, capabilities, or syntax are imported.

Refs #7754

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
bokelley added a commit that referenced this pull request Sep 29, 2026
…anteed sellers (3.1.x backport) (#7761)

Backport of #7756 (cherry picked from commit 6fd64c4) onto the 3.1.x
versions of canonical_formats, billing_finality_delivery,
measurement_accountability, and vendor_metric_accountability. Fixture
products and canonical_formats' discovery filters move from guaranteed to
non_guaranteed so sellers declaring only sales-non-guaranteed no longer
fail create_media_buy with DELIVERY_MODE_NOT_SUPPORTED. Pricing stays
fixed_price because the create steps send no bid.
measurement_accountability's fixture declares completed_views so it
matches its own required_metrics filter. Storyboards bump 1.0.0 -> 1.0.1.
No 3.2-only fields, capabilities, or syntax are imported.

Refs #7754

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@aao-release-bot aao-release-bot Bot mentioned this pull request Sep 29, 2026
bokelley added a commit that referenced this pull request Oct 8, 2026
* fix(compliance): make four media-buy storyboards runnable by non-guaranteed sellers (3.1.x backport) (#7761)

Backport of #7756 (cherry picked from commit 6fd64c4) onto the 3.1.x
versions of canonical_formats, billing_finality_delivery,
measurement_accountability, and vendor_metric_accountability. Fixture
products and canonical_formats' discovery filters move from guaranteed to
non_guaranteed so sellers declaring only sales-non-guaranteed no longer
fail create_media_buy with DELIVERY_MODE_NOT_SUPPORTED. Pricing stays
fixed_price because the create steps send no bid.
measurement_accountability's fixture declares completed_views so it
matches its own required_metrics filter. Storyboards bump 1.0.0 -> 1.0.1.
No 3.2-only fields, capabilities, or syntax are imported.

Refs #7754

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>

* compliance(media-buy): backport #7765 delivery_reporting to non_guaranteed fixtures (#7771)

* Version Packages (#7766)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(compliance): correct evaluator feature membership on 3.1 (#7916)

* fix(compliance): route 3.1 governance boards through the hosted buyer (#7964)

* fix(release): fence maintained 3.1 publication (#7983)

* fix(release): fence maintained 3.1 publication

* fix(release): bind publication reads to opened files

* fix(release): revalidate staged approval and CDN verification (#7987)

* Version Packages (#7971)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(deploy): omit unconfigured docs snapshots from runtime image

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: sujan kumar reddy challa <[email protected]>
Co-authored-by: aao-release-bot[bot] <280565558+aao-release-bot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bokelley added a commit that referenced this pull request Oct 8, 2026
* fix(compliance): make four media-buy storyboards runnable by non-guaranteed sellers (3.1.x backport) (#7761)

Backport of #7756 (cherry picked from commit 6fd64c4) onto the 3.1.x
versions of canonical_formats, billing_finality_delivery,
measurement_accountability, and vendor_metric_accountability. Fixture
products and canonical_formats' discovery filters move from guaranteed to
non_guaranteed so sellers declaring only sales-non-guaranteed no longer
fail create_media_buy with DELIVERY_MODE_NOT_SUPPORTED. Pricing stays
fixed_price because the create steps send no bid.
measurement_accountability's fixture declares completed_views so it
matches its own required_metrics filter. Storyboards bump 1.0.0 -> 1.0.1.
No 3.2-only fields, capabilities, or syntax are imported.

Refs #7754

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>

* compliance(media-buy): backport #7765 delivery_reporting to non_guaranteed fixtures (#7771)

* Version Packages (#7766)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(compliance): correct evaluator feature membership on 3.1 (#7916)

* fix(compliance): route 3.1 governance boards through the hosted buyer (#7964)

* fix(release): fence maintained 3.1 publication (#7983)

* fix(release): fence maintained 3.1 publication

* fix(release): bind publication reads to opened files

* fix(release): revalidate staged approval and CDN verification (#7987)

* Version Packages (#7971)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(schema): backport macro-bearing asset URLs to 3.1.x (#8004)

* Version Packages (#8007)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: sujan kumar reddy challa <[email protected]>
Co-authored-by: aao-release-bot[bot] <280565558+aao-release-bot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Four media-buy protocol storyboards are unrunnable by sales-non-guaranteed-only sellers (guaranteed-only fixtures, no applicability gate)

1 participant