Repository navigation
feat(schema): mark every 4.0 removal and give it a tracking issue on 3.2.x (#8341, #8387) - #8407
Conversation
…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]>
There was a problem hiding this comment.
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.mdand 33 files understatic/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) matchesstatic/schemas/source/**; static/schemas/source/core/agent-notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-filters.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/format.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-features.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/package.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product-filters.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/push-notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/registry-event.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-webhook.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/version-envelope.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/get-creative-delivery-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/list-creative-formats-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/auth-scheme.json (modified) matchesstatic/schemas/source/**; static/schemas/source/error-details/version-unsupported.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/create-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/create-media-buy-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buy-delivery-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buys-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/list-creative-formats-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/media-buy-delivery-webhook-result.json (modified) matchesstatic/schemas/source/**; static/sc
…(truncated)…
Summary
Backport of #8341 (main
280e959a1) and #8387 (main145b693a5) to3.2.xas one PR. 3.2.x already has the v4 compatibility registry from #8340."x-removed-in": "4.0.0". 3.2.x already had 3 marked (Proposal: a 4.0 compatibility check in the compliance suite, so 3.x agents learn what 4.0 breaks before it ships #8332), so 46 are marked in total.universal/v4-compatibility.yamllists all 46 once each: 3 in a check'sschema_sites, and 43 in 14schema_removals_not_checkedgroups. Each group carries its 4.0 tracking issue (4.0: remove the format-level build and pricing surface (input/output_format_ids, pricing_options, canonical_parameters, list_creative_formats pricing) #8377–4.0: remove the 3.1 compatibility projections (legacy terms ref, purchase_continuation) #8386 and the existing ones) and the reason no check covers it.scripts/lint-v4-compatibility-registry.cjsfails the compliance build in these cases:schema_site_unlisted,schema_site_invalidorschema_site_duplicate;issue.tests/schema-deprecation-metadata.test.cjsrequires the marker on every deprecated node described as removed in 4.0, anddeprecated: trueon every marked node.v4-compatibility.mdxexplains the markers. The cut-major runbook adds "scheduled removals are done" to the pre-cut checklist.patch. This is annotation-only: no field, type or requirement changes.3.2.x adaptation
Node set. All 46 nodes main marks exist on 3.2.x and are deprecated there, so nothing needed dropping:
schema_sites/schema_removals_not_checkedresolve to exactly the 3.2.x nodes markedx-removed-in: "4.0.0". The lint checks both directions.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/authenticationmedia-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_profileselector, 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.mdxmatches 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: flatvalid_actions, deliverycurrency/aggregated_totals,inline_creative_management, and theformatbuild/pricing surface thatlist_transformersreplaces.dist. There are no
dist/**changes.Verification (on this branch)
node scripts/lint-v4-compatibility-registry.cjs: cleannode --test tests/schema-deprecation-metadata.test.cjs tests/lint-v4-compatibility-registry.test.cjs: 25/25npm run test:schemas,test:v4-compatibility-registryandtest:examples: passnode scripts/build-compliance.cjs --check: passesnode scripts/check-changeset-protocol-scope.cjs origin/3.2.x: passesnpx --yes @changesets/cli@^3.0.0 status --since=origin/3.2.x:adcontextprotocolpatch🤖 Generated with Claude Code