Repository navigation
feat(schema): typed vendor_relationship and play-based coverage denominators for vendor metrics - #7177
Conversation
…nators for vendor metrics Refs #7150. Adds the closed measurement-source enum (first_party | affiliated | third_party) on reporting_capabilities.vendor_metrics[] with an optional echo on vendor_metric_values[] rows, measurable_plays / measurable_screen_seconds coverage denominators for play-based channels (delivery + forecast), methodology_version on vendor-scope committed_metrics (request + response), and normative docs that a seller MAY be its own measurement vendor when it publishes the catalog and declares the relationship. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS review.
This PR is a clean, entirely additive Normative-class spec change: a new closed measurement-source enum, optional measurement_source/measurable_plays/measurable_screen_seconds fields on vendor-metric-value surfaces, and methodology_version on vendor-scope committed metrics. Reviewer verified schema↔docs coherence across six doc pages, a correct minor changeset, denominator references resolving to real delivery-metrics.json fields, and no oneOf regression or dist mutation. No Critical, High, or Medium findings.
Despite the clean diff, this PR modifies/adds files under static/schemas/source/**, which is a hard, deterministic approval gate (gated_paths: true). review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied and the outcome must be escalate (decision table row 2). The gate lifts automatically once a human/CODEOWNERS approval lands.
Escalation reasons
static/schemas/source/**files touched under a hard approval gate;review_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required before merge.
Why human review
- Gated paths touched (static/schemas/source/**) and review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/committed-metric.json (modified) matches
static/schemas/source/**; static/schemas/source/core/forecast-vendor-metric-value.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/vendor-metric-value.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/measurement-source.json (added) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
…ship and tighten its semantics Addresses WG feedback on #7177 / #7150: - Rename measurement_source -> vendor_relationship (and the enum file) to avoid colliding with the existing measurement_source provider slug on delivery-metrics / delivery-forecast rows. - Define affiliated on structural facts only (ownership, control, board overlap); route commercial-dependency concerns to accreditation / #5758. State explicitly that the field is a relationship disposition, not a trust ranking. - Make the field REQUIRED when the vendor resolves to the seller's own brand.json or an entity under common ownership/control; absence is undeclared, never third_party. Add x-adcp-validation verifier constraints. - Rename measurable_screen_seconds -> measurable_play_seconds (medium-neutral; place-based audio has plays and duration but no screen). - Document the observable signal for a vendor methodology_version change (catalog re-read + capabilities.changed) and that the measurement catalog is experimental. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-path approval gate unsatisfied.
This PR modifies published protocol source under static/schemas/source/** (7 files, including a renamed field measurement_source→vendor_relationship with a new enum replacing a deleted one, and measurable_screen_seconds→measurable_play_seconds). gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: human/CODEOWNERS approval is required before merge.
Separately, the reviewer classified the delta as a mechanical-but-load-bearing rename with renamed fields and a new enum value — a Breaking-class protocol change per the constitution, which is never auto-approved regardless of a clean diff, and only proceeds when review_decision is APPROVED.
No blocking (critical/high) findings were raised. Two Medium findings were posted inline (stale affiliated gloss in reporting-capabilities.json:90; self-contradicting Declaration bullet in optimization-reporting.mdx:341) — surfaced for the human reviewer but not independently blocking.
Medium findings
- static/schemas/source/core/reporting-capabilities.json:90 — stale "material commercial dependency" gloss of
affiliatedcontradicts canonical vendor-relationship enum - docs/media-buy/media-buys/optimization-reporting.mdx:341 — self-contradicting Declaration bullet vs. vendor-relationship enum
Escalation reasons
- Gated paths (
static/schemas/source/**) touched andreview_decisionisREVIEW_REQUIRED, notAPPROVED— human/CODEOWNERS approval required before merge. - Breaking-class protocol change (field renames + new/deleted enum) — ratification is a human act; never auto-approved absent an
APPROVEDreview.
Why human review
- Gated paths (static/schemas/source/**) touched and review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge (decision-table row 2).
- Breaking-class protocol change: measurement_source→vendor_relationship field rename with a new enum replacing the deleted one, plus measurable_screen_seconds→measurable_play_seconds rename. Per the constitution, breaking-class changes are never auto-approved; ratification is a human act unless review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/committed-metric.json (modified) matches
static/schemas/source/**; static/schemas/source/core/forecast-vendor-metric-value.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/vendor-metric-value.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/vendor-relationship.json (added) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
|
Cross-cutting follow-up filed as requested in review: #7224 — whether closed ( |
Ladon medium findings on #7177: the reporting-capabilities field description and the optimization-reporting Declaration bullet still carried the pre-revision 'material commercial dependency' gloss of affiliated. Both now match the canonical structural-facts definition in enums/vendor-relationship.json. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Ladon's two Medium findings on 2b1846c are fixed in 21040e9: the On the classification: Ladon read the |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate unsatisfied (gated paths + breaking-class protocol change).
This PR modifies the protocol source of truth under static/schemas/source/** (committed-metric.json, forecast-vendor-metric-value.json, reporting-capabilities.json, vendor-metric-value.json, package-request.json, get-adcp-capabilities-response.json) and adds enums/vendor-relationship.json. gated_paths is true and review_decision is not APPROVED (unknown/none), so the hard approval gate (decision-table row 2) is not satisfied — human/CODEOWNERS approval is required before merge.
Additionally, the prior run identified this as a breaking-class protocol change (measurement_source→vendor_relationship field rename with a new enum replacing a deleted one, plus measurable_screen_seconds→measurable_play_seconds rename). Per the repo constitution's hard gate, breaking-class changes are never auto-approved regardless of a clean diff; ratification is a human act unless review_decision is APPROVED.
The reviewer's current delta pass (narrowing the affiliated definition to structural-facts-only, tightening docs↔schema↔enum coherence) surfaced no critical/high/medium findings — this is a clean coherence improvement with no wire-shape change. But the gates above are semantic/mechanical and independent of finding cleanliness. No blocking reviewer findings, but the gate stands.
Escalation reasons
- Gated paths (
static/schemas/source/**) touched andreview_decisionis not APPROVED — human/CODEOWNERS approval required before merge (row 2). - Breaking-class protocol change (field/enum renames on the published wire surface) — constitution hard gate: never auto-approved without human ratification unless review_decision is APPROVED.
Why human review
- Gated paths (static/schemas/source/**) touched and review_decision is not APPROVED (unknown/none) — human/CODEOWNERS approval required before merge (decision-table row 2). Files: committed-metric.json, forecast-vendor-metric-value.json, reporting-capabilities.json, vendor-metric-value.json, vendor-relationship.json (added), package-request.json, get-adcp-capabilities-response.json.
- Breaking-class protocol change (measurement_source→vendor_relationship field rename with new enum replacing the deleted one; measurable_screen_seconds→measurable_play_seconds rename) — constitution hard gate: breaking-class changes are never auto-approved; ratification is a human act unless review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/committed-metric.json (modified) matches
static/schemas/source/**; static/schemas/source/core/forecast-vendor-metric-value.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/vendor-metric-value.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/vendor-relationship.json (added) matchesstatic/schemas/source/**; static/schemas/source/media-buy/package-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'unknown', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
|
Human triage on the linked follow-ups:
No additional 3.2 schema change is requested here from those follow-ups. |
Refs #7150 (RFC: verified attention as a reportable vendor metric). Implements the position laid out in this comment: accept §4.1 and §4.3, replace the free-text
measurement_basisobject in §4.2 with a typed field, and fix themethodology_versionpin the measurement catalog already promises.What changes
New enum
enums/vendor-relationship.json—first_party | affiliated | third_party. Who produced the number relative to the seller, not how and not how well. Defined on structural ownership/control facts; explicitly a relationship disposition, not a trust ranking. Generalises the existingcompletion_source(seller_attested | vendor_attested) pattern fromcompletion_rateto every vendor metric.reporting_capabilities.vendor_metrics[].vendor_relationship— required whenever the vendor resolves to the seller's ownbrand.jsonor an entity under common ownership/control, recommended otherwise; absence is undeclared, neverthird_party. It is the seller-scoped declaration. The relationship is a property of the (seller, vendor) pair, so it cannot live on the vendor's catalog: the same measurement agent isfirst_partywhen its operator sells the inventory andthird_partywhen anyone else reports it. The array description now states normatively thatvendorMAY resolve to the seller's ownbrand.json, provided the seller publishes the metric catalog like any other vendor and declares the relationship (§4.1).vendor_metric_values[]rows —measurable_playsandmeasurable_play_seconds(medium-neutral — place-based audio has plays and duration but no screen): sibling coverage denominators for channels where a play or screen-second is the atomic observation unit (§4.3). DOOHimpressionsisplays × audience multiplier, someasurable_impressions / impressionsdivides a measured count by a model output. Mirrored onforecast-vendor-metric-value.jsonas ForecastRange.vendor_relationship: optional echo of the declaration so the row is self-describing without a discovery hop (same reasoning asviewability.vendor). MUST equal the declared value when present.committed_metrics[]vendor scope gainsmethodology_version(response-sidecommitted-metric.json, request-sidepackage-request.json). The capabilities catalog'smethodology_versiondescription already said "buyer agents pin the contracted version oncommitted_metrics", but no such field existed. Now it does; the catalog text names it.Docs —
optimization-reporting.mdx(lifecycle table + Vendor-Defined Metrics bullets + new "Seller as its own vendor" bullet),get_media_buy_delivery.mdx,create_media_buy.mdx(methodology pin),measurement/taxonomy.mdx(closed-loop topologies: adds sensor-instrumented place-based media and the disclosure requirement),creative/channels/dooh.mdx(first-party attention example withmeasurable_plays),get_adcp_capabilities.mdx,media-products.mdx.Design notes for reviewers
measurement_basis(instrument, unit definition, attestation prose) already has a home at the vendor catalog'sdescription,methodology_url,methodology_version,standard_reference, andaccreditations[]— as URLs and version pins, not paragraphs. This PR adds no prose fields.affiliated. A media owner and its measurement subsidiary sharing a parent is common and is neitherfirst_partynor independent. Buyers MAY collapse it tofirst_partyfor trust discounts.qualifierkey. Qualifiers partition rows for the same(vendor, metric_id)and join into reconciliation. The seller–vendor relationship is constant across every row for a pair and does not partition anything; putting it in the join key would only create ways for reconciliation to fail. It is a top-level field on the declaration and the row. Themetric-qualifier-paritytest is untouched.additionalProperties: falseonvendor-metric-value.jsonis unchanged. The schema's own description makes the closed envelope deliberate ("vendors place extra fields insidebreakdown"), so it is not a DR-0009 tightening by this PR. It does mean the new optional fields require the minor changeset included here, since a strict old-schema validator will reject rows carrying them. If the WG wants to open the envelope, that is a separate policy decision.third_party. Encoded asx-adcp-validation.verifier_constraintson the declaration so a conformance checker can grade it.Revisions after WG feedback (B. Masse, 2026-09-03)
measurement_source→vendor_relationship. Not from the feedback directly, but surfaced while checking it:measurement_sourcealready exists ondelivery-metrics.jsonanddelivery-forecast.jsonas the audience-measurement provider slug (nielsen_audio,geopath). Same name, different meaning, on adjacent rows — unacceptable. The enum description now cross-references the existing field.affiliateddefined on structural facts only — parent/subsidiary, controlling stake, joint venture, disclosed board overlap. The "material commercial dependency" clause is gone: it was the one judgment-based branch inside an otherwise checkable enum. The issuer-pays incentive problem is real but graded, and is routed to accreditation / RFC: Generalized attribute-value confidence schema for publisher-declared audience signals #5758 in the description. If the set is ever collapsed to two, it collapses towardfirst_party.third_partyis not misread as "most trustworthy".third_party-assumption, which put the burden on the buyer to detect affiliation by domain matching — the thing RFC: verified attention as a reportable vendor metric #7150 §2 says buyers can't do.measurable_screen_seconds→measurable_play_seconds. The duration denominator was named for a screen; the play denominator wasn't. Place-based audio (RFC: Support place-based audio as DOOH inventory, not screen-only or generic streaming audio #5878) has plays and duration and no screen.methodology_versionstring in the vendor's catalog; sellers that pin SHOULD re-read on a schedule and subscribe to the vendor agent'scapabilities.changednotification where supported. The catalog is experimental, so where a vendor publishes neither a version nor notifications, sellers SHOULD decline to commit a pin. Whether sellers accept the obligation at all is a seller-membership question this PR does not settle.collectVendorMetricExamplesinbuild-schemas.cjs: two rows for the same(vendor, metric_id)differing only invendor_relationshipare rejected as duplicates — and so are two rows differing only inqualifier, because the build-time uniqueness key is(vendor.domain, vendor.brand_id, metric_id)with no qualifier component (pre-existing gap vs. thedelivery-metrics.jsonprose, which allows qualifier-distinct rows). The AOOH transition case — operator-reported plays next to a third-party currency figure for the samemetric_id— is two different vendors and is accepted. Top-level stands: a seller's relationship to one vendor is a single fact and never partitions rows.Deliberately out of scope
audience_multiplier). That is a claim about howimpressionsis derived, not about vendor-metric provenance. Should be its own item ondooh_metrics/Placement.attestation-reference.json) could let a catalog metric reference an auditor-issued credential instead of the RFC'sindependent_verification: "none"prose. Worth a follow-up once the WG ratifies the relationship field.available-metric.json(RFC §6 agrees).Verification
Passing locally:
test:schemas,test:json-schema(281 blocks),test:composed(435),test:examples,test:extensions,test:extension-schemas,test:oneof-discriminators,test:schema-utf8,test:build-schemas-vendor-metric-uniqueness,test:build-schemas-hoist-enums,test:build-schemas-hoist-marked,metric-qualifier-parity,lint:schema-links,test:docs-nav,test:owned-links,test:storyboard-doc-parity,test:doc-compliance-drift,test:openapi(registry unchanged),check-changeset-protocol-scope,changeset status(minor).test:snippetshas 26 pre-existing failures that need a live agent + Postgres; none are in files touched here.🤖 Generated with Claude Code