Repository navigation
feat(schema): name the vendor metric a performance standard is judged on - #8436
Conversation
|
Ladon cannot review this PR until merge conflicts are resolved. |
65f5789 to
634eefd
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This PR modifies published protocol schema under static/schemas/source/** (gated_paths: true) and review_decision is REVIEW_REQUIRED, not APPROVED. Per the hard approval gate (decision table row 2), the outcome must be escalate — a human/CODEOWNERS approval is required before this can merge.
Gated files requiring review:
- static/schemas/source/core/canonical-performance-standard.json
- static/schemas/source/core/performance-standard.json
- static/schemas/source/core/product-filters.json
- static/schemas/source/core/product-offer-filters.json
- static/schemas/source/enums/performance-standard-metric.json
Medium findings
- static/schemas/source/core/performance-standard.json:29 —
metric_idpermitted oncompletion_rateleaves judging semantics undefined
Note on the change itself: the reviewer found the additive optional metric_id field well-scoped — schema coverage complete across all ref sites, correct minor changeset with x-added-in: 3.3.0, no oneOf regression, no immutable-artifact edits, docs↔schema coherence verified. The one Medium above is non-blocking on its own, but the gated-paths approval requirement stands until a human reviewer approves.
Medium findings
- static/schemas/source/core/performance-standard.json:29 — metric_id permitted on completion_rate leaves judging semantics undefined
Why human review
- Gated paths touched (static/schemas/source/**) with review_decision=REVIEW_REQUIRED — human/CODEOWNERS approval required before merge
- Published protocol schema change (performance-standard.json, canonical-performance-standard.json, product-filters.json, product-offer-filters.json, performance-standard-metric.json) requires explicit review
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-performance-standard.json (modified) matches
static/schemas/source/**; static/schemas/source/core/performance-standard.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product-filters.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product-offer-filters.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/performance-standard-metric.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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated published-schema change requires human/CODEOWNERS approval.
This PR modifies five files under static/schemas/source/** (canonical-performance-standard.json, performance-standard.json, product-filters.json, product-offer-filters.json, performance-standard-metric.json). gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so the hard approval gate (decision rule row 2) applies: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded.
Reviewer findings: none. The prior Medium — metric_id permitted on completion_rate leaving judging semantics undefined — has been cleanly resolved: metric_id is now disallowed on completion_rate (as well as viewability) across all three performance-standard shapes via the enum: ["viewability","completion_rate"] guard, with matching docs, test, and changeset updates. Schema↔docs coherence holds; the optimization-reporting example also fixed an out-of-range threshold (65→0.65) and dropped a real vendor domain. This is a net improvement over the prior run, which the developer addressed directly.
The escalation persists solely because of the deterministic gated-paths gate, not because of unresolved findings. A human/CODEOWNERS reviewer must approve the published-protocol schema change before merge.
Escalation reasons
- Gated paths touched (
static/schemas/source/**) withreview_decision=REVIEW_REQUIRED— human/CODEOWNERS approval required before merge. - Published protocol schema change across five source schemas requires explicit human ratification.
Why human review
- Gated paths touched (static/schemas/source/** — canonical-performance-standard.json, performance-standard.json, product-filters.json, product-offer-filters.json, performance-standard-metric.json) with review_decision=REVIEW_REQUIRED; human/CODEOWNERS approval required before merge (decision rule row 2).
- Published protocol schema change across five source schemas requires explicit human review before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-performance-standard.json (modified) matches
static/schemas/source/**; static/schemas/source/core/performance-standard.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product-filters.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product-offer-filters.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/performance-standard-metric.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.
Add optional metric_id to performance-standard, canonical-performance-standard, and the canonical required_performance_standards discovery filter. When present, the standard is judged only against vendor_metric_values[] entries with the same vendor and metric_id, on threshold's 0-1 scale without conversion. Not allowed for viewability. When absent on ivt, brand_safety, or attention_score, parties must not infer which vendor metric carries the standard. Closes #8394 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
completion_rate, like viewability, is judged against its delivery scalar (vendor-attested rates carry completion_source), so metric_id had no referent there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ion rule From expert review: the named metric must be a 0-1 fraction running the same way as metric; qualifier-split rows resolve through committed_metrics; the judged value is taken as reported; senders omit the field below 3.3. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Trim schema prose (the docs carry the full rules), drop the redundant guard from the discovery-filter copy, and bound the controller parity limit at 1_316_000 (measured 1_315_463). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
4ec443a to
db88a2f
Compare
Closes #8394.
Summary
A performance standard names a
metric, athreshold, and avendor. Forivt,brand_safety, andattention_scorethe value arrives asvendor_metric_values[], and one vendor reports several metrics per category (general, sophisticated, and combined IVT rates, for example). Nothing said which of them the standard meant, so nobody but the two parties could judge it.This adds an optional
metric_id(avendor-metric-id) to:core/performance-standard.jsoncore/canonical-performance-standard.jsonrequired_performance_standardsitems incore/product-offer-filters.json(the legacyproduct-filters.jsonfilter gets it through its$ref)Semantics
vendor_metric_values[]entries with the samevendorandmetric_id. The vendor's other metrics are not evidence for it.threshold. A reported value outside 0–1 is not evidence and MUST NOT be converted (for example from a percent).ivt,brand_safety, orattention_score, parties MUST NOT infer which vendor metric carries the standard from the catalog or metric naming, and treat the standard as not judged fromvendor_metric_values.metric_idSHOULD have a matching vendor-scopecommitted_metricsentry, somissing_metricsaudits the value.required_performance_standards,metric_idnarrows the threshold to that vendor metric.Choices
if/thenon the two standard shapes, together withcompletion_rate; the discovery-filter copy has no guard, since a filter entry only narrows matching and the standards it matches enforce the rule). It has its ownstandardand is judged against the deliveryviewabilityblock.completion_rate: not allowed either (changed after review). Like viewability, it is judged against its delivery scalar; a vendor-attested completion rate is taggedcompletion_source: vendor_attested. Sometric_idapplies only toivt,brand_safety, andattention_score, the three metrics that have no delivery scalar.rateunit value is defined yet (unitis free-form), so the schema says only that the value is read as a 0–1 rate.canonical-performance-standard.jsonisadditionalProperties: false, so 3.2 receivers reject the field. The changeset says senders omit it toward 3.2 counterparties.Docs
pricing-models.mdx: field list, IVT example, and judging rules.accountability.mdx: new "Judging a standard against vendor values" step.taxonomy.mdx: commitment and reporting bullets.optimization-reporting.mdx: the attention example had a schema-invalidthreshold: 65standard. It now shows a 0–1 rate withmetric_id, and notes that a 0–100 score cannot carry a performance standard.get_products.mdxandcreate_media_buy.mdx: table rows.Tests
tests/performance-standard-metric-id.test.cjs, added totest:schemas. It covers acceptance, optionality, the viewability guard, the id pattern, and property parity across the three shapes.tests/x-added-in-3-3-sweep.test.cjs.PARITY_COMPILE_LIMITintests/mcp-schema-projection.test.cjsgoes from 1_315_000 to 1_316_000. The controller measures 1_315_463 bytes with the field. The media-buy model-context budget is unchanged: dropping the filter-copy guard keeps it at 474_945 of 475_136 bytes.Follow-ups (out of scope)
rate/percentforvendor_metric_value.unitand catalogunit.attention_scorescale. Most attention scores are not 0–1 rates, so a standard cannot bind them today.🤖 Generated with Claude Code