Skip to content

feat(schema): model programmed channels and FAST carriage - #6897

Merged
bokelley merged 8 commits into
mainfrom
collections-for-fast-channels
Aug 30, 2026
Merged

bokelley merged 8 commits into
mainfrom
collections-for-fast-channels

Conversation

@bokelley

@bokelley bokelley commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • model continuously programmed audio/video streams as first-class channel collections, including FAST, virtual linear, and syndicated audio
  • keep the host app as the property, the programmed stream as the collection, and the avail as the placement
  • identify carriage through host property IDs plus publisher-scoped channel/EPG identifiers
  • support owner-sold carriage through domain-qualified collection constraints in host adagents.json
  • preserve carriage data through registry projection and expose external collection constraints in the builder

Authorization semantics

  • multiple rights-holders or sales paths use separate collection-narrowed authorized_agents[] entries; no concurrency primitive is needed
  • a technology provider is not inherently a rights-holder: software behind the owner endpoint may remain direct, while an operator running the sales endpoint on the owner’s behalf is named as delegated
  • revenue shares, buybacks, and backfill priority remain commercial inputs to product construction and pricing, not discovery fields
  • the direct publisher verifier matches collection scope by publisher domain and collection ID and fails closed for absent, malformed, or wrong-domain selectors
  • the registry product lookup is explicitly documented as publisher-property coverage only; collection, placement, country, and time qualifiers require authoritative publisher validation

Verification

  • npm run typecheck
  • focused validator and registry-sync unit tests: 81 passed
  • npm run test:fast-channel-collections: 4 passed
  • npm run test:json-schema: 278 schema-bearing examples passed
  • npm run test:openapi
  • node scripts/check-changeset-protocol-scope.cjs origin/main
  • branch merged with current origin/main

Review status

The automated review finding that publisher_channel_id was missing from the video/CTV identifier reference is addressed. This PR changes gated protocol schema paths and still requires human/CODEOWNERS approval before merge.

@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 schema paths modified without required review approval.

This PR models FAST/virtual-linear streams as first-class channel collections: a new enum value, a new publisher_channel_id identifier type, and an optional property_ids carriage field on collection-distribution. Schema, docs, server projection, admin UI, tests, and a correct minor changeset are in sync. The required→optional loosening is non-breaking and the new anyOf is properly discriminated (not an undiscriminated oneOf). No critical or high findings surfaced.

However, this PR modifies files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true). The required review status is REVIEW_REQUIRED, not APPROVED (decision table row 2). The protocol source of truth is being changed, so human/CODEOWNERS review is required before this can merge.

Medium findings

  • docs/media-buy/product-discovery/collections-and-installments.mdx:880 — publisher_channel_id missing from the "Available video/CTV types" reference list (schema↔docs coherence gap; worth fixing but non-blocking on its own).

Escalation reasons

  • Gated paths modified (static/schemas/source/core/collection-distribution.json, .../core/collection.json, .../enums/collection-kind.json, .../enums/distribution-identifier-type.json) and review_decision is REVIEW_REQUIRED, not APPROVED. Human/CODEOWNERS review of the protocol schema change is required.

Medium findings

  • docs/media-buy/product-discovery/collections-and-installments.mdx:880 — publisher_channel_id missing from the "Available video/CTV types" reference list

Why human review

  • Gated paths modified under static/schemas/source/** (collection-distribution.json, collection.json, collection-kind.json, distribution-identifier-type.json) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required before merge.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/collection-distribution.json (modified) matches static/schemas/source/**; static/schemas/source/core/collection.json (modified) matches static/schemas/source/**; static/schemas/source/enums/collection-kind.json (modified) matches static/schemas/source/**; static/schemas/source/enums/distribution-identifier-type.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 Aug 26, 2026

@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 schema paths modified without required review approval.

Gate status
This PR modifies four files under static/schemas/source/** (collection-distribution.json, collection.json, collection-kind.json, distribution-identifier-type.json), which sit under a hard, deterministic approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied. Row 2 of the decision table forces escalate (no critical/high findings exist to force request-changes).

Iteration credit
The delta since the prior escalate is small and clean: two $schema example URLs in collections-and-installments.mdx were moved from latest to v3, matching the repo-wide /schemas/v3/ convention. No new findings introduced. The prior escalation persists solely because the gated-path approval gate remains unmet — not because of unresolved code issues.

Medium findings (non-blocking)

  • docs/media-buy/product-discovery/collections-and-installments.mdx:880 — publisher_channel_id (added to the distribution-identifier-type enum in this PR) is missing from the "Available video/CTV types" reference list. Minor schema↔docs coherence gap; line is outside all diff hunks so it cannot be pinned inline.

Escalation reasons

  • Gated files under static/schemas/source/** modified while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required before merge.

Medium findings

  • docs/media-buy/product-discovery/collections-and-installments.mdx:880 — publisher_channel_id missing from the "Available video/CTV types" reference list

Why human review

  • Modifies gated schema files under static/schemas/source/** (collection-distribution.json, collection.json, collection-kind.json, distribution-identifier-type.json) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/collection-distribution.json (modified) matches static/schemas/source/**; static/schemas/source/core/collection.json (modified) matches static/schemas/source/**; static/schemas/source/enums/collection-kind.json (modified) matches static/schemas/source/**; static/schemas/source/enums/distribution-identifier-type.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.

@ariloudev

Copy link
Copy Markdown

@bokelley Hi Brian,

Thanks for coming up with this promptly following our conversation on Slack.

The proposal itself looks good, but if I am reading this correctly, without hosts (Roku, Samsung, etc) starting to publish the adagents.json files, it won’t be possible to transact because the AdCP seller relationship authorization validation will fail, right?

I am afraid this is where the AdCP adoption will stall because this will make the hosts complete gatekeepers to agentic selling. Given their scale, how long will it actually take until they embrace AdCP becomes a question yet to be answered.

What are your thoughts on this?

@bokelley

bokelley commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor Author

@ariloudev That is a fair concern. Full AdCP verification of owner-sold carriage does require host participation. Until a host publishes an authoritative declaration, the channel owner's carriage claim can be discovered, but it cannot be promoted to host-verified authorization.

This is why the community registry exists. It gives the ecosystem a place to publish catalog and carriage metadata for properties that have not yet adopted AdCP, with provenance explicit. It cannot manufacture host authorization - an empty authorized_agents array means exactly that - but it prevents the discovery ecosystem from being empty while adoption builds.

The bootstrap question is the important one: how do we accumulate enough useful evidence and participation for verification to have value? A practical next step is to determine whether major CTV and FAST hosts already publish machine-readable channel guides, EPG feeds, or partner APIs that can corroborate carriage. Where those signals exist, the community registry can surface them as evidence; where they do not, we should encourage hosts to expose a lightweight, machine-readable channel guide or attestation endpoint.

So I agree with the underlying point: verification is only valuable when participants contribute verifiable data. The path should be progressive - community discovery and clearly labeled provenance first, host attestation as adoption grows - without representing unverified claims as verified.


Generated by Claude Code

@bokelley bokelley changed the title feat(schema): model FAST channels as collections feat(schema): model programmed channels and FAST carriage Aug 28, 2026
@bokelley

Copy link
Copy Markdown
Contributor Author

Addressed the review and expert feedback in 9ea5653736, then merged current main in 439c2ec8c0:

  • added publisher_channel_id to the documented video/CTV identifier list
  • reframed FAST as a carriage/monetization model over the generic channel collection primitive
  • documented that concurrent sales paths are separate collection-scoped authorized_agents[] entries, with no new concurrency field
  • clarified direct vs delegated technology-provider paths and kept revenue shares/buybacks/backfill out of discovery
  • made external collection authorization domain-qualified end to end in the direct verifier and registry-sync index, with wrong-domain, missing-scope, and malformed-input tests
  • clarified that the registry product endpoint reports publisher-property coverage only, not full qualifier validation

Local verification after merging main: typecheck; 81 focused runtime tests; 4 channel schema/integration tests; 278 schema-bearing documentation examples; generated OpenAPI; changeset protocol-scope check. There are no unresolved inline review threads. Human/CODEOWNERS approval is still required for the gated schema files.

@bokelley

Copy link
Copy Markdown
Contributor Author

Fresh CI is green on 439c2ec8c0: 58 checks passed, including all canonical, server unit/integration, docs, security, Docker, and storyboard jobs. GitGuardian is the sole skipped check. The PR is mergeable with no unresolved review threads; the remaining block is the required human/CODEOWNERS approval for gated schema paths.

bokelley and others added 2 commits August 28, 2026 08:52
Trust model:
- Materialize authorized_agents[*].collections onto catalog authorization
  rows, snapshots, and change-feed events (migration 570) so registry
  consumers see the collection narrowing instead of an unqualified
  property grant; writer refuses entries whose declared constraint is
  unparseable.
- Registry-sync treats a present-but-unparseable collections payload as
  a deny sentinel instead of widening to unconstrained; the index and
  validator now agree on unioning domain-qualified selectors with the
  legacy collection_id shorthand.
- A collection selector naming an external publisher no longer satisfies
  the ads.txt managerdomain explicit-scope gate: carriage attestation is
  not a management claim.
- Catalog projection rebuilds distribution entries from known fields
  only instead of passing through publisher-authored unknown keys.

Schema:
- Collection selectors gain a bulk-grant form (collection_ids omitted =
  all collections at that publisher domain) so hosts authorize per
  partner, not per synced channel ID; products still require explicit
  collection_ids.
- Rename publisher_channel_id to platform_channel_id and forbid it in
  bare {type, value} contexts, where its (publisher_domain, value)
  identity cannot be carried and values collide across hosts.

Docs: verification-state ladder (verified owner-sold / host-delegated
via ads.txt inventorypartnerdomain / owner-attested), placement
namespace rule for seller_inline paths, aggregator syndication chains,
stable-identifier guidance, and normative fail-closed language.

Co-Authored-By: Claude Fable 5 <[email protected]>
@bokelley

Copy link
Copy Markdown
Contributor Author

Issue #7050 proposes adding a collections field to core/targeting.json (array of core/collection-selector.json, collection_ids required) so sellers can echo committed collection selection in package.targeting_overlay — same surface as this PR; consider folding before merge or confirm follow-up.


Generated by Claude Code

@bokelley

Copy link
Copy Markdown
Contributor Author

Issue #7049 proposes adding collection to reporting_dimensions (with a by_collection response block carrying { publisher_domain, collection_id, name?, kind? }) and supports_collection_breakdown to reporting-capabilities.json — same schema surface as this PR; consider folding before merge or confirm as a follow-up.


Generated by Claude Code

bokelley and others added 2 commits August 30, 2026 09:21
…ency

Add POST /api/registry/verify/supply-path: joins the owner's and host's
cached adagents.json manifests (plus host ads.txt/app-ads.txt
inventorypartnerdomain when the enforcement leg fails) and returns the
documented verification-state ladder with leg-by-leg, evidence-bearing
diagnosis (dangling cross-file references fail closed, including a host
grant whose owner collection does not exist).

Consistency fixes from the 3.2 surface audit:
- registry-event.json collections payload now carries the fail-closed
  scoping contract; registry docs explain it next to signing_keys.
- authorized-properties.mdx documents external-owner and bulk-grant
  selector forms; collection_lists.mdx documents the platform_channel_id
  ban and the channel-exclusion routes that remain.
- Rename stale `shows`/`episodes` prose to `collections`/`installments`
  in get_products, media-products, seller-integration, whats-new-in-v3;
  fix the distribution wording that still implied identifiers are
  required; scope deadline_policy and cadence for channel collections;
  neutral collection-list wording in targeting.json.
- mcp-tools collections cast matches the optional-ids selector shape.

Co-Authored-By: Claude Fable 5 <[email protected]>
bokelley added a commit that referenced this pull request Sep 1, 2026
…7134)

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

2 participants