Repository navigation
feat(compliance): grade owner-sold carriage and collection selection - #7134
Conversation
Two storyboards close the conformance gap left by #6897/#7079 (adcp issue #7103): - owner_sold_channel_carriage: the seller-observable half of the verification ladder — the product combines host property scope with the owner's canonical collection selector; a correct selection is accepted and echoed; the bulk-grant selector form, an unknown collection_id (randomized against teach-to-test), and a mismatched owner domain each fail closed rather than being silently substituted. The adagents.json cross-file legs are narrative-only: no AdCP task carries that file, so they are buyer-side classification, not gradeable seller conformance. - collection_selection: selected-subset accept + unwidened echo, default-mode purchase materializing to mode selected on readback, and the fixed-bundle pairing (partial selection rejected with UNSUPPORTED_FEATURE, exact full restatement accepted as an inherent match). Ships the normative anchors the graded checks require: rejection of a schema-valid selector referencing an unknown collection_id or publisher_domain uses REFERENCE_NOT_FOUND per the error-code registry (INVALID_REQUEST stays the code for schema-invalid shapes), and a mode-default purchase reads back as mode selected because the default branch carries no selectors and cannot satisfy the readback echo. create_media_buy's fixed-restatement exception now names the collection_selection full-bundle case alongside placements. Registered ungated, following the placement_selection precedent: the controller seeds fixtures, and there is no capabilities rollup key for collection_selection to gate on. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS review.
This PR modifies static/schemas/source/core/collection-selection.json, which matches the hard approval gate glob static/schemas/source/**. gated_paths: true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: the gate is not satisfied and the outcome must be escalate.
The review itself is clean: the change is description-only (error-code routing plus mode-default→mode-selected readback clarification) with no wire-shape change, discriminator intact, coherent doc edits, and a correct patch changeset. No Critical/High/Medium findings were reported. The sole candidate (reject scenarios accepting INVALID_REQUEST alongside REFERENCE_NOT_FOUND) is deliberate graded-conformance leniency, not spec drift.
Because there are no blocking findings, this is not a request-changes; it is an escalation purely to satisfy the schema-source hard approval gate. Once a human/CODEOWNERS approval lands (review_decision: APPROVED), this diff would fall through to approve.
Escalation reasons
- Modifies
static/schemas/source/core/collection-selection.json(gated pathstatic/schemas/source/**); requires human/CODEOWNERS approval —review_decisionis currentlyREVIEW_REQUIRED.
Why human review
- Modifies static/schemas/source/core/collection-selection.json — hard approval gate (static/schemas/source/**); review_decision is REVIEW_REQUIRED, so human/CODEOWNERS approval is required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/collection-selection.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.
What
Two conformance storyboards closing the coverage gap from #6897/#7079 (closes #7103), plus the normative anchors their graded checks require.
owner_sold_channel_carriage— the seller-observable half of the verification model: the product combines host property scope with the owner's canonical collection selector; a correct selection is accepted and echoed (positive leg, so a blanket-reject seller cannot pass vacuously); the bulk-grant selector form, an unknown collection_id (randomized via$generateagainst teach-to-test), and a mismatched owner domain each fail closed rather than being silently substituted. The adagents.json cross-file ladder legs are deliberately narrative-only: no AdCP task carries that file, so they are buyer-side classification, not gradeable seller conformance.collection_selection— selected-subset accept + unwidened echo on create and readback; default-mode purchase materializing tomode: "selected"on readback; fixed-bundle pairing (partial selection →UNSUPPORTED_FEATURE, exact full restatement accepted as an inherent match, mirroring the placement precedent).Normative anchors shipped with the checks (per the anti-drift convention)
core/collection-selection.json: rejection of a schema-valid selector referencing an unknowncollection_idorpublisher_domainusesREFERENCE_NOT_FOUNDper the error-code registry (INVALID_REQUESTremains the code for schema-invalid shapes); a mode-default purchase reads back as mode selected naming the complete bundle, because the default branch carries no selectors and cannot satisfy the readback echo. Graded checks accept both codes while the pin propagates.collections-and-installments.mdx: the materialization rule stated explicitly.create_media_buy.mdx: the fixed-restatement exception now names thecollection_selectionfull-bundle case alongside placements (it previously read as placement-only).Scope decisions
requires_scenarios, following theplacement_selectionprecedent: the controller seeds fixtures and there is no capabilities rollup key forcollection_selectionto gate on. Deliberate, flagged for reviewer eyes.allowed_values+ schema pin; inference-chain materialization assertion now anchored; positive leg added; unknown literal randomized; over-strict shape assertions removed in an earlier pass.Testing
All storyboard lint suites green (doc-parity 13, scoping 3, check-enum 14, validations-paths 32, sample-request-schema 12, response-schema 6, source-authority 6, packaged-refs 7, context-output-paths 18) and
build:complianceclean.🤖 Generated with Claude Code