Skip to content

fix(compliance): use media-buy schema for creative format pagination - #7173

Merged
bokelley merged 1 commit into
3.1.xfrom
backport/3.1.x-creative-formats-schema-ref
Sep 2, 2026
Merged

bokelley merged 1 commit into
3.1.xfrom
backport/3.1.x-creative-formats-schema-ref

Conversation

@bokelley

@bokelley bokelley commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • anchor both universal creative-format pagination requests to the media-buy request schema
  • preserve the existing response schema, sample payloads, and pagination assertions
  • avoid spurious input_schema_field_stripped notices for media-buy agents

Closes #7143

Verification

  • npm run build:compliance
  • npm run test:storyboard-sample-request-schema
  • npm run test:compliance-source-authority
  • npm run test:pagination-invariant
  • npm run test:storyboard-doc-parity
  • node scripts/check-changeset-protocol-scope.cjs origin/3.1.x
  • npx --yes @changesets/cli@^3.0.0 status --since=origin/3.1.x

@bokelley
bokelley requested a review from a team as a code owner September 2, 2026 12:26
follow-up step.
task: list_creative_formats
schema_ref: "creative/list-creative-formats-request.json"
schema_ref: "media-buy/list-creative-formats-request.json"

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.

Medium: This diverges from the corpus convention for list_creative_formats. Every other storyboard — including the media-buy protocol (protocols/media-buy/index.yaml:365), media-buy scenarios, and the sales specialisms (sales-catalog-driven, sales-broadcast-tv, sales-proposal-mode) — anchors this task to creative/list-creative-formats-request.json. Nothing in static/compliance/source/** references media-buy/list-creative-formats-request.json; this PR makes it the sole use, and only for the request. runner-output-contract.yaml:1140 also names creative/list-creative-formats-request.json as the notice's spec_source.

Two concrete consequences:

  1. Cross-family split. Request now resolves to media-buy/, while response_schema_ref (L178) and doc_ref (L179) stay creative/. A media-buy/list-creative-formats-response.json exists — switching only the request leaves the step referencing two schema families for one task.
  2. account is no longer modeled. The sample_request sends account.account_id (L192) to point at the seeded sandbox account. The creative schema defines account; the media-buy schema does not — so under the new ref account survives only via additionalProperties: true. The swap silences the input_schema_field_stripped notice without the referenced schema actually modeling the field the storyboard sends.

If the goal is a media-buy-agent target, switch request and response to media-buy/ and confirm the scoping story; otherwise keep creative/ and address the spurious notice at the notice's spec_source mapping.

that invites callers to follow it past the end of results.
task: list_creative_formats
schema_ref: "creative/list-creative-formats-request.json"
schema_ref: "media-buy/list-creative-formats-request.json"

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.

Medium: Same divergence as L177 — request anchored to media-buy/list-creative-formats-request.json while response_schema_ref (L229) and doc_ref (L230) stay creative/, and the sample's account.account_id (L240) is not modeled by the media-buy request schema. Resolve both steps together.

@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 — two-line compliance-source change plus patch changeset swapping the list_creative_formats request schema_ref in the universal pagination storyboard.

No blocking findings. One non-blocking Medium was noted inline (L177/L228): the swap to media-buy/ diverges from the corpus convention (other storyboards use creative/list-creative-formats-request.json) and splits the step across schema families, leaving the sample's account field un-modeled. Reviewer verified the sample still validates against both schemas.

Decision trace: no critical/high findings (row 1 no); gated_paths false (row 2 no); high_risk false (rows 3/5 no); no medium data-loss/schema/infra findings in the findings list (row 4 no — the single medium is a convention/coverage concern, not a blocking schema break); no prior escalation (row 6 no); no no-auto-approve team match (row 7 no); fewer than three medium findings (row 8 no). Falls through to row 9 → approve.

@bokelley
bokelley merged commit 301573a into 3.1.x Sep 2, 2026
11 checks passed
@bokelley
bokelley deleted the backport/3.1.x-creative-formats-schema-ref branch September 2, 2026 12:41
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