Skip to content

feat(compliance): gate property-grain delivery conformance on a seller rollup - #7982

Merged
bokelley merged 3 commits into
mainfrom
conductor/5880-property-delivery-conformance
Oct 7, 2026
Merged

bokelley merged 3 commits into
mainfrom
conductor/5880-property-delivery-conformance

Conversation

@bokelley

@bokelley bokelley commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Closes #5880

What

The GA follow-through for property-grain reporting (schema landed in #6915): deterministic, capability-gated conformance for by_property and by_installment_property.

  • Seller-wide rollups in get_adcp_capabilities: media_buy.features.supports_property_breakdown and supports_installment_property_breakdown. Names match the per-product flags in reporting_capabilities. Normative rule: declaring a rollup commits the seller to return the breakdown and its truncation, suppression, and sort companions on every product that declares the matching per-product flag, which stays authoritative and binds on its own. The rollup is the grading gate; absent or false means no seller-wide claim and the scenarios grade not_applicable. Placed in media_buy.features per the capabilities-explorer guidance that new media-buy flags live there. This is what makes the runner's capability gate usable, since it only reads get_adcp_capabilities.
  • comply_test_controller simulate_delivery gains property_delivery[] and installment_property_delivery[]. Each row is a complete core/property-delivery-metrics.json or core/installment-property-delivery-metrics.json row. The seller echoes only injected rows and never synthesizes from catalog eligibility.
  • Training agent echoes injected rows, applying limit / sort_by / sort_direction and reporting *_truncated, *_suppressed, *_sorted_by, *_sort_direction. With no injected rows it returns an empty array. It declares both rollups on /sales.
  • Scenarios media_buy_seller/property_delivery_reporting and media_buy_seller/installment_property_delivery_reporting, gated on the rollups and registered in the media-buy index. Rows are injected out of impressions order, so a seller that truncates before sorting fails. The installment scenario asserts the collection owner (installment_ref.collection_ref.publisher_domain) stays distinct from the host property's publisher_domain on every row.
  • minor changeset. /sales floors bumped 133/632 to 135/646 (+2 clean, +14 steps).

Judgment calls

  • Injection shape: two explicit arrays rather than one property_delivery[] with an optional installment_ref. The row schemas differ (the installment row requires installment_ref and publisher_domain), so the briefed shape was incomplete. Semantics: replace rather than add, undated (combining with delivery_date is INVALID_PARAMS), single-package buys only, rows need not reconcile to totals, and they are returned for date-bounded requests too.
  • Suppression: no controller knob. Injected rows are specified as exempt from threshold suppression, and the scenarios assert *_suppressed: false only. suppressed: true, and suppressed plus truncated together, are not exercised. A knob can be a follow-up.
  • PARITY_COMPILE_LIMIT not bumped, and the limit was effectively exceeded by the faithful design. $ref-ing the two row schemas from the controller params pushed the MCP projection of comply-test-controller-request.json to 1,282,194 bytes (limit 1,280,000; baseline 1,273,205). To stay under without touching the limit, the controller schema describes rows by required-field shape (now 1,274,929 bytes) and states normatively that each row MUST be a complete row of the real schema. The training agent validates against the real row schemas, and tests/property-delivery-conformance.test.cjs pins the inline required fields to the row schemas. If the limit is later raised, swapping the inline items for $refs is a drop-in change.
  • Sorting: the reference seller sorts on flat row metrics. A metric it doesn't carry (for example nested viewability) falls back to spend, which delivery-breakdown-controls.json permits.
  • Floors: main's last /sales run was 166 clean / 1138 steps against floors of 133 / 632, so the floors are loose. I bumped by exactly what this PR adds. Ratcheting to the actual baseline is a separate decision.

Testing

  • npm run test:schemas, test:storyboard-{doc-parity,sample-request-schema,response-schema,check-enum,validations-paths,fixture-resolution,contradictions,scoping,context-output-paths}, test:compliance-{source-authority,packaged-refs}, build:compliance --check, typecheck, lint, tests/mcp-schema-projection.test.cjs (parity limit), json-schema-validation --file on both edited docs: all pass.
  • New unit tests in comply-test-controller.test.ts (echo, sort, limit, truncation, no synthesis, fallback, date-bounded, requested_metrics narrowing, rejection without state mutation) and tests/property-delivery-conformance.test.cjs.
  • Both new storyboards run clean on /sales (7 steps each); advanced_delivery_reporting and delivery_reporting unaffected.
  • Pre-push storyboard matrix skipped locally (ADCP_SKIP_STORYBOARD_MATRIX=1); CI is the gate.
  • Reviewed by ad-tech-protocol-expert and code-reviewer. Addressed: empty-array semantics for requested-but-uninjected breakdowns, rollup wording ("unknown" vs binding per-product flag, sandbox scope), explicit replace/undated/suppression/validation semantics, out-of-order injection, rows surviving date-bounded queries.

Open

  • Suppression injection knob (follow-up).
  • required_features product filters can now name the rollups; the docs note that this selects sellers, not products.

🤖 Generated with Claude Code


Open workspace in Conductor

…r rollup

Add seller-wide media_buy.features.supports_property_breakdown and
supports_installment_property_breakdown rollups, simulate_delivery injection
of property_delivery[] / installment_property_delivery[] rows, training-agent
echo-only handlers, and two capability-gated scenarios.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@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 required approval.

This PR modifies files under hard approval gates (gated_paths: true): .github/workflows/training-agent-storyboards.yml, static/schemas/source/compliance/comply-test-controller-request.json, and static/schemas/source/core/media-buy-features.json. Per decision row 2, when gated_paths is true and review_decision is not APPROVED (it is REVIEW_REQUIRED), the outcome must be escalate.

Escalation reasons

  • Touches gated path static/schemas/source/compliance/comply-test-controller-request.json — human/CODEOWNERS review required.
  • Touches gated path static/schemas/source/core/media-buy-features.json — human/CODEOWNERS review required.
  • Touches gated path .github/workflows/training-agent-storyboards.yml — human/CODEOWNERS review required.

The change itself reviews cleanly: additive Normative-class optional capability flags + controller injection, correct minor changeset, no package.json version edit, no dist/** touch, no new undiscriminated oneOf, and schema↔docs coherence holds both directions. No blocking findings. The gate lifts once review_decision becomes APPROVED.

Why human review

  • Touches gated path static/schemas/source/compliance/comply-test-controller-request.json — human/CODEOWNERS review required (review_decision=REVIEW_REQUIRED)
  • Touches gated path static/schemas/source/core/media-buy-features.json — human/CODEOWNERS review required
  • Touches gated path .github/workflows/training-agent-storyboards.yml — human/CODEOWNERS review required
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**; static/schemas/source/compliance/comply-test-controller-request.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-features.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 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 require human/CODEOWNERS approval.

This PR modifies files under hard, non-overridable approval gates (.github/workflows/** and static/schemas/source/**), and 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.

Findings: None. This subsequent pass found no critical/high/medium issues. The delta since the prior review is a single docs cleanup in comply-test-controller.mdx (two property-delivery schema links moved from /schemas/latest/ to /schemas/v3/, aligning with the canonical convention; both referenced schemas exist). The reviewer confirms schema↔docs coherence and no spec drift.

Escalation reasons:

  • Modifies .github/workflows/training-agent-storyboards.yml — gated path (.github/workflows/**), human/CODEOWNERS review required
  • Modifies static/schemas/source/compliance/comply-test-controller-request.json — gated path (static/schemas/source/**), human/CODEOWNERS review required
  • Modifies static/schemas/source/core/media-buy-features.json — gated path (static/schemas/source/**), human/CODEOWNERS review required

Note: the prior escalate was driven by the same gated-path gate, not by actionable findings. The diff is clean; approval is blocked purely because review_decision is not yet APPROVED. Once a human/CODEOWNERS approval lands, this PR falls through to the normal decision table.

Why human review

  • Modifies .github/workflows/training-agent-storyboards.yml — gated path (.github/workflows/**); human/CODEOWNERS review required (review_decision=REVIEW_REQUIRED, not APPROVED)
  • Modifies static/schemas/source/compliance/comply-test-controller-request.json — gated path (static/schemas/source/**); human/CODEOWNERS review required
  • Modifies static/schemas/source/core/media-buy-features.json — gated path (static/schemas/source/**); human/CODEOWNERS review required
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**; static/schemas/source/compliance/comply-test-controller-request.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-features.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 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 require human/CODEOWNERS approval.

This PR modifies files under hard, non-overridable approval gates while review_decision is REVIEW_REQUIRED (not APPROVED). Per decision rule row 2, the outcome must be escalate.

Gated files requiring human/CODEOWNERS review:

  • .github/workflows/training-agent-storyboards.yml — matches .github/workflows/**
  • static/schemas/source/compliance/comply-test-controller-request.json — matches static/schemas/source/**
  • static/schemas/source/core/media-buy-features.json — matches static/schemas/source/**

Escalation reasons:

  • Touches gated paths (.github/workflows/**, static/schemas/source/**) and the current GitHub review decision is REVIEW_REQUIRED, not APPROVED. Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded.

The reviewer surfaced no critical/high/medium findings — the diff is a clean three-way drift correction of storyboard baselines plus two new property-delivery scenarios. The escalation is purely driven by the unsatisfied hard approval gate, not by any defect in the change. Once a human/CODEOWNERS approval is recorded, this PR can fall through to normal evaluation.

Why human review

  • Modifies .github/workflows/training-agent-storyboards.yml — gated path (.github/workflows/**); human/CODEOWNERS review required (review_decision=REVIEW_REQUIRED, not APPROVED)
  • Modifies static/schemas/source/compliance/comply-test-controller-request.json — gated path (static/schemas/source/**); human/CODEOWNERS review required
  • Modifies static/schemas/source/core/media-buy-features.json — gated path (static/schemas/source/**); human/CODEOWNERS review required
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**; static/schemas/source/compliance/comply-test-controller-request.json (modified) matches static/schemas/source/**; static/schemas/source/core/media-buy-features.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.

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.

RFC: property dimension in get_media_buy_delivery reporting breakdowns (by_property)

1 participant