Skip to content

schemas: give every repeated constraint one definition, and fail CI on any repeat (#8525) - #8536

Open
KonstantinMirin wants to merge 50 commits into
adcontextprotocol:mainfrom
KonstantinMirin:schemas/name-repeated-shapes-8525
Open

KonstantinMirin wants to merge 50 commits into
adcontextprotocol:mainfrom
KonstantinMirin:schemas/name-repeated-shapes-8525

Conversation

@KonstantinMirin

@KonstantinMirin KonstantinMirin commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

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_name moves into enums/signal-match-key.json); domain name labels are limited to 63 characters, so upstream_source_domain only tightens; an SLA duration rejects a bare T and allows zero; capabilities mraid_versions keeps 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 validates audience_targeting inside 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's PROPOSAL_TERMS_CHANGED); the parity compile limit and the total projection re-measured; the build publishes latest/extensions/ under /schemas/latest/, so extension-meta.json's reference to core/adcp-minor-version.json resolves there; merged with main at 14651cc07c (#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_local exclusion from core/iana-timezone.json. Commit 27 limits each domain name label to 63 characters, commit 28 makes an SLA duration reject a bare T, 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:

  • One concept, one schema. core/ and enums/ hold one named, titled schema for each scalar concept.
  • Everything above references it. Task and domain schemas use $ref to the named schema, and keep only their own description beside it.
  • The lowest layer depends on nothing above it. A named scalar schema references no domain schema.
  • The gate keeps it that way. A new inline copy of a named schema fails CI, and so does a new unnamed constraint repeated at 2 or more sites, in one document or across documents. There is no exception list.

#8504 does the same for objects, such as task envelopes, on top of this gate.

Counted over static/schemas/source, without bundled/ and mcp/, with the gate's own rules: every subschema reachable through schema keywords that states pattern or enum itself instead of through $ref, except document roots and anything inside if or not. A repeat is the same constraint at 2 or more sites.

main This branch
Inline pattern sites 918 83
pattern sites that repeat 844, in 67 groups 0
Inline enum sites 831 471
enum sites that repeat 362, in 145 groups 0
Titled scalar schemas 256, plus 45 local definitions 653, plus 58 local definitions

if and not stay 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 SDK and Generate Python SDK fail on this branch, and a red generator job reads like a schema problem. The TypeScript job stops at alignCommittedMediaBuyName: CommittedMediaBuy.media_buy_id anchor not found, and the Python job stops inside fix_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 on 309831a027 with the post-processors turned off and three small local edits: stripping the .int() suffix the Zod generator adds to enums/audio-bit-depth.json, aliasing ColorSchema, and extending the regex in widenPostalAreaSupportIndexSignature. Every number in this section, including the warnings below, comes from that commit.

The generators work.

  • TypeScript generates, the whole SDK typechecks with 0 errors, and all 2,068 Zod schemas load.
  • Python generates 3,307 classes, and the output compiles.

The code around them expects the old output.

  • Post-processors match generated text. alignCommittedMediaBuyName looks for media_buy_id: string;, and the generator now writes media_buy_id: MediaBuyID;.
  • scripts/generate_ergonomic_coercion.py in the Python SDK hardcodes an import of NotificationType from the delivery response module. That enum is now DeliveryNotificationType in its own module, so adcp.server fails on import.
  • Hand-written SDK code imports old names too. canonical_creative.py imports SellerPreference from product_format_declaration.

The patches have two different causes.

  • Some restate what a schema should say once. alignCommittedMediaBuyName aligns "the aggregate copy" with the commitment response. These have nothing left to do once the copy is gone.
  • Others work around a generator or language limit, and their own comments say so. fix_audience_evidence_attestation_subject and fix_postal_country_system_pairing cover what datamodel-code-generator does with allOf and anyOf. widenPostalAreaSupportIndexSignature covers 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.md counts names that more than one schema declares. It goes from 515 names and 1,678 classes on main to 462 names and 1,403 classes here. adcp.types can 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-python fork, 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.

  • TypeScript: enforceStrictSchema in adcp-client merges an allOf member beside properties or required into its parent. It copies properties, required, and additionalProperties, not definitions. It should rebase the merged references onto the source document.
  • Python: _merge_ref_with_schema in datamodel-code-generator 0.64.0 inlines the target of a $ref that has schema keywords beside it. parse_combined_schema creates that case when a oneOf branch restates a property its parent declares, as coordinated_placements.json does for params. It should rebase the inlined references too.

The smallest reproduction for Python:

// parent.json
{ "title": "Parent", "type": "object", "properties": { "params": { "type": "object" } },
  "oneOf": [{ "properties": { "params": { "$ref": "child.json" } } }] }
// child.json
{ "title": "Child", "type": "object", "properties": { "xs": { "type": "array", "items": { "$ref": "#/definitions/m" } } },
  "definitions": { "m": { "title": "M", "type": "string", "enum": ["a", "b"] } } }

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_version in formats/canonical/_base.json, sla_duration in core/sla-window.json, card_media_type in image_carousel.json, transition_mode in seller_rendered_stateful_display.json, and control_total_name in core/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 on main, such as core/vast-tracker-constraints.json, keep working because their sites either state each property themselves or have nothing beside the allOf.

Generator warnings

The TypeScript generator prints 53 Skipping X1→X: body mismatch warnings on main and 66 here. The 13 new ones are BrandReference7 to BrandReference15, CollectionReference1, MediaBuyActionTask1, PlacementReference1, and TargetingOverlay2. Each has one definition in the schemas. The bodies differ only by a nested numbered alias, such as DomainName5 against DomainName, or by a line break. Numbered exports stay at 67 in total.

The 18 Field name X is duplicated on Y warnings in the Python generator are the same on main and here.

How I know nothing changes up to the drift commits

npm run test:schema-extraction resolves every $ref this 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.

  • The target's title and description name the schema, so they don't count. Every other key does, including annotations.
  • x-entity moves to the named schema only when every site states the same value. Otherwise it stays at each site.
  • Each site keeps its own description, and the edits are in place, so the diff has no whitespace churn.
  • Both sides are compared in a canonical form that changes nothing a validator accepts: enum values as a set, a type that every enum value already has, type: string under propertyNames, and equivalent pattern spellings such as \d and [0-9].
  • It names two exceptions and prints them. Sites that referenced a named schema whose only difference was annotations gain those annotations. There are 22: x-entity, examples and x-max-length-4.0 on three brand IDs, enumDescriptions on seven enum sites, x-status and x-added-in on offer_reason, x-status on cloud and ReportingCloud, and x-entity on two placement ID lists. The two drifted enums widen.
  • The proof fails on any other schema change, so it runs on demand. On the branch head it reports 127 differing documents, which are the drift commits.

tests/named-schema-extraction.test.cjs also runs in test:schemas. It requires that a $ref to a scalar schema has only annotations beside it, because draft-07 ignores $ref siblings. 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 $ref after. 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:

Concept Sites Before After
Timezone, core/iana-timezone.json 41 10 plain strings, 22 non-empty strings, 9 with maxLength: 255 Length 1 to 255, and the value must resolve in the implementation's IANA Time Zone Database. 4.0 plans a limit of 64 characters. UTC stays valid, and the two nullable request fields still accept null.
governance_context 10 Length 1 to 4,096 Adds the printable ASCII pattern that 3.2.8's core/protocol-envelope.json published. 7 of these were in 3.2.8: accept_proposal, buy_products, control_media_buy, decline_proposals, list_products, refine_proposals, and request_proposals. list_proposals, get_media_buy_issue, and report_media_buy_issue are new in 3.3.
proposal_id 8 minLength: 1 Adds maxLength: 255
catalog_ids items 2 minLength: 1 Adds maxLength: 255
offering_id 3 Length 1 to 255 Length 1 to 128, plus the ID pattern
reporting_profile 3 Length 1 to 128 Adds the ID pattern
delivery_config_id 2 Length 1 to 64 Adds the ID pattern
Webhook token 2 minLength: 16 Adds maxLength: 4096
suggestions items 2 minLength: 1 Adds maxLength: 1000
request_proposals reason 1 minLength: 1 Adds maxLength: 2000
Wholesale signal name 1 minLength: 1 Adds maxLength: 255
Wholesale signal description 1 minLength: 1 Adds maxLength: 2000
Trademark and claim countries items 3 Exactly 2 characters ^[A-Z]{2}$, ISO 3166-1 alpha-2
Targeting modification system 1 minLength: 1 enums/postal-system.json
upstream_source_domain 2 format: hostname, maxLength: 253 The lowercase domain pattern, with labels of at most 63 characters, and maxLength: 253. Uppercase and a trailing dot are rejected; nothing format: hostname rejected is accepted.
SLA window and creative review SLA response_max, completion_max 4 ^P(?!$)…, which accepts PT and P1DT core/sla-duration.json, the pattern of core/iso8601-duration.json: a component must follow P and T. Zero, such as PT0S, stays valid (#8905).
Experimental money: sync_plans delegation budget_limit and portfolio total_budget_cap, si_send_message handoff intent price 3 Any number and any string; the handoff price required neither field Non-negative amount, currency through core/currency-code.json, both required. Both documents are x-status: experimental. (#8471)

Tighter, because the named schema took the stricter rule:

Named schema Gains From Published elsewhere
core/domain-name.json maxLength: 253, and labels of at most 63 characters 5 inline copies; the label limit from format: hostname RFC 1035, and 3.2.8 upstream_source_domain
core/media-buy-id.json maxLength: 255 3 predecessor_media_buy_id sites 3.3.0-beta.2 to beta.4. No 3.2.8 site bounds a media buy ID.
core/account-id.json maxLength: 255, at every site that references it, including reporting subscription account_ids and exclude_account_ids 3 account_id sites 3.2.8 core/account-change.json
core/creative-evaluation-id.json maxLength: 255 2 evaluation_id sites 3.2.8 compliance test controller
core/account-request-id.json The ID pattern core/account-request-record.json request_id New in 3.3
core/cancellation-reason.json minLength: 1 2 cancellation_reason sites 3.2.8 media-buy/package-control.json
core/signal-description.json minLength: 1 Wholesale signal description 3.2.8 core/wholesale-feed-event.json

Looser, because the stricter copy rejects a published value:

Concept Sites Before After Why
Whole-number aspect ratios 2 ^\d+:\d+$ core/aspect-ratio.json 3.2.8 core/format.json publishes 1.91:1 for this concept

Looser, because the named schema drops a rule (commit 22):

Named schema Drops Why
core/iana-timezone.json The character pattern ^[A-Za-z0-9._+-]+(?:/[A-Za-z0-9._+-]+)*$ and not: {const: inventory_local} A timezone is a string of 1 to 255 characters that must resolve in the implementation's IANA Time Zone Database (x-adcp-validation), and no value either rule rejected resolves there. Removing both only widens a 3.2.8 schema. The daypart timezone is the only site that accepts inventory_local, as a const branch beside the IANA identifier.

Looser, so an origin survives a URL parser (commit 33):

Concept Sites Before After Why
HTTPS origin: core/https-origin.json and the disclosed attempted_agent_origin 4 ^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. A WHATWG URL parser serializes https://issuer.example as https://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.json format_kind, two relationship fields, reporting-verification-profile-set.json, and commercial terms cancellation_terms.reason now reference their named schemas. The reporting-verification-profile-set.json items now carry the target's x-status: experimental. manifest.schema.json#/definitions/tool_name is replaced by core/tool-name.json, with the same pattern. The list_products incomplete scope references enums/product-incomplete-scope.json, and enums/incomplete-scope.json is that set plus proposals, so get_products and request_proposals keep all five values. core/iana-timezone.json drops x-added-in, because fields older than 3.2 now reference it. enums/audience-evidence-relationship.json, which main removed in #8767, stays as the named schema for those two relationship fields, without x-added-in, because 3.2 fields reference it. Both fixed_timezone sites and the supported_timezones items no longer state x-max-length-4.0: 64 themselves. Commit 19 puts it once on core/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 adds x-max-length-4.0: 2048 to core/https-url.json, core/https-origin.json, and core/webhook-url.json, the ceiling security.mdx already prices a uri at, and x-max-length-4.0: 255 to the 42 named ID schemas under core/ 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's core/webhook-authentication.json keeps push's x-max-length-4.0: 512 on credentials, so reporting_webhook and the create_media_buy artifact_webhook carry it too; 4.0 removes the whole object.

The additive-minor check compares numeric and length bounds, const, and enum, so it reports 118 of these against 3.2.11. It doesn't compare pattern or not, so it doesn't see the governance_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 to scripts/lint-additive-minor-corrections.json as 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.cjs reports 0 new changes. No baseline entry grew. The entries ship in 3.3 only, not in a 3.2.x patch.

  • A domain name is at most 253 characters: 48 entries. RFC 1035 sets the limit, and 3.2.8 published it on upstream_source_domain.
  • A timezone identifier is 1 to 255 characters: 34 entries, maxLength: 255 at 24 sites and minLength: 1 at 10 of them. 3.2.8 published core/iana-timezone.json with both.
  • One bound for each concept that was published with a bound at some sites: 36 entries, for proposal_id, catalog_id, media_buy_id, account_id, evaluation_id, cancellation_reason, signal name and description, webhook token, suggestions, and the rejection reason.

Three more corrections apply a rule, not a bound, so they have no register entry. They ship in 3.3 only:

  • governance_context is printable ASCII on every request, as 3.2.8's core/protocol-envelope.json published it. 7 request sites from 3.2.8 gain the pattern.
  • A domain name label is at most 63 characters, as RFC 1035 limits it and 3.2.8's format: hostname enforced on upstream_source_domain. Every domain name site gains the limit through core/domain-name.json.
  • An SLA duration has a component after P and after T. PT and P1DT aren't ISO 8601 durations, and core/iso8601-duration.json already rejects them.

Two more changes need no register entry. Commit 33 only loosens. Commit 38 tightens two experimental documents, governance/sync-plans-request.json and sponsored-intelligence/si-send-message-response.json, which the experimental contract lets change in a minor; node scripts/lint-additive-minor.cjs still reports 0 new changes against 3.2.11.

Capabilities mraid_versions keeps any MAJOR.MINOR version, as 3.2.8 published it, through core/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. The html5 format's mraid_version keeps enums/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:

  1. 737b483 The first five schemas, 336 sites, and the proof.
  2. a4c25b5 The other scalar concepts: 116 schemas and 2 existing ones, 672 sites.
  3. 5b491c8 Repeated inline enums: 67 schemas and 2 existing ones, 164 sites.
  4. 2e157c2 11 more inline copies of named schemas, which the gate found under other property names.
  5. 17c0b82 The gate: a CI lint, its exception list, and npm run schemas:normalize.
  6. 1f9ceb9 Tests and the capabilities bounds walk read through named references. The pinned worst case of 91,816,283 bytes doesn't change.
  7. 904760f Four tests also check the value on the referenced schema.
  8. 4397aea Every remaining repeat: 110 schemas under core/ and enums/, 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.
  9. 16dfd7e The gate at 2 sites, including repeats inside one document, a rule for local references in composed documents, and the proof's canonical form.
  10. 95248f7 A test new on main resolves the named schemas.
  11. 3b7d2f9 Each concept that shared a constraint with another gets its own definition: 94 schemas, 90 added $refs. manifest.schema.json references enums/error-recovery.json and enums/idempotency-requirement.json, so build-schemas registers the named schemas the manifest references before it validates the manifest. The proof holds here.
  12. bcc3b2d Changes validation. 28 timezone sites reference core/iana-timezone.json. Commit 17 points the other 13 at it.
  13. dc4ca93 Changes validation. 72 other drifted sites reference their named schemas, which take the stricter rule, with the changeset and their register entries.
  14. 2d938f8 The gate loses its exception list and threshold, so a repeat has no opt-out.
  15. 309831a The MCP projection bounds and the documented worst case move.
  16. d5f7ad8 list_products incomplete scope rejects proposals again, through enums/product-incomplete-scope.json. The vocabulary test accepts a branch that references another enums/ document or states a const, and the parity compile limit moves to 1,454,000 bytes.
  17. 442ee8e Changes validation. The other 13 timezone sites reference core/iana-timezone.json, so every timezone does: budget_cap_timezone on the media buy, the planned delivery and the media-buy responses and requests, the reporting timezone in reporting_capabilities, its canonical form, get_account_financials and get_creative_delivery, the catalog field mapping timezone, and the supported_timezones items. Register entries record the 21 new length bounds. enums/audience-evidence-relationship.json drops x-added-in, and the documented worst case moves to 91,765,369 bytes.
  18. 8ab62b9 The DR-0036 timezone correction names the minimum length as well as the maximum. DR-0036 is now 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.
  19. 54b830d core/iana-timezone.json plans a 4.0 limit of 64 characters with x-max-length-4.0: 64, and keeps maxLength: 255 for 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.
  20. 9ccfe4d Merges docs(governance): state DR-0036 as a decision; corrections live in the register #8777 (governance/dr-0036-decision-only), which later closed unmerged. Commit 24 replaces its DR-0036, register header and check with main's from docs(governance): DR-0036 records open schemas within a major; withdraw DR-0032 and DR-0033 #8858. This PR's 118 entries follow main's entries, each reason beginning with its kind.
  21. f8a052e The 3.2 to 3.3 migration guide lists the three bound corrections and the concepts they cover, and says they ship in 3.3 only. The versioning page, the release notes, What's new, and the 3.3 beta program page note them too.
  22. 849afb6 Changes validation. core/iana-timezone.json drops its pattern and its inventory_local exclusion: 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 the governance_context and 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.
  23. 8a652a6 Merges main at 867fdce46a (3.3.0-beta.5 and match keys). Five files conflicted: package.json keeps 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.
  24. 2a53f23 Merges main at bc2714ae20: 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 are main's; the register holds main's 47 entries, then this PR's 118. The 17 loosened URL sites reference core/https-url.json, so the unused core/canonical-https-url.json, core/public-https-url.json, and core/price-adjustment-name.json go. enums/audience-evidence-relationship.json stays for the two relationship fields. Repeats new on main get named schemas: the creative review SLA durations, installment-change product_id, the list_products execution_readiness.version, and the new enums/membership-action.json and core/country-or-subdivision-code.json. Measured figures are recomputed on the merged tree.
  25. db9c52c Merges main at 53a9cc4f93.
  26. c7efaf4 Merges main at b4c40fcb85. Six files conflicted. feat(schema): add reserved-word-safe replacements for 6 enum positions and deprecate the originals (#8791) #8915 adds full_name to the onboarder match_keys enum and deprecates name; this branch moved that enum to enums/signal-match-key.json, so the value and its deprecation metadata go there, and the reserved-word test reads the named schema. package.json keeps both sides' test lists, the migration guides take main's wording, and the parity compile limit drops to 1,425,000 bytes. main added no inline pattern sites since the previous merge base, so the gate passes with no new named schemas.
  27. d9571b1 Changes validation. core/domain-name.json limits each label to 63 characters. upstream_source_domain had the limit through format: hostname, so it's now only tighter than in 3.2.8.
  28. 3c7b663 Changes validation. core/sla-duration.json takes the pattern of core/iso8601-duration.json, so it rejects PT and P1DT (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".
  29. bc927f7 core/domain-name.json states maxLength once.
  30. bfbd27c Capabilities mraid_versions references core/supported-mraid-version.json, the MAJOR.MINOR pattern 3.2.8 published, instead of enums/mraid-version.json, so it accepts what it accepted before. The documented worst case moves to 99,052,347 bytes.
  31. bc408ff .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 them none because another line at the same node masks them.
  32. ffa4707 The 4.0 compatibility registry lists enums/signal-match-key.json#/enumMetadata/name, where commit 26 moved name's x-removed-in metadata, instead of the two inline sites.
  33. 9a7e6c4 Changes validation. core/https-origin.json and the disclosed attempted_agent_origin accept one trailing slash, and each origin description says receivers compare by canonical origin (3.2: format: uri with pattern: ^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.
  34. c243206 core/revision-token.json names the integer-or-string seller revision token that account-change resource_revision and list_creatives seller_revision share (Eight fields declare a type list where one type carries the meaning #8423). Both JSON types stay.
  35. dd4ab9c The deprecated webhook authentication object gets one definition per contract (3.2: one webhook-subscription concept, two authentication contracts across three documents #8907): core/webhook-authentication.json (credentials required) for push_notification_config, reporting_webhook, and the artifact_webhook, and core/notification-authentication.json (credentials optional, because the config is echoed on reads) for account and agent notification configs. Each site keeps deprecated, x-removed-in, and its description, so the 4.0 registry doesn't change. The parity compile limit moves to 1,426,000 bytes.
  36. 8965fe8 Ten inline {start, end} date-time objects reference core/datetime-range.json (One 15-field error envelope is restated at 21 response documents under 21 titles — define it once and $ref it #8720), and core/reporting-reliability-statistics.json drops its ReportingReliabilityMeasurementPeriod copy. get_reporting_status period stays inline, because it is half-open and the named schema describes both ends as inclusive.
  37. 7710850 The named URL schemas plan a 4.0 limit of 2,048 characters and 42 named ID schemas plan 255, with 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.
  38. 0f59249 Changes validation. The experimental sync_plans budget_limit and total_budget_cap and the SI handoff price state a non-negative amount and an ISO 4217 currency, and the handoff price requires both (A money value is declared inline 21 times in seven incompatible shapes, and no document names it #8471). Five manifest lines.
  39. a7851b3 core/money.json names 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, and core/insertion-order.json keeps its length-3 currency. Commit 38's four amount and required manifest lines become two at core/money.json, where the differences now appear.
  40. 6eee98d tests/audience-targeting-member-push.test.cjs compiles the whole capabilities response and validates audience_targeting by pointer. Compiled on its own, the subschema couldn't resolve its local #/definitions/hashed_identifier_type reference, which commit 8 introduced, so every test in the file was cancelled.
  41. b950cd9 Merges main at 576ebca386. 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.
  42. f96d350 Merges main at 2db59bae43. Five files conflicted. package.json keeps both sides' test lists. At the single-value branches feat(schemas): deprecate the single-value form of the scalar-or-list unions #9123 deprecates in brand.json color_value, the five get_brand_identity colors, and requote-required.json envelope_field, the branch keeps this PR's $ref to core/hex-color.json or #/definitions/envelope_field_path, with feat(schemas): deprecate the single-value form of the scalar-or-list unions #9123's deprecated, x-deprecated-in, x-removed-in, and description beside it. The referenced schemas aren't deprecated. accept_proposal proposal_terms_digest keeps its $ref to core/proposal-terms-digest.json with 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.
  43. df43b65 Fixes a build bug on main that commit 2 exposes. The build stamped the package release into dist/schemas/latest/extensions/, so those files named /schemas/3.3.0-rc.2/... while the rest of latest/ names /schemas/latest/.... Commit 2 points extension-meta.json valid_from and valid_until at core/adcp-minor-version.json, which no release has published, so in latest/ both references didn't resolve. The build now writes latest/ extension URIs under /schemas/latest/ and still filters extensions by the release; versioned builds don't change. A build CLI test checks every $id and $ref under latest/extensions/, and tests/dist-schema-version-ids.test.cjs now resolves every pinned $ref in latest/. Only latest/extensions/ changes: adcp.json, extension-meta.json, and index.json. verify-build reports no problems, and the equivalence report doesn't change.
  44. fefaf66 Merges main at 14651cc07c (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.json conflicted: test:schemas keeps 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's not branches reference documents this branch changes, content-standards/artifact.json and core/property-id.json; both changes keep the accepted values, so each guard refuses the same payloads, and tests/oneof-overlap-resolution.test.cjs passes. 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 title and an entry in index.json, the same as core/task-id.json.

I named a concept only when its sites state identical constraints and mean the same value: they share an x-entity value, share a property name with matching descriptions, or follow a named standard. A concept in several documents gets a schema under core/ or enums/; one that repeats inside a document gets a definitions entry there. A site that merely shares a constraint with another concept gets a schema of its own. An IATA airport code is core/airport-code.json, not a currency code, and a warning message is core/warning-message.json, not a reporting setup message.

Schema Title Sites this PR points at it Documents that reference it
core/currency-code.json Currency Code 87 64
core/country-code.json Country Code 81 58
core/idempotency-key.json Idempotency Key 69 69
core/https-url.json HTTPS URL 67 46
core/domain-name.json Domain Name 64 50
The other 260 scalar schemas, 1,100 sites
Schema Title Sites this PR points at it Documents that reference it
core/fraction.json Fraction 43 26
core/sha256-digest.json SHA-256 Digest 42 26
core/percentage.json Percentage 29 23
core/iana-timezone.json (existing) IANA Timezone Identifier 41 42
core/subscriber-id.json Subscriber ID 21 21
core/sha256-hex-digest.json SHA-256 Hex Digest 20 13
core/governance-context.json Governance Context 19 19
core/hex-color.json Hex Color 18 4
core/media-buy-id.json Media Buy ID 18 17
core/proposal-id.json Proposal ID 18 16
core/creative-id.json Creative ID 17 10
core/reporting-revision-id.json Reporting Revision ID 17 14
core/account-id.json Account ID 16 13
core/notification-id.json Notification ID 16 16
core/package-id.json Package ID 15 12
core/product-id.json Product ID 15 14
core/creative-capability-id.json Creative Capability ID 12 9
core/country-subdivision-code.json Country Subdivision Code 11 10
core/latitude.json Latitude 11 11
core/longitude.json Longitude 11 11
core/webhook-url.json Webhook URL 11 11
core/aspect-ratio.json Aspect Ratio 10 9
core/media-buy-name.json Media Buy Name 10 10
core/reporting-delivery-config-id.json Reporting Delivery Config ID 10 10
core/cancellation-reason.json Cancellation Reason 9 8
core/creative-locale-variant-id.json Creative Locale Variant ID 9 3
core/keyword.json Keyword 9 6
core/reporting-delivery-offering-id.json (existing) Reporting Delivery Offering ID 9 10
core/reporting-destination-id.json Reporting Destination ID 9 6
core/reporting-transport.json Reporting Transport 9 5
core/signal-local-id.json Signal Local ID 9 6
core/reporting-destination-ref.json Reporting Destination Reference 8 7
core/reporting-obligation-id.json Reporting Obligation ID 8 8
core/creative-evaluation-id.json Creative Evaluation ID 7 6
core/geo-place-system-version.json Geo Place System Version 7 6
core/measurement-window-id.json Measurement Window ID 7 4
core/refinement-ask.json Refinement Ask 7 3
core/age-in-years.json Age in Years 6 3
core/agency-estimate-number.json Agency Estimate Number 6 6
core/auth-credential.json Auth Credential 6 6
core/calendar-date.json Calendar Date 6 3
core/catalog-generation.json Catalog Generation 6 6
core/catalog-id.json Catalog ID 6 6
core/custom-event-name.json Custom Event Name 6 6
core/opportunity-id.json Opportunity ID 6 6
core/page-cursor.json Page Cursor 6 6
core/report-definition-id.json Report Definition ID 6 6
core/seller-suggestion.json Seller Suggestion 6 6
core/account-change-resource-type.json Account Change Resource Type 5 5
core/adcp-release-version.json AdCP Release Version 5 5
core/audience-evidence-id.json Audience Evidence ID 5 5
core/audience-evidence-snapshot-id.json Audience Evidence Snapshot ID 5 5
core/audience-evidence-version.json Audience Evidence Version 5 5
core/brief-rejection-reason.json Brief Rejection Reason 5 5
core/canvas-state-id.json Canvas State ID 5 2
core/creative-rotation-weight.json Creative Rotation Weight 5 3
core/iso8601-duration.json ISO 8601 Duration 5 2
core/mcp-compatibility-context-id.json MCP Compatibility Context ID 5 5
core/page-size.json Page Size 5 5
core/placement-id.json Placement ID 5 3
core/policy-category-id.json Policy Category ID 5 5
core/proposal-terms-digest.json Proposal Terms Digest 5 5
core/reporting-access-mode.json Reporting Access Mode 5 5
core/reporting-consumer-status-id.json Reporting Consumer Status ID 5 4
core/reporting-profile-id.json Reporting Profile ID 5 5
core/reporting-receipt-id.json Reporting Receipt ID 5 3
core/trusted-match-provider-id.json Trusted Match Provider ID 5 5
core/account-request-id.json Account Request ID 4 4
core/adcp-major-version.json AdCP Major Version 4 4
core/adcp-minor-version.json AdCP Minor Version 4 3
core/adcp-task-name.json AdCP Task Name 4 2
core/brand-claim-use-case.json Brand Claim Use Case 4 2
core/catalog-item-id.json Catalog Item ID 4 4
core/event-source-id.json Event Source ID 4 4
core/finality-policy-id.json Finality Policy ID 4 2
core/font-weight.json Font Weight 4 2
core/governance-policy-id.json Governance Policy ID 4 4
core/macro-dialect-revision.json Macro Dialect Revision 4 4
core/macro-dialect-semantic.json Macro Dialect Semantic 4 4
core/reason-detail.json Reason Detail 4 4
core/reporting-adjustment-id.json Reporting Adjustment ID 4 4
core/reporting-materialization-id.json Reporting Materialization ID 4 4
core/reporting-subscription-id.json Reporting Subscription ID 4 4
core/sla-duration.json SLA Duration 4 2
core/tool-name.json Tool Name 4 1
core/tracker-offset.json Tracker Offset 4 4
core/webhook-challenge-value.json Webhook Challenge Value 4 3
core/webhook-token.json Webhook Token 4 4
core/account-change-cursor.json Account Change Cursor 3 3
core/agent-operator-id.json Agent Operator ID 3 1
core/brand-claim-context-note.json Claim Context Note 3 2
core/brand-id.json (existing) Brand ID 3 6
core/bulk-page-size.json Bulk Page Size 3 3
core/cloud-region.json Cloud Region 3 3
core/control-total-unit.json Control Total Unit 3 2
core/day-time-duration.json Day-Time Duration 3 2
core/golden-vector-name.json Golden Vector Name 3 1
core/governance-budget-period-id.json Governance Budget Period ID 3 3
core/gtin.json GTIN 3 3
core/https-origin.json HTTPS Origin 3 3
core/jurisdiction-group.json Jurisdiction Group 3 2
core/macro-token.json Macro Token 3 3
core/measurement-source.json Measurement Source 3 3
core/open-error-code.json Open Error Code 3 2
core/policy-category-facet-id.json Policy Category Facet ID 3 3
core/pricing-option-id.json Pricing Option ID 3 3
core/principal-id.json Principal ID 3 2
core/purchase-order-ref.json Purchase Order Reference 3 3
core/sharing-principal-identity.json Sharing Principal Identity 3 3
core/signal-tag.json Signal Tag 3 3
core/tmpx-slot-id.json TMPX Slot ID 3 3
core/webhook-activity-limit.json Webhook Activity Limit 3 3
core/acceptance-criterion-id.json Acceptance Criterion ID 2 1
core/acceptance-policy-profile-id.json Acceptance Policy Profile ID 2 2
core/account-change-id.json Account Change ID 2 2
core/account-change-resource-id.json Account Change Resource ID 2 2
core/adcp-build-version.json AdCP Build Version 2 2
core/advertiser-role.json Advertiser Role 2 2
core/airport-code.json Airport Code 2 1
core/asset-group-id.json Asset Group ID 2 2
core/attestation-action-id.json Attestation Action ID 2 2
core/attestation-resolver-id.json Attestation Resolver ID 2 2
core/base64url.json Base64url Value 2 1
core/billing-variance-percent.json Billing Variance Percent 2 2
core/brand-agent-id.json Brand Agent ID 2 1
core/brand-agent-query.json Brand Agent Query 2 2
core/brand-id-or-wildcard.json Brand ID or Wildcard 2 2
core/canonical-adcp-minor-version.json Canonical AdCP Minor Version 2 1
core/canvas-breakpoint-id.json Canvas Breakpoint ID 2 2
core/capabilities-version.json Capabilities Version 2 2
core/change-summary.json Change Summary 2 2
core/collection-list-id.json Collection List ID 2 2
core/commission-basis-description.json Commission Basis Description 2 2
core/commission-rate.json Commission Rate 2 2
core/consultation-context.json Consultation Context 2 2
core/contact-name.json Contact Name 2 2
core/control-total-name.json Control Total Name 2 1
core/country-or-subdivision-code.json Country or Subdivision Code 2 2
core/credential-fingerprint.json Credential Fingerprint 2 2
core/date-duration.json Date Duration 2 2
core/delivery-observation-id.json Delivery Observation ID 2 2
core/demographic-label.json Demographic Label 2 2
core/email-address.json Email Address 2 2
core/font-family-name.json Font Family Name 2 2
core/forecast-point-label.json Forecast Point Label 2 2
core/format-option-id.json Format Option ID 2 2
core/format-revision.json Format Revision 2 2
core/geo-place-id.json Geo Place ID 2 2
core/hashed-email.json Hashed Email 2 2
core/hashed-phone.json Hashed Phone 2 2
core/identifier-value-digest.json Identifier Value Digest 2 2
core/identity-match-serve-window.json Identity Match Serve Window 2 2
core/incomplete-scope-description.json Incomplete Scope Description 2 2
core/installment-id.json Installment ID 2 2
core/io-signatory.json IO Signatory 2 2
core/later-proposal-limit.json Later Proposal Limit 2 2
core/media-buy-issue-description.json Media Buy Issue Description 2 2
core/media-buy-issue-id.json Media Buy Issue ID 2 2
core/opentype-feature-tag.json OpenType Feature Tag 2 2
core/principal-configuration-version.json Principal Configuration Version 2 2
core/products-feed-version.json Products Feed Version 2 2
core/products-pricing-version.json Products Pricing Version 2 2
core/property-list-id.json Property List ID 2 2
core/proposal-alternative-count.json Proposal Alternative Count 2 2
core/proposal-brief-alignment.json Proposal Brief Alignment 2 2
core/proposal-description.json Proposal Description 2 2
core/provider-storage-locator.json Provider Storage Locator 2 2
core/purchase-continuation-token.json Purchase Continuation Token 2 2
core/reference-population-id.json Reference Population ID 2 2
core/reference-population-version.json Reference Population Version 2 2
core/renderer-export-name.json Renderer Export Name 2 2
core/renderer-version.json Renderer Version 2 2
core/reporting-canonicalization-id.json Reporting Canonicalization ID 2 2
core/reporting-grain.json Reporting Grain 2 2
core/reporting-issue-id.json Reporting Issue ID 2 2
core/reporting-period-duration.json Reporting Period Duration 2 2
core/reporting-rejection-code.json Reporting Rejection Code 2 2
core/revision-token.json Revision Token 2 2
core/rights-response-sla-days.json Rights Response SLA 2 2
core/signal-description.json Signal Description 2 2
core/signal-name.json Signal Name 2 2
core/signal-pricing-group.json Signal Pricing Group 2 2
core/signal-segmentation-criteria.json Signal Segmentation Criteria 2 2
core/signal-taxonomy-node-id.json Signal Taxonomy Node ID 2 2
core/time-duration.json Time Duration 2 2
core/trademark-mark.json Trademark Mark 2 2
core/trademark-registration-number.json Trademark Registration Number 2 2
core/trademark-registry.json Trademark Registry 2 2
core/webhook-operation-id.json Webhook Operation ID 2 2
core/acceptance-policy-catalog-version.json Acceptance Policy Catalog Version 1 1
core/acceptance-policy-profile-description.json Acceptance Policy Profile Description 1 1
core/acceptance-policy-profile-version.json Acceptance Policy Profile Version 1 1
core/acceptance-rule-description.json Acceptance Rule Description 1 1
core/acceptance-rule-id.json Acceptance Rule ID 1 1
core/account-change-action.json Account Change Action 1 1
core/account-change-batch-id.json Account Change Batch ID 1 1
core/apple-app-id.json Apple App ID 1 1
core/assignment-limit.json Assignment Limit 1 1
core/attestation-reason-code.json Attestation Reason Code 1 1
core/audience-description.json Audience Description 1 1
core/audience-taxonomy-version.json Audience Taxonomy Version 1 1
core/avatar-provider.json Avatar Provider 1 1
core/brand-agent-description.json Brand Agent Description 1 1
core/brand-capability-description.json Brand Capability Description 1 1
core/buyer-reason-message.json Buyer Reason Message 1 1
core/canonical-format-kind.json (existing) Canonical Format Kind 1 19
core/change-term-description.json Change Term Description 1 1
core/coalescence-window-seconds.json Coalescence Window Seconds 1 1
core/confidence-level.json Confidence Level 1 1
core/context-match-cache-ttl.json Context Match Cache TTL 1 1
core/context-summary.json Context Summary 1 1
core/coordinated-component-id.json Coordinated Component ID 1 1
core/cpu-load-percent.json CPU Load Percent 1 1
core/custom-acceptance-requirement-id.json Custom Acceptance Requirement ID 1 1
core/custom-pricing-description.json Custom Pricing Description 1 1
core/decline-failure-reason.json Decline Failure Reason 1 1
core/display-transition-id.json Display Transition ID 1 1
core/duration-unit.json Duration Unit 1 1
core/execution-readiness-version.json Execution Readiness Version 1 1
core/extension-namespace.json Extension Namespace 1 1
core/external-issue-ref.json External Issue Reference 1 1
core/format-local-id.json Format Local ID 1 1
core/geo-region-catalog-version.json Geo Region Catalog Version 1 1
core/governance-attribute-id.json Governance Attribute ID 1 1
core/identity-change-impact-reason.json Identity Change Impact Reason 1 1
core/identity-change-rejection-reason.json Identity Change Rejection Reason 1 1
core/impairment-prior-status.json Impairment Prior Status 1 1
core/macro-declaration-id.json Macro Declaration ID 1 1
core/macro-resolution-message.json Macro Resolution Message 1 1
core/materialization-failure-code.json Materialization Failure Code 1 1
core/measurement-window-description.json Measurement Window Description 1 1
core/media-buy-change-term-id.json (existing) Media Buy Change Term ID 1 4
core/normalized-image-coordinate.json Normalized Image Coordinate 1 1
core/numeric-place-id.json Numeric Place ID 1 1
core/offering-product-limit.json Offering Product Limit 1 1
core/parent-organization-name.json Parent Organization Name 1 1
core/placement-name.json Placement Name 1 1
core/plan-adjustment-reason.json Plan Adjustment Reason 1 1
core/policy-facet-description.json Policy Facet Description 1 1
core/policy-facet-name.json Policy Facet Name 1 1
core/policy-issuer-name.json Policy Issuer Name 1 1
core/policy-summary.json Policy Summary 1 1
core/portfolio-description.json Portfolio Description 1 1
core/price-adjustment-rate.json Price Adjustment Rate 1 1
core/product-name.json Product Name 1 1
core/recorded-payload-digest.json Recorded Payload Digest 1 1
core/refinement-result-reason.json Refinement Result Reason 1 1
core/registry-policy-version.json Registry Policy Version 1 1
core/reporting-resource-ref.json Reporting Resource Reference 1 1
core/reporting-setup-message.json Reporting Setup Message 1 1
core/reporting-verification-profile.json (existing) Reporting Verification Profile 1 3
core/representation-id.json Representation ID 1 1
core/representation-rejection-message.json Representation Rejection Message 1 1
core/representation-set-name.json Representation Set Name 1 1
core/request-binding-digest.json Request Binding Digest 1 1
core/rights-match-score.json Rights Match Score 1 1
core/seller-agent-id.json Seller Agent ID 1 1
core/task-message.json (existing) Task Message 1 4
core/voice-provider.json Voice Provider 1 1
core/warning-message.json Warning Message 1 1
151 enums, 341 sites
Schema Title Sites this PR points at it Documents that reference it
enums/delegation-type.json Delegation Type 6 3
enums/reporting-file-format.json Reporting File Format 6 6
enums/agent-protocol.json Agent Protocol 5 4
enums/asset-source.json Asset Source 5 5
enums/cache-scope.json Cache Scope 5 5
enums/error-recovery.json Error Recovery 5 4
enums/transition-mode.json Transition Mode 5 1
enums/audience-evidence-type.json Audience Evidence Type 4 4
enums/buyer-asset-acceptance.json Buyer Asset Acceptance 4 4
enums/creative-indicator-type.json Creative Indicator Type 4 2
enums/logo-variant.json Logo Variant 4 3
enums/app-store.json App Store 3 3
enums/audience-evidence-presence.json Audience Evidence Presence 3 3
enums/audience-evidence-requirement-mode.json Audience Evidence Requirement Mode 3 3
enums/brand-architecture-type.json Brand Architecture Type 3 3
enums/brand-claim-type.json Brand Claim Type 3 2
enums/creative-change-initiator.json Creative Change Initiator 3 3
enums/creative-review-decision.json Creative Review Decision 3 2
enums/creative-unapproved-status.json Creative Unapproved Status 3 3
enums/delivery-period-state.json Delivery Period State 3 2
enums/delivery-reconciliation-status.json Delivery Reconciliation Status 3 2
enums/format-seller-preference.json Format Seller Preference 3 3
enums/geojson-geometry-type.json GeoJSON Geometry Type 3 3
enums/governance-accounting-mode.json Governance Accounting Mode 3 3
enums/logo-background.json Logo Background 3 3
enums/logo-orientation.json Logo Orientation 3 3
enums/metric-optimization-target-kind.json Metric Optimization Target Kind 3 3
enums/optimization-metric.json Optimization Metric 3 3
enums/outcome-target-cost-strength.json (existing) Outcome Target Cost Strength 3 3
enums/plan-adjustment-type.json Plan Adjustment Type 3 3
enums/property-feature-type.json Property Feature Type 3 2
enums/reporting-delivery-pattern.json Reporting Delivery Pattern 3 3
enums/reporting-status-severity.json Reporting Status Severity 3 2
enums/reporting-status-view.json Reporting Status View 3 2
enums/resolved-macro-mapping-status.json Resolved Macro Mapping Status 3 2
enums/roas-strength.json ROAS Strength 3 2
enums/signal-targeting-mode.json Signal Targeting Mode 3 3
enums/transformer-variant-dimension.json Transformer Variant Dimension 3 3
enums/verification-grading-profile.json Verification Grading Profile 3 2
enums/wholesale-feed-event-type.json Wholesale Feed Event Type 3 3
enums/acceptance-policy-subject.json Acceptance Policy Subject 2 2
enums/account-status.json (existing) Account Status 2 5
enums/ai-act-risk-class.json AI Act Risk Class 2 2
enums/audience-activation-direction.json Audience Activation Direction 2 2
enums/audience-evidence-decision-use.json Audience Evidence Decision Use 2 2
enums/audience-evidence-relationship.json Audience Evidence Relationship 2 2
enums/audience-evidence-unit.json Audience Evidence Unit 2 2
enums/audio-bit-depth.json Audio Bit Depth 2 2
enums/audio-channel-mode.json Audio Channel Mode 2 2
enums/brand-identity-field.json Brand Identity Field 2 2
enums/buying-mode.json Buying Mode 2 2
enums/ca-postal-system.json CA Postal System 2 2
enums/capability-change-event-type.json Capability Change Event Type 2 2
enums/card-media-type.json Card Media Type 2 1
enums/catalog-item-availability-action.json Catalog Item Availability Action 2 2
enums/catalog-item-availability.json Catalog Item Availability 2 2
enums/compliance-attestation-mode.json Compliance Attestation Mode 2 2
enums/conversion-optimization-target.json Conversion Optimization Target 2 2
enums/creative-purge-kind.json Creative Purge Kind 2 2
enums/daast-tracker-target.json DAAST Tracker Target 2 2
enums/data-subject-right.json Data Subject Right 2 2
enums/date-range-support.json Date Range Support 2 2
enums/day-of-week.json (existing) Day of Week 2 3
enums/delivery-notification-type.json Delivery Notification Type 2 2
enums/delivery-recipient-cloud.json (existing) Delivery Recipient Cloud 2 3
enums/delivery-report-window-kind.json Delivery Report Window Kind 2 2
enums/display-tag-delivery-type.json Display Tag Delivery Type 2 2
enums/evidence-age-unit.json Evidence Age Unit 2 2
enums/feed-listing-outcome.json Feed Listing Outcome 2 2
enums/font-style.json Font Style 2 2
enums/gb-postal-system.json GB Postal System 2 2
enums/gdpr-article-9-basis.json GDPR Article 9 Basis 2 2
enums/gender.json Gender 2 2
enums/governance-check-type.json Governance Check Type 2 2
enums/governance-delivery-source.json Governance Delivery Source 2 2
enums/history-entry-type.json (existing) History Entry Type 2 2
enums/incomplete-scope.json Incomplete Scope 2 2
enums/inventory-list-effect.json Inventory List Effect 2 1
enums/macro-unavailable-behavior.json Macro Unavailable Behavior 2 2
enums/media-buy-action-task.json Media Buy Action Task 2 2
enums/media-buy-delivery-status.json Media Buy Delivery Status 2 2
enums/media-buy-issue-category.json Media Buy Issue Category 2 2
enums/media-buy-issue-severity.json Media Buy Issue Severity 2 2
enums/membership-action.json Membership Action 2 2
enums/mraid-version.json MRAID Version 1 1
core/supported-mraid-version.json Supported MRAID Version 1 1
enums/opportunity-close-reason.json Opportunity Close Reason 2 2
enums/opportunity-status.json Opportunity Status 2 2
enums/other-postal-system.json Other Postal System 2 2
enums/placement-authority.json Placement Authority 2 2
enums/plan-adjustment-evidence-type.json Plan Adjustment Evidence Type 2 2
enums/plan-adjustment-state.json Plan Adjustment State 2 2
enums/product-payload-view.json Product Payload View 2 2
enums/product-placement-mode.json Product Placement Mode 2 2
enums/product-refinement-action.json Product Refinement Action 2 2
enums/proposal-refinement-action.json Proposal Refinement Action 2 2
enums/purchase-continuation-loss.json Purchase Continuation Loss 2 2
enums/rendering-origin.json Rendering Origin 2 2
enums/reporting-feed-purpose.json Reporting Feed Purpose 2 2
enums/reporting-receipt-status.json Reporting Receipt Status 2 2
enums/reporting-schedule-alignment.json Reporting Schedule Alignment 2 2
enums/reporting-subscription-exclusion-reason.json Reporting Subscription Exclusion Reason 2 2
enums/reporting-subscription-page-list.json Reporting Subscription Page List 2 2
enums/required-data-subject-right.json Required Data Subject Right 2 2
enums/seller-proposal-kind.json Seller Proposal Kind 2 2
enums/seller-proposal-status.json Seller Proposal Status 2 2
enums/signal-data-source.json Signal Data Source 2 2
enums/signal-discovery-mode.json Signal Discovery Mode 2 2
enums/signal-lookback-window.json Signal Lookback Window 2 2
enums/signal-match-key.json Signal Match Key 2 2
enums/signal-methodology.json Signal Methodology 2 2
enums/signal-modeling-method.json Signal Modeling Method 2 2
enums/signal-parent-match-behavior.json Signal Parent Match Behavior 2 2
enums/signal-pre-onboarding-precision.json Signal Pre-Onboarding Precision 2 2
enums/signal-refresh-cadence.json Signal Refresh Cadence 2 2
enums/signal-selection-mode.json Signal Selection Mode 2 2
enums/signal-training-data-type.json Signal Training Data Type 2 2
enums/sort-direction.json (existing) Sort Direction 2 9
enums/task-domain.json Task Domain 2 2
enums/task-failure-status.json Task Failure Status 2 2
enums/task-sort-field.json Task Sort Field 2 2
enums/unmatched-locale-action.json Unmatched Locale Action 2 2
enums/url-macro-context.json URL Macro Context 2 2
enums/us-postal-system.json US Postal System 2 2
enums/variant-keep-mode.json Variant Keep Mode 2 2
enums/vast-tracker-target.json VAST Tracker Target 2 2
enums/verification-token-mode.json Verification Token Mode 2 2
enums/video-orientation.json Video Orientation 2 2
enums/webhook-delivery-auth-mode.json Webhook Delivery Auth Mode 2 2
enums/webhook-signing-algorithm.json Webhook Signing Algorithm 2 2
enums/acceptance-policy-coverage.json Acceptance Policy Coverage 1 1
enums/audience-sync-action.json Audience Sync Action 1 1
enums/budget-cap-scope.json Budget Cap Scope 1 1
enums/budget-warning-resource-type.json Budget Warning Resource Type 1 1
enums/canonical-optimization-metric.json Canonical Optimization Metric 1 1
enums/canonicalization-contract-version.json Canonicalization Contract Version 1 1
enums/clickthrough-policy.json Clickthrough Policy 1 1
enums/compatibility-resolver.json Compatibility Resolver 1 1
enums/event-source-manager.json Event Source Manager 1 1
enums/forecast-bucket-completeness.json Forecast Bucket Completeness 1 1
enums/governance-plan-status.json Governance Plan Status 1 1
enums/governed-action-status.json Governed Action Status 1 1
enums/host-receipt-status.json Host Receipt Status 1 1
enums/http-method.json (existing) HTTP Method 1 2
enums/idempotency-requirement.json Idempotency Requirement 1 1
enums/offer-reason.json (existing) Offer Reason 1 2
enums/postal-system.json (existing) Postal Code System 1 4
enums/pricing-model.json (existing) Pricing Model 1 5
enums/product-incomplete-scope.json Product Incomplete Scope 2 2
enums/uncovered-property-action.json Uncovered Property Action 1 1
enums/update-frequency.json (existing) Update Frequency 1 2
enums/vast-fullscreen-version.json VAST Fullscreen Version 1 1

Four object schemas are named too. #8504 covers the rest of the repeated objects.

Schema Title Sites this PR points at it Documents that reference it
core/money.json Money 14 12
core/datetime-range.json (existing) Datetime Range 10 10
core/webhook-authentication.json Webhook Authentication 3 3
core/notification-authentication.json Notification Authentication 2 2

Two pairs share a name and mean different things, so each gets a schema:

  • core/bulk-page-size.json allows 1 to 10,000 items with a default of 1,000, on get_collection_list, get_property_list, and get_media_buy_artifacts. core/page-size.json stops at 100, so that default wouldn't fit.
  • enums/optimization-metric.json includes the attention metrics. enums/canonical-optimization-metric.json leaves them out, and its schema says that's on purpose.

The gate

npm run test:schema-named-constraints runs in npm test and 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:

core/gate-demo.json#/properties/price_currency: inline copy of a named schema.
  Fix: replace "type", "pattern" with "$ref": "/schemas/core/currency-code.json" and keep the site's description and other annotations.
  If it means something else, name it with a titled document of its own under core/ or enums/ and reference that.

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 definitions entry there, and one across documents asks for a schema under core/ or enums/. A local definition is named for its own document only.

A local reference in a composed document. A $ref in allOf beside properties or required, a $ref on a property an enclosing schema also declares, or a $ref with schema keywords beside it, whose target uses a local reference the site doesn't restate. main has none of these. The old head of this branch had 18.

The gate compares constraints this way:

  • Strong constraints are a pattern, an enum compared as a set, or a numeric range with both ends. Equality alone counts.
  • Weak constraints are a length bound or a one-sided numeric bound. Free text and dozens of IDs share minLength: 1, so equality alone proves nothing. A weak constraint counts only with the named schema's x-entity, or on a property name that already references it.
  • Same constraint: enum values compare as a set, a type the constraint already implies doesn't count, and equivalent pattern spellings compare equal.
  • Not constraints: unbounded strings, format-only strings, and anything inside if or not.

When several named schemas share a constraint, the gate narrows by x-entity and 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.json is 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.cjs covers each rule with single-fault tests.

npm run schemas:normalize lists the mechanical fixes, and --write applies them and runs the proof. Commit 5 adds it. The playbook tells authors to look in core/ and enums/ 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 only type: string plus annotations, on a name ending in _id where 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:

Concept Named sites Still plain strings
pricing_option_id 3 27
creative_id 17 27
media_buy_id 18 23
account_id 16 19
package_id 15 18
product_id 15 15
list_id 4 14
policy_id 4 12
brand_id 3 12
asset_group_id 2 9
request_id 4 7
placement_id 5 7

Format-only strings, such as format: date-time, are also not part of the rule, because the format value already names the concept. Neither are one-sided numeric bounds, such as minimum: 0, or const values, which discriminate branches.

Bounds

scripts/audit-oneof.mjs reads a $ref to a scalar schema by its JSON type, so scripts/oneof-discriminators.baseline.json loses two stale entries.

The MCP projection turns named schemas into shared definitions, so these size bounds move:

Bound Before After Measured
Total projection 23 MiB 25 MiB 26,136,787 bytes
Media-buy model context 476 KiB 549 KiB 561,595 bytes
Creative model context 410 KiB 443 KiB 447,750 bytes
Parity compile limit 1,388,000 bytes 1,431,000 bytes 1,430,199 bytes
Compact discovery tools/list 162 KiB 170 KiB 169,524 bytes

The measurements are on the merge with main at 14651cc07c (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. On main at bc2714ae20 the 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 merges main at b4c40fcb85 and 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 merges main at 576ebca386 and 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 merges main at 2db59bae43 and 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 add media_buy.supported_match_keys and 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. On main at bc2714ae20 the 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 32 mraid_versions items plan 32 characters again instead of 3: 99,052,347 bytes. On main at 576ebca386, #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:

  • The vocabulary test in tests/schema-validation.test.cjs counts a branch as finite when it references another enums/ document or states a const.
  • scripts/lint-schema-enum-drift.cjs skips enums under if and not, as the gate does, so it drops its allowlist entry for one.
  • tests/check-platform-agnostic.cjs lists the four app store names once, for enums/app-store.json, instead of 12 times across three documents.
  • scripts/build-schemas.cjs registers the named schemas manifest.schema.json references before it validates the manifest.
  • tests/mcp-schema-analysis.test.cjs pins the definition counts the projection now reports.
  • tests/helpers/named-scalar-schemas.cjs is 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.cjs lets a 4.0 annotation sit below the keyword that enforces the limit today, because a 4.0 limit plans a tightening. It still rejects an annotation above the keyword, and one that isn't a positive integer. In 4.0 mode, scripts/capabilities-structural-bounds.cjs takes the lower of the keyword and the annotation for maxItems, maxLength and maxProperties. enforced mode is unchanged.
  • tests/mcp-schema-analysis.test.cjs pins 1,193 definition instances, 308 unique and 207 repeated definitions, for the webhook authentication object and money.
  • tests/reporting-status-contract.test.cjs checks that the reliability measurement_period references core/datetime-range.json, and tests/sync-plans-validation-annotations.test.cjs reads the flight ordering rule from flight's description.
  • tests/total-budget-redistribution-currency.test.cjs reads the required currency from core/money.json.
  • tests/audience-targeting-member-push.test.cjs takes audience_targeting from the compiled capabilities response with ajv.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 on main: 12, 13, 17, 22, 27, 28, 33 and 38 change what schemas accept, and the others build on them.

@mintlify

mintlify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Preview approval required

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

Approve preview

@KonstantinMirin
KonstantinMirin force-pushed the schemas/name-repeated-shapes-8525 branch from 685ed4e to 4e80d54 Compare November 3, 2026 02:03
@KonstantinMirin KonstantinMirin changed the title schemas: name five repeated shapes and $ref them from 332 sites (#8525) schemas: name repeated scalar subschemas, $ref them from 1,182 sites, and gate new inline copies (#8525) Nov 3, 2026
@KonstantinMirin
KonstantinMirin force-pushed the schemas/name-repeated-shapes-8525 branch from 4e80d54 to 7dfa158 Compare November 3, 2026 02:12
@KonstantinMirin
KonstantinMirin marked this pull request as ready for review November 3, 2026 10:53
@KonstantinMirin
KonstantinMirin marked this pull request as draft November 3, 2026 11:11
@KonstantinMirin
KonstantinMirin force-pushed the schemas/name-repeated-shapes-8525 branch 5 times, most recently from dda6c6f to d9da58b Compare November 4, 2026 22:08
@KonstantinMirin
KonstantinMirin marked this pull request as ready for review November 4, 2026 22:27
@KonstantinMirin KonstantinMirin changed the title schemas: name repeated scalar subschemas, $ref them from 1,182 sites, and gate new inline copies (#8525) schemas: give every repeated constraint one definition, and fail CI on any repeat (#8525) Nov 5, 2026
… 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

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated paths 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) matches static/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matches static/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matches static/schemas/source/**; static/schemas/source/adagents.json (modified) matches static/schemas/source/**; static/schemas/source/brand.json (modified) matches static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matches `stat

…(truncated)…

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Nov 20, 2026
@aao-secretariat
aao-secretariat Bot requested a review from bokelley November 20, 2026 00:23
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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated paths 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) matches static/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matches static/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matches static/schemas/source/**; static/schemas/source/adagents.json (modified) matches static/schemas/source/**; static/schemas/source/brand.json (modified) matches static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/creative-approval-request.json (modified) matches static/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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated paths touched without an approving review, and breaking-class protocol surface requires human ratification.

Why this is not auto-approvable:

  • gated_paths: true (touches static/schemas/source/**, .agents/playbook.md, .github/workflows/build-check.yml) while review_decision is REVIEW_REQUIRED, not APPROVED. Decision-table row 2 forces escalate — 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 unless review_decision is APPROVED.
  • 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) matches static/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matches static/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matches static/schemas/source/**; static/schemas/source/adagents.json (modified) matches static/schemas/source/**; static/schemas/source/brand.json (modified) matches static/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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated-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) matches static/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matches static/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matches static/schemas/source/**; static/schemas/source/adagents.json (modified) matches static/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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated paths 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/**) while review_decision is REVIEW_REQUIRED, not APPROVED — 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) matches static/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matches static/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matches static/schemas/source/**; static/schemas/source/adagents.json (modified) matches static/schemas/source/**; static/schemas/source/brand.json (modified) matches static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/creative-approval-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/get-brand-identity-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/get-brand-identity-response.json (modified) matches static/schemas/source/**; static/schemas/source/brand/get-rights-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/get-rights-response.json (modified) matches static/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.
KonstantinMirin added a commit to KonstantinMirin/adcp that referenced this pull request Nov 24, 2026
…check

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

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

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

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

Two tests: a change two $refs from a root is still found in its commit
while a commit without schema changes compares nothing, and lines that
match the range take their witness from it while the others take it from
their commits.
KonstantinMirin added a commit to KonstantinMirin/adcp that referenced this pull request Nov 24, 2026
Checking a range commit by commit required every commit with a
difference to carry its own manifest. A PR that adds one manifest after
its schema commits, as adcontextprotocol#8536 does, failed as soon as it sat inside a
stacked range (adcontextprotocol#9202 from main's merge base), and so would on CI.

The range check now composes in steps:

- A segment: the commits since the previous segment, along first
  parents, up to a commit that adds or changes a manifest file. Its
  differences, from the parent of its first commit to that commit, must
  equal the lines of the manifests its commits add. A commit with its own
  manifest is a segment of one, as before.
- A merged branch: when a merge's other parent heads a range from the
  base whose differences equal the manifests that range adds, that range
  is one step. adcontextprotocol#8536 merges main several times before its manifest, so
  no segment along its first parents isolates its changes; as a range
  from the base, it matches its manifest exactly.
- A merge's net effect, as before.

Commits after the last manifest form an open segment that must show no
difference, as must a segment a merge cuts short. Every difference still
arises in a step whose differences are declared.

Two CLI tests on scratch repositories, failing before this change: a
segment of two commits closed by a manifest, and a stacked branch that
merges the base before its manifest and is merged into a series. The
open-segment and per-commit tests keep passing; the notes-only commit in
the transitive-$ref test now joins the next segment.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated-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/**) while review_decision is REVIEW_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) matches static/schemas/source/**; static/schemas/source/aao/agent-publishers.json (modified) matches static/schemas/source/**; static/schemas/source/account/get-account-financials-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-account-changes-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/list-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/report-usage-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/request-account-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-request.json (modified) matches static/schemas/source/**; static/schemas/source/account/sync-governance-response.json (modified) matches static/schemas/source/**; static/schemas/source/adagents.json (modified) matches static/schemas/source/**; static/schemas/source/brand.json (modified) matches static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/creative-approval-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/get-brand-identity-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/get-brand-identity-response.json (modified) matches static/schemas/source/**; static/schemas/source/brand/get-rights-request.json (modified) matches static/schemas/source/**; static/schemas/source/brand/get-rights-response.json (modified) matches `static/schemas

…(truncated)…

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

1 participant