Skip to content

Feed Capability

  • Capability Name: dev.ucp.common.feed

A feed is a point-in-time publication of records—each representing one logical data item—delivered in bulk as files. A record-type extension defines the record shape: one that a UCP service or capability defines, so a Platform can discover records in bulk and then call the corresponding live operations for authoritative serving-time values, or one that an independent specification defines. A Business MAY publish feeds of either kind, and MAY publish feeds without corresponding live operations.

Common Feed adds one endpoint declaration, a feed list, and a manifest; it defines no record model. The manifest's ucp.capabilities declares the record type, defined by an extension of Common Feed.

The capability is built from UCP primitives. Discovery is a capability whose config names the endpoint that serves the feed list. Market scope is the UCP context object. Records take the shape that an extension of this capability defines; the examples in this document use Shopping Catalog Feed, whose records are catalog Products, as the illustrative domain. Access control is UCP's existing Platform authentication on the feed endpoint. Extensions compose onto records as they do onto operation responses.

Discovery

The Business advertises the capability in its profile under capabilities and MUST include config.endpoint, the absolute HTTPS URL that serves the feed list. A Platform treats a declaration without config.endpoint as not present and never activates it. The endpoint is the sole entry point to the Business's feeds; see Access and Provenance for why the URLs reached through it are trusted.

The endpoint is declared once, on this capability, and serves one feed list that may carry feeds of more than one record type. A capability that defines a record type for feeds is an extension of this one: its profile entry declares extends: "dev.ucp.common.feed", and its specification defines its records and any further manifest fields they require. A Platform activates an extension only when its parent is in the negotiated set (see Negotiation Protocol), so a record-type extension declared without dev.ucp.common.feed is pruned and never activated. The profile below declares both: dev.ucp.common.feed, carrying the endpoint, and the Shopping Catalog Feed extension dev.ucp.shopping.catalog.feed.

{
  "ucp": {
    "version": "draft",
    "services": {
      "dev.ucp.shopping": [
        {
          "version": "draft",
          "spec": "https://ucp.dev/draft/specification/overview",
          "transport": "rest",
          "schema": "https://ucp.dev/draft/services/shopping/rest.openapi.json",
          "endpoint": "https://business.example.com/ucp"
        }
      ]
    },
    "capabilities": {
      "dev.ucp.common.feed": [{
        "version": "draft",
        "spec": "https://ucp.dev/draft/specification/common/feed",
        "schema": "https://ucp.dev/draft/schemas/common/feed.json",
        "config": {
          "endpoint": "https://merchant.example.com/ucp/feeds"
        }
      }],
      "dev.ucp.shopping.catalog.feed": [{
        "version": "draft",
        "extends": "dev.ucp.common.feed",
        "spec": "https://ucp.dev/draft/specification/shopping/catalog/feed",
        "schema": "https://ucp.dev/draft/schemas/shopping/catalog_feed.json"
      }]
    },
    "payment_handlers": {}
  }
}

Business feed endpoint configuration.

Name Type Requirement Description
endpoint string Required Absolute HTTPS URL from which a Platform fetches the feed list. The operator of this endpoint acts for the Business and may be the Business, its commerce platform, or a delegated feed publisher; the Business declares it in its profile.

The Business MAY place config.endpoint on any HTTPS origin, and MAY have it operated by a party other than the one serving its service endpoint (a commerce platform or a delegated feed publisher). The operator acts for the Business, and the Business controls the delegation through its profile: changing or removing config.endpoint changes or revokes it.

Feed List

A Platform fetches config.endpoint with an HTTPS GET, sending the UCP-Agent header and, where the Business requires authentication, using a mechanism supported by the Business: an API key, OAuth 2.0, mTLS, or a request signature per the Message Signatures specification. The response is the feed list document.

The feed list is provisioned for the caller: an unauthenticated fetch returns the Business's public feeds, if any; an authenticated fetch returns the feeds the Business has provisioned for that Platform, and it is authoritative and complete for that caller: the feeds it lists are the feeds available to that Platform. feeds can be empty. The order of entries carries no meaning, except that a Platform applies supplemental feeds of the same base feed in list order (see Supplemental Feeds). The feed list's ucp.capabilities declares dev.ucp.common.feed; nothing more is required or given meaning there, because the list is shared by every feed the Business publishes, whatever its record type. messages, when present, carries errors, warnings, or informational notices about the feed list in the shape UCP responses use.

Provisioning is by caller identity, not by request parameters. A Business that serves different feeds to different surfaces of one Platform (for example, an advertising crawler and a search crawler) does so by provisioning different feed lists to their different identities. The endpoint accepts no parameters that select or shape a feed, because feeds are materialized ahead of time; which feeds exist for a given caller is settled between the Business and the Platform outside this capability.

{
  "ucp": {
    "version": "draft",
    "capabilities": {
      "dev.ucp.common.feed": [
        {"version": "draft"}
      ]
    }
  },
  "feeds": [
    {
      "id": "us-en-usd",
      "context": {
        "address_country": "US",
        "language": "en-US",
        "currency": "USD"
      },
      "format": "dev.ucp.shopping.catalog.jsonl",
      "interval": "P1D",
      "generated_at": "2026-09-22T06:00:00Z",
      "manifest": "https://merchant.example.com/feeds/us-en-usd/20260922T060000Z/manifest.json"
    },
    {
      "id": "ca-fr-cad",
      "context": {
        "address_country": "CA",
        "language": "fr-CA",
        "currency": "CAD"
      },
      "format": "dev.ucp.shopping.catalog.jsonl",
      "interval": "P1D",
      "generated_at": "2026-09-22T06:10:00Z",
      "manifest": "https://merchant.example.com/feeds/ca-fr-cad/20260922T061000Z/manifest.json"
    }
  ]
}

The feed list document served at the capability's config.endpoint: the feeds the Business makes available to the calling Platform.

Name Type Requirement Description
ucp UCP Feed Document Schema Required UCP metadata for feed list and manifest documents.
feeds Array[Feed] Required Feeds available to the calling Platform. May be empty. The document is provisioned for the caller: an unauthenticated fetch returns the Business's public feeds, if any; an authenticated fetch returns the feeds the Business has provisioned for that Platform. The order of entries carries no meaning, except that a Platform applies supplemental feeds of the same base feed in list order.
messages Array[Message] Optional Errors, warnings, or informational messages about the feed list.

Feed

A feed list entry is the Business's advertisement of one feed and a pointer to its current snapshot. The entry is for discovery; the manifest is authoritative for what a snapshot contains.

An entry does not name its snapshot's record type; the manifest's ucp.capabilities declarations do. A feed list may mix feeds of several record types. A Platform does not consume snapshots whose record types it does not recognize (see Manifest) and MAY skip entries with unrecognized format values without fetching their manifests.

id is a Business-assigned, stable identifier, opaque to Platforms. The Business MUST keep id unique within its feed list and stable across snapshots: snapshots advance, id does not. A Platform that receives two entries with the same id MUST NOT consume either.

manifest is the absolute HTTPS URL of the feed's current manifest. The Business MUST issue a distinct manifest URL for each snapshot and MUST NOT change the document at a manifest URL once published; a snapshot's content is immutable at its URL for as long as it is retrievable (see Retention). The Business MAY host the manifest on any HTTPS origin; the URL is trusted because the feed list obtained from the Business's declared config.endpoint returned it, not because of its hostname (see Access and Provenance). A Platform MUST NOT dereference a manifest value that is not an absolute HTTPS URL.

format is the specification-defined reverse-domain format identifier for every file in the feed's current snapshot (see Formats). The Business MUST set each feed-list entry's format to the same value as the format in the manifest it references. A Platform that fetches the manifest and finds different values MUST NOT consume that snapshot. A Platform MAY skip an entry whose format it does not recognize without fetching its manifest.

A Business MAY publish the same content in more than one format, as separate entries with the same context and distinct ids. It SHOULD keep those entries content-identical, except transiently while one entry's snapshot has rolled and the other's has not. A Platform that consumes that content picks one of the entries.

interval is the expected cadence between snapshots, an ISO 8601 duration (RFC 3339 Appendix A) such as P1D or PT2H. It is advisory: it states the Business's intent, not a guarantee, and a Business MAY publish a snapshot earlier or later than interval suggests. The Business MUST publish a positive interval; a Platform MUST NOT consume a feed whose interval is not a positive duration. Where a Platform compares intervals (see Etiquette), it compares nominal lengths.

generated_at is a copy of the current manifest's generated_at. The Business MUST keep it equal to the generated_at of the manifest at manifest; a Platform that fetches the manifest and finds a different value MUST NOT consume that snapshot. A Platform uses generated_at to decide whether to fetch: it SHOULD fetch the manifest only when generated_at is later than that of the snapshot it holds, unless it holds none.

extends marks a supplemental feed; see Supplemental Feeds.

A feed list entry: the Business's advertisement of one feed and a pointer to its current snapshot. The entry is for discovery; the manifest is authoritative.

Name Type Requirement Description
id string Required Business-assigned, stable identifier for the feed. Opaque to Platforms; unique within the Business's feed list. Identifies the feed across snapshots: generated_at advances, id does not.
context Context Required The conditions under which every record in the feed was resolved, each member single-valued. The capability that defines the feed's records states which members its feeds use and what each means. For a supplemental feed, its market override: the members it carries replace the base feed's in the feed it yields; empty when it overrides nothing.
format Reverse Domain Name Required Copy of the referenced manifest's namespaced format identifier. Allows Platforms to skip unsupported formats before fetching the manifest.
interval string Required Expected cadence between snapshots as an ISO 8601 duration (RFC 3339 Appendix A), e.g. P1D, PT2H. A positive duration. Advisory: it states the Business's intent, not a guarantee. Platforms are expected to poll no more often than the shortest interval among the feeds they consume unless the Business agrees otherwise.
generated_at string Required Copy of the current manifest's generated_at. Strictly increasing per feed. A Platform compares it with the value of the snapshot it holds to decide whether to fetch the manifest.
manifest string Required Absolute HTTPS URL of the feed's current manifest. Each snapshot has its own manifest URL, and the document at a manifest URL does not change once published. It may be on any HTTPS origin; it is trusted because the feed list obtained from the Business's declared config.endpoint returned it.
extends OneOf[string, Array[string]] Optional id of each base feed this supplemental feed extends: one or more other entries in this feed list, each of which itself carries no extends. Use an array to extend more than one base feed. Present only for a supplemental feed, whose records are applied to the base records with the same id. Absent for a feed that stands alone.

Manifest

The document at a feed list entry's manifest URL. A manifest is a complete materialization of one feed as of generated_at; this version publishes only complete snapshots.

Design note

The feed list and the manifest are separate documents because they belong to different planes. The feed list is control plane: it answers which feeds exist for this caller, is provisioned per identity, changes whenever any of the Business's snapshots rolls, and is fetched on every poll. A manifest is data plane: it describes the bytes of one snapshot, is identical for every caller entitled to it, never changes once published, and is fetched once per snapshot. The two carry different cache semantics (private and short-lived; shared and immutable) and are often produced by different systems.

Keeping them apart keeps the polled document small. An aggregated catalog of 100 million products materializes to roughly 3,000 files per snapshot at 64 MB each, and a file entry with a URL and digest is about 150 bytes; a Business publishing 20 market feeds would otherwise serve about 9 MB of file metadata to every Platform on every poll, most of it unchanged. As separate documents, the feed list is a few kilobytes, and each manifest is fetched once and cached indefinitely at its URL.

Separation also fixes the publishing order. The system that writes a snapshot's files writes its manifest beside them, so publication is files, then manifest, then a two-field update to the feed entry (manifest, generated_at); the feed endpoint never handles a file list, and the party operating the endpoint need not be the party producing the files. The fields that appear in both documents (id, context, format, and, for a supplemental feed, extends) are repeated deliberately so that each document stands on its own: a manifest URL is sufficient to fetch and verify a snapshot without the feed list.

generated_at is the logical point in time of the snapshot; every file in the manifest is consistent as of that instant. expires_at is retention, not validity: a snapshot does not become wrong at expires_at; it may become unavailable. A Platform MUST NOT consume a manifest that lacks either.

The manifest for the first feed in the Feed List example is at https://merchant.example.com/feeds/us-en-usd/20260922T060000Z/manifest.json. A Platform fetches it with a plain HTTPS GET; it is not a UCP operation and carries no UCP request headers:

{
  "ucp": {
    "version": "draft",
    "capabilities": {
      "dev.ucp.common.feed": [
        {"version": "draft"}
      ],
      "dev.ucp.shopping.catalog.feed": [
        {"version": "draft", "extends": "dev.ucp.common.feed"}
      ]
    }
  },
  "id": "us-en-usd",
  "format": "dev.ucp.shopping.catalog.jsonl",
  "context": {
    "address_country": "US",
    "language": "en-US",
    "currency": "USD"
  },
  "generated_at": "2026-09-22T06:00:00Z",
  "expires_at": "2026-09-29T06:00:00Z",
  "files": [
    {
      "url": "https://merchant.example.com/feeds/us-en-usd/20260922T060000Z/part-00000.jsonl.gz",
      "digest": "sha-256=:X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=:"
    },
    {
      "url": "part-00001.jsonl.gz",
      "digest": "sha-256=:d6wYF3+kJXsB1M2Hu1c0pV3xbFVQj4Kp0M4K0Zg2XqE=:"
    }
  ],
  "links": [
    {
      "type": "terms_of_service",
      "url": "https://merchant.example.com/policies/feed-data-use",
      "title": "Feed data-use terms"
    }
  ]
}

The second file's relative url resolves against the manifest URL https://merchant.example.com/feeds/us-en-usd/20260922T060000Z/manifest.json per RFC 3986 to https://merchant.example.com/feeds/us-en-usd/20260922T060000Z/part-00001.jsonl.gz; files placed under the snapshot's path segment are as unguessable as it is.

The Business MUST set the manifest's id and context equal to those of the feed list entry whose manifest URL served it. A Platform that finds a mismatch in either MUST NOT consume the snapshot.

A snapshot is identified by (id, generated_at). The Business MUST publish strictly increasing generated_at values within a feed. Once a snapshot is published, the Business MUST NOT change the manifest document; a correction is a new snapshot with a later generated_at. digest lets a Platform verify file bytes against the manifest it holds; it does not detect a Business that republishes a snapshot together with matching replacement files, and it is not a signature. Authenticity of a manifest and its files derives from the manifest URL having been obtained through the feed list at the Business's declared config.endpoint (see Access and Provenance), not from digest.

ucp uses the same envelope shape as a UCP response. On a manifest it declares the UCP version and the capabilities and extensions that govern the snapshot and its records; it does not record a negotiation, because a manifest is a static document, not an operation response. The Business MUST declare dev.ucp.common.feed in ucp.capabilities, together with every capability and extension that governs the snapshot and its records, and MUST include extends on every extension entry, as in its profile. A Platform MUST NOT consume a manifest that does not declare dev.ucp.common.feed; the manifest's own shape is defined by that capability, so without the declaration there is no version to validate the document against.

extends tells a Platform what kind of entry it is looking at:

  • The entry that extends dev.ucp.common.feed is the feed's record type: it defines what a record is. A Platform that does not recognize the record type MUST NOT consume the snapshot.
  • An entry that extends the record type adds fields to records. A Platform MAY ignore fields from one it does not recognize.

For every record type, including independent record types, the Business MUST use stable entity identifiers that it can resolve in related operations. The record-type specification defines which identifiers corresponding operations accept and what they identify. Where those operations are advertised, the Business MUST resolve those identifiers to the same entities. Publishing a feed does not require advertising those operations.

A Platform handles resolution failures through the corresponding operation's error contract. Stable identity does not guarantee availability or transaction success.

A Platform MUST NOT consume a snapshot that declares an extension entry it cannot place in either group. A Platform validates records for conformance with the record-type specification and recognized extensions, using record schemas where defined, and handles records that do not conform as Malformed Records. For a supplemental feed, it validates the composed record, since a supplemental record is partial by design.

links, when present, references terms and policies governing the Platform's use of the records in this snapshot. A terms_of_service link can identify the feed's data-use terms.

messages, when present, carries errors, warnings, or informational notices about the snapshot in the shape UCP responses use.

A manifest's ucp.capabilities says which capabilities and extensions a snapshot carries. The Business SHOULD also advertise them in its profile, so that a Platform can learn what the Business's feeds may carry before it fetches one. A manifest can declare one that the profile does not advertise, for example an extension the Business offers to one Platform.

A format value identifies the file contract, not record conformance, which is declared by ucp.capabilities (see Formats). A Platform that recognizes every declared extension but not the format MUST NOT consume the snapshot, and a Platform that recognizes the record type and the format MAY consume the snapshot regardless of unrecognized field-adding extensions.

The document at a feed entry's manifest URL: a complete materialization of one feed as of generated_at. Identified by (id, generated_at); once published, the manifest document does not change, and a correction is a new snapshot with a later generated_at and a distinct manifest URL. The manifest is authoritative; the feed list entry is for discovery.

Name Type Requirement Description
ucp UCP Feed Document Schema Required Declares the UCP version and the capabilities, including extensions, that govern this snapshot and its records. Same envelope as a UCP response.
id string Required The feed's identifier. Equals the id of the feed list entry whose manifest URL served this document.
format Reverse Domain Name Required Namespaced identifier for the snapshot's record layout, serialization, and compression, defined by an extension declared in ucp.capabilities. Applies to every file; record conformance is declared separately by ucp.capabilities.
context Context Required Equals the feed list entry's context; the manifest is authoritative. The conditions under which every record in the feed was resolved, each member single-valued. The capability that defines the feed's records states which members its feeds use and what each means. For a supplemental feed, its market override: the members it carries replace the base feed's in the feed it yields; empty when it overrides nothing.
extends OneOf[string, Array[string]] Optional Equals the feed list entry's extends: the id of each base feed this supplemental feed extends, one or more entries that each carry no extends. Use an array to extend more than one base feed. Present only for a supplemental feed, whose records are applied to the base records with the same id.
generated_at string Required Logical point in time of the snapshot. Every file in the manifest is consistent as of this instant. Strictly increasing per feed; equals the feed list entry's generated_at for the current snapshot.
expires_at string Required Time after which the Business no longer guarantees that the manifest and its files remain retrievable. Retention, not validity: a snapshot does not become wrong at expires_at; it may become unavailable.
files Array[File] Required Flat list of the files that together make up this snapshot; a single file is a one-element list. All files are mutually consistent as of generated_at, and the Business publishes every file before publishing the manifest that references it. A Platform that cannot retrieve every file does not treat the snapshot as complete.
links Array[Link] Optional Links to terms and policies governing the Platform's use of this snapshot's records.
messages Array[Message] Optional Errors, warnings, or informational messages about this snapshot.

File

One file in a snapshot, encoded per the manifest's format. files is a flat list; a single file is a one-element list.

url is an absolute HTTPS URL or a reference that a Platform resolves relative to the manifest's URL per RFC 3986. Any origin is permitted. The Business MUST publish every file over HTTPS; a Platform MUST NOT dereference a file URL that resolves to a non-HTTPS URL and MUST treat that snapshot as incomplete.

digest is an RFC 9530 Content-Digest dictionary value, for example sha-256=:BASE64:, with the same syntax and meaning UCP uses for Content-Digest in signing: it hashes the raw body bytes of the response, before any decoding. The digest binds the expected bytes regardless of URL reuse. The Business MUST include digest for every file served at a mutable URL.

For immutable files, the Business SHOULD include digest, unless the serving path re-encodes the bytes in transit so that a digest of the bytes as served cannot be computed in advance. The Platform MUST verify every provided digest against the file bytes it uses, including cached bytes, before treating the snapshot as complete. Unverifiable or mismatched digests are handled as described in Partial Fetch. digest is an integrity check over the bytes as served, not an authenticity check; authenticity derives from how the manifest URL was obtained (see Access and Provenance).

One file in a snapshot. Encoded per the manifest's format.

Name Type Requirement Description
url string Required Location of the file: an absolute HTTPS URL, or a reference relative to the manifest's URL. May be on any origin. File URLs SHOULD be immutable; mutable URLs require digest in every referring manifest.
digest string Optional RFC 9530 Content-Digest dictionary value for the file's bytes as served, e.g. sha-256=:BASE64:. Same syntax UCP uses for Content-Digest in signing. Optional but recommended for immutable file URLs; required for mutable ones. A Platform MUST verify provided digests, including cached bytes, before treating the snapshot as complete; an unverifiable or mismatched digest leaves it incomplete. It is not a signature and does not establish who published the file.

Contextual Feeds

A feed is resolved for one context: the conditions under which every record in it was resolved, each member single-valued. The record type states which members its feeds use and what each means. A Business that materializes more than one context publishes separate feeds, one per context, or one per context and format where it offers more than one format.

When the Business answers a request, it resolves the Buyer's context itself. When it publishes a feed, it relies on the Platform to do so. The Platform MUST honor the feed's context: it SHOULD NOT present the feed's records to a Buyer as resolved for a context other than the feed's. For example, it SHOULD show a product or promotion that the Business made available for one geography to Buyers in that geography.

If the Platform cannot match or understand a member of a feed's context, it SHOULD NOT present the feed's records as though that member were absent. For example, a Platform that can tell only a Buyer's country SHOULD NOT present records from a feed scoped to a postal code as valid for the whole country.

The Business MAY publish a record with the same identifier in more than one feed. Feeds are independent unless one extends another: no merge between them is defined. A Platform MUST NOT infer removal of a record from its absence in a different feed.

The Business MAY reference the same files from two feed entries when their resolved content is identical. Each entry still has its own manifest, because a manifest carries one context and one id, each equal to its entry's.

Snapshot Semantics

Snapshot and Removal

A manifest is a complete materialization of the feed for its context as of generated_at. A Platform that applies a snapshot MUST replace its prior copy of that feed with it. A Platform MUST NOT apply a snapshot whose generated_at is earlier than that of the snapshot it holds for the same feed. Absence of a record from a snapshot means the record is not offered in this feed's context. Absence carries no reason: unpublished, sold out, filtered, and deleted are indistinguishable. Absence in one feed says nothing about other feeds.

A supplemental feed's snapshot is complete in the same way. It carries every record the feed supplements, each with every member it sets, not the changes since its previous snapshot. A record absent from it is no longer supplemented, and the base record stands.

Consistency and Immutability

The Business MUST make all files in a manifest mutually consistent as of generated_at, and MUST publish every file before publishing the manifest that references it. The Business MUST NOT modify the manifest document after publication at a given (id, generated_at); a correction is a new snapshot with a later generated_at. The Business SHOULD use immutable file URLs, unless it uses mutable URLs in accordance with File.

Partial Fetch

A Platform that cannot retrieve every file in a manifest, cannot verify a provided digest, or finds a digest mismatch MUST NOT treat the snapshot as complete and MUST NOT apply removal semantics from it. The Platform keeps its prior copy of the feed until it applies a complete snapshot. On a digest verification failure, the Platform SHOULD re-read the feed list and fetch the current snapshot, unless Etiquette requires deferring those requests.

Malformed Records

A Platform SHOULD skip an individual malformed record and continue processing the file, unless the number or proportion of malformed records exceeds a threshold the Platform chooses, in which case it MAY reject the snapshot. This document specifies no threshold.

Etiquette

interval is advisory. A Platform SHOULD poll the feed endpoint no more often than the shortest interval among the feeds it consumes, unless the Business has agreed to a higher rate. A Platform SHOULD use conditional requests when fetching the feed list and manifests, unless the Business's responses carry no validators (for example, no ETag or Last-Modified). When to fetch a manifest at all is governed by the entry's generated_at (see Feed).

The Business MAY apply standard HTTP rate limiting to the feed endpoint, manifests, and files, for example 429 Too Many Requests or 503 Service Unavailable with Retry-After. A Platform that receives Retry-After MUST wait at least the indicated time before retrying that resource.

Retention

The Business SHOULD keep a manifest and the expected bytes of its files retrievable until expires_at, unless it is required to withdraw content it is no longer permitted to distribute. A file URL that still responds but serves different bytes does not satisfy this retention guidance. A Platform that finds a manifest or file no longer retrievable, whether before or after expires_at, SHOULD re-read the feed list and fetch the current snapshot rather than retry the missing URL, unless the Business signals a transient failure (for example, HTTP 503 with Retry-After).

Formats

format is an open vocabulary of reverse-domain identifiers. Each identifier names a concrete record-type representation profile defining record layout, serialization, and compression—not merely an encoding. Common Feed defines no universal format values and imposes no decoder-support obligation.

The Business MUST use a format defined by a record-type or other extension declared in the manifest's ucp.capabilities. A Platform MUST determine format support using the full identifier and MUST NOT infer a decoder from its suffix. A Platform MUST NOT consume a snapshot whose format is unknown, unsupported, or not defined by an extension declared in that manifest. Record conformance remains declared by the manifest's ucp.capabilities.

Each domain defines its own records and formats.

Access and Provenance

The Business advertises the capability in its profile under capabilities, with config.endpoint naming the feed endpoint (see Discovery). The profile carries exactly one feed URL, the entry point in config.endpoint; it carries no manifest or file URLs. The Business MUST NOT rely on the profile to convey any manifest or file URL; a Platform MUST NOT dereference as a feed URL any URL it did not obtain from the feed list at config.endpoint or from a manifest reached through it.

Manifest and file URLs are trusted because the feed list the Business declared in its profile returned them, not because of their hostname; the Business MAY host them on any HTTPS origin. The fetch-safety requirements in the Overview apply when a Platform dereferences them.

The Business MAY serve the feed endpoint publicly, or MAY require Platform authentication using any mechanism UCP already defines for requests to the Business. The operator of config.endpoint MUST follow UCP request conventions and, where the Business requires authentication, authenticate Platforms using a mechanism supported by the Business. A Platform treats a feed endpoint that does not meet these requirements as unavailable. The feed list is provisioned for the caller; a Business offers different feeds to different Platforms through this provisioning, not through separate profile entries.

For feeds returned only to authenticated callers, the Business MUST protect access to each snapshot's manifest and files, using resource-level authorization or unguessable URLs. The choice of mechanism is outside this capability.

Scopes

Feed access is Platform-level. No user-authenticated scope is defined for this capability; Buyer-level authentication is out of scope.

Extensibility and Supplemental Feeds

Extensions

An extension of the feed's record type declared in the manifest's ucp.capabilities MAY enrich records, in accordance with the record-type specification and using record schemas where defined.

An extension MAY define additional manifest fields, composing onto the manifest. Feed list entries are shared by every feed in the list and take no extension fields. An extension MUST NOT redefine the fields in this document.

Supplemental Feeds

A feed entry with extends is a supplemental feed. extends names, by id, one or more other entries in the same feed list: its base feeds. It is a string for one base feed or an array for several. A supplemental record is a partial record of the base feeds' record type, optionally carrying fields of the extensions its manifest declares. Its manifest declares that record type and those extensions; the rules in Manifest apply to it as to any other manifest.

Records join on id. A record type that supports supplemental feeds MUST give each record an id: a Business-assigned identifier, opaque to Platforms, stable across snapshots, and unique among the records of a feed. It MUST declare which of its lists are identified and give each element of an identified list an id with the same properties, unique within the list. A Platform applies a supplemental record to the base record with the same id and, inside an identified list, each supplemental element to the base element with the same id; each matches at most one. Lists the record type does not declare identified are replaced whole. The record-type specification defines any correspondence between these identifiers and the Business's live operations.

id is the Business's, whoever publishes the feed. A party that publishes a supplemental feed for the Business MUST use the Business's identifiers in id; identifiers of its own MAY travel as fields the extension defines and MUST NOT replace id. A supplemental record whose id matches nothing in the base is ignored, so a supplement keyed by any other identifier joins nothing.

A supplemental record carries only the members it sets. Each member it carries replaces the base record's member of the same name, whole, or adds it where the base has none: a supplement that carries price carries the complete price, amount and currency. A member set to null removes the base member. One kind of member works differently: an identified list, such as a Product's variants. An identified list is not replaced. Each supplemental element updates the base element with the same id using these rules; it cannot insert or delete an element. Unmentioned base elements stay unchanged, and unmatched supplemental elements are ignored. Every other list is replaced whole, like any other member: a supplement that carries a Product's categories carries the complete list. Because members are replaced whole, an incomplete member, such as a price without currency, produces a composed record that fails validation and is handled as Malformed Records, rather than one that silently keeps the base currency.

Design note

Supplemental feeds override and add members on records the base feed already carries. They never add records. The product feeds Platforms consume today work that way: a supplemental feed replaces attributes of the record with the same identifier, and a regional feed replaces price and availability per region. A supplement applies at the record level rather than at a path within it, because a path that selects the join level reaches one level per feed: a supplement that changes variant prices could not also correct the Product's price_range. A list keyed by identifier merges element by element rather than being replaced, because a record-level replacement of variants could not change one variant without restating them all.

Members replace whole rather than merging member by member so that the schema catches a partial member: a price without currency fails validation instead of inheriting the base currency. The keyed-list rule is the extension Kubernetes made to JSON Merge Patch for the same reason in its strategic merge patch (patchStrategy: merge with a patchMergeKey, today listType: map with listMapKeys), so that lists of containers or ports merge by name; it is also the shape of a database upsert keyed by primary key, applied to a nested record. One supplemental record can therefore correct a Product and the variants inside it in one step, and the Business, not the Platform, is responsible for the composed record being coherent. Joining on id is also why no join key is declared: id is the one member every record type that supports supplemental feeds guarantees present and unique. A publisher that carries a stable identifier of its own on the base, such as a feed manager's, could be allowed to name it as the join key in a later version, as an optional member defaulting to id.

A standalone entry's context is the context of its records. A supplemental entry's context decides which feed its records go into, and the Business MAY leave it empty. Against each base feed it names:

  • A context that is empty, or whose members all match the base's, changes the base feed in place.
  • A context with a member that differs from the base's is a market override. It yields a feed for another market, whose context is the base's with the supplemental feed's members on top. The base feed stays available unchanged. A feed that a market override yields is identified by its base feed and its context.

A Platform builds each feed from the base and every supplemental feed that names the base and fits. A supplemental feed fits a feed when each member its context carries has the same value in that feed's context. An empty context fits every feed. Supplemental feeds that go into the same feed apply in feed-list order; where two set the same member, the later feed's value stands.

These rules define each resulting feed, not how a Platform stores it: a Platform can keep one copy of a base feed and group its supplemental feeds by the feed they go into, or materialize each feed separately. Either way, each feed reflects only the supplemental feeds that fit it.

For example, three supplemental feeds extend a base feed whose context is US/en-US/USD:

Supplemental feed context Goes into
Compliance attributes empty US and Canadian feeds
Hourly US prices US/en-US/USD US feed
Canadian prices CA/en-CA/CAD Canadian feed

The US feed is the base with the compliance attributes and the hourly US prices. The Canadian feed, CA/en-CA/CAD, is the base with the compliance attributes and the Canadian prices.

The Business MUST make each feed correct for its context. A supplemental feed carries only members that are valid in every feed it goes into. One that changes a member also carries every member whose value depends on it. A Platform MUST NOT treat records as resolved for a context other than the base's unless it has applied every market override that fits that context.

  • A base feed stands alone. The Business MUST NOT name as a base an entry that itself carries extends; a Platform MUST NOT consume a supplemental feed if any name in its extends matches no entry in the feed list or matches an entry that itself carries extends.
  • A supplemental feed that names several base feeds is evaluated against each one separately. The Business MUST name only base feeds of the record type the supplemental feed's manifest declares; a Platform MUST NOT apply a supplemental feed to a base feed of another record type.
  • extends appears on the feed entry and on the manifest. The Business MUST keep the two equal: they name the same set of base feeds. Order carries no meaning, and a single name written as a string equals a one-element array. A Platform that finds a mismatch MUST NOT consume the snapshot.
  • The Business MUST NOT publish a supplemental record that matches no record in any base feed the supplemental feed names. A Platform MUST ignore a supplemental record it cannot match in its copy of a base feed.
  • Absence of a base record from a supplemental feed means the base record stands as it is; a supplemental feed never removes a base record. A supplemental feed cannot withhold a base record from a feed it goes into; a Business that offers a different set of records in a market publishes a standalone feed for it.
  • Base and supplemental snapshots can be generated at different times, and either can be the newer one, but the feed list publishes them together. Each feed list response names one snapshot of every feed. The Business MUST name only snapshots that build correct feeds together, and a Platform MUST build a feed from the snapshots named in one response.
  • A Business that wants the same supplement over several base feeds names them all in extends.
  • A Platform validates the composed record, not the supplemental record on its own (see Manifest).

Shopping Catalog Feed shows three worked examples: per-market prices applied to the Variants inside a base feed's Products, Platform-specific fields added to its Products, and one supplemental feed applied to several base feeds.

Future Work

Reserved by name for future versions, and defined nowhere in this document:

  • Incremental (delta) snapshots, including any finer-grained file layout needed to make them efficient.
  • Push notification of new snapshots.