Repository navigation
fix(compliance): gate wholesale reporting and proposal replay by capabilities - #7893
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean conformance correction with no blocking or Medium findings.
Checked:
- Capability gating correctness:
advanced_delivery_reporting.yamlis gated onmedia_buy.buying_modescontainingwholesale, and the finalize replay is moved into a phase gated onadcp.idempotency.supported: true. Both discriminators resolve in get-adcp-capabilities-response.json (buying_modes is a wholesale-bearing array; idempotency.supported is a real discriminator). - Phase restructuring:
accept_proposalandunknown_proposal_referencesdepend onfinalize_proposal/accept_proposalrather than the optional replay, so opt-out sellers correctly skip replay as not_applicable while acceptance and unknown-reference grading continue. - Changeset: present, correctly scoped to the compliance surface, and
patchis appropriate — the change relaxes grading of optional capabilities a seller never advertised, aligning with DR-0001 (not a breaking wire change). - Test coverage: two new runner regressions cover omitted/brief-only/wholesale discovery, idempotency opt-out, successful replay, and broken-advertised replay.
No schema files under static/schemas/source/** are touched, so no schema↔docs coherence or oneOf discriminator concerns apply. high_risk is false, gated_paths is false, no author-team gate. Despite review_decision: REVIEW_REQUIRED, the gated-paths hard gate (row 2) only applies when gated_paths is true — it is false here, so this falls through to row 9.
Non-blocking follow-up (not a finding): the scenario-level wholesale gate skips the entire advanced-reporting scenario for brief-only sellers, so requested-metric narrowing and format-breakdown fidelity go untested for them; a future scenario could seed via brief discovery to preserve that coverage.
Wholesale discovery and idempotent replay are opt-in capabilities, but two media-buy storyboards currently require them from sellers that opt out. A brief-only seller can fail advanced delivery reporting on its wholesale discovery call, and a proposal seller declaring
adcp.idempotency.supported: falsefails the finalize replay and loses subsequent acceptance coverage.Gate advanced delivery reporting on
media_buy.buying_modescontainingwholesale. Move finalize replay into a phase gated onadcp.idempotency.supported: true, while acceptance and unknown-proposal checks continue from the original finalized proposal. An advertised replay that returnsreplayed: falsestill fails.Refs #7858 (items 1–2). The reference/translator seller test-controller policy in item 3 remains for WG review; this PR does not close the parent issue.
A patch changeset targets main's 3.3 beta line. These conformance corrections are candidates for a separate 3.2.x backport after main lands. No published artifacts change.
Validation:
Local hook limitation: the broad server suite reports a pre-existing perspective asset-cache failure (
expected 200, received 500). It also reproduces with the original compliance YAML; the hook's serial rerun resolved two other startup timeouts. Typecheck passes. This PR remains draft pending CI and resolution of that baseline failure.Open workspace in Conductor