Repository navigation
fix(schemas): one definition per object field, and a blocking near-duplicate gate - #9202
Open
KonstantinMirin wants to merge 98 commits into
Open
KonstantinMirin wants to merge 98 commits into
KonstantinMirin wants to merge 98 commits into
Conversation
… 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
Delivery and reporting fields that were written inline now reference
one definition each:
- Forecast rows: core/forecast-point.json and
core/canonical-forecast-point.json product_id reference
core/product-id.json, and core/delivery-forecast.json currency
references core/currency-code.json, as the compact forecast does.
- Measurement terms: both billing_measurement objects reference
core/measurement-window-id.json for measurement_window and the new
core/finalization-deadline-hours.json for
finalization_deadline_hours. The compact terms' closed makegood policy
moves to core/canonical-makegood-policy.json, written as
core/makegood-policy.json is.
- Vendor metrics: the breakdown payload of vendor-metric-value,
forecast-vendor-metric-value, and canonical-forecast-vendor-metric-value
references core/vendor-metric-breakdown.json. The compact product's
reporting_capabilities.vendor_metrics[] declares vendor_relationship,
as core/reporting-capabilities.json does.
- Breakdown controls: every get_media_buy_delivery breakdown limit and
the shared controls documents reference the new
core/delivery-breakdown-limit.json, which has no default. The
catalog item, creative, keyword, and format controls reference the
new core/automatic-limit-breakdown-controls.json, and the device type
and device platform controls the new
core/automatic-limit-paged-breakdown-controls.json: both are parallel
to the controls whose limit defaults to 25, and an omitted limit
leaves the row count to the seller. Each site states what an omitted
limit means for it in its description. The device cursors reference
core/page-cursor.json. The demographic controls compose
core/delivery-breakdown-controls.json and add age_ranges.
- Planned delivery: geo countries and regions reference
core/country-code.json and core/country-subdivision-code.json.
- Providers: core/delivery-provider.json domain references the new
core/provider-domain.json, a dotted core/domain-name.json. The
reporting delivery offering's method provider and producer identity
provider reference core/delivery-provider.json. The share and write
destination providers, two closed copies, reference the new
core/reporting-destination-provider.json. The share recipient and the
producer identity take cloud from enums/delivery-recipient-cloud.json,
as core/delivery-recipient.json does, so the ReportingCloud wrapper
definition is removed.
- Reporting schedule: period_duration references
core/reporting-period-duration.json, and both schedules' delivery_sla
reference the new core/reporting-delivery-sla.json.
- The get_creative_delivery offset pagination limit references the new
core/creative-delivery-page-limit.json, so it stays apart from the
breakdown limit.
The eight new documents are listed in index.json.
Validation changes, all corrections under DR-0036:
- forecast product_id is non-empty (tighten). 3.2.12
core/canonical-product.json sets minLength 1 on the product ID;
- the forecast currency matches ^[A-Z]{3}$ (tighten). 3.2.12
delivery-forecast.json names "ISO 4217 currency code", and the 3.2.12
compact forecast publishes the pattern;
- planned delivery countries and regions match the ISO 3166-1 alpha-2
and ISO 3166-2 patterns (tighten), the standards 3.2.12
planned-delivery.json names;
- a measurement window ID is non-empty everywhere it appears (tighten),
as 3.2.12 core/canonical-measurement-terms.json publishes for the
billing measurement window, which names a window_id;
- the billing measurement window is at most 50 characters (tighten), as
3.2.12 core/measurement-window.json publishes for window_id;
- the device type and device platform breakdown cursors are non-empty
(tighten), on the basis the register already uses for the other
breakdown cursors (3.2.11 list-account-changes-request.json);
- the delivery provider domain limits labels to 63 characters and the
name to 253 (tighten), as core/domain-name.json does for every domain
(RFC 1035; 3.2.8 upstream_source_domain);
- the offering and destination provider domains are dotted (tighten).
3.2.12 core/delivery-provider.json says "Single-label and
localhost-style names are invalid.";
- the compact product's vendor_relationship takes the enum (tighten).
3.2.12 reporting-capabilities.json declares it on vendor_metrics[],
and the 3.2.12 enum says the seller declares it there;
- the installed reporting schedule's period_duration and delivery_sla
are at most 64 characters (tighten). 3.3.0-beta.1
reporting-schedule-offering.json sets maxLength 64 on both and says
they "MUST equal the installed configuration".
The register entries in scripts/lint-additive-minor-corrections.json
record the bounds the additive-minor check sees; the manifest quotes the
rest.
What stays as it is:
- the compact measurement terms and their makegood policy stay closed:
they hold terms the buyer is bound by, held closed until 4.0;
- core/performance-standard.json keeps a BrandRef vendor. A BrandKey
vendor would drop the brand reference's override fields, which the
additive-minor check reports as removed properties;
- the get_products required_vendor_metrics filter keeps a BrandRef
vendor, parallel to core/vendor-metric-filter.json, which takes a
BrandKey; both reference core/vendor-metric-id.json;
- the compact forecast, vendor metric, and reporting capability
projections keep their BrandKey vendors;
- the canonicalization contract's empty_report vector keeps its const
digest and bytes; its purpose tag already tells it apart.
.schema-deltas/one-definition-delivery-reporting-alignment.yaml lists
the changes. 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,426, 370 and 258 to 1,432, 376 and
258;
- tests/mcp-schema-projection.test.cjs: the media-buy model-context
budget moves from 579 to 580 KiB (593,713 bytes), and the parity
compile limit from 1,479,000 to 1,481,000 (1,480,723 bytes);
- tests/capabilities-structural-bounds.test.cjs and
docs/building/by-layer/L1/security.mdx: the worst-case capabilities
document moves from 99,258,098 to 99,225,714 bytes, and its open
positions from 187 to 186.
Media buy fields that were written inline now reference one definition each: - core/product.json product_id and name reference core/product-id.json and core/product-name.json, as the canonical product already does. - The catalog ID in core/catalog.json, core/catalog-selection.json, and core/catalog-item-availability-update-result.json references core/catalog-id.json, and the update result's item_id references core/catalog-item-id.json. - The get_media_buy_delivery and media_buy_delivery webhook package rows (core/media-buy-delivery.json, by_package and windows[].by_package) reference core/package-id.json. - The sync_event_sources request and response event_source_id reference core/event-source-id.json. - A package-scoped action's applicable package list has one definition, core/applicable-package-ids.json, shared by the available action and the canonical action fields. - The sync_audiences audience_id has one definition, core/audience-id.json. The audience source locator and segment reference have one definition each, core/audience-source-locator.json and core/audience-source-segment-ref.json, shared by core/audience-source.json and the sync_audiences source echo. - get_products incomplete[] references core/incomplete-scope-entry.json, which now carries the field descriptions every site agreed on. get_signals incomplete[], from the signals change, stays parallel. - The sync_catalogs operation error item is a named definition, core/catalog-sync-error.json, so the error branch is told apart from the other task error branches by reference. - The deprecated get_products regions filter and the offer filters' geo_proximity state their item definitions directly (core/country-subdivision-code.json, core/geo-proximity.json), instead of a pointer into core/targeting.json. - Repeated fragments are local definitions: the refine_proposals draft successor, the sync_reporting_receipts received receipt and adjustment receipt, and the sync_reporting_status recorded consumer status. The six new documents are listed in index.json. Validation changes, all corrections under DR-0036: - product IDs and names are non-empty (tighten). 3.2.12 core/canonical-product.json, the compact form of the same product, sets minLength 1 on both; - catalog IDs and catalog item IDs are 1 to 255 characters (tighten). 3.2.12 core/catalog-item-availability-update.json bounds both, and the update result echoes them; - delivery package_id values are non-empty (tighten). 3.2.12 media-buy/package-control.json sets minLength 1 on the package ID; - sync_event_sources event_source_id values are non-empty (tighten). 3.2.12 core/optimization-goal.json sets minLength 1 on the event source ID that sync_event_sources configures. The result's event_types holds at least one entry (tighten), as 3.2.12 media-buy/sync-event-sources-request.json does; - the canonical product's allowed_actions and placements hold at least one entry and max_optimization_goals is at least 1 (tighten), as 3.2.12 core/product.json sets them; - product installments hold 1 to 500 entries (tighten), as 3.3.0-beta.1 core/canonical-product.json, the compact form of the same product, sets them; - product conversion_tracking.supported_targets lists unique values (tighten). 3.2.12 get_adcp_capabilities sets uniqueItems on the seller-level form of the same list; - get_products incomplete[].description is non-empty (tighten). 3.2.12 media-buy/list-products-response.json sets minLength 1 on the same entry's description; - get_products suggestions hold at least one entry, as 3.2.12 get-products-rejected.json requires. Only the rejected arm carries suggestions, and it already required one, so no payload changes; - the deprecated get_products regions filter takes ISO 3166-2 codes (tighten). 3.2.12 points the field at offer_filters.regions, which it defines as ISO 3166-2 subdivisions with the same pattern; - the sync_audiences source echo takes the request's locator (1 to 512 characters) and segment reference (1 to 256) bounds (tighten), as 3.2.12 core/audience-source.json sets them; - a legacy available action with review_sla names task sync_creatives when it names a task (tighten), as the canonical action fields do. review_sla is new in 3.3. Each numeric bound has a register entry in scripts/lint-additive-minor-corrections.json; the pattern, uniqueItems, and guard lines quote their basis in the manifest. What stays as it is: - the audience_id bound: no 3.x text gives an audience ID a bound, so core/audience-id.json adds none here; - the canonical measurement terms' makegood_policy, the inventory list application branches, and product purchase input write their shared fields the same way as the definitions they parallel. A reference into another document's properties would add a pointer into that document, so they stay parallel; - the sync_audiences source echo keeps its inline kind values: the audience source branches state kind as their union tags, so no other site would share a kind enum; - the insertion order total_budget and the job salary range already reference core/money.json and core/open-ended-numeric-range.json. The sync_reporting_receipts and sync_reporting_status results are local definitions of their documents (receipt_result, status_result), so the two responses are told apart by what they report. .schema-deltas/one-definition-media-buy-alignment.yaml lists the 24 lines. 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,432, 376 and 258 to 1,439, 379 and 258; - tests/mcp-schema-projection.test.cjs: the media-buy model-context budget moves from 580 to 581 KiB (594,581 bytes), the creative budget from 455 to 456 KiB (466,273 bytes), and the parity compile limit from 1,481,000 to 1,483,000 (1,482,889 bytes).
The pricing option branches stay parallel members of the core/pricing-option.json union, each with its pricing_model tag. Their shared fields now reference one definition each: - fixed_price, floor_price, min_spend_per_package, and eligible_adjustments reference the new core/fixed-price.json, core/floor-price.json, core/min-spend-per-package.json, and core/eligible-adjustments.json in every branch that carries them (all but revenue_share; floor_price is absent from cpa) and in core/canonical-pricing-option.json. The CPA fixed_price composes core/fixed-price.json and keeps its own exclusiveMinimum 0. - pricing_option_id references core/pricing-option-id.json in every branch, as the revenue share branch and the compact form already do. - The CPA custom_event_name and event_source_id reference core/custom-event-name.json and core/event-source-id.json, as the revenue share branch does. - core/vendor-pricing-option.json states its object type at the root, so its first allOf member reads as a part of the document, not as a second definition of the vendor pricing option. Each site keeps its description. The four new documents are listed in index.json. Validation changes, all corrections under DR-0036: - pricing_option_id is non-empty in the cpm, vcpm, cpc, cpcv, cpv, cpp, cpa, flat_rate, and time branches (tighten). 3.2.12 pricing-options/revenue-share-option.json sets minLength 1 on the same ID, with the same description, and so does core/canonical-pricing-option.json; - the CPA custom_event_name and event_source_id are non-empty (tighten), on the same 3.2.12 revenue share branch, which sets minLength 1 on both; - a cpm, vcpm, cpc, cpcv, cpv, cpp, flat_rate, or time option rejects fixed_price and floor_price together (tighten). The 3.2.12 floor_price of each branch reads "Minimum acceptable bid for auction pricing (mutually exclusive with fixed_price)", and the 3.2.12 compact form states the same not-required guard; - a CPA option with event_type custom requires custom_event_name (tighten). The 3.2.12 CPA custom_event_name reads "Required when event_type is 'custom', ignored otherwise.", and the 3.2.12 compact form states the rule; - the compact form of a CPA option requires a fixed_price greater than 0 (tighten), as 3.2.12 pricing-options/cpa-option.json sets; - the compact form of a revenue share option rejects fixed_price, floor_price, and price_guidance, and omits custom_event_name unless event_type is custom (tighten), as the 3.2.12 revenue share branch states in its allOf. The ID and event-name bounds have register entries in scripts/lint-additive-minor-corrections.json. The lint does not read not, if, then, or else, so the guard quotes and permalinks are in the manifest notes. What stays as it is: - each branch stays its own definition with its own title and tag. No branch becomes a base for another, and the compact form stays a separate projection with additionalProperties false; - the branch parameters objects (CppParameters, CpvParameters, DoohParameters, TimeParameters) each describe one pricing model and have one definition already; the compact form keeps its open parameters object; - a CPA option may still carry custom_event_name with another event_type: its text says the name is ignored otherwise; - max_bid stays inline in the five auction branches. It is deprecated and is removed in the next major; - the vendor pricing_option_id keeps its own contract and x-entity: it names an option of a vendor agent, not of a product. .schema-deltas/one-definition-pricing-alignment.yaml lists the 17 lines. 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,439, 379 and 258 to 1,443, 383 and 258; - tests/mcp-schema-projection.test.cjs: the media-buy model-context budget moves from 581 to 582 KiB (595,239 bytes), and the parity compile limit from 1,483,000 to 1,487,000 (1,486,628 bytes).
Governance plan identifiers and versions that were declared inline now
reference one definition each. The new core/governance-plan-id.json is
the plan ID that sync_plans, get_plan_audit_logs, check_governance,
report_plan_outcome, report_plan_adjustment, and the governance
finding's source_plan_id declared separately, including the plan ID
arrays (member_plan_ids, plan_ids, portfolio_plan_ids). The new
core/governance-plan-version.json is the plan version that the
sync_plans result and the get_plan_audit_logs record declared. Each
site keeps its description; x-entity governance_plan moves onto the
shared definition, which every site carried.
The get_adcp_capabilities governance property_features items, an exact
copy of core/governance-feature-definition.json, now reference it, as
creative_features already did. The shared definition's feature_id and
methodology_url descriptions now cover both property and creative
features.
The rights-grant attestation reference's issuer pins type to brand and
now states default brand beside the const. The check_governance runtime
attestation subject is titled Signal Runtime Attestation Subject.
Neither changes validation.
Validation changes, all corrections that the published text of the
major already states:
- a governance plan_id is non-empty everywhere, as 3.2.12
governance/report-plan-adjustment-request.json publishes for the same
plan identifier;
- check_governance delivery_metrics geo_distribution keys are ISO
3166-1 alpha-2 codes (core/country-code.json), the standard the
3.2.12 description names;
- channel_distribution keys are values of enums/channels.json, as the
3.2.12 description states ("Keys are channel enum values").
The governance-delivery-monitor storyboard sent the channel key video,
which is not a channel. It now sends olv, and its two delivery
statement digests are recomputed.
Left as they are:
- the report_plan_outcome seller_response packages[].budget stays
inline: it matches core/package.json budget, but that budget has no
document of its own, and a $ref into core/package.json would point
inside another document;
- the plan_id on create_media_buy and on the comply_test_controller
seed_plan params stays inline for now: those documents belong to the
media buy and compliance changes.
core/agent-url-reference.json names an agent by its HTTPS URL. The
attestation verifier nomination references it, and the agent form of
core/evaluator-spec.json composes it and keeps its own agent_url
description.
The get_plan_audit_logs and sync_plans plan entries are local
definitions of their documents (plan_audit_record, plan_sync_result), so
the two responses are told apart by what they report.
scripts/lint-storyboard-context-entity.cjs resolves a $ref to a
fragment, including a local definition, so a capture through the
sync_plans plan entry still finds its x-entity.
Tests: tests/x-added-in-3-3-sweep.test.cjs reads the evaluator agent's
agent_url in its composing member, and
tests/seller-governance-policy-surfaces.test.cjs reads the audit entry
through plan_audit_record.
.schema-deltas/one-definition-governance-alignment.yaml lists the
changes. No corpus instance changes verdict.
Pinned figures, measured at this commit:
- tests/capabilities-structural-bounds.test.cjs and
docs/building/by-layer/L1/security.mdx: the open positions in the
capabilities worst case move from 186 to 185, as the capabilities
property_features items reference core/governance-feature-definition.json.
Content standards fields that were written inline now reference one definition each: - The scope of a content standards configuration has one definition, core/content-standards-scope.json. The create request's scope references it. The update request's scope is a partial update, so it stays a parallel object with nothing required, and states each field the same way. - The calibrate_content and validate_content_delivery feature results, two identical refinements of core/feature-check-result.json, reference core/content-standards-feature-check-result.json. Both sites carried x-entity governance_registry_policy on policy_id, so the shared definition carries it. - The artifact video and audio assets take transcript_source from one local definition, content-standards/artifact.json#/$defs/transcript_source. Each site keeps its description. - The build_creative evaluator's exemplars, in core/evaluator-spec.json, compose core/calibration-exemplars.json and keep their artifact-only pass and fail items. - countries_all and languages_any on the configuration and on both requests reference core/country-code.json and core/locale-tag.json. - The artifact webhook and get_media_buy_artifacts package_id reference core/package-id.json. Each site keeps its description. - The create_content_standards success branch is titled CreateContentStandardsSuccess, as the update branch is. The two new documents are listed in index.json. Validation changes, all corrections under DR-0036 unless marked: - countries_all values are two upper-case letters (tighten). 3.2.12 describes the field on the configuration and both requests as "ISO 3166-1 alpha-2 country codes", a standard that names that form; - languages_any values are BCP 47 tags (tighten). 3.2.12 describes them as "BCP 47 language tags" and publishes core/locale-tag.json, with minLength 2, maxLength 63, and the tag pattern; - package_id is non-empty on the artifact webhook and the get_media_buy_artifacts record (tighten). 3.2.12 media-buy/package-control.json sets minLength 1 on the package ID; - the artifact webhook batch_number is at least 1 (tighten). 3.2.12 describes it as "Current batch number (1-indexed)"; - an audio transcript_source also takes subtitles and dub, as a video transcript_source does (loosen). Each bound the additive-minor lint sees has a register entry in scripts/lint-additive-minor-corrections.json. What stays as it is: - the update request's scope does not require languages_any. A partial update may change only countries or channels, and no published text requires the field there; - the configuration keeps countries_all, channels_any, and languages_any at its top level, written as the scope writes them; - the artifact webhook total_batches and total_artifacts gain no minimum here: no published text bounds them, so they are proposed with the other unpublished bounds; - the create_content_standards error branch is left to the task error definitions. scripts/lint-language-tag-refs-dispositions.json drops the three languages_any reviews: the fields now take core/locale-tag.json. The calibration exemplar union, a URL reference or a full artifact, is core/calibration-exemplar.json, which pass and fail reference; the policy exemplars keep their own. scripts/oneof-discriminators.baseline.json records the union at its new location in place of the two copies. Tests: tests/oneof-overlap-resolution.test.cjs checks the calibration exemplar branches in core/calibration-exemplar.json. .schema-deltas/one-definition-content-standards-alignment.yaml lists the changes. No corpus instance changes verdict. Pinned figures, measured at this commit: - tests/mcp-schema-projection.test.cjs: the creative model-context budget moves from 456 to 457 KiB (467,742 bytes), and the cap on the whole projection from 26 MiB to 27 MiB (27,268,533 bytes).
The sponsored context disclosure jurisdiction country in
sponsored-intelligence/si-sponsored-context.json references
core/country-code.json, as the provenance disclosure jurisdiction
country already does. The site keeps its description.
Validation changes, all corrections under DR-0036:
- the disclosure jurisdiction country must be a two-letter uppercase
code (tighten). 3.2.12 si-sponsored-context.json describes the field
as "ISO 3166-1 alpha-2 country code.", an external standard the text
names, and core/country-code.json states that standard as
^[A-Z]{2}$.
The lint does not compare pattern, so the quote and the permalink are
in the manifest note, not in the register.
What stays as it is:
- the SI disclosure jurisdiction keeps its own title and stays a
separate object from the provenance disclosure jurisdiction: it is
the obligation a receiving host accepts or rejects at the SI
boundary, not a creative's provenance claim, and it carries no
label_text or render_guidance.
.schema-deltas/one-definition-sponsored-intelligence-alignment.yaml
lists the line. No corpus instance changes verdict.
Task response branches and error fields that were written more than once now have one definition each: - The submitted branch of a task response has one definition, core/task-submitted-response.json: the task acknowledgement, optional advisory errors, and the echoed context. The sync_creatives, build_creative, sync_catalogs, update_media_buy, and control_media_buy submitted branches reference it and keep their titles and descriptions. update_media_buy keeps its context description, and the control_media_buy branch takes the advisory errors description the others carry. - An error's message has one definition, core/error-message.json. core/error.json, core/task-error-summary.json, the stale-response original_error, and the catalog item reference error reference it. original_error.code references core/open-error-code.json, and the catalog item reference error's code and recovery reference core/open-error-code.json and enums/error-recovery.json beside their constants. - The get_reporting_status unavailable error, written twice, is one local definition, ReportingStatusUnavailableError. It composes core/error.json, which the envelope's adcp_error already applies, and keeps its closed constant shape. - A working task's current step has one definition, core/task-current-step.json, which core/compact-task-working.json and the sync_creatives progress payload reference. - The applied task sort field references enums/task-sort-field.json, as the requested task sort does. - The agent notification config a caller registers has one definition, core/agent-notification-config-registration.json, which sync_agent_notification_configs and sync_principal reference. - The reporting subscription write subscription_id references core/reporting-subscription-id.json, which takes its guard. - The test controller's property delivery rows reference core/domain-name.json for publisher_domain, as the delivery rows they must match do. - The OAuth protected-resource capability and the gender targeting support rollup in get_adcp_capabilities, two concepts that share a one-flag shape, are each a named local definition. - The four protocol task aliases, get_task_status and list_tasks request and response, compose core/tasks-get-*.json and core/tasks-list-*.json instead of copying them. Each keeps its $id, title, description, x-tool-summary, and examples. The MCP projection reads a root-only composed request as the document it composes, so the projected tool inputs are byte-identical. The projection test's parity mutation reads the composed root the same way. core/tasks-get-response.json leaves task_id and status to the protocol envelope, as get_task_status already did, so the alias composes no restated envelope field. The DR-0036 register drops its entry for that task_id, which core/task-id.json bounds through the envelope. - The update_media_buy submitted branch keeps its context description beside a reference to core/context.json, as every other body-level context does. The four new documents are listed in index.json. Validation changes, all corrections under DR-0036: - the content standards error responses (list, get, calibrate, validate delivery, get media buy artifacts), through core/task-error-response.json, list at least one error (tighten). Every 3.2.12 task error branch that bounds errors sets minItems 1, such as create_media_buy's "Error response - operation failed", and the error-handling page says the payload errors[] "reports one or more issues"; - the applied task sort field is one of created_at, updated_at, status, task_type, and protocol (tighten). 3.2.12 core/tasks-list-request.json defines the field a task list is sorted by with that enum; - the sync_creatives progress current_step is at most 500 characters (tighten). 3.2.12 core/compact-task-working.json, the progress payload of a working task, sets maxLength 500 on current_step; - the stale-response original_error.code is 1 to 64 characters (tighten). 3.2.12 core/error.json sets those bounds on an error code; - reporting subscription IDs are never . or .. wherever they appear (tighten). The write schema already rejects them, so no conforming seller holds such an ID; reporting subscriptions are new in 3.3; - the test controller's property_delivery and installment_property_delivery publisher_domain is a domain name (tighten). Both are new in 3.3, and each row must already be a complete delivery row, which references core/domain-name.json. The current_step and original_error.code bounds have register entries in scripts/lint-additive-minor-corrections.json. The lint does not see the other lines, so their quotes and permalinks are in the manifest notes. What stays as it is: - the account, brand, creative, media buy, and signals error branches stay parallel to core/task-error-response.json; with minItems 1 on the shared definition, their fields are written the same; - sync_audiences keeps its own submitted branch, which carries a guard that rejects audiences; - the catalog item reference error stays a closed definition of its own, used alone and as the overlay of the composed catalog error; - the stale-response original_error stays a distinct object from the error buyer_reason: its message references the error message, not the buyer-safe reason message. Envelope compositions: core/compact-task-submitted.json is the protocol envelope around core/task-submitted-response.json, and the create_media_buy submitted document the envelope around core/media-buy-submitted.json, in place of restating their bodies. The build_creative and create_media_buy input-required documents compose core/compact-task-input-required.json and narrow its reason to their own codes; the sync_creatives, sync_catalogs, and update_media_buy input-required documents name their reason vocabularies as local definitions; and the get_principal and sync_principal results are local definitions of their documents. Tests: - tests/x-added-in-3-3-sweep.test.cjs reads expected_confirmation_at in core/media-buy-submitted.json and the get_principal result in its local definition, and tests/principal-contract.test.cjs reads both principal results there. - tests/response-envelope-composition.test.cjs reads a field declared through a local definition (the reporting status unavailable error) as that definition, checks core/task-submitted-response.json as a submitted body, which the branches that only reference it no longer repeat, and lists the core task requests as the task_id carriers the aliases compose. - tests/composed-schema-validation.test.cjs accepts a request that composes the version envelope through the core request it names. .schema-deltas/one-definition-tasks-and-errors-alignment.yaml lists the sixteen lines. No corpus instance changes verdict. Pinned figures, measured at this commit: - tests/mcp-schema-projection.test.cjs: the parity compile limit moves from 1,487,000 to 1,488,000 (1,487,288 bytes).
report_plan_outcome now returns the full plan budget summary for a completed or failed outcome: the nine fields of core/plan-budget-summary.json (accounting mode, gross commitment, reported and verified adjustments, net cost, restored headroom, ledger and net commitment, and remaining budget), plus total_committed. The reference training agent sent only total_committed and budget_remaining. It now builds the summary with the function that report_plan_adjustment uses, and counts the outcome it reports. A summary that exceeds numeric ledger limits rejects the report and restores the ledger. The tenant smoke test checks the returned summary against core/plan-budget-summary.json. The report_plan_outcome docs examples show the full summary. No validation changes. The response's plan_summary stays as it is: two optional fields, with budget_remaining written as core/plan-budget-summary.json writes it. No published text requires the nine fields on this response. 3.2.12 requires them on the report_plan_adjustment plan_summary, but the 3.2.12 report_plan_outcome page shows a plan_summary with only total_committed and budget_remaining: https://github.com/adcontextprotocol/adcp/blob/b3743fbb45931d78548614a9b5210016203f7f76/docs/governance/campaign/tasks/report_plan_outcome.mdx#L63-L65 Composing core/plan-budget-summary.json is proposed with the bounds that have no published text. No schema changes, so no delta manifest. No corpus instance changes verdict.
The family commits applied every tightening the published 3.x text supports. This commit holds the rest: bounds that no earlier 3.x text states. Each rejects only a value that no conforming peer sends, and a maintainer can take or drop the commit as one decision. If it is dropped, the maxLength and maxItems sites keep their x-*-4.0 marks. - An account setup message is at most 1,000 characters: the new core/account-setup-message.json, which the account, sync_accounts results, the account status webhook, and core/pending-action.json reference. The pending action for the same onboarding step already caps its message at 1,000 characters. - A color role lists at most 16 hex colors. A role names the few colors a brand uses for one purpose, and every published palette sends one. - An artifact webhook counts at least 1 batch and no negative artifacts. The payload that carries total_batches is itself batch 1 or later, and total_artifacts is a count. - Compact audience evidence lists at most 10 attestation digests. Each digest stands for one of the snapshot's attestation references, which the full evidence caps at 10, and repeats are rejected. - An audience ID is non-empty. It is the buyer's key for the audience sync_audiences upserts; an empty string names no audience. - A provenance declarant's agent_url is an https URL (core/https-url.json), as every AdCP agent is reached over HTTPS. - A creative listing's applied sort names its field and direction. A seller that sorted did so by some field in some direction, as the task listing's applied sort already requires. - Daypart days are unique. A day listed twice adds no window. - An open-ended numeric range states min or max, for the audience characteristic range and the capabilities matching_latency_hours. A range with neither end states no interval. - A report_plan_outcome plan summary is core/plan-budget-summary.json, the nine fields report_plan_adjustment already requires. The response is experimental (governance.campaign). docs/reference/migration/3-2-to-3-3.mdx states these bounds in a new section, "Bounds 3.3 states for the first time", and the register entries in scripts/lint-additive-minor-corrections.json for the bounds lint:additive-minor compares quote that section and say that no earlier text sets them. The provenance and SI declarer roles become local definitions, so the two declared_by objects stay apart once their agent_url fields match. The verification badge role stays the AdCP protocol enum: narrowing it to the six badge roles removes a value, which a minor cannot do. .schema-deltas/bounds-with-no-published-text.yaml lists the 15 lines, each with the sentence above. No corpus instance changes verdict. Pinned figures, measured at this commit: - tests/mcp-schema-projection.test.cjs: the media-buy model-context budget moves from 582 to 584 KiB (597,524 bytes), and the creative budget from 457 to 459 KiB (469,944 bytes).
Seven docs examples declared a $schema but held `...` placeholders or comments, so tests/json-schema-validation.test.cjs and the schema equivalence corpus skipped them, and no check compared them with the schemas this series changes. Each is now a complete payload that validates against its $schema: - build_creative: the multi-format response writes out all three manifests and its status; the per-unit and CPM pricing responses carry a full HTML tag and a VAST tag; the multi-format section writes out both manifests and its status; and the variant response shows two complete catalog groups, with items_returned and vendor_cost to match (the note below it says so); - preview_creative: the audio preview's script and brand voice assets are typed text; - conversion tracking: the user-match uid2 value is a complete token. tests/json-schema-validation.test.cjs now validates 389 docs examples, up from 382, and all pass. No schema changes.
scripts/lint-schema-near-duplicates.cjs keeps each object concept to one definition, and test:schemas runs it, so it blocks. Two inline object schemas with the same contract, or two that share a title, an x-entity, or a set of two or more property names, must be one definition, a declared refinement of one, parallel role variants whose shared fields are written the same, or concepts told apart by a field that names a different definition; a single naming field tells two concepts apart. A distinct title separates only objects whose property names differ. There is no allowlist. A document that composes a definition around a body whose properties are another document's restates that document, and must compose it instead, unless a union tag tells the bodies apart. Two refinements of one definition share a concept only when what each adds is the same two or more property names. The lint compares written forms: annotations don't count, and each $ref is a leaf that names its target, so two objects that reference different named definitions stay apart. Conditions (if, then, else, not) and allOf, anyOf, and oneOf members without a type are not declarations. Role variants that differ only in required or a guard pass; --parallels lists them (142 at this commit). Figures, as exact repeat groups / near-duplicate pairs / sites: - origin/main: 146 / 436 / 528; - the base of this series: 31 / 135 / 202; - before the bounds with no published text: 0 / 1 / 2, the account setup message against the pending action message; - this commit: 0 / 0 / 0. tests/lint-schema-near-duplicates.test.cjs runs the lint through its command line on the source tree and on small trees that exercise each rule: an exact repeat, a drifted copy and its $ref fix, a declared refinement, parallel variants, a field that names a different definition, a title on objects with the same property names, a condition, a body restated inside an envelope, bodies with different union tags, and two refinements of one definition that add the same fields with drift.
… documents Code generators name types from titles and inline the documents a schema references. Generating the TypeScript and Python SDKs from this series' bundle, as validate-schema-bundle does, showed three local definitions the generators could not reach and five published names the series had changed without needing to. Definitions that composing documents reach: - The age intent of core/demographic-targeting-intent.json, the event goal target of core/optimization-goal.json, and the publisher domains of core/publisher-property-selector.json are now core/age-targeting-intent.json, core/event-goal-target.json, and core/publisher-domains.json, listed in index.json. The TypeScript generator inlined demographic-targeting-intent without its definitions, so create_media_buy, update_media_buy, buy_products, and control_media_buy failed to generate; the Python generator merged optimization-goal into core/budget-allocation.json, and the selector into the product publisher properties, the same way. The contracts are unchanged. Published names: - core/brand-agent.json keeps the title Brand Agent, and trust.json its Authoritative Location Redirect. The brand.json branches that shared those titles take Agent-Represented Brand and Brand Location Redirect, names no generator exports. - The audience activation file transfer keeps File transfer, the name the TypeScript SDK exported for it. The reporting delivery method's file transfer, which neither SDK exported, takes Reporting file transfer. - The DOOH placement references its Publisher DOOH Screen Resolution and Publisher DOOH Location aliases again, and the dataset share recipient its Reporting Cloud alias, as before this series. scripts/lint-schema-near-duplicates.cjs follows a title-only alias (a $ref with annotations only) to the definition it names, so an alias does not tell two copies apart; tests/lint-schema-near-duplicates.test.cjs covers it. The lint still reports no repeat, pair, or site (143 parallel role variants). No payload changes verdict: the equivalence check finds no difference. Pinned figures, measured at this commit: - tests/mcp-schema-analysis.test.cjs: the input-field weight report and the shared dictionary move from 1,443, 383 and 258 to 1,448, 384 and 259; - tests/mcp-schema-projection.test.cjs: the parity compile limit moves from 1,488,000 to 1,489,000 (1,488,278 bytes).
Brings in the two adcontextprotocol#9180 delta manifests regenerated for the order-independent conjunction merge of the equivalence check. No file of this series changes.
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
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.
…ction The schema equivalence check (adcontextprotocol#9119) now treats `items: A` beside `items: B` in one conjunction as `items: allOf[A, B]`. Three manifests declared lines for differences that only came from the old handling: - account-agents alignment: the four masked items and allOf lines for the registry event's agents_added and agents_removed are gone. The check now shows the restated items equal to the composed ones. - signals alignment: the two masked items and allOf lines for the signal listing's categories are gone, for the same reason. - content standards alignment: the four lines for the evaluator exemplars become one `oneOf` line at core/calibration-exemplar.json#, declared `none`. The evaluator's exemplars compose the calibration exemplars and keep their own artifact items, so the URL-or-artifact union is masked: an artifact fails the URL branch and passes the artifact branch. Ajv at 3ca3c4e^ and 3ca3c4e gives the same verdicts for a URL-reference exemplar (invalid), an artifact, and an artifact with type and value (both valid), and the witness search finds no payload in either direction. Two of the old lines declared this as a loosening, which no payload showed; the check now reports what the change is. No schema changes and no other manifest changes. Each commit's differences match its manifest exactly, and no corpus instance changes verdict.
KonstantinMirin
added a commit
to KonstantinMirin/adcp
that referenced
this pull request
Nov 24, 2026
Checking a range commit by commit required every commit with a difference to carry its own manifest. A PR that adds one manifest after its schema commits, as adcontextprotocol#8536 does, failed as soon as it sat inside a stacked range (adcontextprotocol#9202 from main's merge base), and so would on CI. The range check now composes in steps: - A segment: the commits since the previous segment, along first parents, up to a commit that adds or changes a manifest file. Its differences, from the parent of its first commit to that commit, must equal the lines of the manifests its commits add. A commit with its own manifest is a segment of one, as before. - A merged branch: when a merge's other parent heads a range from the base whose differences equal the manifests that range adds, that range is one step. adcontextprotocol#8536 merges main several times before its manifest, so no segment along its first parents isolates its changes; as a range from the base, it matches its manifest exactly. - A merge's net effect, as before. Commits after the last manifest form an open segment that must show no difference, as must a segment a merge cuts short. Every difference still arises in a step whose differences are declared. Two CLI tests on scratch repositories, failing before this change: a segment of two commits closed by a manifest, and a stacked branch that merges the base before its manifest and is merged into a series. The open-segment and per-commit tests keep passing; the notes-only commit in the transitive-$ref test now joins the next segment.
The schema equivalence check (adcontextprotocol#9119) now verifies a payload a manifest line records (`witness: {root, instance}`): Ajv at both commits must give it the line's direction, and reverting the line, or the whole schema at its site, must give it the base verdict again. A payload in a note does not count. 19 lines here had only a note. - 15 lines get a recorded witness, each a full root payload built from the value their note gives: the validate-input target, the reporting destination and delivery provider domains, the reporting schedule durations, the legacy available action's review_sla, the compact pricing option's four cpa and revenue_share rules, the reporting subscription ID ".", and the three bounds with no published text. - 3 lines become `none`: the get_products suggestions minItems and the catalog error's recovery enum, whose notes already said no payload changes verdict because of them, and the delivery provider domain's label pattern, which stays in effect as its own conjunct beside the dotted rule (its note now says so). - 1 line, list_creatives' capability guard, names the allOf member that writes its `not` (allOf/3, not allOf/0); with that, the search finds its witness. No schema changes. Each commit's differences match its manifest, no corpus instance changes verdict, and every line passes the witness check.
KonstantinMirin
added a commit
to KonstantinMirin/adcp
that referenced
this pull request
Nov 24, 2026
Some lines change validation in a way the witness search cannot build a payload for, and their manifests carried a payload checked by hand in a note. A note is not evidence the check can confirm, so those lines failed the witness check (19 in adcontextprotocol#9202). A manifest line may now carry `witness: {root, instance}`, or a list of them. When the search finds no witness for a declared direction, the tool verifies the recorded one: with the repo's Ajv configuration it must be valid at the base and invalid at the head for `tighten` (the reverse for `loosen`), and with only this line reverted at its site, the same attribution the search uses, it must get the base verdict again. A recorded witness that does not verify fails the line and says why; one that verifies is reported with `from: recorded`. A `none` line takes no witness. When the line's keyword cannot be reverted alone (it comes from a normalization, or a discriminator needs the union), the recorded witness is attributed to the line's site: the head with the whole schema there reverted. The report says which (`attribution`). A `none` line no longer trips the direction inference. Context can mask a change that is monotone on its own (an enum added beside a const, a minItems that the response's other rules make unreachable), and the witness search checks the claim that no payload changes verdict. Fixtures on a root whose token pattern needs two lookaheads, so the search builds no instance: a recorded witness that verifies, one that shows a loosening for a line declared as a tightening, one whose verdict changes because of another line (the last two fail), and one for a oneOf that a discriminator reads, verified at its site. One more for an enum added beside a const, declared none.
KonstantinMirin
added a commit
to KonstantinMirin/adcp
that referenced
this pull request
Nov 24, 2026
A merged node records which source object writes each of its keywords, so a difference is reported where its keyword is written. The guarded rewrites (oneOf to anyOf, not-branch subtraction) and the union simplification copy a node without that record, so the copy reported every keyword at the node's first member. On adcontextprotocol#9202, a `not` that list_creatives' fourth allOf member adds was reported at the first member, where its keyword cannot be reverted, so the line could not get a witness. Each copy now keeps the record. A fixture: a not added by a new allOf member of an object whose oneOf the rewrite turns into an anyOf is reported at that member; it fails before this change.
KonstantinMirin
added a commit
to KonstantinMirin/adcp
that referenced
this pull request
Nov 24, 2026
…alone does not restore it A recorded witness was attributed to its line only: with the line's keyword reverted, the payload had to get the base verdict again. Where another conjunct at the same site states the same rule, reverting one of them restores nothing, although the site's change is what the payload shows. On adcontextprotocol#9202, a delivery provider domain with a 64-character label is rejected at the head by two conjuncts that each limit labels. When the line's revert does not restore the base verdict, the recorded witness is checked against the head with the whole schema at the line's site reverted, as it already was when the line's keyword cannot be reverted alone; the report says `attribution: site`. A payload whose verdict changes because of another site still fails, as the other-reason fixture shows.
KonstantinMirin
added a commit
to KonstantinMirin/adcp
that referenced
this pull request
Nov 24, 2026
The site attribution for a recorded witness whose own line's revert does not restore the verdict had no fixture; only adcontextprotocol#9202's delivery provider domain exercised it. This fixture gives a label two allOf conjuncts that both cap its length at 10. An 11-letter label is valid at the base and invalid at the head, but reverting either conjunct alone leaves it invalid, so the witness verifies at the site. It fails before 6931d3e, which reported that the verdict changes for another reason, and passes after. The other-reason fixture still fails as it should.
This was referenced Nov 24, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #9180.
Revised 2026-11-24:
d6e7fdea00regenerates three manifests for #9119'sitemsconjunction. Six masked lines that only described the old handling are gone, and the content-standards evaluator exemplars' four lines become one maskedoneOfline: two of them had declared a loosening that no payload shows, and Ajv gives the same verdicts at both commits.7588e69615moves the 19 payloads that notes recorded by hand intowitness:fields that the check verifies: 15 lines carry a recorded witness, three whose notes said no payload changes verdict are now masked, and one names the allOf member that writes itsnot, so the search finds its witness. The manifests hold 211 lines (172 tighten, 8 loosen, 31 masked); they match #9202 per commit and as one range from main's merge base, with #8536's and #9180's commits in it, and every line passes the witness check.This PR gives every remaining object concept in the schemas one definition, and a new lint in
test:schemasblocks any new near-duplicate. Every validation change is either a DR-0036 correction with its published text quoted, or one of the bounds in commit 17, which have no earlier published text and can be taken or dropped as one decision.Commits
Each commit can be reviewed alone; dropping a family also drops the later commits that reference its definitions.
fix(build): the MCP discovery projection reads a request whose root only composes another document as that document. Build output is byte-identical.core/pixel-length.json,core/dimension-length.json).core/compact-task-submitted.jsoncomposes the envelope andcore/task-submitted-response.json), and the protocol task aliases, which composecore/tasks-*.json.fix(training-agent):report_plan_outcomereturns the full plan budget summary. No schema change.docs: seven docs examples that declared a$schemabut held placeholders are now complete and validated.build(schemas):scripts/lint-schema-near-duplicates.cjs, blocking intest:schemas. A single naming field tells two concepts apart.The gate
Two inline object schemas with the same contract, or sharing a
title, anx-entity, or two or more property names, must be one definition, a declared refinement, parallel role variants written the same, or told apart by a field that names a different definition orconsttag. A document that restates another inside an envelope must compose it, and a title-only alias counts as the definition it names. There is no allowlist. Counts of exact repeat groups, near-duplicate pairs, and sites:mainWithout commit 17 the gate reports one pair, the account setup message against the pending action message.
What changes validation
All lines are in the commits'
.schema-deltas/*.yamlmanifests: 172 tighten, 8 loosen, 31 masked (no payload changes verdict).Corrections under DR-0036 (161 lines, commits 1 to 15). Each applies a bound or required name that published 3.x text already states for the concept. The register
scripts/lint-additive-minor-corrections.jsongains 149 entries for the boundslint:additive-minorcompares: 129 quote 3.2.12 schemas, 10 quote 3.3.0-beta.1, 4 quote 3.3.0-beta.4, and 6 quote 3.2.8 or 3.2.11. The rest are kinds the lint doesn't compare (pattern,format,anyOf,uniqueItems); each manifest line quotes its text with a permalink pinned tov3.2.12.Loosenings (8 lines). A unification that takes the wider contract, such as
get_brand_identitytone accepting localized lists, or coordinated placement shared slots acceptingdisplay_tag.Bounds with no published text (commit 17, 14 lines). No earlier 3.x text states these, so they aren't DR-0036 corrections; each rejects only a value no conforming peer sends:
agent_urlishttps; daypart days are unique;minormax;report_plan_outcomeplan summary is the full plan budget summary, which the reference agent now sends.Their 16 register entries quote the migration guide's new section. Dropped, the
maxLengthandmaxItemssites keep theirx-*-4.0marks.Left out. Narrowing the verification badge role to the six badge roles removes an enum value, which a minor can't do.
Generated names
I generated the TypeScript and Python SDKs from the bundle at cd176dd and at this PR's head, as
validate-schema-bundledoes, skipping the SDK post-processors that already fail at the base. Every published title keeps its generated name. Where two concepts shared a title, the side no SDK exports took the distinct one (brand.json's Brand Location Redirect and Agent-Represented Brand, the Reporting file transfer). The TypeScript names that go:FileTransfer1,DatasetQuery1,PlatformDistribution1SignalFileTransfer,SignalDatasetQuery,SignalPlatformDistributionTargetingGeoMetrosInput,TargetingKeywordsInput,TargetingLanguagesInput,TargetingNegativeKeywordsInputTargetingGeoMetros,TargetingKeywords,TargetingLanguages,TargetingNegativeKeywordsBrowser,BrowserExcludeBrowserFamiliesRequired,SupportedTargetingCapabilityFlagTargetingKvsTrustedMatchTargetingKVsVastVersionsVASTVersionsArtifact1ArtifactTaskTerminalResultcore/tasks-get-response.jsonresultget_task_statuscomposes the core task responsePython names branches by document and position, so its changes are numbered or property-key names that shift as inline copies become references (
Tone→BrandTone,TotalBudget→Money). One is a generator defect: itsallOfmerge lets a member's title replace the document's, soKeywordDeliveryMetricscomes out asKeywordMatch; the schema keeps its title.Proof
--manifest auto --corpus --witness: each manifest matches the differences exactly, and no corpus instance (schema, docs, and storyboard examples) changes verdict. As one range from main's merge base, with schemas: give every repeated constraint one definition, and fail CI on any repeat (#8525) #8536's and fix(schemas): give every repeated object one definition #9180's commits in it, the manifests match exactly and no corpus instance changes verdict; every line passes the witness check, as per commit. Every tighten or loosen line has a witness the tool found, or one recorded in the manifest that the tool verifies with Ajv at both commits and attributes to the line or its site.lint:additive-minorand the schema lints pass on every commit.CI
On remote runners, with the repository's stage lists:
test:composedat 1,800 s, the storyboard runner's timed-out-child test, one tenant-routing smoke).test:release-workflow(the same 49 staging tests), the storyboard matrix (1,800 s limit, at the same point), and one server-unit shard (a docs-indexer timeout) fail the same way on fix(schemas): give every repeated object one definition #9180's head, cd176dd.--pg, 4 shards): green on the head and on cd176dd.validate-schema-bundleSDK jobs stop at the same post-processor steps as on fix(schemas): give every repeated object one definition #9180 (TypeScriptalignCommittedMediaBuyName, Pythonfix_postal_country_system_pairing), so this PR adds no failure there.Merge order
#8536, then #9180, then this PR. The merge before the last commit brings in #9180's head (cd176dd, two regenerated manifests). It doesn't depend on #9119; the gate carries its own comparison.
Closes #9200