Skip to content

fix(schema): title the get-content-standards-response oneOf arms - #7914

Open
arielagor wants to merge 1 commit into
adcontextprotocol:mainfrom
arielagor:fix/get-content-standards-response-arm-titles
Open

arielagor wants to merge 1 commit into
adcontextprotocol:mainfrom
arielagor:fix/get-content-standards-response-arm-titles

Conversation

@arielagor

@arielagor arielagor commented Oct 4, 2026 •

Copy link
Copy Markdown

Closes #7913.

Both oneOf arms of content-standards/get-content-standards-response.json have a description but no title, so code generators name them by position (GetContentStandardsResponse1, GetContentStandardsResponse2). The sibling update-content-standards-response.json and media-buy/create-media-buy-response.json already title their arms [Operation][Outcome].

Changes

  • static/schemas/source/content-standards/get-content-standards-response.json: add "title": "GetContentStandardsSuccess" to oneOf[0] and "title": "GetContentStandardsError" to oneOf[1], placed first in each arm as in update-content-standards-response.json.
  • Changeset (patch), as scoped in the triage comment.

title is an annotation keyword. No property, type, required set or validation rule changes, and nothing on the wire changes.

Downstream note: SDKs that already generated from this schema will see the generated names change from the positional ones to GetContentStandardsSuccess / GetContentStandardsError. For example, adcp-client-python currently aliases GetContentStandardsSuccessResponse to GetContentStandardsResponse1, so it would need its alias updated on the next schema sync.

Testing

Run locally on Node 24.21.0 (Windows):

  • npm run build:schemas: ok. Built dist/schemas/latest/content-standards/get-content-standards-response.json and its MCP projection both carry the two new arm titles. Generated dist/ output was not committed.
  • node tests/schema-validation.test.cjs: 35 of 35 passed.
  • npm run test:oneof-discriminators: ok, no new undiscriminated oneOf.
  • npm run test:json-schema: 287 passed, 0 failed.
  • npm run test:composed, npm run test:examples, npm run test:sdk-response-conformance: all passed.
  • npm run test:schema-utf8, npm run lint:schema-links: ok.
  • npm run typecheck: passed.
  • node scripts/check-changeset-protocol-scope.cjs origin/main: passed. changeset status reports a patch bump for adcontextprotocol.
  • node scripts/check-pr-title.cjs on this title: passed.

npm run test:schemas (aggregate), npm run test:mcp-schema-projection and npm run test:platform-agnostic fail on my Windows checkout, but they fail the same way on unmodified main (same failing test names), so I've treated them as local environment issues rather than something this change causes. CI on Linux is the authority there.

Dependencies were installed with --ignore-scripts, so the repo's pre-commit hooks did not run.

This change was written with Claude Code, and I reviewed and tested it before submitting.

🤖 Generated with Claude Code

Current-head cleanup (2026-10-11): all nine pending fork pull_request workflows were approved after reviewing the exact two-file title/changeset delta on 71585daac4139c5fc25f69ec4457f31a664f3043. Workflow approval is not source or human review approval.

Fresh CI exposed stale-base blockers: the publication check requires 3.2.3, docs navigation differs from the current 3.2.x surface, and the Python SDK preview job correctly rejects ADCP_SKIP_SIGNATURE for an audited signed release. These are recorded failures, not waived. A guarded native Update Branch attempt returned HTTP 403 (user doesn't have permission to update head repository), despite maintainer_can_modify being true; no source change or merge was performed. The fork author needs to refresh the branch from current main and obtain fresh CI.

The ladon/needs-human-review hold and Python SDK generated-model/alias coordination remain. No new PR was created; no title/wire-validation change beyond the existing candidate was introduced.

Both oneOf arms of content-standards/get-content-standards-response.json
carried a description but no title, so code generators fell back to
positional names (GetContentStandardsResponse1/2). Add
GetContentStandardsSuccess and GetContentStandardsError, matching the
[Operation][Outcome] convention used by update-content-standards-response
and create-media-buy-response. Annotation only: no wire, validation or
required-field change. Patch changeset included.

Closes adcontextprotocol#7913

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@aao-ipr-bot

aao-ipr-bot Bot commented Oct 4, 2026

Copy link
Copy Markdown

IPR Policy Agreement Required

@arielagor — thanks for the contribution. Before this PR can be merged, the AgenticAdvertising.Org IPR Policy requires your agreement.

To agree, post a new comment on this PR with the exact phrase:

I have read the IPR Policy

Your signature is recorded once and covers all contributions to AAO repositories. See signatures/README.md for what gets recorded and why.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 4, 2026

@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: Escalate to human review

Escalate — gated path requires human/CODEOWNERS approval.

This PR is an annotation-only change: it adds title to the two oneOf arms (GetContentStandardsSuccess/Error) of get-content-standards-response.json, matching the [Operation][Outcome] convention used by sibling responses. The reviewer found no wire/validation/required changes, the patch changeset is correct, and there are no oneOf-audit, docs-coherence, or dist-immutability concerns. No findings.

However, the diff modifies static/schemas/source/get-content-standards-response.json, which matches the gated glob static/schemas/source/** (gated_paths: true), and review_decision is REVIEW_REQUIRED — not APPROVED. Per decision rule row 2, this is a hard, non-overridable approval gate that cannot be satisfied by a clean diff alone.

Escalation reasons

  • static/schemas/source/content-standards/get-content-standards-response.json is under the hard approval gate (static/schemas/source/**); human/CODEOWNERS review is required before merge (review_decision is REVIEW_REQUIRED, not APPROVED).

The change itself appears low-risk and correct; once a human/CODEOWNERS approval lands, this should fall through to a normal approve.

Why human review

  • static/schemas/source/content-standards/get-content-standards-response.json matches the gated path static/schemas/source/** and review_decision is REVIEW_REQUIRED (not APPROVED) — human/CODEOWNERS approval required.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/content-standards/get-content-standards-response.json (modified) matches static/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

@aao-secretariat
aao-secretariat Bot requested a review from bokelley October 4, 2026 06:24
@arielagor

Copy link
Copy Markdown
Author

I have read the IPR Policy

@aao-ipr-bot

aao-ipr-bot Bot commented Oct 4, 2026

Copy link
Copy Markdown

IPR Policy — signed

Thanks, @arielagor. Your agreement to the IPR Policy is recorded at signatures/ipr-signatures.json and applies to all AAO repositories.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Both oneOf arms of get-content-standards-response carry no title, so generators name them by position

1 participant