Repository navigation
schemas: give every repeated constraint one definition, and fail CI on any repeat (#8525) - #8536
KonstantinMirin wants to merge 50 commits into
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
685ed4e to
4e80d54
Compare
4e80d54 to
7dfa158
Compare
dda6c6f to
d9da58b
Compare
… 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
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched without an approving review, plus breaking-class protocol changes that are never auto-approved.
Why escalation is required:
This PR touches files under the repo's hard approval gate (gated_paths: true) — notably .agents/playbook.md, .github/workflows/build-check.yml, and 900+ files under static/schemas/source/** — and review_decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, a gated-paths PR without an approving human/CODEOWNERS review cannot be approved and must escalate.
Additionally, the PR body discloses validation-changing commits (drift fixes in commits 12/13/17, and an iana-timezone pattern drop in commit 22). Pattern/validation removals on published static/schemas/source/** are breaking-class wire changes, which per the repo's "Breaking-class changes are never auto-approved" hard gate require human ratification and escalation unless review_decision is APPROVED.
Caveat on review completeness: The reviewer could NOT retrieve the full PR diff (11,717 additions across 900+ schema files) — the harness diff returned HTTP 406 "too large" and the sandbox blocked all fallback fetch paths. No fresh mandatory-coverage pass (schema↔docs coherence, changeset scope, oneOf discriminator audit, 3.1.x patch eligibility, released-artifact immutability) was possible this turn. This is a large, unreviewed protocol surface change that a human must examine directly.
A human reviewer / CODEOWNERS must review and approve before merge.
Why human review
- Gated paths touched (static/schemas/source/**, .agents/playbook.md, .github/workflows/build-check.yml) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required (decision-table row 2).
- PR body discloses breaking-class wire changes (validation/drift fixes in commits 12/13/17, iana-timezone pattern drop in commit 22) on published static/schemas/source/** — breaking-class changes are never auto-approved and require human ratification.
- Full PR diff (11,717 additions, 900+ schema files) could not be retrieved (HTTP 406 + blocked fallbacks); mandatory schema↔docs, changeset, and oneOf-audit passes were not performed — a human must review the actual contents.
- This PR touches a path under a hard, non-overridable approval gate (.agents/playbook.md (modified) matches
.agents/**; .github/workflows/build-check.yml (modified) matches.github/workflows/**; static/schemas/source/a2ui/si-catalog.json (modified) matchesstatic/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/adagents.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matches `stat
…(truncated)…
core/https-origin.json and the disclosed attempted_agent_origin said ^https://[^/?#@]+$ beside format: uri. A URL serializer writes an empty path as "/" (WHATWG URL, path start and path state, then the URL path serializer), so https://issuer.example round-trips through any WHATWG parser to https://issuer.example/, which the pattern rejected (adcontextprotocol#8923). RFC 3986 section 6.2.3 treats the two spellings as equivalent. The pattern is now ^https://[^/?#@]+/?$. Each description says that receivers compare these values by canonical origin, as docs/reference/url-canonicalization.mdx defines it, so the two spellings name one origin, and the canonicalization table lists the attestation issuer origins. This only loosens. The delta manifest gains two lines, and no corpus payload changes verdict.
account-change resource_revision and list_creatives seller_revision both state type ["integer", "string"] for one token: a change record's resource_revision is the seller_revision value right after the change, in the same JSON type. Both now reference core/revision-token.json, which states the same two types (adcontextprotocol#8423). 3.3 reaffirmed the dual type in adcontextprotocol#8159, so nothing narrows to string. Each site keeps its description, and seller_revision keeps its x-entity and x-added-in. The canonical forms at the base and the head are identical.
The deprecated webhook authentication object was written out at five sites in two contracts (adcontextprotocol#8907). push_notification_config, reporting_webhook, and the create_media_buy artifact_webhook require schemes and credentials. Account and agent notification configs require only schemes, because those configs are echoed on reads, where credentials are write-only. Each contract now has one definition: core/webhook-authentication.json and core/notification-authentication.json, and each site references its own. Every site keeps deprecated, x-removed-in, and its description, so the 4.0 compatibility registry doesn't change. The two notification descriptions no longer claim the same semantics as push-notification-config without qualification: they say that credentials is optional because the config is echoed on reads. Push credentials stay required. The canonical forms at the base and the head are identical. The named schema keeps push's x-max-length-4.0: 512 on credentials, so reporting_webhook and artifact_webhook carry it too; 4.0 removes the whole object. The MCP projection counts one more shared definition, and the parity compile limit moves to 1,426,000 bytes.
… copies
core/datetime-range.json, added in February for reporting periods and
measurement windows, already names the {start, end} date-time object
that ten sites wrote out inline (adcontextprotocol#8720): the reporting adjustment
accounting_period, performance feedback measurement_period, the
reliability statistics measurement_period, five governance
reporting_period fields, the plan audit log delivery_reporting_period,
and the sync_plans flight. Each now references it and keeps its
description. The flight keeps its x-adcp-validation, and its description
states the ordering rule that its end property used to state.
The reliability statistics document drops its
ReportingReliabilityMeasurementPeriod definition, which only restated
the range, and the reporting-status test checks the reference instead.
get_reporting_status period stays inline: it is half-open, and
core/datetime-range.json describes both ends as inclusive.
The canonical forms at the base and the head are identical.
core/https-url.json, core/https-origin.json, and core/webhook-url.json state x-max-length-4.0: 2048 (adcontextprotocol#8900), the ceiling security.mdx already prices a uri at. The 42 named ID schemas under core/ that state no length bound, and whose pattern doesn't bound length, state x-max-length-4.0: 255 (adcontextprotocol#8899), the bound adcontextprotocol#8536 gives the IDs it bounds. This uses the convention get_adcp_capabilities.mdx defines: producers SHOULD stay within the limit now, and 4.0 enforces it. 3.x validates nothing new, so the canonical forms at the base and the head are identical. The capabilities worst case stays at 99,052,347 bytes, because the walk already prices a uri at 2,048 characters and every ID it reaches already carries a bound. The annotations add 647 bytes to the compliance controller's MCP projection, so the parity compile limit moves to 1,427,000 bytes.
…aints Money is written out inline 21 times (adcontextprotocol#8471). Every stable copy states a non-negative amount and an ISO 4217 currency, both required. Three experimental copies didn't: the sync_plans delegation budget_limit and portfolio total_budget_cap accepted any number and any currency string, and the si_send_message handoff intent price required neither field. They now state the same constraints in place: amount minimum 0, currency through core/currency-code.json, and both fields required on the handoff price. Both documents are x-status: experimental. The delta manifest gains five lines, each with a witness: a negative amount for each of the three amounts, a currency that isn't three uppercase letters, and an empty price. No corpus payload changes verdict; every docs and storyboard example already sends an uppercase code and a non-negative amount.
With the experimental copies fixed in the previous commit, 14 inline money objects state one constraint: a non-negative amount and an ISO 4217 currency, both required, open to other members (adcontextprotocol#8471). They now reference core/money.json: the media-buy total_budget on buy_products, create, update, control and accept_proposal, build_creative max_spend, the check_governance proposed and execution commitments, account and sync_accounts credit_limit, the compliance controller reported_spend, the sync_plans budget_limit and total_budget_cap, and the SI handoff price. Each site keeps its description. Two kinds of copy stay as they are because they mean something narrower: commercial terms and change-term constraints, which are closed on purpose, and the plan adjustments, whose amount is positive. core/insertion-order.json's currency, a length-3 string, also stays: a pattern there would reject a value 3.2.8 accepts on a stable surface. The canonical forms at the base and the head are identical. The MCP projection counts one more shared definition, and the currency test reads the required currency from the named schema.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched without an APPROVED review, plus disclosed breaking-class wire changes.
This PR modifies the published protocol surface (static/schemas/source/**) along with .agents/playbook.md and .github/workflows/build-check.yml — all under hard, deterministic approval gates — while review_decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, this is a non-overridable gate that only lifts on human/CODEOWNERS approval.
The reviewer reports a clean pass (no Critical/High/Medium findings): a "one definition per concept" refactor extracting inline subschemas to core/money.json, core/revision-token.json, core/webhook-authentication.json, core/notification-authentication.json, and ten {start,end} blocks now $ref-ing core/datetime-range.json, with wire equivalence verified and changesets present. That credits the iteration well, but it does not satisfy the gate.
Independently, the summary notes money tightenings and an SI response requiring amount+currency — breaking-class protocol changes. Per the repo's hard gate, breaking-class changes are never auto-approved; ratification is a human act and requires review_decision: APPROVED.
Prior decision was also escalate; the gate conditions persist and the fresh run still surfaces gated-path + breaking-class evidence. A human/CODEOWNERS reviewer must approve before merge.
Why human review
- Gated paths touched (static/schemas/source/**, .agents/playbook.md, .github/workflows/build-check.yml) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required (decision-table row 2).
- PR discloses breaking-class wire changes (money tightenings on sync_plans budget_limit/total_budget_cap and si_send_message price; SI response now requires amount+currency) on published static/schemas/source/** — breaking-class changes are never auto-approved and require human ratification per the repo's hard gate.
- Sticky escalation (row 6): prior decision was escalate and the current run still carries gated-path + breaking-class evidence.
- This PR touches a path under a hard, non-overridable approval gate (.agents/playbook.md (modified) matches
.agents/**; .github/workflows/build-check.yml (modified) matches.github/workflows/**; static/schemas/source/a2ui/si-catalog.json (modified) matchesstatic/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/adagents.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/creative-approval-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/ge
…(truncated)…
audience_targeting in get-adcp-capabilities-response.json now references #/definitions/hashed_identifier_type, a definition local to that document. The test compiled the subschema on its own, so the pointer had no document to resolve against and the before hook failed, cancelling all 9 tests. Compile the whole response once and take audience_targeting from the same Ajv instance by pointer, so local refs resolve against the document root. The vectors and assertions are unchanged.
Brings in 41 commits from main, including adcontextprotocol#9049 (reporting subscriptions name geography systems), the 3.2.12 and 3.1.34 forward-merges, the 3.3.0-rc.2 release records, and the @adcp/sdk 17.0.0-beta.32 bump. Resolution ledger Mechanical files, regenerated by rule: - docs/building/by-layer/L1/security.mdx and tests/capabilities-structural-bounds.test.cjs (conflicted): the documented capabilities worst case is the output of scripts/capabilities-structural-bounds.cjs, so it is recomputed on the merged tree, not picked from either side: 99,149,720 bytes (about 95 MiB) and 193 open positions. Main moved the figure from 99,101,211 to 99,198,584 (+97,373, the adcontextprotocol#9049 dimension systems) and the open positions from 190 to 193; this branch moved it to 99,052,347 (-48,864). The merged figure is exactly the sum of both deltas. The per-block MiB figures in security.mdx round the same. - tests/mcp-schema-projection.test.cjs (auto-merged, failed the gate): the parity compile limit is the measured comply_test_controller projection rounded up to the next 1,000 bytes, the rule every earlier merge used. The adcontextprotocol#9049 dimension systems reach the controller: main measures 1,350,376 bytes, this branch's named schemas add 79,135, and the merged controller measures 1,429,511, so the limit moves from 1,427,000 to 1,430,000. Semantic files: none. Both conflicts were measured figures. Sites changed because main added inline copies: none. Main's schema changes (adcontextprotocol#9049) reference existing named schemas (enums/metro-system.json, core/postal-country-system.json) and add no inline pattern or enum, and lint-schema-named-constraints passes on the merged tree. The inline pattern and enum counts stay at 83 and 471. Delta manifest: unchanged. The schema equivalence check against the new merge base reports the same 3,056 entries at 41 sites and 4,255 informational entries as before the merge, matches all 41 manifest lines, finds a witness for each, and no corpus instance changes verdict.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched without an approving review, and breaking-class protocol surface requires human ratification.
Why this is not auto-approvable:
gated_paths: true(touchesstatic/schemas/source/**,.agents/playbook.md,.github/workflows/build-check.yml) whilereview_decisionisREVIEW_REQUIRED, notAPPROVED. Decision-table row 2 forcesescalate— the hard approval gate is only lifted by a real human/CODEOWNERS approval, regardless of how clean the diff is.- The repo's hard gate on breaking-class protocol changes: the prior escalation disclosed money-tightening wire changes on published
static/schemas/source/**. Breaking-class changes are never auto-approved; ratification is a human act. Escalate unlessreview_decisionisAPPROVED. - Sticky escalation (row 6): prior decision was
escalate, and the current run still carries gated-path + breaking-class evidence.
Reviewer findings: Clean delta pass, no critical/high/medium findings. The delta is dominated by generated release-snapshot artifacts (dist/compliance/3.1.34/**, all new-file additions — immutability holds), Changesets-driven rc.1→rc.2 supersession machinery, and one additive experimental reporting geo-dimension feature (6 schema files: new postal_area dimension, reporting-dimension-systems.json, dimension_systems). Schema↔docs coherence verified; $ref targets resolve; minor changeset is correct for the additive experimental surface. No new blocking findings.
What a human reviewer must confirm: The clean findings do not lift the gate. A CODEOWNERS/human approval is required on the gated schema/workflow/agent paths and on the breaking-class wire changes before merge.
Why human review
- Gated paths touched (static/schemas/source/**, .agents/playbook.md, .github/workflows/build-check.yml) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required (decision-table row 2, hard gate).
- Breaking-class protocol changes on published static/schemas/source/** are never auto-approved per the repo's hard gate — ratification is a human act; escalate unless review_decision is APPROVED.
- Sticky escalation (row 6): prior decision was escalate and the current run still carries gated-path + breaking-class evidence.
- This PR touches a path under a hard, non-overridable approval gate (.agents/playbook.md (modified) matches
.agents/**; .github/workflows/build-check.yml (modified) matches.github/workflows/**; static/schemas/source/a2ui/si-catalog.json (modified) matchesstatic/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/adagents.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand.json (modified) matchesstatic/schemas/source/**; static/schemas/source
…(truncated)…
Brings in 3 commits from main: adcontextprotocol#9123 (deprecates the single-value branch of 17 scalar-or-list unions and fixes the bundler so call-site keys beside a $ref stay at the call site), adcontextprotocol#9169 (training agent inventory floors) and adcontextprotocol#9171 (PROPOSAL_TERMS_CHANGED for a mismatched accept_proposal digest). Resolution ledger Mechanical files, resolved by rule: - package.json (conflicted): the test list keeps both sides' entries, test:schema-named-constraints from this branch and test:build-schemas-exit-status from main. 119 entries, each defined. - tests/mcp-schema-projection.test.cjs (auto-merged, failed the gate): the parity compile limit is the measured comply_test_controller projection rounded up to the next 1,000 bytes. Main's deprecation descriptions and the new error code bring main's controller from 1,350,376 to 1,351,064 bytes; this branch's named schemas still add 79,135, so the merged controller measures 1,430,199 and the limit moves from 1,430,000 to 1,431,000. Semantic files, union of both sides: - brand.json color_value, brand/get-brand-identity-response.json colors (5 sites), error-details/requote-required.json envelope_field: this branch's $ref to core/hex-color.json or #/definitions/envelope_field_path is kept, and main's deprecated, x-deprecated-in, x-removed-in and deprecation description sit beside it on the single-value branch. brand.json keeps x-removed-in 5.0.0; the others keep 4.0.0. The referenced definitions carry no deprecation, so the array branches and the other sites that reference them are not deprecated. - media-buy/accept-proposal-request.json proposal_terms_digest: this branch's $ref to core/proposal-terms-digest.json with main's longer description from adcontextprotocol#9171. Proof: - Schema equivalence, origin/main -> merge, with the delta manifest: 3,056 entries at 41 sites and 4,255 informational entries, the same as the branch against its previous merge base; the manifest matches, 41/41 witnesses pass, and no corpus instance changes verdict. - The annotation channel at source level is the union of both sides: each of main's 77 annotation changes (title, description, default, deprecated, x-*) lands at the same document and pointer in the merge, and each of this branch's 1,636 stays relative to main. - Bundles: the 81 single-value deprecation nodes in the bundled schemas sit at the same pointers with the same keys as main's build, and none moves onto a shared definition. - Inline pattern and enum counts stay at 83 and 471, and the $ref count is unchanged.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-path hard gate unsatisfied and breaking-class governance gate applies; human/CODEOWNERS approval required.
This PR modifies published protocol surface under static/schemas/source/**, plus .agents/playbook.md and .github/workflows/build-check.yml. gated_paths: true and review_decision: REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: the hard, non-overridable approval gate is not satisfied and auto-approval is impossible regardless of how clean the diff is.
Separately, the repo's prose hard gate ("Breaking-class changes are never auto-approved") applies to protocol changes on static/schemas/source/**: ratification is a human act, and the gate is only lifted by review_decision: APPROVED. The reviewer explicitly deferred breaking-class/governance classification to the arbiter. The delta deprecates the single-value form of 17 scalar-or-list unions and adds a new error code — changes that must be ratified by a human on this line, which is confirmed absent here.
Reviewer findings: clean pass — no Critical/High/Medium code-correctness findings. Changesets are correct (patch, additive, no wire break), schema↔docs coherence holds, oneOf audit intact, build-schemas hoist refactor is sound and tested, CI floor bumps consistent. The prior run was also clean. This is a net-clean diff, but the gate is procedural: only a human/CODEOWNERS APPROVED review can clear it.
Required action: obtain CODEOWNERS/human approval (review_decision: APPROVED). Once recorded, this PR can fall through to the normal table and approve on the clean diff.
Gated files include static/schemas/source/**, .agents/playbook.md, .github/workflows/build-check.yml.
Why human review
- Gated paths touched (static/schemas/source/**, .agents/playbook.md, .github/workflows/build-check.yml) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required (decision-table row 2, hard gate).
- Breaking-class governance gate: deprecating the single-value form of 17 scalar-or-list unions and adding a new error code on published static/schemas/source/** is never auto-approved — ratification is a human act; escalate unless review_decision is APPROVED.
- Sticky escalation (row 6 posture): prior decision was escalate and the current run still carries the unsatisfied gated-path evidence.
- This PR touches a path under a hard, non-overridable approval gate (.agents/playbook.md (modified) matches
.agents/**; .github/workflows/build-check.yml (modified) matches.github/workflows/**; static/schemas/source/a2ui/si-catalog.json (modified) matchesstatic/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/adagents.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand.json (modifi
…(truncated)…
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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched without an APPROVED review.
This PR modifies files under hard, non-overridable approval gates (.agents/playbook.md, .github/workflows/build-check.yml, and static/schemas/source/**) while review_decision is REVIEW_REQUIRED, not APPROVED. Decision-table row 2 is a hard gate: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer found no Critical/High/Medium findings — the delta is a well-scoped 5-file build fix to buildExtensions() in scripts/build-schemas.cjs that corrects URI stamping for the mutable latest/ dev output only. No immutable released artifact is touched, a correctly scoped patch changeset is present, and a new regression test plus extended invariant cover the fix. This is a net-clean iteration on the prior escalate (which carried no findings either), and I acknowledge the diff itself is mechanically sound.
However, the gated-path condition remains unsatisfied, so the outcome stays escalate pending human/CODEOWNERS approval.
Escalation reasons
- Gated paths touched (
.agents/playbook.md,.github/workflows/build-check.yml,static/schemas/source/**) whilereview_decisionisREVIEW_REQUIRED, notAPPROVED— human/CODEOWNERS approval required (row 2 hard gate).
Why human review
- Gated paths touched (.agents/playbook.md, .github/workflows/build-check.yml, static/schemas/source/**) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge (decision-table row 2, hard gate).
- This PR touches a path under a hard, non-overridable approval gate (.agents/playbook.md (modified) matches
.agents/**; .github/workflows/build-check.yml (modified) matches.github/workflows/**; static/schemas/source/a2ui/si-catalog.json (modified) matchesstatic/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/adagents.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/creative-approval-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/get-brand-identity-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/get-brand-identity-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/get-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/get-rights-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/revocation-notification.json (modified)
…(truncated)…
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.
…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.
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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-path hard gate not satisfied.
This PR (3.3.0-rc.0 → rc.3 cut + release machinery + training-agent app changes) touches files under hard approval gates (.agents/playbook.md, .github/workflows/build-check.yml, and extensive static/schemas/source/**) while review_decision is REVIEW_REQUIRED, not APPROVED. Decision-table row 2 forces escalation until a human/CODEOWNERS approval is recorded — Ladon cannot auto-approve regardless of how clean the diff is.
The reviewer surfaced no Critical/High/Medium findings. Immutability holds (every dist/ change is a new rc.3 file; no published semver artifact modified/deleted), oneOf disambiguation adds not:{$ref} with no wire change and is covered by the DR-0036 oneof-overlap-resolution changeset, schema↔docs coherence checks pass, migrations 637/638 are production-grade, and the admin training-reporting route is audit-before-change and admin-gated. This is a net-clean subsequent push with no fresh blocking evidence.
Escalation reasons:
- Gated paths touched (
.agents/playbook.md,.github/workflows/build-check.yml,static/schemas/source/**) whilereview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required before merge.
No code-correctness blockers exist; the only barrier to merge is the required human/CODEOWNERS approval on the gated paths. Once review_decision becomes APPROVED, this PR falls through to a clean approve.
Why human review
- Gated paths touched (.agents/playbook.md, .github/workflows/build-check.yml, static/schemas/source/**) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge (decision-table row 2, hard gate).
- This PR touches a path under a hard, non-overridable approval gate (.agents/playbook.md (modified) matches
.agents/**; .github/workflows/build-check.yml (modified) matches.github/workflows/**; static/schemas/source/a2ui/si-catalog.json (modified) matchesstatic/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/adagents.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/creative-approval-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/get-brand-identity-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/get-brand-identity-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/get-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/get-rights-response.json (modified) matches `static/schemas
…(truncated)…
Revised 2026-11-15: merged with main (#8858's DR-0036, #8792's URL loosening, the #8501 withdrawals); counts and limits re-measured.
Revised 2026-11-19: merged with main at
b4c40fcb85(full_namemoves intoenums/signal-match-key.json); domain name labels are limited to 63 characters, soupstream_source_domainonly tightens; an SLA duration rejects a bareTand allows zero; capabilitiesmraid_versionskeeps MRAID 1.0; adds the delta manifest.Revised 2026-11-20: an HTTPS origin accepts one trailing slash (#8923); three experimental money objects take the money constraints (#8471); new named schemas for the revision token (#8423), the two legacy webhook authentication contracts (#8907), and money (#8471); ten inline copies reference
core/datetime-range.json(#8720); the named URL and ID schemas plan 4.0 length limits (#8899, #8900); a capabilities test validatesaudience_targetinginside its document.Revised 2026-11-21: merged with main at
576ebca386(#9049's reporting dimension systems); the documented worst case, the parity compile limit, and the projection sizes re-measured.Revised 2026-11-22: merged with main at
2db59bae43(#9123's single-value deprecations, #9171'sPROPOSAL_TERMS_CHANGED); the parity compile limit and the total projection re-measured; the build publisheslatest/extensions/under/schemas/latest/, soextension-meta.json's reference tocore/adcp-minor-version.jsonresolves there; merged with main at14651cc07c(#9170), and the total projection re-measured.Closes #8525.
Closes #8923.
Refs #8423, #8471, #8720, #8899, #8900, #8907.
DR-0036 is now
main's text, from #8858; this PR adds only bound entries to its corrections register.This PR gives each repeated scalar concept one named schema, points 1,907 sites at it with
$ref, and removes every exception from the CI gate. A new inline copy or a new repeat fails CI, and nothing opts a site out.The first 11 commits change nothing a validator accepts, except two enums that had drifted. A proof checks that for every touched document. Commits 12, 13 and 17 fix the drift: sites that meant the same thing as a named schema and stated a different constraint now reference it, so these sites do accept something different. Commit 22 drops the character pattern and the
inventory_localexclusion fromcore/iana-timezone.json. Commit 27 limits each domain name label to 63 characters, commit 28 makes an SLA duration reject a bareT, commit 33 lets an HTTPS origin end in one slash, and commit 38 gives three experimental money objects the constraints every other money object states. What changes validation lists each one.Why this is the layering fix
A schema should define a concept once. Everything that uses the concept references that definition. It's the same rule as code reuse in any language, and JSON Schema is no exception.
The tree didn't follow it. Currency codes, country codes, IDs, digests and enums were written out inline at hundreds of sites. Each copy picked its own constraint, so one concept validated differently from place to place, and nothing recorded that two copies meant the same thing.
This PR puts the lowest layer in order:
core/andenums/hold one named, titled schema for each scalar concept.$refto the named schema, and keep only their own description beside it.#8504 does the same for objects, such as task envelopes, on top of this gate.
Counted over
static/schemas/source, withoutbundled/andmcp/, with the gate's own rules: every subschema reachable through schema keywords that statespatternorenumitself instead of through$ref, except document roots and anything insideifornot. A repeat is the same constraint at 2 or more sites.mainpatternsitespatternsites that repeatenumsitesenumsites that repeatifandnotstay exempt, because a condition names the values a branch applies to and declares nothing. 117 such sites in 76 documents state a scalar constraint.Why the SDK generator jobs fail
Generate TypeScript SDKandGenerate Python SDKfail on this branch, and a red generator job reads like a schema problem. The TypeScript job stops atalignCommittedMediaBuyName: CommittedMediaBuy.media_buy_id anchor not found, and the Python job stops insidefix_postal_country_system_pairing. Both are post-processors, not the generators. I don't think it is a schema problem, so here is what I measured on309831a027with the post-processors turned off and three small local edits: stripping the.int()suffix the Zod generator adds toenums/audio-bit-depth.json, aliasingColorSchema, and extending the regex inwidenPostalAreaSupportIndexSignature. Every number in this section, including the warnings below, comes from that commit.The generators work.
The code around them expects the old output.
alignCommittedMediaBuyNamelooks formedia_buy_id: string;, and the generator now writesmedia_buy_id: MediaBuyID;.scripts/generate_ergonomic_coercion.pyin the Python SDK hardcodes an import ofNotificationTypefrom the delivery response module. That enum is nowDeliveryNotificationTypein its own module, soadcp.serverfails on import.canonical_creative.pyimportsSellerPreferencefromproduct_format_declaration.The patches have two different causes.
alignCommittedMediaBuyNamealigns "the aggregate copy" with the commitment response. These have nothing left to do once the copy is gone.fix_audience_evidence_attestation_subjectandfix_postal_country_system_pairingcover whatdatamodel-code-generatordoes withallOfandanyOf.widenPostalAreaSupportIndexSignaturecovers what a TypeScript index signature can't express. These need a generator fix, and they break here only because they match the old text.I think versioning is why the first kind piles up. A published schema can't change a validation rule without a new release, so when a copy is wrong, an SDK patch is the quick way to ship. That's reasonable at the time. The cost is that the SDK now depends on the mistake, and fixing the schema breaks the patch.
Generated types improve. Python's
docs/shared-type-names.mdcounts names that more than one schema declares. It goes from 515 names and 1,678 classes onmainto 462 names and 1,403 classes here.adcp.typescan bind only one class per name, so every class this removes is one less that a user has to import from a domain module.The SDKs. These post-processors and imports live in the SDK repositories, so they get updated there. Separately, I'm working on a structurally different way to emit the SDK, in my
adcp-client-pythonfork, and it's nearly ready. It compiles schemas directly to types, so there's no generated text to patch and this kind of breakage can't happen.One generator bug the schemas now avoid
A local
#/definitions/...reference is valid JSON Schema, and every validator resolves it against the document that holds it. Two generators resolve it against the wrong document when they flatten a referenced document into the one that references it. They don't bring its definitions along, so the reference dangles.enforceStrictSchemainadcp-clientmerges anallOfmember besidepropertiesorrequiredinto its parent. It copiesproperties,required, andadditionalProperties, notdefinitions. It should rebase the merged references onto the source document._merge_ref_with_schemaindatamodel-code-generator0.64.0 inlines the target of a$refthat has schema keywords beside it.parse_combined_schemacreates that case when aoneOfbranch restates a property its parent declares, ascoordinated_placements.jsondoes forparams. It should rebase the inlined references too.The smallest reproduction for Python:
The generator fails with
A Parser can not resolve classes. Ajv compiles the same documents and validates them correctly.The schemas don't need a workaround for this, because a value used through a composed document belongs in a named document anyway. Five definitions moved:
adcp_minor_versioninformats/canonical/_base.json,sla_durationincore/sla-window.json,card_media_typeinimage_carousel.json,transition_modeinseller_rendered_stateful_display.json, andcontrol_total_nameincore/reporting-control-total.json, which a walker in the TypeScript Zod generator can't resolve. The gate now fails on the general case. Documents with local definitions onmain, such ascore/vast-tracker-constraints.json, keep working because their sites either state each property themselves or have nothing beside theallOf.Generator warnings
The TypeScript generator prints 53
Skipping X1→X: body mismatchwarnings onmainand 66 here. The 13 new ones areBrandReference7toBrandReference15,CollectionReference1,MediaBuyActionTask1,PlacementReference1, andTargetingOverlay2. Each has one definition in the schemas. The bodies differ only by a nested numbered alias, such asDomainName5againstDomainName, or by a line break. Numbered exports stay at 67 in total.The 18
Field name X is duplicated on Ywarnings in the Python generator are the same onmainand here.How I know nothing changes up to the drift commits
npm run test:schema-extractionresolves every$refthis branch adds, puts back the annotations each site keeps, and compares the whole document with the merge base.At commit 11: 519 touched documents, 1,791 added
$refs, 0 differences.titleanddescriptionname the schema, so they don't count. Every other key does, including annotations.x-entitymoves to the named schema only when every site states the same value. Otherwise it stays at each site.description, and the edits are in place, so the diff has no whitespace churn.typethat every enum value already has,type: stringunderpropertyNames, and equivalent pattern spellings such as\dand[0-9].x-entity,examplesandx-max-length-4.0on three brand IDs,enumDescriptionson seven enum sites,x-statusandx-added-inonoffer_reason,x-statusoncloudandReportingCloud, andx-entityon two placement ID lists. The two drifted enums widen.tests/named-schema-extraction.test.cjsalso runs intest:schemas. It requires that a$refto a scalar schema has only annotations beside it, because draft-07 ignores$refsiblings. It also requires a title on every scalar schema.What changes validation
Commits 12, 13 and 17 point 113 sites at one definition: 28 timezones in commit 12, 72 sites in commit 13, and the other 13 timezones in commit 17. A site here is a schema location that stated its constraint inline before the commit and a
$refafter. Where the copies disagreed, the concept takes the stricter rule, and the named schema carries it. A site loosens only when the stricter copy rejects a value that's already published.Tighter, at the sites that stated something else:
core/iana-timezone.jsonmaxLength: 255UTCstays valid, and the two nullable request fields still acceptnull.governance_contextcore/protocol-envelope.jsonpublished. 7 of these were in 3.2.8:accept_proposal,buy_products,control_media_buy,decline_proposals,list_products,refine_proposals, andrequest_proposals.list_proposals,get_media_buy_issue, andreport_media_buy_issueare new in 3.3.proposal_idminLength: 1maxLength: 255catalog_idsitemsminLength: 1maxLength: 255offering_idreporting_profiledelivery_config_idtokenminLength: 16maxLength: 4096suggestionsitemsminLength: 1maxLength: 1000request_proposalsreasonminLength: 1maxLength: 2000nameminLength: 1maxLength: 255descriptionminLength: 1maxLength: 2000countriesitems^[A-Z]{2}$, ISO 3166-1 alpha-2systemminLength: 1enums/postal-system.jsonupstream_source_domainformat: hostname,maxLength: 253maxLength: 253. Uppercase and a trailing dot are rejected; nothingformat: hostnamerejected is accepted.response_max,completion_max^P(?!$)…, which acceptsPTandP1DTcore/sla-duration.json, the pattern ofcore/iso8601-duration.json: a component must followPandT. Zero, such asPT0S, stays valid (#8905).sync_plansdelegationbudget_limitand portfoliototal_budget_cap,si_send_messagehandoff intentpricepricerequired neither fieldamount,currencythroughcore/currency-code.json, both required. Both documents arex-status: experimental. (#8471)Tighter, because the named schema took the stricter rule:
core/domain-name.jsonmaxLength: 253, and labels of at most 63 charactersformat: hostnameupstream_source_domaincore/media-buy-id.jsonmaxLength: 255predecessor_media_buy_idsitescore/account-id.jsonmaxLength: 255, at every site that references it, including reporting subscriptionaccount_idsandexclude_account_idsaccount_idsitescore/account-change.jsoncore/creative-evaluation-id.jsonmaxLength: 255evaluation_idsitescore/account-request-id.jsoncore/account-request-record.jsonrequest_idcore/cancellation-reason.jsonminLength: 1cancellation_reasonsitesmedia-buy/package-control.jsoncore/signal-description.jsonminLength: 1descriptioncore/wholesale-feed-event.jsonLooser, because the stricter copy rejects a published value:
^\d+:\d+$core/aspect-ratio.jsoncore/format.jsonpublishes1.91:1for this conceptLooser, because the named schema drops a rule (commit 22):
core/iana-timezone.json^[A-Za-z0-9._+-]+(?:/[A-Za-z0-9._+-]+)*$andnot: {const: inventory_local}x-adcp-validation), and no value either rule rejected resolves there. Removing both only widens a 3.2.8 schema. The dayparttimezoneis the only site that acceptsinventory_local, as aconstbranch beside the IANA identifier.Looser, so an origin survives a URL parser (commit 33):
core/https-origin.jsonand the disclosedattempted_agent_origin^https://[^/?#@]+$^https://[^/?#@]+/?$. Each description says receivers compare these values by canonical origin (docs/reference/url-canonicalization.mdx#canonical-origin), so both spellings name one origin.https://issuer.exampleashttps://issuer.example/, so the old pattern rejected the parsed value of every origin it admitted (#8923). RFC 3986 section 6.2.3 treats the two spellings as equivalent.The WHATWG URL Standard, pinned at
4f461b8:RFC 3986 section 6.2.3: "because the "http" scheme makes use of an authority component, has a default port of "80", and defines an empty path to be equivalent to "/", the following four URIs are equivalent: http://example.com http://example.com/ …" and "a URI that uses the generic syntax for authority with an empty path should be normalized to a path of "/"."
No change in what's accepted:
canonical-format-option.jsonformat_kind, tworelationshipfields,reporting-verification-profile-set.json, and commercial termscancellation_terms.reasonnow reference their named schemas. Thereporting-verification-profile-set.jsonitems now carry the target'sx-status: experimental.manifest.schema.json#/definitions/tool_nameis replaced bycore/tool-name.json, with the same pattern. Thelist_productsincompletescope referencesenums/product-incomplete-scope.json, andenums/incomplete-scope.jsonis that set plusproposals, soget_productsandrequest_proposalskeep all five values.core/iana-timezone.jsondropsx-added-in, because fields older than 3.2 now reference it.enums/audience-evidence-relationship.json, whichmainremoved in #8767, stays as the named schema for those tworelationshipfields, withoutx-added-in, because 3.2 fields reference it. Bothfixed_timezonesites and thesupported_timezonesitems no longer statex-max-length-4.0: 64themselves. Commit 19 puts it once oncore/iana-timezone.json, so every timezone site plans the 4.0 limit of 64 characters, and 3.x keeps the 255 that 3.2.8 published. Commit 37 addsx-max-length-4.0: 2048tocore/https-url.json,core/https-origin.json, andcore/webhook-url.json, the ceilingsecurity.mdxalready prices auriat, andx-max-length-4.0: 255to the 42 named ID schemas undercore/that state no length bound and whose pattern doesn't bound length (#8899, #8900). The capabilities worst case stays at 99,052,347 bytes. Commit 35'score/webhook-authentication.jsonkeeps push'sx-max-length-4.0: 512oncredentials, soreporting_webhookand thecreate_media_buyartifact_webhookcarry it too; 4.0 removes the whole object.The additive-minor check compares numeric and length bounds,
const, andenum, so it reports 118 of these against 3.2.11. It doesn't comparepatternornot, so it doesn't see thegovernance_context, domain label, and SLA duration tightenings, and they can't be register entries. Teaching the check those tightenings is a separate follow-up; this PR doesn't change the lint. The PR adds all 118 toscripts/lint-additive-minor-corrections.jsonas register entries under DR-0036, each a correction that bounds a concept as the published text bounds it, with its published source quoted. Each reason begins "Applies the bound the published text sets."node scripts/lint-additive-minor.cjsreports 0 new changes. No baseline entry grew. The entries ship in 3.3 only, not in a 3.2.x patch.upstream_source_domain.maxLength: 255at 24 sites andminLength: 1at 10 of them. 3.2.8 publishedcore/iana-timezone.jsonwith both.proposal_id,catalog_id,media_buy_id,account_id,evaluation_id,cancellation_reason, signalnameanddescription, webhooktoken,suggestions, and the rejectionreason.Three more corrections apply a rule, not a bound, so they have no register entry. They ship in 3.3 only:
governance_contextis printable ASCII on every request, as 3.2.8'score/protocol-envelope.jsonpublished it. 7 request sites from 3.2.8 gain the pattern.format: hostnameenforced onupstream_source_domain. Every domain name site gains the limit throughcore/domain-name.json.Pand afterT.PTandP1DTaren't ISO 8601 durations, andcore/iso8601-duration.jsonalready rejects them.Two more changes need no register entry. Commit 33 only loosens. Commit 38 tightens two experimental documents,
governance/sync-plans-request.jsonandsponsored-intelligence/si-send-message-response.json, which the experimental contract lets change in a minor;node scripts/lint-additive-minor.cjsstill reports 0 new changes against 3.2.11.Capabilities
mraid_versionskeeps any MAJOR.MINOR version, as 3.2.8 published it, throughcore/supported-mraid-version.json. Limiting it to 2.0 and 3.0 would reject MRAID 1.0, a real version a seller can list, so this PR doesn't make that change in 3.x. Thehtml5format'smraid_versionkeepsenums/mraid-version.json.The 3.2 to 3.3 migration guide, the versioning page, the release notes, and What's new list four corrections: the domain name (253 characters, 63 per label), the timezone identifier, the per-concept bounds, and
governance_context. The 3.3 beta program page links #8536 from the DR-0036 row.Commits
Each commit is reviewable on its own, and each schema edit is mechanical:
npm run schemas:normalize.core/andenums/, 47 local definitions, 517 sites, and the two drifted enums, with.changeset/app-store-and-asset-source-drift.md. The training agent now bundles referenced schemas into its MCP tool definitions.mainresolves the named schemas.$refs.manifest.schema.jsonreferencesenums/error-recovery.jsonandenums/idempotency-requirement.json, sobuild-schemasregisters the named schemas the manifest references before it validates the manifest. The proof holds here.core/iana-timezone.json. Commit 17 points the other 13 at it.list_productsincompletescope rejectsproposalsagain, throughenums/product-incomplete-scope.json. The vocabulary test accepts a branch that references anotherenums/document or states aconst, and the parity compile limit moves to 1,454,000 bytes.core/iana-timezone.json, so every timezone does:budget_cap_timezoneon the media buy, the planned delivery and the media-buy responses and requests, the reportingtimezoneinreporting_capabilities, its canonical form,get_account_financialsandget_creative_delivery, the catalog field mappingtimezone, and thesupported_timezonesitems. Register entries record the 21 new length bounds.enums/audience-evidence-relationship.jsondropsx-added-in, and the documented worst case moves to 91,765,369 bytes.main's text from docs(governance): DR-0036 records open schemas within a major; withdraw DR-0032 and DR-0033 #8858, so this edit no longer appears in the diff.core/iana-timezone.jsonplans a 4.0 limit of 64 characters withx-max-length-4.0: 64, and keepsmaxLength: 255for 3.x. The longest IANA timezone identifier is 32 characters. The structural-bounds test lets a 4.0 annotation sit below the keyword, and the worst case takes the lower of the two, so it moves to 91,551,067 bytes.governance/dr-0036-decision-only), which later closed unmerged. Commit 24 replaces its DR-0036, register header and check withmain's from docs(governance): DR-0036 records open schemas within a major; withdraw DR-0032 and DR-0033 #8858. This PR's 118 entries followmain's entries, each reason beginning with its kind.core/iana-timezone.jsondrops its pattern and itsinventory_localexclusion: a timezone is 1 to 255 characters and must resolve in the TZDB. The migration guide, versioning page, release notes, and What's new list thegovernance_contextand MRAID corrections as well, and the changeset describes them as corrections under DR-0036. Two tests that relied on the pattern or the exclusion now reject an empty or 256-character timezone, and the documented worst case moves to 91,766,491 bytes.mainat867fdce46a(3.3.0-beta.5 and match keys). Five files conflicted:package.jsonkeeps both sides' scripts and test lists, the 3.3 beta program page keeps this PR's DR-0036 row with main's ratification status, and three measured figures are recomputed on the merged tree. Main's match-key schemas already reference named schemas, so no site changes.mainatbc2714ae20: docs(governance): DR-0036 records open schemas within a major; withdraw DR-0032 and DR-0033 #8858's DR-0036, fix(schema): loosen over-specified URL patterns to ^https:// (#8398) #8792's^https://URL patterns, and the Minor releases sometimes break older buyers, and our versioning rules disagree about whether that's allowed #8501 withdrawals, including price adjustments and audience-evidence targets. DR-0036, the check, and the register header aremain's; the register holdsmain's 47 entries, then this PR's 118. The 17 loosened URL sites referencecore/https-url.json, so the unusedcore/canonical-https-url.json,core/public-https-url.json, andcore/price-adjustment-name.jsongo.enums/audience-evidence-relationship.jsonstays for the tworelationshipfields. Repeats new onmainget named schemas: the creative review SLA durations,installment-changeproduct_id, thelist_productsexecution_readiness.version, and the newenums/membership-action.jsonandcore/country-or-subdivision-code.json. Measured figures are recomputed on the merged tree.mainat53a9cc4f93.mainatb4c40fcb85. Six files conflicted. feat(schema): add reserved-word-safe replacements for 6 enum positions and deprecate the originals (#8791) #8915 addsfull_nameto the onboardermatch_keysenum and deprecatesname; this branch moved that enum toenums/signal-match-key.json, so the value and its deprecation metadata go there, and the reserved-word test reads the named schema.package.jsonkeeps both sides' test lists, the migration guides takemain's wording, and the parity compile limit drops to 1,425,000 bytes.mainadded no inline pattern sites since the previous merge base, so the gate passes with no new named schemas.core/domain-name.jsonlimits each label to 63 characters.upstream_source_domainhad the limit throughformat: hostname, so it's now only tighter than in 3.2.8.core/sla-duration.jsontakes the pattern ofcore/iso8601-duration.json, so it rejectsPTandP1DT(3.2: three different ISO-8601 duration patterns across 10 positions, disagreeing on whether a zero duration is legal #8905), and its description says zero is a valid bound instead of "not zero".core/domain-name.jsonstatesmaxLengthonce.mraid_versionsreferencescore/supported-mraid-version.json, the MAJOR.MINOR pattern 3.2.8 published, instead ofenums/mraid-version.json, so it accepts what it accepted before. The documented worst case moves to 99,052,347 bytes..schema-deltas/8536-one-definition-per-concept.yaml, the delta manifest for the schema equivalence check proposed in build(schemas): prove what a schema change does to valid payloads #9119: 41 lines, 6 of themnonebecause another line at the same node masks them.enums/signal-match-key.json#/enumMetadata/name, where commit 26 movedname'sx-removed-inmetadata, instead of the two inline sites.core/https-origin.jsonand the disclosedattempted_agent_originaccept one trailing slash, and each origin description says receivers compare by canonical origin (3.2:format: uriwithpattern: ^https://[^/?#@]+$refuses its own normalised value — should the pattern admit the trailing slash? #8923). The canonicalization table lists the attestation issuer origins. Two manifest lines.core/revision-token.jsonnames the integer-or-string seller revision token thataccount-changeresource_revisionandlist_creativesseller_revisionshare (Eight fields declare a type list where one type carries the meaning #8423). Both JSON types stay.authenticationobject gets one definition per contract (3.2: one webhook-subscription concept, two authentication contracts across three documents #8907):core/webhook-authentication.json(credentials required) forpush_notification_config,reporting_webhook, and theartifact_webhook, andcore/notification-authentication.json(credentials optional, because the config is echoed on reads) for account and agent notification configs. Each site keepsdeprecated,x-removed-in, and its description, so the 4.0 registry doesn't change. The parity compile limit moves to 1,426,000 bytes.{start, end}date-time objects referencecore/datetime-range.json(One 15-field error envelope is restated at 21 response documents under 21 titles — define it once and $ref it #8720), andcore/reporting-reliability-statistics.jsondrops itsReportingReliabilityMeasurementPeriodcopy.get_reporting_statusperiodstays inline, because it is half-open and the named schema describes both ends as inclusive.x-max-length-4.0(4.0: one named schema per ID concept, checked by the build #8899, 4.0: one URL convention: named URL schemas, one suffix, one bound, checked by the build #8900). The parity compile limit moves to 1,427,000 bytes.sync_plansbudget_limitandtotal_budget_capand the SI handoffpricestate a non-negative amount and an ISO 4217 currency, and the handoffpricerequires both (A money value is declared inline 21 times in seven incompatible shapes, and no document names it #8471). Five manifest lines.core/money.jsonnames money, and 14 copies reference it (A money value is declared inline 21 times in seven incompatible shapes, and no document names it #8471). Commercial terms and change-term constraints stay closed, plan adjustments keep their positive amount, andcore/insertion-order.jsonkeeps its length-3 currency. Commit 38's four amount andrequiredmanifest lines become two atcore/money.json, where the differences now appear.tests/audience-targeting-member-push.test.cjscompiles the whole capabilities response and validatesaudience_targetingby pointer. Compiled on its own, the subschema couldn't resolve its local#/definitions/hashed_identifier_typereference, which commit 8 introduced, so every test in the file was cancelled.mainat576ebca386. Two files conflicted, both measured figures: the documented capabilities worst case is recomputed on the merged tree, 99,149,720 bytes with 193 open positions. feat(schema): reporting subscriptions name geography systems and carry geo codes #9049's dimension systems reach the compliance controller, so the parity compile limit moves to 1,430,000 bytes (1,429,511 measured). Main's reporting schemas reference named schemas, so no site changes and the delta manifest doesn't change.mainat2db59bae43. Five files conflicted.package.jsonkeeps both sides' test lists. At the single-value branches feat(schemas): deprecate the single-value form of the scalar-or-list unions #9123 deprecates inbrand.jsoncolor_value, the fiveget_brand_identitycolors, andrequote-required.jsonenvelope_field, the branch keeps this PR's$reftocore/hex-color.jsonor#/definitions/envelope_field_path, with feat(schemas): deprecate the single-value form of the scalar-or-list unions #9123'sdeprecated,x-deprecated-in,x-removed-in, and description beside it. The referenced schemas aren't deprecated.accept_proposalproposal_terms_digestkeeps its$reftocore/proposal-terms-digest.jsonwith feat(schema): PROPOSAL_TERMS_CHANGED for a mismatched accept_proposal digest #9171's description. feat(schemas): deprecate the single-value form of the scalar-or-list unions #9123's descriptions and feat(schema): PROPOSAL_TERMS_CHANGED for a mismatched accept_proposal digest #9171's error code reach the compliance controller, so the parity compile limit moves to 1,431,000 bytes (1,430,199 measured). No site changes, so the delta manifest doesn't change.mainthat commit 2 exposes. The build stamped the package release intodist/schemas/latest/extensions/, so those files named/schemas/3.3.0-rc.2/...while the rest oflatest/names/schemas/latest/.... Commit 2 pointsextension-meta.jsonvalid_fromandvalid_untilatcore/adcp-minor-version.json, which no release has published, so inlatest/both references didn't resolve. The build now writeslatest/extension URIs under/schemas/latest/and still filters extensions by the release; versioned builds don't change. A build CLI test checks every$idand$refunderlatest/extensions/, andtests/dist-schema-version-ids.test.cjsnow resolves every pinned$refinlatest/. Onlylatest/extensions/changes:adcp.json,extension-meta.json, andindex.json.verify-buildreports no problems, and the equivalence report doesn't change.mainat14651cc07c(fix(schemas): property IDs and other payloads that two oneOf branches both matched now validate #9170 and the 3.3.0-rc.3 release).package.jsonconflicted:test:schemaskeeps both sides' tests. This branch changes none of fix(schemas): property IDs and other payloads that two oneOf branches both matched now validate #9170's files. Two of fix(schemas): property IDs and other payloads that two oneOf branches both matched now validate #9170'snotbranches reference documents this branch changes,content-standards/artifact.jsonandcore/property-id.json; both changes keep the accepted values, so each guard refuses the same payloads, andtests/oneof-overlap-resolution.test.cjspasses. fix(schemas): property IDs and other payloads that two oneOf branches both matched now validate #9170's schemas add 1,240 bytes to the total projection; the parity compile limit doesn't move. No site changes, so the delta manifest doesn't change.Named schemas
Every named schema has a
titleand an entry inindex.json, the same ascore/task-id.json.I named a concept only when its sites state identical constraints and mean the same value: they share an
x-entityvalue, share a property name with matching descriptions, or follow a named standard. A concept in several documents gets a schema undercore/orenums/; one that repeats inside a document gets adefinitionsentry there. A site that merely shares a constraint with another concept gets a schema of its own. An IATA airport code iscore/airport-code.json, not a currency code, and a warning message iscore/warning-message.json, not a reporting setup message.core/currency-code.jsoncore/country-code.jsoncore/idempotency-key.jsoncore/https-url.jsoncore/domain-name.jsonThe other 260 scalar schemas, 1,100 sites
core/fraction.jsoncore/sha256-digest.jsoncore/percentage.jsoncore/iana-timezone.json(existing)core/subscriber-id.jsoncore/sha256-hex-digest.jsoncore/governance-context.jsoncore/hex-color.jsoncore/media-buy-id.jsoncore/proposal-id.jsoncore/creative-id.jsoncore/reporting-revision-id.jsoncore/account-id.jsoncore/notification-id.jsoncore/package-id.jsoncore/product-id.jsoncore/creative-capability-id.jsoncore/country-subdivision-code.jsoncore/latitude.jsoncore/longitude.jsoncore/webhook-url.jsoncore/aspect-ratio.jsoncore/media-buy-name.jsoncore/reporting-delivery-config-id.jsoncore/cancellation-reason.jsoncore/creative-locale-variant-id.jsoncore/keyword.jsoncore/reporting-delivery-offering-id.json(existing)core/reporting-destination-id.jsoncore/reporting-transport.jsoncore/signal-local-id.jsoncore/reporting-destination-ref.jsoncore/reporting-obligation-id.jsoncore/creative-evaluation-id.jsoncore/geo-place-system-version.jsoncore/measurement-window-id.jsoncore/refinement-ask.jsoncore/age-in-years.jsoncore/agency-estimate-number.jsoncore/auth-credential.jsoncore/calendar-date.jsoncore/catalog-generation.jsoncore/catalog-id.jsoncore/custom-event-name.jsoncore/opportunity-id.jsoncore/page-cursor.jsoncore/report-definition-id.jsoncore/seller-suggestion.jsoncore/account-change-resource-type.jsoncore/adcp-release-version.jsoncore/audience-evidence-id.jsoncore/audience-evidence-snapshot-id.jsoncore/audience-evidence-version.jsoncore/brief-rejection-reason.jsoncore/canvas-state-id.jsoncore/creative-rotation-weight.jsoncore/iso8601-duration.jsoncore/mcp-compatibility-context-id.jsoncore/page-size.jsoncore/placement-id.jsoncore/policy-category-id.jsoncore/proposal-terms-digest.jsoncore/reporting-access-mode.jsoncore/reporting-consumer-status-id.jsoncore/reporting-profile-id.jsoncore/reporting-receipt-id.jsoncore/trusted-match-provider-id.jsoncore/account-request-id.jsoncore/adcp-major-version.jsoncore/adcp-minor-version.jsoncore/adcp-task-name.jsoncore/brand-claim-use-case.jsoncore/catalog-item-id.jsoncore/event-source-id.jsoncore/finality-policy-id.jsoncore/font-weight.jsoncore/governance-policy-id.jsoncore/macro-dialect-revision.jsoncore/macro-dialect-semantic.jsoncore/reason-detail.jsoncore/reporting-adjustment-id.jsoncore/reporting-materialization-id.jsoncore/reporting-subscription-id.jsoncore/sla-duration.jsoncore/tool-name.jsoncore/tracker-offset.jsoncore/webhook-challenge-value.jsoncore/webhook-token.jsoncore/account-change-cursor.jsoncore/agent-operator-id.jsoncore/brand-claim-context-note.jsoncore/brand-id.json(existing)core/bulk-page-size.jsoncore/cloud-region.jsoncore/control-total-unit.jsoncore/day-time-duration.jsoncore/golden-vector-name.jsoncore/governance-budget-period-id.jsoncore/gtin.jsoncore/https-origin.jsoncore/jurisdiction-group.jsoncore/macro-token.jsoncore/measurement-source.jsoncore/open-error-code.jsoncore/policy-category-facet-id.jsoncore/pricing-option-id.jsoncore/principal-id.jsoncore/purchase-order-ref.jsoncore/sharing-principal-identity.jsoncore/signal-tag.jsoncore/tmpx-slot-id.jsoncore/webhook-activity-limit.jsoncore/acceptance-criterion-id.jsoncore/acceptance-policy-profile-id.jsoncore/account-change-id.jsoncore/account-change-resource-id.jsoncore/adcp-build-version.jsoncore/advertiser-role.jsoncore/airport-code.jsoncore/asset-group-id.jsoncore/attestation-action-id.jsoncore/attestation-resolver-id.jsoncore/base64url.jsoncore/billing-variance-percent.jsoncore/brand-agent-id.jsoncore/brand-agent-query.jsoncore/brand-id-or-wildcard.jsoncore/canonical-adcp-minor-version.jsoncore/canvas-breakpoint-id.jsoncore/capabilities-version.jsoncore/change-summary.jsoncore/collection-list-id.jsoncore/commission-basis-description.jsoncore/commission-rate.jsoncore/consultation-context.jsoncore/contact-name.jsoncore/control-total-name.jsoncore/country-or-subdivision-code.jsoncore/credential-fingerprint.jsoncore/date-duration.jsoncore/delivery-observation-id.jsoncore/demographic-label.jsoncore/email-address.jsoncore/font-family-name.jsoncore/forecast-point-label.jsoncore/format-option-id.jsoncore/format-revision.jsoncore/geo-place-id.jsoncore/hashed-email.jsoncore/hashed-phone.jsoncore/identifier-value-digest.jsoncore/identity-match-serve-window.jsoncore/incomplete-scope-description.jsoncore/installment-id.jsoncore/io-signatory.jsoncore/later-proposal-limit.jsoncore/media-buy-issue-description.jsoncore/media-buy-issue-id.jsoncore/opentype-feature-tag.jsoncore/principal-configuration-version.jsoncore/products-feed-version.jsoncore/products-pricing-version.jsoncore/property-list-id.jsoncore/proposal-alternative-count.jsoncore/proposal-brief-alignment.jsoncore/proposal-description.jsoncore/provider-storage-locator.jsoncore/purchase-continuation-token.jsoncore/reference-population-id.jsoncore/reference-population-version.jsoncore/renderer-export-name.jsoncore/renderer-version.jsoncore/reporting-canonicalization-id.jsoncore/reporting-grain.jsoncore/reporting-issue-id.jsoncore/reporting-period-duration.jsoncore/reporting-rejection-code.jsoncore/revision-token.jsoncore/rights-response-sla-days.jsoncore/signal-description.jsoncore/signal-name.jsoncore/signal-pricing-group.jsoncore/signal-segmentation-criteria.jsoncore/signal-taxonomy-node-id.jsoncore/time-duration.jsoncore/trademark-mark.jsoncore/trademark-registration-number.jsoncore/trademark-registry.jsoncore/webhook-operation-id.jsoncore/acceptance-policy-catalog-version.jsoncore/acceptance-policy-profile-description.jsoncore/acceptance-policy-profile-version.jsoncore/acceptance-rule-description.jsoncore/acceptance-rule-id.jsoncore/account-change-action.jsoncore/account-change-batch-id.jsoncore/apple-app-id.jsoncore/assignment-limit.jsoncore/attestation-reason-code.jsoncore/audience-description.jsoncore/audience-taxonomy-version.jsoncore/avatar-provider.jsoncore/brand-agent-description.jsoncore/brand-capability-description.jsoncore/buyer-reason-message.jsoncore/canonical-format-kind.json(existing)core/change-term-description.jsoncore/coalescence-window-seconds.jsoncore/confidence-level.jsoncore/context-match-cache-ttl.jsoncore/context-summary.jsoncore/coordinated-component-id.jsoncore/cpu-load-percent.jsoncore/custom-acceptance-requirement-id.jsoncore/custom-pricing-description.jsoncore/decline-failure-reason.jsoncore/display-transition-id.jsoncore/duration-unit.jsoncore/execution-readiness-version.jsoncore/extension-namespace.jsoncore/external-issue-ref.jsoncore/format-local-id.jsoncore/geo-region-catalog-version.jsoncore/governance-attribute-id.jsoncore/identity-change-impact-reason.jsoncore/identity-change-rejection-reason.jsoncore/impairment-prior-status.jsoncore/macro-declaration-id.jsoncore/macro-resolution-message.jsoncore/materialization-failure-code.jsoncore/measurement-window-description.jsoncore/media-buy-change-term-id.json(existing)core/normalized-image-coordinate.jsoncore/numeric-place-id.jsoncore/offering-product-limit.jsoncore/parent-organization-name.jsoncore/placement-name.jsoncore/plan-adjustment-reason.jsoncore/policy-facet-description.jsoncore/policy-facet-name.jsoncore/policy-issuer-name.jsoncore/policy-summary.jsoncore/portfolio-description.jsoncore/price-adjustment-rate.jsoncore/product-name.jsoncore/recorded-payload-digest.jsoncore/refinement-result-reason.jsoncore/registry-policy-version.jsoncore/reporting-resource-ref.jsoncore/reporting-setup-message.jsoncore/reporting-verification-profile.json(existing)core/representation-id.jsoncore/representation-rejection-message.jsoncore/representation-set-name.jsoncore/request-binding-digest.jsoncore/rights-match-score.jsoncore/seller-agent-id.jsoncore/task-message.json(existing)core/voice-provider.jsoncore/warning-message.json151 enums, 341 sites
enums/delegation-type.jsonenums/reporting-file-format.jsonenums/agent-protocol.jsonenums/asset-source.jsonenums/cache-scope.jsonenums/error-recovery.jsonenums/transition-mode.jsonenums/audience-evidence-type.jsonenums/buyer-asset-acceptance.jsonenums/creative-indicator-type.jsonenums/logo-variant.jsonenums/app-store.jsonenums/audience-evidence-presence.jsonenums/audience-evidence-requirement-mode.jsonenums/brand-architecture-type.jsonenums/brand-claim-type.jsonenums/creative-change-initiator.jsonenums/creative-review-decision.jsonenums/creative-unapproved-status.jsonenums/delivery-period-state.jsonenums/delivery-reconciliation-status.jsonenums/format-seller-preference.jsonenums/geojson-geometry-type.jsonenums/governance-accounting-mode.jsonenums/logo-background.jsonenums/logo-orientation.jsonenums/metric-optimization-target-kind.jsonenums/optimization-metric.jsonenums/outcome-target-cost-strength.json(existing)enums/plan-adjustment-type.jsonenums/property-feature-type.jsonenums/reporting-delivery-pattern.jsonenums/reporting-status-severity.jsonenums/reporting-status-view.jsonenums/resolved-macro-mapping-status.jsonenums/roas-strength.jsonenums/signal-targeting-mode.jsonenums/transformer-variant-dimension.jsonenums/verification-grading-profile.jsonenums/wholesale-feed-event-type.jsonenums/acceptance-policy-subject.jsonenums/account-status.json(existing)enums/ai-act-risk-class.jsonenums/audience-activation-direction.jsonenums/audience-evidence-decision-use.jsonenums/audience-evidence-relationship.jsonenums/audience-evidence-unit.jsonenums/audio-bit-depth.jsonenums/audio-channel-mode.jsonenums/brand-identity-field.jsonenums/buying-mode.jsonenums/ca-postal-system.jsonenums/capability-change-event-type.jsonenums/card-media-type.jsonenums/catalog-item-availability-action.jsonenums/catalog-item-availability.jsonenums/compliance-attestation-mode.jsonenums/conversion-optimization-target.jsonenums/creative-purge-kind.jsonenums/daast-tracker-target.jsonenums/data-subject-right.jsonenums/date-range-support.jsonenums/day-of-week.json(existing)enums/delivery-notification-type.jsonenums/delivery-recipient-cloud.json(existing)enums/delivery-report-window-kind.jsonenums/display-tag-delivery-type.jsonenums/evidence-age-unit.jsonenums/feed-listing-outcome.jsonenums/font-style.jsonenums/gb-postal-system.jsonenums/gdpr-article-9-basis.jsonenums/gender.jsonenums/governance-check-type.jsonenums/governance-delivery-source.jsonenums/history-entry-type.json(existing)enums/incomplete-scope.jsonenums/inventory-list-effect.jsonenums/macro-unavailable-behavior.jsonenums/media-buy-action-task.jsonenums/media-buy-delivery-status.jsonenums/media-buy-issue-category.jsonenums/media-buy-issue-severity.jsonenums/membership-action.jsonenums/mraid-version.jsoncore/supported-mraid-version.jsonenums/opportunity-close-reason.jsonenums/opportunity-status.jsonenums/other-postal-system.jsonenums/placement-authority.jsonenums/plan-adjustment-evidence-type.jsonenums/plan-adjustment-state.jsonenums/product-payload-view.jsonenums/product-placement-mode.jsonenums/product-refinement-action.jsonenums/proposal-refinement-action.jsonenums/purchase-continuation-loss.jsonenums/rendering-origin.jsonenums/reporting-feed-purpose.jsonenums/reporting-receipt-status.jsonenums/reporting-schedule-alignment.jsonenums/reporting-subscription-exclusion-reason.jsonenums/reporting-subscription-page-list.jsonenums/required-data-subject-right.jsonenums/seller-proposal-kind.jsonenums/seller-proposal-status.jsonenums/signal-data-source.jsonenums/signal-discovery-mode.jsonenums/signal-lookback-window.jsonenums/signal-match-key.jsonenums/signal-methodology.jsonenums/signal-modeling-method.jsonenums/signal-parent-match-behavior.jsonenums/signal-pre-onboarding-precision.jsonenums/signal-refresh-cadence.jsonenums/signal-selection-mode.jsonenums/signal-training-data-type.jsonenums/sort-direction.json(existing)enums/task-domain.jsonenums/task-failure-status.jsonenums/task-sort-field.jsonenums/unmatched-locale-action.jsonenums/url-macro-context.jsonenums/us-postal-system.jsonenums/variant-keep-mode.jsonenums/vast-tracker-target.jsonenums/verification-token-mode.jsonenums/video-orientation.jsonenums/webhook-delivery-auth-mode.jsonenums/webhook-signing-algorithm.jsonenums/acceptance-policy-coverage.jsonenums/audience-sync-action.jsonenums/budget-cap-scope.jsonenums/budget-warning-resource-type.jsonenums/canonical-optimization-metric.jsonenums/canonicalization-contract-version.jsonenums/clickthrough-policy.jsonenums/compatibility-resolver.jsonenums/event-source-manager.jsonenums/forecast-bucket-completeness.jsonenums/governance-plan-status.jsonenums/governed-action-status.jsonenums/host-receipt-status.jsonenums/http-method.json(existing)enums/idempotency-requirement.jsonenums/offer-reason.json(existing)enums/postal-system.json(existing)enums/pricing-model.json(existing)enums/product-incomplete-scope.jsonenums/uncovered-property-action.jsonenums/update-frequency.json(existing)enums/vast-fullscreen-version.jsonFour object schemas are named too. #8504 covers the rest of the repeated objects.
core/money.jsoncore/datetime-range.json(existing)core/webhook-authentication.jsoncore/notification-authentication.jsonTwo pairs share a name and mean different things, so each gets a schema:
core/bulk-page-size.jsonallows 1 to 10,000 items with a default of 1,000, onget_collection_list,get_property_list, andget_media_buy_artifacts.core/page-size.jsonstops at 100, so that default wouldn't fit.enums/optimization-metric.jsonincludes the attention metrics.enums/canonical-optimization-metric.jsonleaves them out, and its schema says that's on purpose.The gate
npm run test:schema-named-constraintsruns innpm testand in Build Check, next to the additive-minor check. It fails in three cases.An inline copy of a named schema. The message says how to fix it:
A repeated unnamed constraint: the same constraint at 2 or more sites, in one document or across documents. A repeat inside one document asks for a
definitionsentry there, and one across documents asks for a schema undercore/orenums/. A local definition is named for its own document only.A local reference in a composed document. A
$refinallOfbesidepropertiesorrequired, a$refon a property an enclosing schema also declares, or a$refwith schema keywords beside it, whose target uses a local reference the site doesn't restate.mainhas none of these. The old head of this branch had 18.The gate compares constraints this way:
pattern, anenumcompared as a set, or a numeric range with both ends. Equality alone counts.minLength: 1, so equality alone proves nothing. A weak constraint counts only with the named schema'sx-entity, or on a property name that already references it.typethe constraint already implies doesn't count, and equivalent pattern spellings compare equal.ifornot.When several named schemas share a constraint, the gate narrows by
x-entityand then by property name. If several still match, the message lists them.There's no list of exceptions and no configurable threshold.
scripts/schema-named-constraints.jsonis gone, and a test requires that it stays gone and that passing a list to the lint changes nothing.tests/lint-schema-named-constraints.test.cjscovers each rule with single-fault tests.npm run schemas:normalizelists the mechanical fixes, and--writeapplies them and runs the proof. Commit 5 adds it. The playbook tells authors to look incore/andenums/first.What this doesn't cover
The gate doesn't treat an unbounded string as a constraint, so these still say only
type: string. I count a property whose schema is onlytype: stringplus annotations, on a name ending in_idwhere another property of that name already references a named scalar schema. That gives 235 sites on 30 names. A follow-up PR points them at named schemas, defined per concept rather than per property name. The largest:pricing_option_idcreative_idmedia_buy_idaccount_idpackage_idproduct_idlist_idpolicy_idbrand_idasset_group_idrequest_idplacement_idFormat-only strings, such as
format: date-time, are also not part of the rule, because theformatvalue already names the concept. Neither are one-sided numeric bounds, such asminimum: 0, orconstvalues, which discriminate branches.Bounds
scripts/audit-oneof.mjsreads a$refto a scalar schema by its JSON type, soscripts/oneof-discriminators.baseline.jsonloses two stale entries.The MCP projection turns named schemas into shared definitions, so these size bounds move:
The measurements are on the merge with
mainat14651cc07c(commit 44). An earlier merge, commit 23, adds match keys. Main's match keys move the parity compile limit from 1,376,000 to 1,384,000 bytes; this PR's named schemas add 78,051 bytes on top of them, so the limit is 1,462,000. Onmainatbc2714ae20the limit is 1,388,000 bytes and the controller measures 1,334,188; this PR's named schemas add 76,419 bytes, so it measures 1,410,607, within the 1,462,000 that commit 24 keeps. The parity compile limit moves in commits 1, 2, 3, 8, 15 and 16, and in commit 23, which sets 1,462,000 bytes. Commit 26 mergesmainatb4c40fcb85and sets 1,425,000 bytes; the controller measures 1,424,038. Commit 35 sets 1,426,000 bytes (1,425,903 measured), and commit 37 sets 1,427,000 (1,426,550 measured). Commit 41 mergesmainat576ebca386and sets 1,430,000 bytes: main's controller measures 1,350,376 bytes, and this PR's named schemas add 79,135, so it measures 1,429,511. Commit 42 mergesmainat2db59bae43and sets 1,431,000 bytes: main's controller measures 1,351,064 bytes, and this PR's named schemas add 79,135, so it measures 1,430,199.Commits 12 and 13 move the documented worst case from 91,816,283 to 91,766,393 bytes, because named schemas now state their limits. Commit 15 updates the pin and
security.mdx. Commit 17 moves it to 91,765,369 bytes, because a supported timezone is now a patterned string, not free text. Commit 19 moves it to 91,551,067 bytes, because the 1,122 timezone strings the document can hold plan 64 characters in 4.0 instead of 255: 191 bytes each. Commit 22 moves it to 91,766,491 bytes, because without the pattern a timezone is free text again, costed at 4 bytes per character instead of 1: 192 more bytes for each of the 1,122. Main's match keys addmedia_buy.supported_match_keysand one open position, moving main's figure to 99,100,981 bytes. The merge (commit 23) applies this PR's -49,792 bytes on top: 99,051,189 bytes, with 108 open positions. Onmainatbc2714ae20the figure is 99,101,211 bytes with 190 open positions; commit 24 applies the same -49,792 bytes: 99,051,419 bytes, with 190 open positions. Commit 30 adds 928 bytes, because the 32mraid_versionsitems plan 32 characters again instead of 3: 99,052,347 bytes. Onmainat576ebca386, #9049's dimension systems move the figure to 99,198,584 bytes with 193 open positions; commit 41 applies this PR's -48,864 bytes: 99,149,720 bytes, with 193 open positions.Test and tooling edits
Besides the gate and the proof, the branch changes these tests and scripts:
tests/schema-validation.test.cjscounts a branch as finite when it references anotherenums/document or states aconst.scripts/lint-schema-enum-drift.cjsskips enums underifandnot, as the gate does, so it drops its allowlist entry for one.tests/check-platform-agnostic.cjslists the four app store names once, forenums/app-store.json, instead of 12 times across three documents.scripts/build-schemas.cjsregisters the named schemasmanifest.schema.jsonreferences before it validates the manifest.tests/mcp-schema-analysis.test.cjspins the definition counts the projection now reports.tests/helpers/named-scalar-schemas.cjsis new. It registers every named scalar schema with an Ajv instance, so a test that compiles one source schema can resolve them.tests/capabilities-structural-bounds.test.cjslets 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, and one that isn't a positive integer. In4.0mode,scripts/capabilities-structural-bounds.cjstakes the lower of the keyword and the annotation formaxItems,maxLengthandmaxProperties.enforcedmode is unchanged.tests/mcp-schema-analysis.test.cjspins 1,193 definition instances, 308 unique and 207 repeated definitions, for the webhook authentication object and money.tests/reporting-status-contract.test.cjschecks that the reliabilitymeasurement_periodreferencescore/datetime-range.json, andtests/sync-plans-validation-annotations.test.cjsreads the flight ordering rule fromflight's description.tests/total-budget-redistribution-currency.test.cjsreads the requiredcurrencyfromcore/money.json.tests/audience-targeting-member-push.test.cjstakesaudience_targetingfrom the compiled capabilities response withajv.getSchema, so local references resolve; its vectors are unchanged.Backport
Same request as #7959: please backport commits 1 to 11 to
3.2.x, without the two enum widenings, which add values. Nothing else in them accepts anything different. Commits 12 to 44 stay onmain: 12, 13, 17, 22, 27, 28, 33 and 38 change what schemas accept, and the others build on them.