Skip to content

fix(schemas): give every repeated object one definition - #9180

Open
KonstantinMirin wants to merge 73 commits into
adcontextprotocol:mainfrom
KonstantinMirin:schemas/one-definition-per-object
Open

KonstantinMirin wants to merge 73 commits into
adcontextprotocol:mainfrom
KonstantinMirin:schemas/one-definition-per-object

Conversation

@KonstantinMirin

@KonstantinMirin KonstantinMirin commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #8536: review the commits after the #8536 merge.

Revised 2026-11-23: cd176dd7f5 regenerates the properties-identifiers and delivery-reporting manifests for #9119's order-independent conjunction merge; with it, the check finds a witness for 134 of 142 manifest entries, and the other 8 are declared none.

This PR gives each object the schema tree copied inline one definition under core/, and points every copy at it with $ref. A site validates differently only where the review chose a correction, listed in What changes validation; a per-commit equivalence check proves every other site accepts what it did before. Each family is its own commit, so a reviewer can take one and leave another.

Commits

First, three commits that change no validation:

  • e2755edc15 Each tagged union branch states its tag's value as default.
  • b17156c16a The additive-minor check reads a correction's location through $ref and allOf.
  • 4f498391b6 209 objects get a title naming their concept.

One commit per family:

  • 3ac1ca38a6 Geography: coordinates, postal address, region and place countries, proximity, metro area, and catchments.
  • 45c3faf5a3 Values and ranges: numeric and datetime ranges, durations, money, and budget guidance.
  • f186e1f1b6 DOOH and pixel sizes: pixel size, DOOH location and screen, and render dimensions.
  • 92e7ecdb84 Property identifiers: tag metadata and distribution identifiers.
  • 314080491a Training agent: account setup URLs use an https origin, as the accounts commit requires.
  • e48062b0e4 Accounts and agents: account setup, change resources, webhook auth, and buyer agent reference.
  • e2c81483b9 Brand and rights: contact, voice synthesis, data-subject and rights objects, and brand claims.
  • 9009944068 Creative: previews, format parameters, and component assets.
  • bbb8ea85fa Signals: taxonomy, modeling, onboarder, and catalog entry.
  • 985d87759b Optimization and TMP: targets, event sources, keyword capabilities, and trusted match filters.
  • 178f09c88b Delivery and reporting: delivery rows, reporting periods, and breakdown controls.
  • 629c6c24ec Media buy lifecycle: cancellation, IO acceptance, catalog match, and async results.
  • 5c4c1632fd Governance: findings, delivery statements, and attestation identity.
  • 05f2150cd6 Content standards: calibration exemplars, feature check result, and bulk pagination.
  • 7e4635109d Sponsored intelligence: brand agent response and transaction product.
  • eda13f67fa Tasks and errors: error response, response body, error details, and compact async responses.

Then two merges of #8536's head, b80c2891f6 (df43b6593d) and d00b8dc35a (fefaf661cb), each with its resolution ledger.

What changes validation

Tightenings are DR-0036 corrections: each applies a constraint the published 3.x text already sets. A new bound or required name has an entry in scripts/lint-additive-minor-corrections.json (52 entries) quoting that text; each other tightening takes a contract another published copy of the object states.

  • Geography: the postal-area selector takes the country and system pairing guard; offering metros take value_labels.
  • Proposal total_budget_guidance requires currency and one of min, recommended, or max; the get_media_buy_artifacts time_range requires start and end.
  • Pixel sizes reject unit; identifiers take core/identifier.json's domain rules; account setup url is https.
  • Contacts take core/email-address.json; a required rights disclosure has text.
  • Taxonomy value IDs, event source names, cursors, and IO and catalog match IDs are non-empty or bounded.
  • media_buy_delivery webhook by_package rows require what get_media_buy_delivery rows require.
  • Retained governance delivery statements require reporting_period; jurisdictions are ISO 3166-1 alpha-2.
  • The task status error code is a bounded open code.

Loosenings. The image_carousel card size opens like every other pixel size, get_brand_identity asset names take the localized form brand.json already allows, the build_creative preview no longer requires expires_at, and the content-standards calibration exemplars accept URL references, as the request copies do.

4.0 bounds. A definition carries the x-max-*-4.0 bound its copies stated, so these sites gain it, with no 3.x change: the geo requirement and place catalog countries, account setup url, the brand.json contestation languages, the transformer brand_agent ID and URL, signal taxonomy_value_id, and the evaluator feature_id. The commit messages name each site.

oneOf guards from #9170. @bokelley's #9170 guards the losing branch of each overlapping union, and the guard moves with any branch this PR shared. Five content-standards error branches take it in an allOf at the call site, so core/task-error-response.json stays unguarded. The URL branch of core/calibration-exemplars.json takes it, which also covers the content-standards exemplars: between the content standards commit and the merge, their union rejected an entry that is both a URL reference and an artifact. All 38 tests in tests/oneof-overlap-resolution.test.cjs pass.

Proof

The schema equivalence check (#9119) runs on each commit against its parent, with the commit's delta manifest and the corpus:

Every annotation main changed lands at the same instance position, and no call-site annotation sits on a shared definition.

The full CI suite (134 stages: canonical tests, build checks, server unit shards, and the storyboard matrix) passes at the head and at fefaf661cb, with identical matrix summaries. test:release-workflow fails at both only because the offload test image lacks jq. Server integration passes all 4 shards at both.

Annotations

With the current build, the bundled schemas differ from #8536's only in 43 added and 305 removed hoisted enum descriptions, a bundler artifact. With #9167's build (e5be3931ed), they don't differ.

CI

The validate-schema-bundle SDK jobs fail at #8536's head fefaf661cb and at this PR's head at the same step, so this PR adds no failure there. TypeScript generate-types stops at alignCommittedMediaBuyName (the CommittedMediaBuy.media_buy_id anchor), and Python fix_postal_country_system_pairing raises on the postal pairing branch that references enums/us-postal-system.json.

Merge order

Not in this PR

  • A guard for the price-breakdown adjustment union, held for 4.0 with the other symmetric guards.
  • The remaining field alignments, refinements, and definition corrections, which follow in a separate PR.

Closes #8301

… from 336 sites

The source tree declared the same five subschemas repeatedly without naming
them: an ISO 4217 currency code at 87 sites, an ISO 3166-1 alpha-2 country
code at 72, an idempotency key at 69, a DNS domain name at 57, and an HTTPS
URL at 51. A reader or code generator can see that the sites share a regex,
but cannot learn what the regex means.

Move each into a titled core/ document, register it in index.json, and
reference it. Each site is edited in place and keeps its own description and
other annotations, so the diff has no whitespace churn.

No document's accepted set changes. tests/named-schema-extraction.test.cjs
resolves every added $ref, overlays the siblings each site keeps, and
compares the result with the base document: 218 touched documents, 336 added
$refs, 0 differing. Run it with npm run test:schema-extraction. The test also
requires that a $ref to a scalar core document keeps only annotations beside
it, because draft-07 ignores $ref siblings.

Sites that share a constraint but mean something else stay inline: the IATA
airport codes in core/flight-item.json and the ten reporting receipt and
status identifiers that share the idempotency key's pattern.

Named definitions enlarge the MCP projection, so its bounds move: total
projection 24 MiB, media-buy model context 486 KiB, parity compile limit
1,380,000 bytes.

Refs: adcontextprotocol#8525
…hem from 672 sites

Finish the extraction adcontextprotocol#8525 asks for. Measure every repeated pattern and
identical scalar subschema, then extract those whose sites provably mean one
concept: 116 new core/ documents and 2 existing ones, across 269 documents.

A concept counts as proven when the sites state identical constraints and
appear in at least two documents, and either share an x-entity value, share a
property name with compatible descriptions, or follow a named standard. The
identifier pattern ^[A-Za-z0-9_.:-]{1,255}$ turns out to be eleven concepts,
such as notification-id, reporting-revision-id, and opportunity-id, plus three
singletons that stay inline.

x-entity moves to the document only when every site that references it states
the same value. Otherwise it stays at each site, so the resolved documents
stay identical. The proof now reports 377 touched documents, 1,008 added
$refs, 0 differing.

Sites that share a constraint but mean something else stay inline, as do sites
that mean the same thing under a different constraint, because tightening them
would change what they accept. The pull request lists them with reasons.

audit-oneof.mjs treated a $ref to a scalar document as an opaque reference, so
a named hex color beside an array read as undiscriminated. It now classifies
the target by its JSON type when the branches' types differ, which also removes
two stale entries from its baseline.

Named definitions enlarge the MCP projection, so its bounds move: media-buy
model context 518 KiB, creative model context 425 KiB, parity compile limit
1,405,000 bytes.

Refs: adcontextprotocol#8525
…sites

Finish the extraction with the enums that repeat across documents: 67 new
enums/ documents and 2 existing ones. A site moves only when it has the same
property name and values as the others, and its descriptions state one
concept. Values alone prove nothing: delivery_period_state and the opportunity
status both list open and closed, so each gets its own document.

Three narrower copies stay inline, and their enums stay unnamed, because naming
them would report the copies as drift: brand.json store lacks fire_tv and
vizio, native_in_feed asset_source lacks publisher_host_recorded, and
list_products incomplete scope lacks proposals. Whether those are intentional
subsets is a separate decision.

The proof now reports 401 touched documents, 1,172 added $refs, 0 differing.

Named definitions enlarge the MCP projection, so its bounds move: media-buy
model context 522 KiB, creative model context 427 KiB, parity compile limit
1,415,000 bytes.

Refs: adcontextprotocol#8525
…opies

The gate in the next commit found inline copies of documents that already
exist, or that the earlier commits added: ten under a different property name,
for example accepted_formats and enums/reporting-file-format.json, and business
calendar days and enums/day-of-week.json, and account_id on the
set_account_timezone controller result. These sites mean the same concept, so
they now reference the document. Each keeps its own annotations.

Bundling the named definitions also moves the compact discovery tools/list
budget from 162 KiB to 166 KiB (169,806 bytes measured).

Refs: adcontextprotocol#8525
…med repeats

Keep the schemas normalized without relying on review. The pass and this gate
land together, so new inline copies cannot start accumulating.

scripts/lint-schema-named-constraints.cjs fails when an inline subschema states
a named schema's constraints, with a message that gives the file, the JSON
pointer, and the $ref to use. It also fails when an unnamed constraint repeats
at 3 or more sites across documents. At 3, the current tree needs 50 recorded
repeats. At 2, it would need 126, of which 76 are pairs.

A pattern, an enum, or a two-sided numeric range is evidence on its own. A
length bound or one-sided numeric bound is shared by free text and dozens of
identifiers, so it counts as a copy only with the named schema's x-entity or a
property name that already references it.

scripts/schema-named-constraints.json holds the exceptions: 55 held-apart sites
and 50 recorded repeats, each with a reason. An entry that stops occurring
fails, and on pull requests a raised threshold or a grown count fails against
the target branch's copy unless it states a growth_reason. New entries are
printed for the reviewer. Single-fault tests cover each of these rules.

npm run schemas:normalize lists the mechanical fixes, and --write applies them
and runs the identical-comparison proof.

The lint runs in npm test and in Build Check, and the playbook tells authors to
look in core/ and enums/ first.

Refs: adcontextprotocol#8525
…ounds walk

Canonical CI stages read the inline form that the normalization commits
replaced.

Restore two tests to test:schemas. The first commit dropped a space between
tests/seller-offers-contract.test.cjs and tests/service-commitments.test.cjs,
so neither ran, and test:schemas still exited 0.

capabilities-structural-bounds.cjs treated a $ref to a scalar document as the
position, so it reported a bound the site declares with x-max-length-4.0 as
missing. It now overlays the annotations the site keeps. The pinned worst-case
figure of 91,816,283 bytes and 107 open positions is unchanged, which shows the
walk sees what it saw before the extraction.

The other tests now read through the reference and keep their assertions:

- lint-version-envelope compares each surface's resolved grammar. The copies it
  guarded against drift now reference one document.
- audience-evidence reads the methodology enum from the referenced document.
- lint-storyboard-sample-request-schema gives Ajv the currency code document.
- media-buy-name-contract compiles the resolved schema with the site's
  annotations, so its length and whitespace checks still run.
- spot-delivery-reporting-contract checks the $ref and the target's x-entity.
- counterparty-asserted-capability-bounds follows an item's $ref, so its domain
  array guard still finds both arrays.
- capabilities-structural-bounds overlays the site when it checks an exemption.

Refs: adcontextprotocol#8525
Four tests moved to asserting a $ref during the extraction and stopped checking
what they checked before: the catalog x-entity values, the country code type
and pattern, the currency type, and the idempotency key minimum length. Each
now also asserts that value on the referenced document.

Refs: adcontextprotocol#8525
…ition

Name the repeats the earlier commits left inline: constraints repeated inside
one document, constraints shared by exactly two documents, numeric ranges,
string bounds on one property name, and enums that list their values in a
different order. A concept in several documents gets a titled schema under
core/ or enums/ (110 new), and one that repeats inside a document gets a
definitions entry there (47 new). 517 sites now reference them.

Sites that reference a named schema whose only difference was annotations
gain those annotations: brand IDs, account status, cost and ROAS strengths,
pricing models, delivery recipient clouds, offer reasons, and placement IDs.

Two enums had drifted and now share one enum with their other sites:
brand.json store accepts fire_tv and vizio, and native_in_feed asset_source
accepts publisher_host_recorded. Both only add accepted values.

Sites that mean something else, or that a reference would loosen or tighten,
stay inline and are listed with their reasons in the next commit.
core/webhook-auth-credential.json becomes core/auth-credential.json, because
governance agent authentication uses the same credential.

Tests that read a constraint from the inline site now read it through the
reference with tests/helpers/named-scalar-schemas.cjs, and keep their
assertions. The platform-agnostic allowlist moves its 12 app store entries to
the 4 values of enums/app-store.json.

The enum-drift lint now skips enums under if and not, the same rule the
named-constraints gate uses: a condition names the values a branch applies
to, so it is narrower on purpose. Naming enums/reporting-schedule-alignment.json
would otherwise report the period_duration conditions in
core/reporting-schedule.json and core/reporting-schedule-offering.json as
drift. The installment publication conditional no longer needs its allowlist
entry.

Named definitions enlarge the MCP projection, so its bounds move: total
25 MiB, media-buy model context 539 KiB, creative model context 437 KiB,
parity compile limit 1,443,000 bytes, compact discovery tools/list 169 KiB.

The training agent embedded source schemas in its MCP tool definitions
without their references, so report_plan_outcome published a dangling
reference once reported-outcome-error.json referenced named schemas.
loadSourceSchema now bundles references with the existing bundleSchema.

Refs: adcontextprotocol#8525
…or across two

Lower the gate from 3 sites across documents to 2 sites anywhere. A repeat
inside one document asks for a definitions entry in it, and a repeat across
documents asks for a schema under core/ or enums/. The lint now also:

- treats a local definition as a named schema for its own document, so an
  inline copy of it fails with the "#/definitions/..." reference to use;
- fills in a type that the constraint implies (an enum whose values all have
  it, or a propertyNames key), so typed and untyped spellings compare equal;
- compares equivalent pattern spellings, such as \d and [0-9], as equal.

scripts/schema-named-constraints.json drops unnamed_repeats. Every exception
is now a held_apart site with what it means that the named schema or the other
sites don't: 192 sites. A repeat fails while 2 or more of its sites are not
listed, and an entry that no longer needs to be there fails. Against the base
branch, a raised threshold fails and an entry added without a reason fails.
The lint also fails when a document that another document composes uses a local
reference that the composing site doesn't restate, because generators flatten
that document and the reference no longer resolves. Main has no such site.

New single-fault tests cover a repeat inside one document, a two-site repeat
across documents, a local definition, implied types, and pattern spellings;
each fails when its rule is removed from the lint.

The proof resolves references to local definitions and accepts a definition
only as the target of an added reference. It compares both sides in a
canonical form that changes nothing a validator accepts, and it names its two
exceptions: annotations adopted from a schema that differed only in
annotations, and the two drifted enums. 494 touched documents, 1,701 added
$refs, 0 differing.

npm run schemas:normalize accepts a local definition with --doc and adopts
annotations with --adopt-annotations.

Refs: adcontextprotocol#8525
The test, new on main, compiles core/error.json on its own, which now
references core/open-error-code.json. It registers the named scalar schemas
first and keeps its assertions.

Refs: adcontextprotocol#8525
… definition

These sites state the same constraint as a named schema or as another site, and
mean something else: an IATA airport code is not a currency code, and a warning
message is not a reporting setup message. They were listed as exceptions. Each
now references a titled document of its own, so the list holds only sites that
mean the same thing as a named schema and state a different constraint.

Nothing accepts anything different. The proof still passes: 519 touched
documents, 1,791 added $refs, 0 differing.

The bulk read page sizes get core/bulk-page-size.json because they default to
1,000 items, which core/page-size.json doesn't allow. enums/optimization-metric.json
keeps the attention metrics that enums/canonical-optimization-metric.json leaves
out on purpose.

manifest.schema.json now references enums/error-recovery.json, so the build
registers the named schemas it references before it validates the manifest.

Refs: adcontextprotocol#8525
28 sites stated a timezone inline: plain non-empty strings, or strings bounded
to 255 characters. Each now references core/iana-timezone.json, so a timezone
validates the same everywhere. These sites get tighter. They now reject a value
longer than 255 characters, a value with characters outside the IANA identifier
pattern, and inventory_local. UTC stays valid.

core/iana-timezone.json no longer states x-added-in, because fields older than
3.2 now reference it and the training agent reads that annotation to decide what
an older caller sees. fixed_timezone loses x-max-length-4.0: 64, which can't sit
below the 255 the schema now enforces.

This changes what schemas accept, so it sits after the refactor commits. The
proof passes at the commit before this one.

Refs: adcontextprotocol#8525
These sites meant the same thing as a named schema and stated a different
constraint. Each now references the schema, so this changes what they accept.
The changeset lists each concept and the direction.

Where the copies disagreed, the stricter rule wins and the named schema takes it:

- core/media-buy-id.json, core/account-id.json, and
  core/creative-evaluation-id.json gain maxLength 255.
- core/account-request-id.json gains the ID pattern.
- core/cancellation-reason.json and core/signal-description.json gain minLength 1.
- core/domain-name.json gains the 253-character limit of RFC 1035.
- enums/mraid-version.json holds 2.0 and 3.0, the values html5 already stated,
  and replaces core/mraid-version.json, so mraid_versions tightens.

Two groups still loosen, because the stricter copy rejects a published value:
whole-number aspect ratios (core/format.json published 1.91:1), and list_products
incomplete scope (get_products and request_proposals publish proposals).

These references change nothing a site accepts:

- core/canonical-format-option.json format_kind references
  core/canonical-format-kind.json. The inline copy existed for an SDK
  post-processor, and the test now requires the reference.
- core/audience-evidence.json and core/canonical-audience-evidence.json
  relationship reference enums/audience-evidence-relationship.json, which now
  states x-added-in 3.2.0, because these fields shipped in 3.2.
- core/reporting-verification-profile-set.json references
  core/reporting-verification-profile.json.
- media-buy/commercial-terms.json cancellation_terms reason references
  core/cancellation-reason.json, and a reporting subscription's account_ids
  reference core/account-id.json.

manifest.schema.json tool_name moves from a local definition to core/tool-name.json.
enums/vast-fullscreen-version.json and core/audience-description.json name values
that shared a constraint with the new definitions.

DR-0036 records the 97 length bounds this adds to released sites as corrections
(e), (f), and (g), with the published text behind each. The additive-minor check
reports 0 new changes.

Refs: adcontextprotocol#8525
…-out

Every site that was listed now references a named schema, so the list is empty.
Delete scripts/schema-named-constraints.json, and with it the shrink-only check
against the base branch and the configurable threshold. A site that means the
same thing references the named schema. A site that means something else gets a
named schema of its own. Tests require that a list passed to the lint changes
nothing and that the file stays gone.

Sites inside if and not stay exempt, because a condition isn't a declaration:
113 such sites in 73 documents state a scalar constraint.

Refs: adcontextprotocol#8525
…site

Every site now references a named definition, so the projection carries more
shared definitions. The media-buy model context bound moves to 549 KiB, creative
to 443 KiB, the parity compile limit to 1,453,000 bytes, and compact discovery
tools/list to 170 KiB. Definition counts in the input-field weight report rise
by 57 instances and 10 unique definitions. The projection stays under its 25 MiB
cap at 25,961,497 bytes. The documented worst-case capabilities document moves
to 91,766,393 bytes, because named schemas now state their limits.

Refs: adcontextprotocol#8525
A list_products response never contains proposals, and 3.2.8 published its
incomplete scope as products, pricing, forecast, and wholesale_feed. Pointing it
at enums/incomplete-scope.json let it accept proposals.

enums/product-incomplete-scope.json now holds the four product scopes, with a
description of each, and list_products references it. enums/incomplete-scope.json
is that set plus proposals, so get_products and request_proposals accept the same
five values as before. The changeset no longer lists list_products as looser.

The vocabulary test accepts a branch that references another enums document or
states a const, because both are finite. The comply test controller grows to
1,453,708 bytes, so the parity compile limit moves to 1,454,000. The
additive-minor check reports 0 new changes against 3.2.8.

Refs: adcontextprotocol#8525
13 more sites stated an IANA timezone inline: budget_cap_timezone on the media
buy, the planned delivery, the create, get and update media-buy responses, and
the control and update requests; the reporting timezone in
reporting_capabilities, its canonical form, get_account_financials and
get_creative_delivery; the date timezone in a catalog field mapping; and the
supported_timezones items. Each now references core/iana-timezone.json. The two
nullable request sites use anyOf with null, so null still restores the default.

These sites get tighter. They reject a value longer than 255 characters, a value
outside the IANA identifier pattern, and inventory_local. The 10 plain strings
also reject an empty string. supported_timezones items lose
x-max-length-4.0: 64, which can't sit below the 255 the schema enforces.

DR-0036 correction (f) and scripts/lint-additive-minor-corrections.json record
the 21 new length bounds, each from 3.2.8 core/iana-timezone.json, so the
additive-minor check reports 0 new changes against 3.2.8.

enums/audience-evidence-relationship.json drops x-added-in, like
core/iana-timezone.json, because 3.2 fields reference it.

The documented worst-case capabilities document moves from 91,766,393 to
91,765,369 bytes, because a supported timezone is now a patterned string. The
MCP projection bounds hold.

The changesets list the new sites and the wholesale signal description limit,
and no longer name the deleted exception list.

Refs: adcontextprotocol#8525
…he maximum

Correction (f) now records minLength 1 at the sites that were bare strings,
so its title says a timezone identifier is 1 to 255 characters.

Refs: adcontextprotocol#8525
…fiers

core/iana-timezone.json gains x-max-length-4.0: 64, so every timezone site
plans that limit for 4.0. The longest IANA timezone identifier is 32
characters (America/Argentina/ComodRivadavia), and 64 matches the 4.0 limit
core/brand-id.json plans. 3.2.8 published maxLength 255, and a minor release
can't tighten it, so 3.x keeps 255.

The structural-bounds test lets a 4.0 annotation sit below the keyword that
enforces the limit today, because a 4.0 limit plans a tightening. It still
rejects an annotation above the keyword, which would plan a loosening, and
an annotation that isn't a positive integer.

In 4.0 mode, scripts/capabilities-structural-bounds.cjs takes the lower of
the keyword and the annotation for maxItems, maxLength and maxProperties.
Enforced mode is unchanged. The documented worst-case capabilities document
moves from 91,765,369 to 91,551,067 bytes: the 1,122 timezone strings it can
hold each drop from 257 to 66 bytes. The MCP projection bounds hold.

Refs: adcontextprotocol#8525
…e register

DR-0036 states the rule and its departures: a closed schema stays closed
for the major, a minor changes a schema only by addition, and the only
departures are corrections and named exceptions. A correction either
opens a schema that the published text keeps open or applies a bound or
required name that the published text already sets. The record no longer
lists corrections location by location.

scripts/lint-additive-minor-corrections.json is the register. The
additive-minor check no longer parses correction tables from the
decision record; it still requires the register to name an existing
decision record, verifies each quoted source, and accepts exactly the
listed changes. Each reason names its kind of correction in place of a
correction letter.

DR-0019's amendment note, the 3.3 release docs, the migration guides and
the versioning page describe corrections by kind.
…eated-shapes-8525

DR-0036 now states only the decision, and the corrections register is the
only list of corrections. This branch takes that DR-0036 as it stands and
makes no edit to it. Its 118 register entries stay, with reasons that begin
with the kind of correction: "Applies the bound the published text sets."
…ections for 3.3

The 3.2 to 3.3 migration guide listed the 3.3 corrections by kind but not
the three bound corrections in this branch's register entries. It now says
that a domain name is at most 253 characters, that a timezone identifier is
1 to 255 characters, and that each concept bounded at some sites carries
that bound at every site, and names those concepts. These ship in 3.3 only,
not in a 3.2.x patch.

The versioning page, the release notes, What's new, and the 3.3 beta
program page note the same corrections.
core/iana-timezone.json drops its character pattern and its
not: {const: inventory_local}. A timezone is a string of 1 to 255
characters that must resolve in the implementation's IANA Time Zone
Database, and no value either rule rejected resolves there. Removing both
only widens the schema 3.2.8 published. The daypart timezone stays the
only site that accepts inventory_local, as a const branch beside the IANA
identifier.

The 3.2 to 3.3 migration guide now lists five corrections. Two apply a
rule that 3.2.8 already published for the concept: governance_context is
printable ASCII on every request, as 3.2.8's protocol envelope published
it, and an MRAID version is 2.0 or 3.0 at every site, as 3.2.8's html5
format published it, so capabilities mraid_versions no longer accepts
other versions. They ship in 3.3 only. The versioning page, the release
notes, and What's new say the same, and the changeset describes both as
corrections under DR-0036.

Two tests that relied on the pattern or on the exclusion now reject an
empty or 256-character timezone. Without the pattern a timezone is free
text in the capabilities worst case, so the documented figure moves to
91,766,491 bytes.
Brings the branch up to date with main at 867fdce (3.3.0-beta.5,
match keys, the dependency bumps, and the compliance fixes since
a00249e). Five files conflicted. Every other file merged cleanly.

Resolution ledger

Mechanical (resolved by measuring the merged tree, not by choosing a
side):
- tests/capabilities-structural-bounds.test.cjs and
  docs/building/by-layer/L1/security.mdx: the documented worst case is
  the figure scripts/capabilities-structural-bounds.cjs computes in 4.0
  mode on the merged tree: 99,051,189 bytes (about 94 MiB), with 108
  open positions. That is main's 99,100,981 plus this branch's
  -49,792, which adds up exactly. The block sizes and the open-position
  count in security.mdx keep main's text, which the merged
  measurement confirms (media_buy 34 MiB, creative 27 MiB, 108 open).
- tests/mcp-schema-projection.test.cjs: PARITY_COMPILE_LIMIT is set
  from the merged measurement. The compliance test controller request
  measures 1,461,855 bytes with match keys on top of the named schemas,
  so the bound is 1,462,000. The comment keeps both histories: main's
  match-keys step and this branch's naming steps. The other bounds hold
  on the merged tree without a change: total projection 26,016,883
  bytes under 25 MiB, media-buy model context 560,534 bytes under
  549 KiB, creative 452,770 bytes under 443 KiB.

Semantic (both sides kept):
- package.json: main's version (3.3.0-beta.5), dependency bumps and
  test:auction-only-compliance list, and its new tests/match-keys
  entry in test:schemas. This branch's schemas:normalize,
  test:schema-named-constraints, test:schema-extraction, and its
  tests/named-schema-extraction entry in test:schemas. The merged
  test:schemas list is main's list plus that one file.
  package-lock.json is main's, unchanged; npm ci installs from it.
- docs/reference/3-3-beta.mdx: the DR-0036 row takes this branch's
  wording of what a minor may change and its corrections list with
  adcontextprotocol#8536, and main's status (goes to ratification at the 2026-11-09
  working-group session). Main's new DR-0037 row follows it.

Merged without conflict, checked against the merged tree:
- core/match-key.json, enums/match-key-use.json, the match_keys
  additions to core/product-identity.json, core/product.json,
  protocol/get-adcp-capabilities-response.json and
  trusted-match/provider-registration.json already reference named
  schemas (uid-type, brand-ref, reach-unit, property-type, ext). The
  named-constraints gate reports no inline copy and no repeated
  constraint on the merged tree, so no site needed a reference.
- index.json takes both sides' registry entries.
- The migration guide, release notes and What's new keep main's beta.4
  and beta.5 sections and this branch's DR-0036 corrections text.

Checks on the merged tree, against main and the pre-merge branch:
build:schemas, typecheck, test:schemas (1,172 passed; main 1,168, the
branch 1,165; 1 skipped, the on-demand extraction proof),
test:additive-minor (0 new changes against 3.2.8; 89 passed, as on
the branch, where adcontextprotocol#8777 replaced 4 tests that read correction tables
from DR-0036 with 1), test:composed, test:json-schema,
test:schema-named-constraints (35), test:mcp-schema-projection (42),
the structural-bounds test (26), test:oneof-discriminators,
test:platform-agnostic, test:unit (1,282 vitest tests), and
tests/match-keys (7).
Resolution ledger:
- mechanical, main's side (DR-0036 rewrite in adcontextprotocol#8858 supersedes adcontextprotocol#8777):
  .changeset/pre/*, DR-0019, DR-0036, scripts/lint-additive-minor.cjs,
  docs/reference/migration/v4-compatibility.mdx
- mechanical, main's deletions accepted: price-adjustments.json,
  tests/audience-evidence-targets.test.cjs, withdrawn get_products and
  create_media_buy fields
- corrections register: main's header and entries plus this branch's
  bound entries; reopen entries dropped, since opening needs none
- package.json: main's scripts plus this branch's scripts and test hooks
- semantic, union: schema files keep this branch's $refs with main's new
  descriptions, open additionalProperties and new fields; main's 17
  loosened URL sites reference core/https-url.json, so the unused
  canonical-https-url, public-https-url and price-adjustment-name schemas
  go
- enums/audience-evidence-relationship.json stays as the shared enum for
  the two stable inline copies main kept
- main's new repeats get shared definitions: creative-review-sla
  durations, installment-change product_id, execution_readiness version,
  enums/membership-action.json, core/country-or-subdivision-code.json
- tests: url-pattern-loosening, deprecated-task-withdrawals and
  service-commitments resolve $refs; lint-additive-minor.test.cjs uses
  main's applyBound fixture
Resolution ledger:
- package.json: main's test:schemas list (adds the two sync_plans tests
  from adcontextprotocol#9007) plus this branch's named-schema-extraction test and its
  three scripts
The build passed the package release to buildExtensions() for the
latest/ tree as well as for the versioned one. It filters extensions by
that release, and it also stamped the release into every $id and $ref it
wrote, so latest/extensions/ named /schemas/3.3.0-rc.2/... while the rest
of latest/ names /schemas/latest/.... extension-meta.json now references
core/adcp-minor-version.json, which no release has published yet, so its
two references in latest/ did not resolve.

buildExtensions() takes the URI segment separately from the release it
filters by. The latest/ build passes "latest"; versioned builds keep
their own version.

tests/build-schemas-latest-extension-uris.test.cjs runs the build CLI
against a fixture tree, in development and release mode, and checks that
every $id and $ref under latest/extensions/ uses /schemas/latest/ and
resolves to a built file. The latest/ check in
tests/dist-schema-version-ids.test.cjs accepted any release segment and
never resolved a reference; it now requires latest/ $id values under
/schemas/latest/ and resolves every pinned $ref.
Geographic objects that were copied inline now have one definition each
under core/: geo coordinates (5 copies), postal address (3), country
place types (3), region countries (2) with its all-values selector and
ISO 3166-2 value set, proximity area (2), metro area (2), and the
catchment geometry, radius, and travel time. Three more copies
reference the existing core/geo-metro.json and
core/postal-country-system.json. Each site keeps its description.

Validation changes, all corrections the review chose:
- the core/targeting-modification.json postal-area selector takes
  core/postal-country-system.json's country and system pairing guard,
  so a pair that no requested group can match is rejected;
- core/offering.json metros take core/geo-metro.json's value_labels;
- core/product-filters.json geo_proximity declares ext.

.schema-deltas/one-definition-geo.yaml lists the three changes. No
corpus instance changes verdict.

The 4.0 bounds the support sites stated move into the new definitions:
core/geo-region-countries.json carries x-max-properties-4.0 256 and
core/geo-country-place-types.json carries 8, beside the 512 subdivision
values and 32 place types per country their parts carry, so the
capabilities structural-bounds walk finds them on the definition. Sites
core/geo-region-requirement.json countries,
core/geo-place-requirement.json catalog countries, and
core/targeting-overlay-support.json place catalog countries gain the 4.0
bound. No keyword a validator reads changes, and the documented
worst-case figure stays the same.

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: the input-field weight report and
  the shared dictionary gain 9 definitions, all repeated, and 35
  instances: 1,228, 317 and 216;
- tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  to 1_435_000 (1_434_080 bytes).
Ranges, durations, and money-like objects that were copied inline now
have one definition each under core/: numeric range (6 copies), fixed
duration (3), closed money (3, the closed commercial-terms copies), the
half-open datetime range, maximum evidence age, target frequency, total
budget guidance, flight endpoint, and numeric value range. Four more
copies reference the existing core/forecast-rate-range.json,
core/budget-range.json, and core/attribution-window.json.

Validation changes, all corrections the review chose:
- core/proposal.json total_budget_guidance takes the canonical
  proposal's contract: currency is required, at least one of min,
  recommended, and max is required, and the currency is an ISO 4217
  code;
- the get_media_buy_artifacts time_range requires start and end.

core/insertion-order.json terms.total_budget keeps its own currency: a
pattern there would reject a value the stable 3.2 schema accepts, which
adcontextprotocol#8536 kept apart on purpose.

.schema-deltas/one-definition-values-and-ranges.yaml lists the changes,
and the DR-0036 register records the required names. No corpus instance
changes verdict.

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: 4 more definitions, 3 of them
  repeated, and 12 instances: 1,240, 321 and 219;
- tests/mcp-schema-projection.test.cjs: the media-buy model-context
  budget moves from 549 to 550 KiB (561,085 to 562,241 bytes, 549.06
  KiB), and the parity compile limit to 1_436_000 (1_435_447 bytes);
- tests/capabilities-structural-bounds.test.cjs and
  docs/building/by-layer/L1/security.mdx: the open positions in the
  capabilities worst case move from 190 to 189, because the governance
  property and creative feature ranges now share
  core/numeric-range.json.
DOOH placement objects and pixel sizes that were copied inline now have
one definition each under core/: pixel size (9 copies), DOOH address,
location, and screen resolution (3 each), and render dimensions. The
product DOOH placement attributes reference the canonical DOOH
placement attributes. The local DOOH definitions in placement.json,
placement-definition.json, and canonical-placement.json become $refs, so
their in-file references keep resolving.

Validation changes:
- every pixel size rejects a unit property, as the asset-side copies
  already did (tighten), which adds the guard to the display_tag,
  html5, image, and native_in_feed formats;
- the image_carousel card_image_sizes item was closed; it now accepts
  other members like every other pixel size (loosen). The review labels
  its unit guard "none" because the closed item already rejected unit;
  the check reports it as a tightening against the opened item.

.schema-deltas/one-definition-dooh-placement.yaml lists both lines. No
corpus instance changes verdict.

Tests: tests/dooh-impression-basis.test.cjs and
tests/x-added-in-3-3-sweep.test.cjs read the DOOH placement and pixel
size sites through their new $refs. tests/helpers/named-scalar-schemas.cjs
gains resolveSchema (a $ref with the site's annotations on top),
schemaAt (a path read through every $ref), and addReferencedSchemas,
which later commits in the series also use.

The canonical DOOH placement attributes move from
core/canonical-placement.json's definitions to their own document,
core/canonical-dooh-placement-attributes.json, and the canonical
placement's entry becomes a $ref to it. The product DOOH placement
attributes in core/placement.json reference that document's root, not
another document's definitions. The move changes no payload's verdict.
tests/dooh-impression-basis.test.cjs reads the canonical attributes
through their $ref, and tests/placement-catalog-schema.test.cjs reads
their verifier constraints from the new document and checks the
canonical placement's entry references it.

Pinned figures, measured at this commit:
- tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  from 1_436_000 to 1_438_000 (1_437_591 bytes);
- tests/mcp-schema-projection.test.cjs: the parity comment states the
  1_430_635 bytes measured after the tag defaults, where it said
  1_430_872.
Property identifiers and tag metadata that were copied inline now have
one definition each: the adagents tag metadata and its map (3 copies),
the platform-independent distribution identifier (4), and the
distribution identifier. Eight more copies reference the existing
core/identifier.json and core/installment-ref.json.

Validation changes, all corrections the review chose:
- property, placement, and canonical placement identifiers, and the
  comply_test_controller property delivery identifiers, take
  core/identifier.json's domain and subdomain value rules;
- the comply_test_controller delivery stubs take the full identifier and
  installment reference contracts (identifier type from
  enums/identifier-types.json, collection_ref fields required).

The get_adcp_capabilities property_features item stays inline: the
review would first loosen property/property-feature-definition.json to
the inline contract, which this commit does not do.

.schema-deltas/one-definition-properties-identifiers.yaml lists the
changes. No corpus instance changes verdict.

lint-schema-required-declared drops eight allowlist entries for the
comply_test_controller rows, which now reference core/identifier.json
and core/installment-ref.json and declare those names.

Pinned figures, measured at this commit:
- tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  from 1_438_000 to 1_440_000 (1_439_891 bytes).
The account setup definition the next commit introduces
(core/account-setup.json) takes an https URL. The sync_accounts setup
link was built from the agent URL, which local and CI storyboard runs
serve on an http loopback, so the governance_approved storyboards on
/signals, /sales, /creative-builder, and /brand would fail its
validation. The link now uses the public training-agent origin when the
agent URL is not https. Production serves the agent on that https origin
already, so its links do not change.

server/tests/unit/account-handlers.test.ts asserts the https scheme.
Account and agent objects that were copied inline now have one
definition each under core/: account setup (3 copies: account,
sync_accounts, and principal relationship), the account change resource
and its parent IDs, webhook delivery auth, buyer agent reference, and
readiness resource. Each site keeps its description.

Validation change, a correction the review chose: account setup url
references core/https-url.json, so it must be an https URL.
core/https-url.json carries x-max-length-4.0 2048, so the setup url
sites in core/account.json, account/sync-accounts-response.json, and
core/principal-relationship.json gain the 4.0 bound.

The review also gave the setup message a 1,000-character bound. No
published 3.x text sets that bound for account setup, so lint:additive-
minor would reject it under DR-0036; the message stays unbounded. The two
registry-event payloads wait for core/registry-event.json's
ridMergePayload, which this base does not have yet.

.schema-deltas/one-definition-account-agents.yaml lists the change. No
corpus instance changes verdict.

The readiness resource ID moves from
core/execution-requirement-readiness.json's definitions to its own
document, core/readiness-resource-id.json, and that entry becomes a $ref
to it. core/readiness-resource.json references the document's root, not
another document's definitions. The move changes no payload's verdict.

Pinned figures, measured at this commit:
- tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  from 1_440_000 to 1_441_000 (1_440_524 bytes).
Brings in 3 commits from main: adcontextprotocol#9170 (not-guards that resolve 11
overlapping oneOf unions, with tests/oneof-overlap-resolution.test.cjs),
adcontextprotocol#9141 (3.3.0-rc.3 version packages) and adcontextprotocol#9176 (rc.3 docs snapshot).

Resolution ledger

Mechanical files, resolved by rule:
- package.json (conflicted): test:schemas keeps both sides' entries,
  tests/named-schema-extraction.test.cjs from this branch and
  tests/oneof-overlap-resolution.test.cjs from main, at main's
  position. Every test file it names exists. The version (3.3.0-rc.3)
  is main's.
- package-lock.json: main's (version field only).

Interaction with adcontextprotocol#9170: this branch does not change any file adcontextprotocol#9170
touched. Two of adcontextprotocol#9170's guards point at files this branch changes:
content-standards/artifact.json (transcript and transcript_format
move to named $defs) and core/property-id.json (an x-max-length-4.0
annotation). Both changes keep the accepted payloads, so each guard
still refuses the same values. tests/oneof-overlap-resolution.test.cjs
passes on the merged tree (38 of 38), and the named-constraints lint
reports no inline copies and no repeated constraints.

Proof: schema equivalence against 14651cc with --manifest auto
--corpus --witness: 1515 roots, 374 differ, 3056 entries at 41 sites,
the same as against 2db59ba; the manifest matches exactly, 41/41
witnesses pass, no corpus verdict changes. The informational channel
keeps its 4255 entries at 89 sites; one adagents.json
x-max-length-4.0 entry at core/https-url.json is now reported through
adcontextprotocol#9170's new not branch instead of /oneOf/0. verify-build: PASS.
Brand objects that were copied inline now have one definition each under
core/: contact, voice synthesis, house summary, data subject
contestation, data subject rights routing and channel, font file,
structured font, rights disclosure, rights availability summary, the rights
grant attestation reference, brand context, and the
subsidiary, parent, and trademark brand claims. Eleven more copies
reference brand definitions (asset, fonts, logo, localized_name,
visual_guidelines, property, brand_agent). The brand.json definitions
entries that moved become $refs, so their in-file references keep
resolving.

Validation changes, all corrections the review chose: the adagents and
brand contacts take core/email-address.json (254 characters, and the
empty-string minLength gives way to format email) and the adagents
contact's optional fields; get_brand_identity voice synthesis declares
rights_offering_id; house domain and name reference core/domain-name.json
and core/parent-organization-name.json; get_brand_identity assets, logos,
names, and visual guidelines take the brand definitions; a required
rights disclosure carries non-empty text; and the brand claim property
takes the brand property's identifier and region rules.

Skipped: the property claim (claim.property) would narrow relationship
to an enum, which stays open until adcontextprotocol#9002; voice synthesis keeps provider
unbounded because no published 3.x text sets its 128-character bound;
four sites point into nested pointers of other documents.

core/data-subject-contestation.json carries the 4.0 bounds
core/brand-ref.json's copy stated (32 languages, 128 characters each),
so the brand.json data_subject_contestation site gains the 4.0 bound.
The core/transformer.json voice_synthesis_ref brand_agent site gains
the 4.0 bounds core/brand-agent-id.json (255 characters) and
core/https-url.json (2048 characters) carry.

.schema-deltas/one-definition-brand.yaml lists the changes, and the
DR-0036 register records the bounds with the published text behind
each. No corpus instance changes verdict.

The eleven copies that referenced brand.json definitions now reference
core documents instead. The seven definitions they named (asset, fonts,
logo, localized_name, visual_guidelines, property, and brand_agent),
with the 24 brand.json definitions those reach, move to their own
core/brand-*.json documents, and brand.json's entries become $refs to
them, so no reference points into another document's definitions. The
hex_color and logo_slot aliases stay in brand.json; the moved documents
reference core/hex-color.json and enums/logo-slot.json directly. The
move changes no payload's verdict, and the MCP projection no longer
bundles all of brand.json into each tool that reaches one of those
definitions.

scripts/lint-language-tag-refs-dispositions.json follows the moved
definitions: the contestation and rights-channel language reviews move
to core/data-subject-contestation.json and
core/data-subject-rights-channel.json, and the entries for the copies
merged into them and for localized_name, which the lint no longer finds,
are dropped. scripts/oneof-discriminators.baseline.json follows
font_role to core/brand-font-role.json.

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: the input-field weight report and
  the shared dictionary move from 1,240, 321 and 219 to 1,247, 322 and
  220 (+7 instances, +1 unique, +1 repeated);
- tests/mcp-schema-projection.test.cjs: the media-buy model-context
  budget moves from 550 to 551 KiB (564,093 bytes, 550.87 KiB);
- tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  from 1_441_000 to 1_444_000 (1_443_131 bytes);
- tests/mcp-schema-projection.test.cjs: the whole-projection cap moves
  from 25 to 26 MiB (26,317,378 bytes, 25.10 MiB).
Creative, preview, and format objects that were copied inline now have
one definition each: preview input (5 copies), opaque creative
accessibility, preview embedding metadata, format params, and the A2UI
component action (3 each), and component assets, localized creative
assets, locale fallback rule, format card, authority-free product format
declaration, diagnostic value labels, golden vector input row, creative
multiplicity, creative agent entry, preview variant, creative preview,
canonical format params, and inline package creative asset. Two more
copies reference core/creative-assets.json.

Validation changes, corrections the review chose:
- the build_creative single preview no longer requires expires_at,
  matching the preview_creative convention it cites (loosen);
- the transformer multiplicity declares the agent-level signal fan-out
  fields (tighten).

Skipped: canonical-projection-slot-override would narrow asset_type to
an enum, which stays open until adcontextprotocol#9002; validate-input-result target
needs a tagged rewrite, not a $ref; three sites point into nested
pointers of other documents; two creative-manifest sites come from
another PR.

.schema-deltas/one-definition-creative.yaml lists the changes. No corpus
instance changes verdict.

scripts/lint-language-tag-refs-dispositions.json moves the
locale_variant_id review of the locale fallback copies to
core/locale-fallback-rule.json, and
scripts/oneof-discriminators.baseline.json drops the creative asset and
list_creatives entries that the shared definitions replaced.

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: the input-field weight report and
  the shared dictionary move from 1,247, 322 and 220 to 1,252, 323 and
  221 (+5 instances, +1 unique, +1 repeated);
- tests/mcp-schema-projection.test.cjs: the media-buy model-context
  budget moves from 551 to 552 KiB (564,889 bytes, 551.65 KiB);
- tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  from 1_444_000 to 1_446_000 (1_445_228 bytes).
Signal and audience objects that were copied inline now have one
definition each under core/: signal taxonomy with its value and value
mapping, signal modeling with its seed source, signal onboarder,
reference population, universal ID, demographic signals execution, the
get_signals catalog entry, and a gender values execution entry in
core/demographic-targeting-resolution.json. Each site keeps its
description.

Validation change, a correction the review chose: taxonomy value
mappings reference core/signal-taxonomy-node-id.json, so
taxonomy_value_id is non-empty, as the taxonomy values' id already was.

Skipped: the wholesale feed signal stays inline, because the shared
entry lacks the wholesale copy's minItems and minLength bounds and the
$ref would loosen them; two demographic age branches point into another
union's branches.

core/signal-taxonomy-node-id.json carries x-max-length-4.0 255, so the
taxonomy_value_id sites of the core/signal-definition.json and
core/signal-definition-enrichment.json value mappings gain the 4.0
bound. The 3.3 lifecycle annotations (x-status experimental, x-added-in
3.3.0) stay at the two per_dimension call sites, beside the $ref, and
core/demographic-signals-execution.json carries none: the top-level
signals execution branch shipped in 3.2.11.

.schema-deltas/one-definition-signals.yaml lists the change, and the
DR-0036 register records the bound. No corpus instance changes verdict.

Tests: tests/reserved-word-enum-replacements.test.cjs reads each site
through the $refs on the way (schemaAt).

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: the input-field weight report and
  the shared dictionary move from 1,252, 323 and 221 to 1,254, 324 and
  222 (+2 instances, +1 unique, +1 repeated);
- tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  from 1_446_000 to 1_451_000 (1_450_376 bytes).
Optimization targets and trusted match objects that were copied inline
now have one definition each under core/: threshold rate target (4
copies), legacy cost-per target (3), optimization event source, maximize
value target, keyword match capabilities, trusted match product and
provider filters, targeting key-values, and TMP provider. Six more
copies reference core/keyword-target.json and core/negative-keyword.json.

Validation changes, corrections the review chose: optimization event
sources keep custom_event_name and value_field non-empty; the package
update keyword_targets_remove items take keyword-target's bid_price
declaration; keyword and negative-keyword capabilities list unique match
types.

.schema-deltas/one-definition-targeting-optimization.yaml lists the
changes, and the DR-0036 register records the bounds. No corpus instance
changes verdict.

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: the input-field weight report and
  the shared dictionary move from 1,254, 324 and 222 to 1,270, 329 and
  228 (+16 instances, +5 unique, +6 repeated);
- tests/mcp-schema-projection.test.cjs: the media-buy model-context
  budget moves from 552 to 553 KiB (566,109 bytes, 552.84 KiB);
- tests/capabilities-structural-bounds.test.cjs and
  docs/building/by-layer/L1/security.mdx: the open positions in the
  capabilities worst case move from 189 to 188, because the keyword and
  negative keyword targeting capabilities now share
  core/keyword-match-capabilities.json.
Delivery and reporting objects that were copied inline now have one
definition each under core/: media buy delivery with its totals and
daily rows, reporting period (4 copies), delivery reporting period (3),
metric identity (3), vendor metric key (3), paged delivery breakdown
controls (2), vendor metric definition and filter, reach window,
forecast metrics, and reporting source provider. Seven qualifier copies
reference the existing core/canonical-metric-qualifier.json. Totals keep
their allOf composition with core/delivery-metrics.json.

Validation changes, all corrections the review chose:
- the media_buy_delivery webhook rows take the get_media_buy_delivery
  row contract: package_id, pricing_model, rate, and currency are
  required on by_package rows, and windows totals declare
  effective_rate;
- the audience and placement breakdown cursors are non-empty
  (core/page-cursor.json);
- the comply_test_controller metrics and the canonical forecast point
  take the shared definitions' declared fields. The forecast metric keys
  were already admitted through additionalProperties with the same
  schema, so that manifest line is declared none.

Skipped: six breakdown controls whose omitted limit means "all rows" or
the seller's automatic set, which a $ref to the controls that default
limit to 25 would change; the dataset-share recipient, whose closure is
the credential-free destination guard; the product-filters vendor metric
filter, which would drop three brand-ref properties (property-removed,
which DR-0036 cannot correct); two reporting offering providers that
wait for core/delivery-provider.json to carry the RFC 1035 bounds; one
forecast breakdown that points into another document.

.schema-deltas/one-definition-delivery-reporting.yaml lists the changes,
and the DR-0036 register records each bound and required name with the
published 3.2.11 text behind it. No corpus instance changes verdict.

Tests: the delivery reporting, sort, breakdown negotiation, requested
metrics, projection, DOOH, deprecation, withdrawn-addition,
annotation-sweep, spot and demographic delivery, and
optional-impressions row tests read the delivery row, breakdown
controls, and reporting period sites through their $refs. Where a test
compared two copies for parity and both now reference one definition, it
asserts that they reference the same definition: the forecast point
twins share core/forecast-metrics.json, the delivery response and
webhook rows share core/media-buy-delivery.json, and every metric
qualifier copy references core/canonical-metric-qualifier.json.

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: the input-field weight report and
  the shared dictionary move from 1,270, 329 and 228 to 1,278, 334 and
  230 (+8 instances, +5 unique, +2 repeated);
- tests/mcp-schema-projection.test.cjs: the media-buy model-context
  budget moves from 553 to 554 KiB (566,431 bytes, 553.16 KiB).
Media buy objects that were copied inline now have one definition each
under core/: cancellation (4 copies), accepted proposal, purchase
opportunity context, flight history entry, IO acceptance, catalog match,
inventory list application summary, the submitted, failed, and
issue-task-failure results, the build_creative catalog item reference,
incomplete scope entry, and makegood policy. The submitted result states
its status tag, so the media buy commitment union's discriminator still
compiles.

Validation changes, all corrections the review chose:
- catalog match matched_ids are catalog item IDs (1 to 255 characters);
- IO acceptance io_id is 1 to 255 characters and signature_id is
  non-empty;
- the build_creative per-leaf catalog_item_ref requires item_id, as the
  creatives[] copy does;
- cancellations declare the shared fields.

Skipped: get_products incomplete[] stays inline, because the shared
entry's non-empty description has no published 3.x text behind it.

.schema-deltas/one-definition-media-buy.yaml lists the changes, and the
DR-0036 register records the bounds. No corpus instance changes verdict.

Tests: tests/reporting-subscriptions.test.cjs reads the cancellation and
reporting window rows through their $refs, and
tests/extension-fields.test.cjs reads the create_media_buy submitted
branch through its $ref.

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: the input-field weight report and
  the shared dictionary move from 1,278, 334 and 230 to 1,281, 336 and
  231 (+3 instances, +2 unique, +1 repeated);
- tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  from 1_451_000 to 1_453_000 (1_452_389 bytes).
Governance objects that were copied inline now have one definition each
under core/: governance finding and its details, delivery statement,
its canonical payload, delivery metrics and observation, plan budget
summary, plan adjustment amount and evidence, regulatory framework
reference, audience index map, governance agent and feature definition,
verifier agent reference, the attestation brand, agent, and origin
issuer identities, and the attestation evaluation pair. The
check_governance request's delivery_metrics, the source of the delivery
metrics contract, references the same definition, and its audience
dimension key moves to core/audience-dimension-key.json so the shared
audience index map does not reach into the request document.

Validation changes, all corrections and accepted plausible-impact lines
the review chose:
- retained delivery statements type their delivery_metrics and require
  reporting_period;
- get_plan_audit_logs delivery observations require the observation
  fields, with the seller-statement guard;
- regulatory jurisdictions are ISO 3166-1 alpha-2 codes, and plan
  adjustment evidence takes its bounds.

core/verifier-agent-ref.json carries x-max-length-4.0 128 on feature_id,
so the core/evaluator-spec.json feature_agent site gains the 4.0 bound.

.schema-deltas/one-definition-governance.yaml lists the changes. No
corpus instance changes verdict.

report_plan_outcome plan_summary stays inline: the shared plan budget
summary requires budget_remaining and eight ledger fields that the
reference training agent's emitter and the docs examples do not send
yet, so that change lands with them.

Tests: tests/url-pattern-loosening.test.cjs reads each site through the
$refs on the way (schemaAt).

Pinned figures, measured at this commit:
- tests/mcp-schema-analysis.test.cjs: the input-field weight report and
  the shared dictionary move from 1,281, 336 and 231 to 1,296, 339 and
  234 (+15 instances, +3 unique, +3 repeated);
- tests/mcp-schema-analysis.test.cjs: the standalone experiment context
  reaches 409,997 bytes (400.39 KiB), so its tolerance band ends at 420
  KiB instead of 400 KiB;
- tests/mcp-schema-projection.test.cjs: the media-buy model-context
  budget moves from 554 to 555 KiB (567,927 bytes, 554.62 KiB);
- tests/capabilities-structural-bounds.test.cjs and
  docs/building/by-layer/L1/security.mdx: the open positions in the
  capabilities worst case move from 188 to 187: the two provenance
  verify agents, the three attestation issuer branches, and the
  governance creative feature definition now reference five shared
  definitions.
Content standards objects that were copied inline now have one
definition each under core/: calibration exemplars and their URL
reference, feature check result, and bulk pagination (3 copies,
core/bulk-pagination.json). Each site keeps its description.

Validation changes, all corrections the review chose:
- calibration exemplar URL languages reference core/locale-tag.json;
- the content-standards copy of calibration exemplars accepts URL
  references beside artifacts, as the request copies do (loosen). Like
  the request copies' union, it rejects an entry that is both a valid
  URL reference and a valid artifact (tighten); the manifest gives the
  payload;
- bulk pagination cursors are non-empty;
- calibrate_content and validate_content_delivery feature results
  declare the optional requirement field.

The calibrate_content and validate_content_delivery feature results keep
x-entity governance_registry_policy on policy_id, beside their allOf
$ref. core/feature-check-result.json omits it, because
property/validation-result.json's policy_id can name an inline policy
(adcontextprotocol#2685).

.schema-deltas/one-definition-content-standards.yaml lists the changes,
and the DR-0036 register records the bounds. No corpus instance changes
verdict.

scripts/lint-language-tag-refs-dispositions.json drops the four
calibration exemplar language reviews: the URL reference now takes
core/locale-tag.json.
The SI brand agent response and the SI transaction product, each copied
twice, now have one definition under core/. The si_initiate_session
response takes the shared response's declared fields, a correction the
review chose.

.schema-deltas/one-definition-sponsored-intelligence.yaml lists the
change. No corpus instance changes verdict.
Task and error objects that were copied inline now have one definition
each under core/: task error response (5 copies), task response body,
error details, principal operation failure, and the task list and
status parts: summary, filters, sort and applied sort, history entry,
progress, list query summary, domain and status breakdowns, and error
summary and details. Nine async response documents compose the existing
core/compact-task-submitted.json and core/compact-task-working.json.

Validation changes, all corrections the review chose:
- the task status error code references core/open-error-code.json;
- working progress payloads take compact-task-working's current_step
  bound and step_number minimum.

The four protocol task documents (get_task_status, list_tasks) stay full
copies of core/tasks-*.json: a tool document that only composes another
fails the MCP 2026-07-28 projection in build:schemas.
get_creative_features' submitted branch stays inline: through its async
document it would reach the status tag two $refs away, which
audit-oneof (one hop) reports as an undiscriminated union.

.schema-deltas/one-definition-tasks-and-errors.yaml lists the changes,
and the DR-0036 register records the bounds. No corpus instance changes
verdict.

Tests: the buyer reason, mutation outcome, error recovery, creative
delivery, and budget-too-low tests compile core/error.json with the
named documents it references (addReferencedSchemas) and read the error
details through its $ref. tests/response-envelope-composition.test.cjs
follows a request's named documents to its task_id carriers, and its
floor of submitted bodies moves from 19 to 15: the sync_creatives,
build_creative, sync_catalogs, and update_media_buy submitted documents
now name core/compact-task-submitted.json, which the test checks once.
…ject series

Brings in adcontextprotocol#8536's head, which carries main at 2db59ba: the
single-value deprecations of the scalar-or-list unions (adcontextprotocol#9123),
PROPOSAL_TERMS_CHANGED (adcontextprotocol#9171), the reporting dimension systems (adcontextprotocol#9049),
and the latest/extensions build fix.

Resolution ledger:
- semantic: core/creative-localization.json and
  core/creative-localization-readback.json keep the series' $ref to
  core/localized-creative-assets.json. adcontextprotocol#9123 gives both sites the same
  single-value deprecation, so it moves onto that definition's
  single-value branch.
- semantic: core/creative-asset.json and
  creative/list-creatives-response.json take adcontextprotocol#9123's inline asset maps.
  adcontextprotocol#9123 gives these creative asset maps, like the one in
  core/creative-manifest.json, a site-specific deprecation text (send a
  one-item array to 3.1 or later; 3.0 accepts only the single value),
  while core/creative-assets.json, which the component asset maps
  share, carries the shorter text. One definition cannot carry both, so
  these two maps stay inline, as the manifest's does. Their
  component_assets keep the series' $ref.
- semantic: static/compliance/source/universal/v4-compatibility.yaml
  lists core/localized-creative-assets.json's single-value branch in the
  adcontextprotocol#8477 single-value entry, in place of the two localization sites that
  now reference it.
- mechanical: scripts/oneof-discriminators.baseline.json keeps adcontextprotocol#8536's
  entries for the two inline asset maps, which the series had removed
  when those maps referenced core/creative-assets.json.
- mechanical (remeasured on the merged tree):
  tests/capabilities-structural-bounds.test.cjs and
  docs/building/by-layer/L1/security.mdx: worst case 99,149,720 bytes
  (main's), open positions 190 (main's 193 less the series' 3);
  tests/mcp-schema-projection.test.cjs: the parity compile limit moves
  to 1_457_000 (1_456_358 bytes) and the media-buy model-context budget
  to 558 KiB (571,034 bytes, 557.65 KiB).

Every annotation change main makes lands at the same instance position
in the merged tree, and the equivalence tool finds the merge adds
exactly main's 88 validation differences, in the same 11 roots.
…ject series

Brings in adcontextprotocol#8536's head, which carries main at 14651cc: the oneOf
overlap guards (adcontextprotocol#9170) and the 3.3.0-rc.3 release.

Resolution ledger:
- semantic: the five content-standards responses whose error branch
  references core/task-error-response.json (calibrate_content,
  get_content_standards, get_media_buy_artifacts,
  list_content_standards, validate_content_delivery) take adcontextprotocol#9170's guard
  at the call site. The branch becomes an allOf of that reference, with
  `not` of the response's own success branch and adcontextprotocol#9170's description.
  core/task-error-response.json stays unguarded.
- semantic: core/calibration-exemplars.json takes adcontextprotocol#9170's guard on the
  URL reference branch of pass and fail, as an allOf of
  core/calibration-url-reference.json with `not` the artifact. The
  create and update requests keep their $ref to it. The guard also
  reaches the content-standards/content-standards.json exemplars, which
  reference the same definition: an artifact that also carries a URL
  reference's type and value, which main accepts and the series' shared
  union rejected, validates again.
- semantic: tests/oneof-overlap-resolution.test.cjs checks each
  request's calibration_exemplars and the branches in
  core/calibration-exemplars.json, and its harness reuses a document
  another one already loaded.
- clean: adagents.json, property/property-feature-result.json, and
  content-standards/create-content-standards-response.json take
  adcontextprotocol#9170's guards as they are; the release files take rc.3.

The pinned figures stay: parity 1_456_358 bytes under 1_457_000,
media-buy 571,034 bytes under 558 KiB, and the capabilities worst case
99,149,720 bytes with 190 open positions.

The equivalence tool finds the merge adds adcontextprotocol#9170's guards and nothing
else: main's validation differences at the sites that now hold the
branches, plus the content-standards.json exemplars through the shared
guard. Every annotation change main makes lands at the same instance
position.
@mintlify

mintlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 9bd5b04.

Approve preview

…ent conjunction merge

The schema equivalence check (adcontextprotocol#9119) now merges the members of a
conjunction the same way however allOf groups or orders them. Before,
the first member that could combine took the next one, so the result
depended on member order. Two manifests were written against that
grouping:

- properties-identifiers: core/identifier.json's allOf has two if/then
  members, for domain and subdomain values. The old merge took the
  domain one into the object and left the subdomain one separate. Now
  neither joins the object, so the domain rule shows as an allOf member
  at each referencing site, like the subdomain rule already did. Its if
  and then lines become six allOf lines, one per site.
- delivery-reporting: 18 properties lines render a viewability or
  identifier node whose allOf has two if/then members. Neither joins
  the object now, so each node renders one more member. The values
  change; the lines, directions, and notes don't.

No schema changes, and no other manifest changes. Each commit's
differences still match its manifest exactly.
KonstantinMirin added a commit to KonstantinMirin/adcp that referenced this pull request Nov 23, 2026
…ommits

CI compares a PR's merge commit with its first parent, so it sees the
whole PR. A series that gives each commit its own manifest failed there
although every commit matched its manifest: a later commit can change a
site an earlier line describes, and a merge can change a value inside
one. On adcontextprotocol#9180, the adcontextprotocol#9170 guard that a merge ported into
core/calibration-exemplars.json left four content-standards lines
unmatched, and brand line 31 showed the wrong side.

With --manifest auto, when the lines do not match the range as a whole
and the range has more than one commit, the check now composes them in
commit order. It compares each commit of base..head with its first
parent: a commit that adds or changes a manifest file must show exactly
that file's lines, any other commit must show no difference, and a
merge's net effect is part of the chain. When the head is a merge into
the base, as on CI, the merge itself is left out. If every commit passes,
the range's differences are the composition of declared changes.

The composition is checked on commits, not on rendered values. A render
names a shared node by the first location it met it at, so the same
schema renders differently once an earlier commit extracts a definition,
and a merge's change can sit inside a value another line declares.

A line's side is the side its own commit reaches. A later commit that
makes the site reachable from the other side is checked against its own
lines, so the report notes the widening instead of failing it. Each
line's witness comes from its own commit, with validators that compile
only the roots a line reaches. The workflow fetches the PR's history,
and its timeout goes from 10 to 20 minutes: adcontextprotocol#9180 as one range takes
about 5 minutes on a 16-vCPU box.

Four CLI tests on scratch repositories, each failing before this change:
two commits at one site, an undeclared change in the second commit, a
merge whose resolution adds a rule, and a site a later commit makes
reachable from requests.
KonstantinMirin added a commit to KonstantinMirin/adcp that referenced this pull request Nov 24, 2026
…check

Checking a range commit by commit built both full trees for every commit
and compared all 1,500 roots twice (once more for the informational
channel), then searched every line's witness in its own commit with its
own validators. adcontextprotocol#9202 as one range (93 commits) took 59 minutes on a box:
25 for the commit walk and 32 for witnesses.

Each commit now compares only the roots that reach a changed document
through $refs in its parent or in itself, without the informational
channel. Every other root reaches byte-identical documents, so its
canonical form is the same. A commit that changes no schema file has no
difference and shares its parent's tree. A changed released schema
compares every root, because releases reference each other and only
source documents are indexed.

A line that matches the range's differences on its own now gets its
witness from the range, with one pair of validators for all such lines.
The others, and any line the range search does not confirm, still get
theirs from the commit that declares it; the report says which (`from`).
Both are the same evidence: a payload one side accepts and the other
rejects, whose verdict comes back when that line alone is reverted.

adcontextprotocol#9180 as one range goes from 363 to 202 seconds and adcontextprotocol#9202 from about 59
to 17 minutes, with the same differences; adcontextprotocol#8536, a single-manifest range,
is unchanged. adcontextprotocol#9202 still needs more than the workflow's 20 minutes with
the rest of the job, so the timeout goes to 30 with the measurements in
a comment.

Two tests: a change two $refs from a root is still found in its commit
while a commit without schema changes compares nothing, and lines that
match the range take their witness from it while the others take it from
their commits.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core: four inline copies of identifier.json disagree with it on additionalProperties

1 participant