Skip to content

feat(schema): name the vendor metric a performance standard is judged on - #8436

Merged
bokelley merged 4 commits into
mainfrom
bokelley/performance-standard-metric-id
Oct 25, 2026
Merged

bokelley merged 4 commits into
mainfrom
bokelley/performance-standard-metric-id

Conversation

@bokelley

@bokelley bokelley commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #8394.

Summary

A performance standard names a metric, a threshold, and a vendor. For ivt, brand_safety, and attention_score the value arrives as vendor_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 (a vendor-metric-id) to:

  • core/performance-standard.json
  • core/canonical-performance-standard.json
  • the inline required_performance_standards items in core/product-offer-filters.json (the legacy product-filters.json filter gets it through its $ref)

Semantics

  • When present, the standard is judged only against vendor_metric_values[] entries with the same vendor and metric_id. The vendor's other metrics are not evidence for it.
  • Scale. The judged value is a 0–1 rate like threshold. A reported value outside 0–1 is not evidence and MUST NOT be converted (for example from a percent).
  • When absent on ivt, brand_safety, or attention_score, parties MUST NOT infer which vendor metric carries the standard from the catalog or metric naming, and treat the standard as not judged from vendor_metric_values.
  • Reporting coherence (SHOULD). A package standard that carries metric_id SHOULD have a matching vendor-scope committed_metrics entry, so missing_metrics audits the value.
  • Discovery. On required_performance_standards, metric_id narrows the threshold to that vendor metric.

Choices

  • Viewability: not allowed (schema if/then on the two standard shapes, together with completion_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 own standard and is judged against the delivery viewability block.
  • completion_rate: not allowed either (changed after review). Like viewability, it is judged against its delivery scalar; a vendor-attested completion rate is tagged completion_source: vendor_attested. So metric_id applies only to ivt, brand_safety, and attention_score, the three metrics that have no delivery scalar.
  • Catalog unit. No rate unit value is defined yet (unit is free-form), so the schema says only that the value is read as a 0–1 rate.
  • 3.2 compatibility. canonical-performance-standard.json is additionalProperties: 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-invalid threshold: 65 standard. It now shows a 0–1 rate with metric_id, and notes that a 0–100 score cannot carry a performance standard.
  • get_products.mdx and create_media_buy.mdx: table rows.

Tests

  • New tests/performance-standard-metric-id.test.cjs, added to test:schemas. It covers acceptance, optionality, the viewability guard, the id pattern, and property parity across the three shapes.
  • The three new properties are registered in tests/x-added-in-3-3-sweep.test.cjs.
  • PARITY_COMPILE_LIMIT in tests/mcp-schema-projection.test.cjs goes 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)

  • Coverage floor. Should a standard state the minimum measured share before a verdict is fair?
  • Unit vocabulary. Define rate / percent for vendor_metric_value.unit and catalog unit.
  • attention_score scale. Most attention scores are not 0–1 rates, so a standard cannot bind them today.

🤖 Generated with Claude Code

@aao-secretariat

Copy link
Copy Markdown
Contributor

Ladon cannot review this PR until merge conflicts are resolved.

@bokelley
bokelley force-pushed the bokelley/performance-standard-metric-id branch from 65f5789 to 634eefd Compare October 24, 2026 12:40

@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 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_id permitted on completion_rate leaves 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) matches static/schemas/source/**; static/schemas/source/core/product-filters.json (modified) matches static/schemas/source/**; static/schemas/source/core/product-offer-filters.json (modified) matches static/schemas/source/**; static/schemas/source/enums/performance-standard-metric.json (modified) matches static/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.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 24, 2026

@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 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/**) with review_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) matches static/schemas/source/**; static/schemas/source/core/product-filters.json (modified) matches static/schemas/source/**; static/schemas/source/core/product-offer-filters.json (modified) matches static/schemas/source/**; static/schemas/source/enums/performance-standard-metric.json (modified) matches static/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.

bokelley and others added 4 commits October 25, 2026 11:34
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]>
@bokelley
bokelley force-pushed the bokelley/performance-standard-metric-id branch from 4ec443a to db88a2f Compare October 25, 2026 11:45
@bokelley
bokelley merged commit 43447c1 into main Oct 25, 2026
67 checks passed
@bokelley
bokelley deleted the bokelley/performance-standard-metric-id branch October 25, 2026 12:36
@aao-release-bot aao-release-bot Bot mentioned this pull request Nov 18, 2026
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

Development

Successfully merging this pull request may close these issues.

Proposal: a performance standard can name the vendor metric that carries its value (metric_id)

1 participant