Skip to content

feat(compliance): grade owner-sold carriage and collection selection - #7134

Merged
bokelley merged 1 commit into
mainfrom
carriage-conformance-storyboards
Sep 1, 2026
Merged

bokelley merged 1 commit into
mainfrom
carriage-conformance-storyboards

Conversation

@bokelley

@bokelley bokelley commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

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 $generate against 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 to mode: "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 unknown collection_id or publisher_domain uses REFERENCE_NOT_FOUND per the error-code registry (INVALID_REQUEST remains 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 the collection_selection full-bundle case alongside placements (it previously read as placement-only).

Scope decisions

  • Registered ungated in requires_scenarios, following the placement_selection precedent: the controller seeds fixtures and there is no capabilities rollup key for collection_selection to gate on. Deliberate, flagged for reviewer eyes.
  • Expert-reviewed (protocol red team): High error-code over-constraint fixed via 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:compliance clean.

🤖 Generated with Claude Code

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]>

@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 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 path static/schemas/source/**); requires human/CODEOWNERS approval — review_decision is currently REVIEW_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.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Sep 1, 2026
@bokelley
bokelley merged commit d312e3c into main Sep 1, 2026
62 checks passed
@bokelley
bokelley deleted the carriage-conformance-storyboards branch September 1, 2026 10:43
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.

Conformance: storyboard coverage for owner-sold carriage verification ladder and bulk-grant selectors

1 participant