Skip to content

feat(schema): mark every 4.0 removal and tie it to the compatibility registry - #8341

Merged
bokelley merged 4 commits into
mainfrom
bokelley/v4-schema-removal-sites
Oct 21, 2026
Merged

bokelley merged 4 commits into
mainfrom
bokelley/v4-schema-removal-sites

Conversation

@bokelley

@bokelley bokelley commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #8335 (issue #8332). It makes the 4.0 compatibility registry complete for schema removals, and makes it hard to drift from them.

What changes

  • Schema markers. The 41 deprecated nodes whose description says they are removed in 4.0 now carry "x-removed-in": "4.0.0". Three nodes already did. The change adds annotations only: no field, type or requirement changes.
  • Registry coverage. universal/v4-compatibility.yaml lists all 44 marked nodes exactly once, in one of two places:
    • a check's new schema_sites (format_ids_removed_in_4_0 → core/product.json#/properties/format_ids, major_versions_removed_in_4_0, legacy_hmac_fallback_removed_in_4_0), or
    • the new schema_removals_not_checked, grouped by change, with the tracking issue when one exists and the reason no check covers it yet.
  • Lint. scripts/lint-v4-compatibility-registry.cjs gains three rules:
    • schema_site_unlisted: a marked node is missing from the registry.
    • schema_site_invalid: a listed site isn't a marked node.
    • schema_site_duplicate: a site is listed more than once.
  • Schema test. tests/schema-deprecation-metadata.test.cjs requires the marker on every deprecated node described as "removed in/at 4.0", and requires deprecated: true wherever the marker appears. Two nodes are exempt because 4.0 drops only their required status, not the field (4.0: drop required: ["authentication"] from reporting-webhook and artifact_webhook #4288).
  • Runbook. .agents/shortcuts/cut-major.md gains a precondition: every x-removed-in: "<X>.0.0" node is gone and the compatibility checks are retired. The registry doubles as the removal checklist.
  • Docs. docs/reference/migration/v4-compatibility.mdx explains the marker and lists the seller-emitted removals that could be checked but aren't yet.

Together, marking a node for 4.0 removal now forces a recorded decision on whether a 3.x agent can be checked for it.

Not-checked groups worth a look

Most uncovered nodes are buyer-sent request fields, which a seller run can't observe. These are seller-emitted and could get advisory checks later:

  • flat valid_actions on create, update and get_media_buys, replaced by available_actions
  • response-wide delivery currency and aggregated_totals
  • media_buy.features.inline_creative_management
  • the format-level build and pricing surface that list_transformers / v1_format_ref replace

Several removal groups have no 4.0 tracking issue: format-level transformer surface, valid_actions, delivery rollups, inline_creative_management, plan_id, get_signals max_results, pagination.total, the property-list signature marker, tmpx, and the 3.1 projections. The registry records them without an issue number. File issues for them if the 4.0 milestone should be the full list.

Testing

  • node scripts/build-compliance.cjs --check passes, as does npm run build:schemas.
  • test:v4-compatibility-registry (19 tests), test:schemas, test:extension-schemas, test:docs-nav, test:doc-compliance-drift and test:compliance-snippets pass.
  • The pre-commit hook (full server unit suite and typecheck) passed. The first attempt hit the load-sensitive addie/matched-pair-ni/exact-inference.test.ts, which then passed alone and on retry.
  • The local storyboard matrix was skipped on push; CI is the gate.

🤖 Generated with Claude Code


Open workspace in Conductor

…registry

Mark the 41 deprecated schema nodes scheduled for removal in AdCP 4.0 with
"x-removed-in": "4.0.0", matching the 3 that already carried it (#8332).

The v4 compatibility registry now lists all 44 marked nodes exactly once:
under the check that covers it (schema_sites) or in
schema_removals_not_checked with the reason no check covers it yet. The
registry lint fails when a marked node is unlisted or a listed site is not
marked, and a schema test requires the marker on every deprecated node
described as removed in 4.0. Marking a node for removal now forces a
decision about whether a 3.x agent can be checked for it, and the registry
doubles as the removal checklist for the 4.0 cut.

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

Escalate — gated paths touched without required review approval.

This PR modifies files under hard approval gates (.agents/** and static/schemas/source/**) and review_decision is REVIEW_REQUIRED, not APPROVED. Per decision rule row 2, the outcome must be escalate until a human/CODEOWNERS approval satisfies the gate.

What was checked (clean on the merits): Annotation-only change adding x-removed-in: "4.0.0" to 41 deprecated schema nodes (44 total with 3 pre-existing), backed by a self-enforcing lint (checkSchemaSites), matching tests, registry entries, docs, and a patch changeset. Reviewer verified: registry counts sum correctly (3 checked + 41 not-checked = 44); the 3 pre-existing markers confirmed present in base; schema↔docs coherence holds; no field/type/required change (no wire break, no new oneOf); only static/schemas/source/** source touched, no dist/** artifact mutation. No Critical/High/Medium findings.

Escalation reasons:

  • Gated paths modified (.agents/shortcuts/cut-major.md plus 32 static/schemas/source/** files) and review_decision is REVIEW_REQUIRED — human/CODEOWNERS review required to satisfy the hard approval gate.

The diff is mechanically clean; the only barrier to merge is the required-review gate. Once review_decision becomes APPROVED, this PR would fall through to approve.

Why human review

  • Gated paths touched (.agents/shortcuts/cut-major.md and 32 static/schemas/source/** files) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required to satisfy the hard approval gate
  • This PR touches a path under a hard, non-overridable approval gate (.agents/shortcuts/cut-major.md (modified) matches .agents/**; static/schemas/source/brand/acquire-rights-request.json (modified) matches static/schemas/source/**; static/schemas/source/core/agent-notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/creative-filters.json (modified) matches static/schemas/source/**; static/schemas/source/core/format.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-features.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/package.json (modified) matches static/schemas/source/**; static/schemas/source/core/placement.json (modified) matches static/schemas/source/**; static/schemas/source/core/product-filters.json (modified) matches static/schemas/source/**; static/schemas/source/core/product.json (modified) matches static/schemas/source/**; static/schemas/source/core/push-notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/registry-event.json (modified) matches static/schemas/source/**; static/schemas/source/core/version-envelope.json (modified) matches static/schemas/source/**; static/schemas/source/creative/get-creative-delivery-response.json (modified) matches static/schemas/source/**; static/schemas/source/creative/list-creative-formats-request.json (modified) matches static/schemas/source/**; static/schemas/source/enums/auth-scheme.json (modified) matches static/schemas/source/**; static/schemas/source/error-details/version-unsupported.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/create-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/create-media-buy-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-media-buy-delivery-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-media-buys-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/list-creative-formats-request.json (modified) matches `static/schemas/sour

…(truncated)…

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 19, 2026
bokelley and others added 2 commits October 21, 2026 09:22
Resolve get-adcp-capabilities-response.json: keep main's reworded
legacy_hmac_fallback description and the x-removed-in marker.

Main's #8177 changed reporting_webhook.authentication and
create_media_buy.artifact_webhook.authentication from "4.0 drops the
requirement" to "deprecated and removed in AdCP 4.0", so they are real 4.0
removals now. Mark both with x-removed-in, list them in the legacy webhook
authentication group of the registry, and drop the test exemption that
covered the old wording. 46 nodes are now marked.

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

Escalate — gated paths touched and review_decision is not APPROVED; human/CODEOWNERS approval required.

Decision path: No critical/high/medium findings (row 1 N/A). Row 2 fires: gated_paths: true AND review_decision: REVIEW_REQUIRED (≠ APPROVED). The hard approval gate is not satisfied, so the outcome must be escalate regardless of how clean the diff is.

What was checked (clean pass): This PR is annotation-only — it marks 46 deprecated schema nodes with x-removed-in: "4.0.0", adds schema_sites/schema_removals_not_checked to universal/v4-compatibility.yaml, three lint rules, a schema test, docs, a correct patch changeset, and a cut-major runbook precondition. No field/type/required/enum changes (no schema↔docs drift), no new oneOf, no dist/** edits, based on main (3.1.x rules N/A). The reviewer surfaced no critical/high/medium findings.

Escalation reasons:

  • Gated paths touched (.agents/shortcuts/cut-major.md and 32 static/schemas/source/** files) while review_decision is REVIEW_REQUIRED, not APPROVED — the hard, non-overridable approval gate requires a recorded human/CODEOWNERS approval.

This matches the prior escalate for the same gate. No new findings were introduced; the escalation persists solely because the required approval is still outstanding. The gate lifts automatically once review_decision becomes APPROVED — the clean diff can then approve at row 9.

Non-blocking nit: PR body says "44 marked nodes" vs changeset/docs "46" — stale prose, enforced by build lint, not a code defect.

Why human review

  • Gated paths touched (.agents/shortcuts/cut-major.md and 32 static/schemas/source/** files) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required to satisfy the hard, non-overridable approval gate. Ladon cannot auto-approve until that approval is recorded, regardless of diff cleanliness.
  • This PR touches a path under a hard, non-overridable approval gate (.agents/shortcuts/cut-major.md (modified) matches .agents/**; static/schemas/source/brand/acquire-rights-request.json (modified) matches static/schemas/source/**; static/schemas/source/core/agent-notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/creative-filters.json (modified) matches static/schemas/source/**; static/schemas/source/core/format.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-features.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/package.json (modified) matches static/schemas/source/**; static/schemas/source/core/placement.json (modified) matches static/schemas/source/**; static/schemas/source/core/product-filters.json (modified) matches static/schemas/source/**; static/schemas/source/core/product.json (modified) matches static/schemas/source/**; static/schemas/source/core/push-notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/registry-event.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-webhook.json (modified) matches static/schemas/source/**; static/schemas/source/core/version-envelope.json (modified) matches static/schemas/source/**; static/schemas/source/creative/get-creative-delivery-response.json (modified) matches static/schemas/source/**; static/schemas/source/creative/list-creative-formats-request.json (modified) matches static/schemas/source/**; static/schemas/source/enums/auth-scheme.json (modified) matches static/schemas/source/**; static/schemas/source/error-details/version-unsupported.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/create-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/s

…(truncated)…

…sories

@modelcontextprotocol/server 2.0.0-2.2.0 has two high and one medium
advisory published 2026-10-20, all fixed in 2.3.0:
- GHSA-jm63-cq47-j5jp: shared transport or server instances delivered one
  HTTP client's messages to another;
- GHSA-46jr-4wx8-v453: one request within the default size limit could
  exhaust server memory during validation;
- GHSA-rvq5-wwqv-78pq: server bearer authentication accepted tokens issued
  for another service.

@adcp/sdk 16.1.0 pins @modelcontextprotocol/server and client at exactly
2.2.0, so a lockfile bump cannot reach the fix. Override both to 2.3.1 (a
minor bump of the same packages) until an SDK release moves its pins. The
training agent and Addie serve MCP, so this is a production exposure as well
as the reason the production audit gate fails on main.

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

Escalate — gated paths touched and review not yet approved.

This PR touches files under a hard, non-overridable approval gate while the GitHub review decision is REVIEW_REQUIRED, not APPROVED. Per decision rule row 2 (gated_paths: true AND review_decision ≠ APPROVED), Ladon cannot auto-approve regardless of diff cleanliness — a human/CODEOWNERS approval must be recorded first.

Reviewer findings: None. The reviewer flagged the delta since the prior run as clean — two dependency-management files (bump @modelcontextprotocol/* 2.2.0 → 2.3.1 in package-lock.json, pin client+server to 2.3.1 via package.json overrides). Lockfile resolves consistently; no protocol-surface (static/schemas/source/**) wire change in the delta, no changeset required. No critical/high/medium findings.

Why still escalated: This is purely the path-based approval gate, not any code concern. The gate lifts the moment review_decision becomes APPROVED; once that human approval lands, a re-run on this clean diff would fall through to approve.

Escalation reasons:

  • Gated paths touched (.agents/shortcuts/cut-major.md and 32 static/schemas/source/** files) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required to satisfy the hard approval gate.

Why human review

  • Gated paths touched (.agents/shortcuts/cut-major.md and 32 static/schemas/source/** files) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required to satisfy the hard, non-overridable approval gate. Ladon cannot auto-approve until that approval is recorded, regardless of diff cleanliness.
  • This PR touches a path under a hard, non-overridable approval gate (.agents/shortcuts/cut-major.md (modified) matches .agents/**; static/schemas/source/brand/acquire-rights-request.json (modified) matches static/schemas/source/**; static/schemas/source/core/agent-notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/creative-filters.json (modified) matches static/schemas/source/**; static/schemas/source/core/format.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-features.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/package.json (modified) matches static/schemas/source/**; static/schemas/source/core/placement.json (modified) matches static/schemas/source/**; static/schemas/source/core/product-filters.json (modified) matches static/schemas/source/**; static/schemas/source/core/product.json (modified) matches static/schemas/source/**; static/schemas/source/core/push-notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/registry-event.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-webhook.json (modified) matches static/schemas/source/**; static/schemas/source/core/version-envelope.json (modified) matches static/schemas/source/**; static/schemas/source/creative/get-creative-delivery-response.json (modified) matches static/schemas/source/**; static/schemas/source/creative/list-creative-formats-request.json (modified) matches static/schemas/source/**; static/schemas/source/enums/auth-scheme.json (modified) matches static/schemas/source/**; static/schemas/source/error-details/version-unsupported.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/create-media-buy-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/create-media-buy-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-media-buy-delivery-response.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/get-media-buys-response.json (mo

…(truncated)…

@bokelley
bokelley merged commit 280e959 into main Oct 21, 2026
68 checks passed
@bokelley
bokelley deleted the bokelley/v4-schema-removal-sites branch October 21, 2026 10:44
bokelley added a commit that referenced this pull request Oct 22, 2026
…3.2.x (#8341, #8387) (#8407)

Backport of #8341 (main 280e959) and #8387 (main 145b693) to 3.2.x.

Mark the 43 deprecated schema nodes scheduled for removal in AdCP 4.0 with
"x-removed-in": "4.0.0", alongside the 3 that already carried it (#8332).
The v4 compatibility registry lists all 46 marked nodes once each, under the
check that covers it (schema_sites) or in schema_removals_not_checked with
its 4.0 tracking issue (#8377-#8386) and the reason no check covers it yet.
The registry lint fails when a marked node is unlisted, a listed site is not
marked, or a not-checked group has no tracking issue. A schema test requires
the marker on every deprecated node described as removed in 4.0.

3.2.x adaptation: all 46 nodes exist on 3.2.x, so the registry, lint, tests
and changesets are unchanged from main. Three schema hunks conflicted only
because 3.2.x keeps its own descriptions for reporting_webhook.authentication,
create_media_buy artifact_webhook.authentication and
webhook_signing.legacy_hmac_fallback. Those resolve to the 3.2.x description
plus the marker. No other schema text changes.

(cherry picked from commit 280e959)
(cherry picked from commit 145b693)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
TekWorx pushed a commit to TekWorx/adcp that referenced this pull request Oct 24, 2026
Merge the published v3.2.6 maintenance release (tag v3.2.6,
3523bdc, the adcontextprotocol#8274 Version Packages merge on
3.2.x) into main as a record-only merge, following adcontextprotocol#8278 for 3.2.5.

The merge keeps main's tree (ours strategy) and adds only the 3.2.6 release
records:

- dist/schemas/3.2.6/, dist/compliance/3.2.6/ and the signed
  dist/protocol/3.2.6.tgz{,.crt,.sha256,.sig} tuple, byte-identical to the tag.
- CHANGELOG.md: the 3.2.6 block, verbatim from the tag, inserted below main's
  3.3.0-beta.0 section. (The workflow's take-3.2.x rule would have dropped
  that section.)
- static/compliance/published-versions.json: register 3.2.6, matching the
  3.2.x manifest.
- dist/schemas/index.json and latest.json: regenerated by build:schemas;
  latest_stable, v3 and v3.2 now 3.2.6. main's 3.3.0-beta.0 entry and v3.0
  (3.0.28) are kept; taking 3.2.x's copy would have regressed both.

The 3.2.5..3.2.6 source changes are all backports of work already on main in
its main form (adcontextprotocol#8335, adcontextprotocol#8402, adcontextprotocol#8218, adcontextprotocol#8216, adcontextprotocol#8341/adcontextprotocol#8387, adcontextprotocol#8327/adcontextprotocol#8334, adcontextprotocol#8260,
adcontextprotocol#8261, adcontextprotocol#8263, adcontextprotocol#8244), so no 3.2.x source is taken. The second parent records
that reconciliation so the next 3.2.x forward merge does not re-conflict on it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.

1 participant