Repository navigation
feat(compliance): gate property-grain delivery conformance on a seller rollup - #7982
Conversation
…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]>
There was a problem hiding this comment.
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) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-features.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.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
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) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-features.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.
…nner Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
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— matchesstatic/schemas/source/**static/schemas/source/core/media-buy-features.json— matchesstatic/schemas/source/**
Escalation reasons:
- Touches gated paths (
.github/workflows/**,static/schemas/source/**) and the current GitHub review decision isREVIEW_REQUIRED, notAPPROVED. 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) matchesstatic/schemas/source/**; static/schemas/source/core/media-buy-features.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.
Closes #5880
What
The GA follow-through for property-grain reporting (schema landed in #6915): deterministic, capability-gated conformance for
by_propertyandby_installment_property.get_adcp_capabilities:media_buy.features.supports_property_breakdownandsupports_installment_property_breakdown. Names match the per-product flags inreporting_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 gradenot_applicable. Placed inmedia_buy.featuresper the capabilities-explorer guidance that new media-buy flags live there. This is what makes the runner's capability gate usable, since it only readsget_adcp_capabilities.comply_test_controllersimulate_deliverygainsproperty_delivery[]andinstallment_property_delivery[]. Each row is a completecore/property-delivery-metrics.jsonorcore/installment-property-delivery-metrics.jsonrow. The seller echoes only injected rows and never synthesizes from catalog eligibility.limit/sort_by/sort_directionand reporting*_truncated,*_suppressed,*_sorted_by,*_sort_direction. With no injected rows it returns an empty array. It declares both rollups on/sales.media_buy_seller/property_delivery_reportingandmedia_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'spublisher_domainon every row.minorchangeset./salesfloors bumped 133/632 to 135/646 (+2 clean, +14 steps).Judgment calls
property_delivery[]with an optionalinstallment_ref. The row schemas differ (the installment row requiresinstallment_refandpublisher_domain), so the briefed shape was incomplete. Semantics: replace rather than add, undated (combining withdelivery_dateisINVALID_PARAMS), single-package buys only, rows need not reconcile to totals, and they are returned for date-bounded requests too.*_suppressed: falseonly.suppressed: true, and suppressed plus truncated together, are not exercised. A knob can be a follow-up.PARITY_COMPILE_LIMITnot 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 ofcomply-test-controller-request.jsonto 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, andtests/property-delivery-conformance.test.cjspins 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.viewability) falls back to spend, whichdelivery-breakdown-controls.jsonpermits.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 --fileon both edited docs: all pass.comply-test-controller.test.ts(echo, sort, limit, truncation, no synthesis, fallback, date-bounded,requested_metricsnarrowing, rejection without state mutation) andtests/property-delivery-conformance.test.cjs./sales(7 steps each);advanced_delivery_reportinganddelivery_reportingunaffected.ADCP_SKIP_STORYBOARD_MATRIX=1); CI is the gate.Open
required_featuresproduct filters can now name the rollups; the docs note that this selects sellers, not products.🤖 Generated with Claude Code
Open workspace in Conductor