Skip to content

feat(schema): mark every 4.0 removal and give it a tracking issue on 3.2.x (#8341, #8387) - #8407

Merged
bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-v4-removal-markers
Oct 22, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-v4-removal-markers

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Backport of #8341 (main 280e959a1) and #8387 (main 145b693a5) to 3.2.x as one PR. 3.2.x already has the v4 compatibility registry from #8340.

3.2.x adaptation

Node set. All 46 nodes main marks exist on 3.2.x and are deprecated there, so nothing needed dropping:

  • Marker count is 3 before and 46 after, the same as main.
  • The registry's schema_sites / schema_removals_not_checked resolve to exactly the 3.2.x nodes marked x-removed-in: "4.0.0". The lint checks both directions.
  • No 3.2.x-only deprecated node describes a 4.0 removal without the marker; the schema test checks this.

As a result, the registry YAML, the lint, both test files and both changesets are byte-identical to main.

Conflicts. Three schema hunks conflicted:

  • core/reporting-webhook.json#/properties/authentication
  • media-buy/create-media-buy-request.json (artifact_webhook.authentication)
  • protocol/get-adcp-capabilities-response.json (webhook_signing.legacy_hmac_fallback)

In each case main had also rewritten the description for 3.3 behavior ("Required on a request served below 3.3", the signing_profile selector, the extra legacy paths). I kept 3.2.x's description and added only the marker. The rest of the schema diff is marker lines plus one trailing comma.

Counts in docs. On 3.2.x, v4-compatibility.mdx matches main except for its existing 3.2-specific "3.2.6 and later" bundle line. "46 deprecated fields" is true for 3.2.x. The seller-emitted examples it names all exist on 3.2.x: flat valid_actions, delivery currency / aggregated_totals, inline_creative_management, and the format build/pricing surface that list_transformers replaces.

dist. There are no dist/** changes.

Verification (on this branch)

  • node scripts/lint-v4-compatibility-registry.cjs: clean
  • node --test tests/schema-deprecation-metadata.test.cjs tests/lint-v4-compatibility-registry.test.cjs: 25/25
  • npm run test:schemas, test:v4-compatibility-registry and test:examples: pass
  • node scripts/build-compliance.cjs --check: passes
  • node scripts/check-changeset-protocol-scope.cjs origin/3.2.x: passes
  • npx --yes @changesets/cli@^3.0.0 status --since=origin/3.2.x: adcontextprotocol patch
  • Pre-commit hook (unit tests, full server unit suite, typecheck): passed

🤖 Generated with Claude Code

…3.2.x (#8341, #8387)

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]>

@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 require human/CODEOWNERS approval.

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

What was checked (reviewer): Annotation-only change marking 43 deprecated schema nodes with x-removed-in: "4.0.0" (46 total with 3 pre-existing), adding a schema_removals_not_checked registry section, a bidirectional lint, and a backstop schema test. Registry↔schema consistency verified end-to-end; no field/type/required/enum changes — no wire drift. Two correct patch changesets present. No blocking or Medium findings.

Escalation reasons:

  • Gated paths touched without review_decision: APPROVED — notably .agents/shortcuts/cut-major.md and 33 files under static/schemas/source/**. A human/CODEOWNERS approval is required before merge.

The diff itself is clean (no critical/high/medium findings), but the hard gate cannot be lifted by a clean review alone — it lifts only when review_decision becomes APPROVED.

Why human review

  • Gated paths modified (static/schemas/source/** + .agents/shortcuts/cut-major.md) and review_decision is not APPROVED — human/CODEOWNERS approval required before merge (decision rule row 2).
  • 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 (modified) matches static/schemas/source/**; static/schemas/source/media-buy/list-creative-formats-request.json (modified) matches static/schemas/source/**; static/schemas/source/media-buy/media-buy-delivery-webhook-result.json (modified) matches static/schemas/source/**; static/sc

…(truncated)…

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 22, 2026
@bokelley
bokelley merged commit e3fe7ae into 3.2.x Oct 22, 2026
71 of 72 checks passed
@bokelley
bokelley deleted the backport/3.2.x-v4-removal-markers branch October 22, 2026 12:18
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