Repository navigation
feat(schema): add canonical inventory delivery identity - #6915
Conversation
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 2 blocking finding(s)
Two high-severity defects block this otherwise clean additive schema PR:
Blocking findings
- static/schemas/source/core/canonical-placement.json:35 —
seller_inlinenow requiresseller_agent, an optional→required flip on a released schema (breaking wire change) shipped under a minor changeset and inconsistent with placement.json. Per changeset-scope rules, a breaking wire change requires amajorchangeset, notminor— this ishigh. - static/schemas/source/core/placement-property-delivery-metrics.json:48 —
placement_identityisrequiredin the schema but its own description and both docs tables document it as optional forby_placement_property. Schema↔docs drift —high.
Row 1 of the decision table fires (findings with severity high), so the outcome is request-changes regardless of the gated-paths / high-risk flags (which would otherwise also warrant escalation given review_decision: REVIEW_REQUIRED and a breaking-class change).
Fix the changeset type to major (or revert the required flip to preserve backward compatibility) and reconcile the placement_identity required/optional discrepancy between schema and docs.
Blocking findings
- static/schemas/source/core/canonical-placement.json:35 — seller_inline now requires seller_agent (breaking optional→required flip under a minor changeset; needs major, inconsistent with placement.json)
- static/schemas/source/core/placement-property-delivery-metrics.json:48 — placement_identity required in schema but documented as optional for by_placement_property (schema↔docs drift)
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval that has not been granted.
This PR modifies/adds numerous files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true). The required review status is CHANGES_REQUESTED, not APPROVED, so the gate is not satisfied (decision table row 2). A human/CODEOWNERS approval on the schema files is required before this can merge.
Escalation reasons
- Touches gated protocol-schema files under
static/schemas/source/**(e.g.canonical-placement.json,reporting-capabilities.json,product.json, plus newcollection-*,placement-*,installment-*,property-*delivery-metrics schemas). Human/CODEOWNERS review required;review_decisionis currentlyCHANGES_REQUESTED.
Iteration note (informational)
The current reviewer reports a clean delta with no findings. The two prior high findings (canonical-placement seller_agent required-flip; placement-property-delivery-metrics placement_identity required-vs-docs) are not present in this run's delta — the only change since was a projection refinement in scripts/mcp-schema-projection.cjs (const-only type stripping scoped to the model-context view, wire validation unchanged) plus test updates. That is a net improvement, but the gated-paths approval gate remains unsatisfied, so this cannot auto-approve regardless.
Why human review
- Gated paths touched (static/schemas/source/**) and review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-placement.json (modified) matches
static/schemas/source/**; static/schemas/source/core/canonical-reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/collection-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-ref.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-selector.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/collection.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-asset.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-assignment.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-delivery-metrics.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/delivery-breakdown-controls.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment-ref.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-identity.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-ref.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement-selection.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/property-ref.json (added) matchesstatic/schemas/source/**; static/schemas/so
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched and review not yet approved.
This PR modifies/adds many files under static/schemas/source/**, a hard, non-overridable approval gate (gated_paths: true), and the current review_decision is CHANGES_REQUESTED, not APPROVED. Per decision-table row 2, Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded.
The reviewer's subsequent pass is clean: no critical/high/medium findings. The 5-file delta relaxes seller_agent from required→optional on seller_inline canonical placements (schema matches the MUST→SHOULD prose) and pins placement_identity as required on the new by_placement_property reporting row (schema required[] matches docs). Schema↔docs coherence holds on both axes, the oneOf stays discriminated on kind const, tests match the loosened shape, and a changeset is present. This is a net-positive iteration over the prior escalate — no findings carry forward and none are new.
However, the outcome remains escalate solely because the hard gated-paths gate is unsatisfied (review not APPROVED). A human/CODEOWNERS approval on the schema changes is required before merge.
Escalation reasons
- Gated paths touched (
static/schemas/source/**) andreview_decisionisCHANGES_REQUESTED, notAPPROVED— human/CODEOWNERS approval required before merge.
Why human review
- Gated paths touched (static/schemas/source/**) and review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-placement.json (modified) matches
static/schemas/source/**; static/schemas/source/core/canonical-reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/collection-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-ref.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-selector.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/collection.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-asset.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-assignment.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-delivery-metrics.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/delivery-breakdown-controls.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment-ref.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-identity.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-ref.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement-selection.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/property-ref.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-capabilities.json
…(truncated)…
Both blocking findings were fixed in 38b99f8, their threads were resolved, and the current Ladon rerun reports no findings. Human/CODEOWNERS approval remains required for the gated schema paths.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-paths hard gate not satisfied.
This PR touches multiple files under static/schemas/source/**, which the repo declares under a hard, non-overridable approval gate (gated_paths: true). The current GitHub review_decision is REVIEW_REQUIRED, not APPROVED. Per decision rule row 2, Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
No blocking findings. The reviewer's subsequent pass surfaced no critical/high/medium findings. The single delta — oneOf → anyOf on placement_refs[].items in placement-selection.json:9 — is semantically equivalent (the branches are mutually exclusive via not.anyOf + additionalProperties:false, so both accept the identical input set). It resolves a known audit-oneof walker limitation, which repo rules explicitly say not to report. No spec drift, no undiscriminated-union regression, no artifact-immutability concern.
This continues the prior escalate outcome, which is driven entirely by the deterministic gated-paths gate rather than any code defect. A human/CODEOWNERS approval will lift the gate.
Escalation reasons:
- Gated paths touched (
static/schemas/source/**) andreview_decisionisREVIEW_REQUIRED, notAPPROVED— human/CODEOWNERS approval required before merge.
Why human review
- Gated paths touched (static/schemas/source/** — 27 schema files modified/added) and review_decision is REVIEW_REQUIRED, not APPROVED. Human/CODEOWNERS approval is required before this PR can merge; Ladon cannot auto-approve regardless of diff cleanliness.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/canonical-placement.json (modified) matches
static/schemas/source/**; static/schemas/source/core/canonical-reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/collection-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-ref.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/collection-selector.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/collection.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-asset.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-assignment.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-delivery-metrics.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/delivery-breakdown-controls.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment-ref.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/installment.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-identity.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/placement-ref.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement-selection.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/placement.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/product.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/property-delivery-metrics.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/property-ref.json (added) matches `static/schemas/source/**
…(truncated)…
|
Proposal review @ The tree delivers what the description promises — I verified Named merits: the marginals-vs-intersections epistemics ("an absent row proves nothing") is stated consistently across four doc pages; the operational-identifier-first property key degrades gracefully for uncataloged surfaces; both capability surfaces (full + canonical) moved in sync; and the contract tests probe the union's rejection cases, not just happy paths. Findings, most severe first: 1. Warning — 2. Warning — one shared suppression floor, denominated only in impressions, forks the established suppression-disclosure convention. 3. Warning — the shared breakdown controls drop two normative sentences the per-dimension controls carry. 4. Warning — ~25 new MUST-return fields with no behavioral compliance coverage (widens a pre-existing gap). 5. Note — completeness boundary is honest but leaves the motivating workflows unserved. "this contract does not provide a cursor, so it is an analytical ranking rather than a complete export", default 6. Note — asymmetry between selection and creative routing. 7. Note — governance, per the PR's own flag. #5880 is still marked WG-review / milestone 3.3 while this ships the suppression-floor design under a 3.2 |
|
Review synthesis @ @bokelley — three findings warrant resolution before merge; two are advisory; one is your flagged governance confirmation. 1. Schema-confirmed. The legacy branch in Option A — Remove the // legacy branch item — placement-ref additionalProperties: true absorbs extras
{
"allOf": [
{ "$ref": "/schemas/core/placement-ref.json" },
{ "required": ["publisher_domain"] }
]
}Refs that carry Option B — Keep ---
"adcontextprotocol": minor
---
+ Narrows placement_selection.placement_refs: refs carrying `kind` or `seller_agent`
+ must now be exact identity objects. Mixed-field refs (kind + arbitrary extras)
+ previously tolerated by placement-ref additionalProperties are now rejected.Treats the rejection as intentional but requires buyers to strip extra fields. Justify Option C — Add a contract test + doc note declaring the rejection intentional. Smallest schema change, but least protective for buyers who already ship kind-bearing refs. Which intent is right? 2. Shared suppression floor doesn't accommodate k-anonymity sellers — needs a design decision Schema-confirmed. Case A — k-anonymity seller: // Seller suppresses rows with fewer than 5 unique users.
// No impression count to declare — but absence claims "no floor".
{ "reporting_capabilities": {} }Case B — per-grain floor: // Marginal floor: 1,000 imps; intersection floor: 5,000 imps.
// Seller must over-declare the intersection max, misrepresenting the marginal.
{ "reporting_capabilities": { "property_breakdown_min_impressions": 5000 } }The 3. Two normative sort sentences dropped from shared controls — targeted fix
These should move into the shared schema. I can push this as a follow-up commit on the branch if you'd like — it's a targeted description change with no schema-structure impact. Advisory (4–6): 4. Compliance gap — acknowledged as pre-existing; the reviewer confirms it pre-dates this PR. Declaring #5880 as the scenario-coverage follow-up before ratification closes this. 5. Completeness path — one sentence on 6. Creative routing asymmetry — 7. Governance #5880 is marked WG-review / milestone 3.3; this PR ships the suppression floor design under a 3.2 Also: the branch conflicts with Generated by Claude Code |
ec38d19 to
e72e96e
Compare
|
Addressed the review findings in the rebased head (
The focused protocol contracts, 891-schema validation, MCP projection budget, discriminator audit, docs navigation, and owned-link checks all pass. WG approval/release timing remains the explicit external merge gate. |
e72e96e to
f9fbf27
Compare
|
FAST/programmed-channel alignment follow-up is now in
Two independent protocol reviews approved the final shape. #5880 now records compliance scenarios for both property and installment-property companions before 3.2 GA. |
Summary
creative_nameconvenience metadata to creative delivery rowsplacement_idrowsExpert review
Reviewed by ad tech protocol experts, a social reporting pass across major platform APIs, and a conversational/FAST publisher pass. Their findings drove the compatibility layer, seller-vs-publisher authority discriminator, placement-property intersection, collection privacy boundary, suppression disclosure, and the removal of inferred delivery evidence.
The collection model composes with the programmed-channel and FAST work in #6897: the host app is a property, the programmed stream is a collection, and a scheduled airing or programming block is an installment. Catalog carriage is not delivery evidence.
collection_propertyproves channel-level delivery on a host, whileinstallment_propertyproves a specific content airing or block ran there;by_spotremains the individual ad as-run record.Issue #5880 remains marked for WG review. This PR keeps suppression disclosure response-specific and records capability-gated behavioral compliance coverage as a before-3.2-GA follow-up. WG approval of the 3.2 release timing remains an explicit merge gate.
Validation