Skip to content

RFC: external audience sources — pass-through references on sync_audiences #6540

Closed

Description

@bokelley

Background

#4324 (audience activation method) gives sellers a way to declare how audience data can reach them — sync_audiences push, dataset_query, clean_room, file_transfer, and (per the decision comment there) platform_distribution. But the declaration has no runtime leg: sync_audiences supports exactly one transport, inline hashed members in the request body (100K/call). A seller that declares dataset_query: snowflake.com has told the buyer a path exists; the actual transfer still happens entirely out of band, and the resulting audience has no protocol-visible identity, status, or match reporting.

This RFC adds the runtime leg: an audience in sync_audiences can carry an external source reference instead of inline member deltas. The data never transits AdCP — the protocol carries a pointer, and the audience lands in the same lifecycle (status enum, match breakdown, discovery, targeting overlays) as a pushed audience.

Proposal

Source reference on the audience object

The audience entry in sync-audiences-request.json becomes a choice: member deltas (add/remove, today's shape) or a source object. Mutually exclusive per audience — an audience is either buyer-pushed or externally sourced.

{
  "audience_id": "high_value_customers",
  "name": "High-value customers",
  "audience_type": "crm",
  "source": {
    "kind": "dataset",
    "vendor": { "domain": "snowflake.com" },
    "locator": "ACMECORP.AUDIENCES.HIGH_VALUE_V3",
    "access_expires_at": "2026-10-01T00:00:00Z"
  }
}

Two source kinds in v1, mirroring the #4324 patterns that need a runtime binding:

dataset — seller reads a table/share the buyer has granted access to (Snowflake Secure Data Sharing, Databricks Delta Sharing, BigQuery authorized views).

Field Required Description
kind Yes "dataset"
vendor Yes BrandRef of the sharing platform
locator Yes Vendor-native reference to the shared object (share/database/table path). Opaque to AdCP; meaningful to the vendor.
access_expires_at No ISO 8601 time after which the buyer will revoke the grant. Declarative — tells the seller when the pipe closes so re-read behavior is predictable.

platform_segment — vendor rails deliver the segment to the seller's declared destination (LiveRamp distribution). The buyer initiates distribution in the vendor's system, then calls sync_audiences to bind the incoming segment to an audience_id:

{
  "audience_id": "acme_loyalty",
  "source": {
    "kind": "platform_segment",
    "vendor": { "domain": "liveramp.com" },
    "segment_ref": "seg_88213"
  }
}
Field Required Description
kind Yes "platform_segment"
vendor Yes BrandRef of the distribution platform
segment_ref Yes Vendor-native segment/distribution identifier the seller should expect (or has received) at its destination

Clean-room flows are deliberately not a third kind: a clean-room match settles into either a shared output table (dataset) or a distributed segment (platform_segment). The match itself is out of protocol; its output binds through one of these two.

Flow

Dataset (grant-based):

  1. Buyer discovers the seller supports dataset_query and its consumer_identity via RFC: audience activation method (Snowflake / LiveRamp / direct API / clean rooms) #4324 declarations.
  2. Buyer grants access in the vendor's system (adds the seller to the share). Out of band — AdCP never touches credentials.
  3. Buyer calls sync_audiences with the source reference.
  4. Seller reads, matches, and the audience moves processing → ready / too_small exactly as today. Grant not in place → per-audience action: "failed" with an error.

Platform segment (destination-initiated):

  1. Buyer discovers the seller's platform_distribution destination from its RFC: audience activation method (Snowflake / LiveRamp / direct API / clean rooms) #4324 declaration.
  2. Buyer initiates distribution in the vendor's system.
  3. Buyer calls sync_audiences with segment_ref to bind the arriving segment to an audience_id. Order-independent — if the bind arrives before the segment, the audience sits in processing.
  4. Segment lands, seller matches, normal lifecycle.

Both flows reuse the existing async machinery unchanged: per-audience processing for matching latency, the operation-level submitted envelope for governance-gated or batched ingestion, push_notification_config for completion webhooks.

Column contract for dataset sources

The seller does the join on its side; the buyer never conforms to seller-internal schemas. To make that work without per-seller schema negotiation, the shared object MUST expose the canonical AdCP identifier columns, mirroring core/audience-member.json:

Column Type Semantics
external_id string Required. Buyer-assigned stable member identifier
hashed_email string SHA-256 of lowercase/trimmed email, per existing hashing requirements
hashed_phone string SHA-256 of E.164 phone
uid_type, uid_value string One row per universal ID, types matching supported_uid_types

Same normalization and hashing rules as the inline path — the transport changes, the data contract doesn't. Sellers MAY accept additional columns via out-of-band agreement; the canonical columns are the interoperable floor. A seller needing the data "joined with" its own tables does that join internally against these columns.

Discovery invariant (the important part)

Externally sourced audiences MUST appear in discovery-only sync_audiences responses (omitted audiences array) identically to pushed audiences: same status enum, same match reporting (matched_count, effective_match_rate, match_breakdown), same targetability by audience_id in audience_include/audience_exclude. The response echoes the source (kind + vendor + locator/segment_ref — never credentials) so a buyer can tell how each audience is fed.

There is no new list_audiences task — discovery-only sync_audiences already is one, and this RFC makes it the single pane for audiences regardless of transport. "I call sync_audiences, I see it back" is the contract.

Count semantics for external sources: uploaded_count = rows read in the most recent ingest; total_uploaded_count = cumulative distinct members ingested; matching fields unchanged.

Refresh

A standing grant is a live pipe, which is a genuine advantage over push: while access lasts, the seller MAY re-read the source to keep membership current, reporting each read via last_synced_at. No new machinery in v1 — buyers who want a snapshot semantics revoke the grant after ready.

Access expiry is not deletion

access_expires_at (and grant revocation generally) bounds the access window, not what the seller matched during it. Revoking a Snowflake grant does not claw back the matched audience — exactly as un-pushing is impossible on the inline path. Retention, deletion, and data-subject requests remain governed by the buyer–seller data processing agreement, per the existing privacy considerations. Spec text MUST state this so nobody markets expiry as a privacy feature. Net: the grant path is no riskier than pushing hashed members — arguably less so (no PII transits the protocol or intermediaries, access is revocable and auditable in the vendor's logs).

Intermediaries / pass-through

An orchestrator or intermediary can advertise the union of its upstream sellers' activation methods and forward source references upstream without ever touching member data — pure processor posture. This is the pass-through model: the intermediary never accepts hashed members it doesn't need; it routes pointers. Inline pushes to an intermediary that upstream sellers can accept are forwarded as-is under the existing DPA chain.

Validation rules

Constraint Rule
source vs add/remove Mutually exclusive on an audience entry (oneOf)
source vs delete delete: true ignores source (existing precedence)
Kind fields dataset requires locator; platform_segment requires segment_ref; cross-kind fields forbidden
Capability gate Buyers MUST NOT send source kinds the seller hasn't declared the corresponding #4324 pattern for; sellers reject undeclared kinds with UNSUPPORTED_FEATURE
Secrets locator/segment_ref are references, never credentials; requests carrying credential material are rejected (CREDENTIAL_IN_ARGS)

Open questions for WG

  1. Error code for source read failures. Grant missing/revoked, locator not found, vendor outage. FEED_FETCH_FAILED is creative-feed-scoped; candidate new code SOURCE_ACCESS_FAILED with error.field distinguishing auth vs. not-found vs. transient. New codes need both enumDescriptions and enumMetadata entries.
  2. file source kind in v1? RFC: audience activation method (Snowflake / LiveRamp / direct API / clean rooms) #4324's file_transfer (bucket push/pull) could bind the same way (kind: "file", bucket locator). Lean defer — bucket drops usually come with vendor-specific manifest conventions, and the two v1 kinds cover the platforms with real pull (Snowflake, Databricks, LiveRamp).
  3. Refresh cadence hint. Should the buyer be able to request a re-read cadence (refresh: "daily"), or is seller-discretion-while-granted enough for v1?
  4. Per-source identifier intersection. A seller might match uids from a dataset but not hashed_phone (ties to RFC: audience activation method (Snowflake / LiveRamp / direct API / clean rooms) #4324 OQ4). v1 ignores; match_breakdown already reveals what resolved.

Out of scope

Related

Activity

  1. added
    rfc
    schema
    needs-wg-review
    media-buy
    on Aug 14, 2026
  2. added
    claude-triaging
    on Aug 14, 2026
  3. bokelley commented on Aug 14, 2026

    @bokelley
    ContributorAuthor

    Triage

    Classification: RFC / Feature request
    Bucket(s): spec / protocol, signals
    Status: deferred

    Blocked-on: #4324 — resurfaces on merge


    Triaged by Claude Code. Session: https://claude.ai/code/session_01MkEf5SDYrstNvuLtJ69TFX


    Generated by Claude Code

  4. added
    claude-triaged
    signals
    and removed
    claude-triaging
    on Aug 14, 2026
  5. bokelley commented on Aug 14, 2026

    @bokelley
    ContributorAuthor

    Grant mechanics — how the consumer-identity exchange works

    The RFC says "buyer grants access in the vendor's system" without specifying what gets exchanged first. Resolving that here, because it determines whether this design needs a credential channel (it doesn't).

    No secret crosses AdCP

    In every supported vendor flow, the thing the seller publishes is a principal identifier, not a credential. The buyer grants to that identity inside the vendor's system; the seller authenticates to the vendor with its own credentials, which the buyer never sees.

    Vendor Seller publishes Buyer's grant action
    Snowflake (Secure Data Sharing) Account identifier (SELLERORG.INGEST_ACCT) ALTER SHARE audience_share ADD ACCOUNTS = SELLERORG.INGEST_ACCT
    Databricks (D2D Delta Sharing) Metastore sharing identifier (aws:us-east-1:<uuid>) CREATE RECIPIENT ... USING ID '...'; GRANT SELECT ON SHARE ...
    BigQuery (authorized views / Analytics Hub) Service-account email IAM grant (roles/bigquery.dataViewer) or listing subscription to that principal

    These identifiers are stable, non-secret facts about the seller — the same trust class as a TMP agent_url. They belong in the static #4324 declaration, not in a runtime handshake.

    consumer_identity → consumer_identities[] (qualified)

    One refinement to the field proposed on #4324: it must be an array with cloud/region qualifiers, not a single string. Snowflake direct shares are region-scoped, and a Databricks metastore is bound to one cloud+region — a seller ingesting from buyers across regions publishes one consumer identity per region (or a listing with auto-fulfillment, which is still a distinct identity):

    {
      "pattern": "dataset_query",
      "vendor": { "domain": "snowflake.com" },
      "consumer_identities": [
        { "id": "SELLERORG.INGEST_US", "cloud": "aws", "region": "us-east-1" },
        { "id": "SELLERORG.INGEST_EU", "cloud": "aws", "region": "eu-central-1" }
      ]
    }

    The buyer picks the identity matching (or reachable from) the region where its data lives.

    Ordering: pre-grant, then call

    Because the identity is static and discoverable, the happy path is one runtime call:

    1. Buyer reads consumer_identities from the seller's declaration.
    2. Buyer grants in the vendor's system.
    3. Buyer calls sync_audiences with the source reference.
    4. Seller reads and matches; normal lifecycle.

    A missing or revoked grant at read time is a retryable per-audience failure (action: "failed" with the source-access error from open question 1), not a new lifecycle state. An awaiting_grant handshake state was considered and rejected: it adds a state machine to solve an ordering problem that static declaration already solves, and the failure path degrades to the same buyer action (grant, retry).

    Exclusion: paths requiring secret transfer

    Databricks open sharing (non-Databricks recipients) issues a bearer-token activation link from provider to recipient — a real secret the buyer would have to deliver to the seller. That violates the no-credentials-in-protocol boundary (CREDENTIAL_IN_ARGS), so it is out of scope: D2D only. Generalized rule for the draft: a dataset source path is in-protocol only when the vendor's grant model is grantee-identified (grant to a named principal) rather than token-bearer (possession of a secret). Token-bearer paths remain out-of-band integrations.

    This resolves the account-setup portion of "out of scope: credential exchange" — there is no credential exchange to design. The only setup exchange is a public identifier, and it rides the existing declaration surface.

  6. EvgenyAndroid commented on Aug 14, 2026

    @EvgenyAndroid
    Contributor

    Support this. The pointer-not-payload split is right, and the grant-mechanics comment closes the account-setup question: a grantee-identified principal is the same trust class as an agent_url, and the token-bearer exclusion gives the WG a test instead of a vendor list.

    Five items. The first three are about what a reported count means once the buyer stops controlling the transport.

    1. Require last_synced_at when source is present (OQ3)

    Seller-discretion re-read is right for v1, and no refresh hint yet. But it changes what a count means. On the inline path the buyer knows when it last pushed, so matched_count anchors to an event the buyer controls. Under a standing grant it doesn't. Two observations of the same audience_id can differ because membership changed, because match rate changed, or because the seller re-read, and the response can't currently tell you which.

    last_synced_at is already in the response. Make it required when source is present, and say in the field docs that for externally sourced audiences every count field is as-of that timestamp.

    Separately: total_uploaded_count is cumulative distinct and monotonic, so it isn't a size metric. One sentence saying so keeps it off sizing dashboards.

    2. Echo the identifier columns the seller read (OQ4)

    match_breakdown reveals what resolved, not what was offered. On the inline path those are the same thing, since the buyer built the payload. On a dataset they aren't: the buyer grants a table and the seller picks columns.

    A buyer with zero phone matches then can't separate bad phone data from a seller that never read the column. Same effective_match_rate, different fix.

    One array on the response source object covers it, with no new task and no lifecycle change:

    "source": {
      "kind": "dataset",
      "vendor": { "domain": "databricks.com" },
      "locator": "ACMECORP.AUDIENCES.HIGH_VALUE_V3",
      "columns_read": ["external_id", "hashed_email", "uid_value"]
    }

    Same shape as #6013: where the derivation drops something, the response says so.

    3. A bound segment that never arrives has no terminal state

    Order-independence is worth keeping, but an audience bound to a platform_segment that never lands sits in processing with no timeout and no signal. A buyer polling discovery can't separate "still matching" from "nothing arrived."

    Sellers MAY expire an unfulfilled bind after a declared window and report action: "failed" with reason bind_expired, the window declared alongside the seller's platform_distribution pattern in #4324. Buyer's action is the same as the missing-grant path: fix the vendor side, retry.

    4. OQ1: new code, with retryability explicit

    SOURCE_ACCESS_FAILED over overloading FEED_FETCH_FAILED, agreed. The axis buyers act on is retryable vs terminal: a missing grant retries after the buyer acts, a bad locator needs a changed request, a vendor outage retries with no buyer action at all. Put that mapping in enumMetadata rather than leaving each implementer to infer it.

    5. OQ2: defer file, and write down what brings it back

    Agreed on deferring. The grant-model rule from the mechanics comment already gives the criterion: an IAM-granted bucket is grantee-identified and admissible on the same terms as a share, a presigned URL is token-bearer and isn't. Put that in the deferral note and file comes back later as a mechanical addition rather than a redesign.

    Two smaller ones

    consumer_identities[] with cloud/region qualifiers is right. One line should note that granting to an identity in another region may itself be a transfer, and that call sits with the buyer under its DPA. No new field, and it stops the qualifier reading as a latency detail.

    The column contract inherits external_id as required: core/audience-member.json requires it plus at least one of hashed_email / hashed_phone / uids. Consistent for the inline mirror, but clean-room outputs are meant to bind through dataset, and a match output keyed only on a resolved identifier may not carry a buyer-assigned external_id. If the buyer is expected to materialize one in the shared view, say so. "The buyer never conforms to seller-internal schemas" is doing real work in this RFC, and that's the one place the buyer has to shape the object.

    Happy to turn 1–3 into a PR against sync-audiences-request.json, sync-audiences-response.json, and the error enum once #4324 merges and this comes off deferred.

  7. lukasz-pubx commented on Aug 14, 2026

    @lukasz-pubx
    Contributor

    Reviewed against the spec tree at 9288de4e and live docs (build 3.1.2), with vendor mechanics fact-checked against current Snowflake/Databricks/BigQuery/LiveRamp documentation. Support the direction: pointer-not-payload is right, reusing the existing lifecycle/async machinery and the discovery invariant is right, and everything the RFC cites checks out (audience-status transitions, UNSUPPORTED_FEATURE / CREDENTIAL_IN_ARGS / FEED_FETCH_FAILED all exist). The items already raised in this thread (last_synced_at, columns_read, bind_expired, retryability metadata) I agree with and won't repeat.

    Scope question: does this belong in the Signals Protocol too?

    I came in wondering whether source should extend beyond sync_audiences — the instinct being that an ID match against a third-party provider's signal (millions of IDs) is impractical via sync_audiences. After tracing it: no, and the RFC's scoping is correct, for two reasons worth writing down.

    First, third-party segment activation never routes member data through the buyer. The provider syndicates membership to the platform over its own rails, keyed to IDs the buyer doesn't possess; marketplace licenses grant activation rights, not possession of the member file. The buyer-side artifact is a segment reference, never a roster — which is exactly what the Signals Protocol already carries (signal_agent_segment_id → activation_key). There is no member-ingestion surface in signals to extend source into, by design.

    Second, the scale objection dissolves under this RFC: a source pointer to a 50M-row share is the same-size message as one to 50K rows. The one case where a buyer legitimately holds third-party-matched data at scale — a clean-room output over the buyer's CRM, or a licensed append — is first-party from the protocol's perspective, and dataset binding is the right home for it.

    The ask that falls out of this: there is a signals-adjacent gap nearby — when a signal is activated on a type: "agent" destination, how membership reaches that seller is unspecified, and the plausible rails are the same two defined here. Rather than widening this RFC, make the source object reusable: define it as a core/ schema (like audience-member.json, destination.json) instead of inline in sync-audiences-request.json, and add one line to Out of scope naming the signal-agent → agent-destination delivery leg as a future consumer. The issue already carries both media-buy and signals labels; this makes that structural instead of duplicative later.

    Findings

    1. Grant revocation vs. audience status is undefined — two conformant sellers diverge on a path that commits spend. The RFC implies the audience stays targetable after revocation ("Revoking a Snowflake grant does not claw back the matched audience"; snapshot-by-revoking-after-ready). But audience-status.json defines suspended as covering "consent expiry, PII audit failure, TTL expiry, or policy enforcement," which a seller could plausibly read as including a revoked grant. Seller A keeps the audience ready on frozen membership and the campaign keeps spending; seller B suspends and surfaces an impairment. Ask: state normatively that loss of source access does not change audience status — last matched state persists, last_synced_at freezes, and failed re-reads MUST NOT emit suspended — or define a distinct source-health field. Either works; silence doesn't.

    2. Transport conversion across syncs is undefined. "An audience is either buyer-pushed or externally sourced" reads as a lifetime invariant, but the proposed oneOf only enforces it per request entry, and upsert semantics make a later source call against a previously pushed audience_id schema-valid. Reject, convert, or union — three divergent conformant behaviors. Ask: pin one — fix transport at creation and reject cross-transport upserts with a specific error, or define conversion semantics explicitly.

    3. segment_ref needs an ID-space declaration, and the flow text should acknowledge days-scale latency. LiveRamp delivers with LiveRamp catalog segment IDs, but many destinations mint their own segment ID at ingest — the Connect-side ID the buyer knows is often not the identifier the seller's system sees, which breaks the handshake exactly where it's meant to close. Distribution latency is 1–3 days plus auto-refresh on a ~5-day cadence, which matters for the bind_expired window discussed above. Ask: specify whose ID space segment_ref is in (the vendor's identifier as issued to the buyer is the defensible pick, with the seller owning the vendor-side mapping), and note the latency band so bind-expiry windows are set realistically.

    4. The grantee-identified / token-bearer rule must be per-flow, not per-vendor, and two region claims need correcting. The rule is right in spirit but it isn't "D2D in, open sharing out": Databricks open sharing with OIDC token federation is grantee-identified (the federation policy names the recipient's IdP principal; no bearer secret exists), while Snowflake's Open Data Sharing (Iceberg REST, Programmatic Access Tokens) is token-bearer inside a vendor otherwise classified as grantee-identified. Separately: Databricks D2D is not region-restricted — the sharing identifier is region-qualified but the grant works cross-region/cross-cloud (provider pays egress) — and BigQuery grants to any IAM principal, not only service accounts. Ask: write the admissibility rule as a property of the specific flow's auth mechanism ("the grant names a principal; no secret is conveyed"), and reframe consumer_identities[] qualifiers as routing/cost hints rather than grant boundaries.

    5. The clean-room clause overreaches for walled gardens. "A clean-room match settles into either a shared output table or a distributed segment" holds for neutral rooms (AWS Clean Rooms, Snowflake DCR, LiveRamp/Habu) but not for the largest rooms by usage: ADH and AMC audience outputs land only inside Google media and Amazon DSP respectively, and PAIR output is usable only inside the participating DSP — never a portable table or third-party-distributable segment. Ask: scope the sentence to "where the clean room can export its output."

    Smaller notes

    • Hashed-phone pre-hash grammar. Platforms disagree on the pre-hash string (Google hashes E.164 with the leading +, Meta wants digits-only), and hashes are one-way — a table storing one form yields ~0% match against a receiver expecting the other. core/audience-member.json already pins E.164-with-+; the column contract inherits this rather than introducing it, but one sentence — "this is the canonical form; receivers needing other forms cannot re-derive" — prevents silent match-rate loss on the dataset path, where the seller rather than the buyer discovers the mismatch.
    • "Keep membership current" → "as current as the share's replication lag." Direct shares and D2D reads are zero-copy live; once cross-region replication or listing auto-fulfillment is in the path, freshness is bounded by the replication schedule.
    • The GDPR one-liner suggested above should name the right boundary. Under EDPB Guidelines 05/2021, remote read access by a third-country importer is itself a Chapter V transfer — but the test is the recipient entity's jurisdiction, not the cloud region of the grantee account. Region-qualified identities are an engineering proxy, not the compliance boundary.
    • Motivation nit: the 100K cap isn't the real inline pain — chunked push is routinely viable to ~5M members; what breaks first is call-count per refresh and delta orchestration. The RFC's case is stronger than stated: a standing grant eliminates refresh churn entirely.
  8. bokelley commented on Aug 14, 2026

    @bokelley
    ContributorAuthor

    Maintainer resolutions

    Consolidating decisions on both reviews so the draft can move the moment #4324 merges and this comes off deferred. Everything below is accepted-with-shape or decided; nothing reopens the design.

    Signals scope + core/ factoring — accepted, with two named future consumers

    The scoping analysis is right and worth writing into the RFC body: signals is already pointer-native (signal_agent_segment_id → activation_key), the buyer never holds a third-party roster, and the scale objection dissolves once the message is a pointer. Accepting the structural ask: source becomes core/audience-source.json, referenced from sync-audiences-request.json rather than defined inline.

    Out of scope will name two future consumers, not one:

    1. Signal delivery to type: "agent" destinations — how membership reaches a seller agent on activation is unspecified today, and the plausible rails are exactly these two kinds.
    2. Seed handoff for custom signal creation — a buyer commissioning a modeled/custom signal from a signal agent needs to expose seed data; that's the same source object pointed the other direction (buyer grants the signal agent read access to a seed table).

    Neither expands this RFC. Both are why the schema is core.

    F1 — Loss of source access MUST NOT change audience status

    Decided, and here's the argument that settles it: the seller cannot reliably distinguish revocation from expiry from a transient vendor outage — all three observables are "the read failed." Any rule keyed on why access was lost is unimplementable; the only implementable rule keys on read failure, and a transient outage obviously must not suspend an audience. So:

    • Loss of source access (revocation, access_expires_at passing, or read failure of any cause) MUST NOT change status. Last matched state persists and remains targetable; last_synced_at freezes. Failed re-reads MUST NOT emit suspended — that value stays reserved for the policy/consent causes audience-status.json already enumerates, which remain available and orthogonal (a consent-basis expiry can still suspend an externally sourced audience; transport health cannot).
    • Source health gets its own surface on the echoed source: access_status: "active" | "unavailable", set after a failed read, cleared on the next successful one. With required-last_synced_at (E1) this tells the buyer both that the pipe is down and how stale the membership is.
    • This is push-path parity: an inline audience is always frozen membership between syncs, and transport health was never a status input there either. Teardown stays an explicit buyer action (delete: true); reads-stopped is not deletion, per the existing access-expiry-is-not-deletion text.

    F2 — Transport is fixed at creation

    Cross-transport upserts (member deltas against a sourced audience, or source against a pushed one) are rejected with CONFLICT (existing code), error.field: "audience_id", and a message naming the audience's transport. Conversion path is delete-and-recreate under the buyer's control. Union and in-place conversion both make the count fields unintelligible and silently merge data across different trust postures; reject is the only behavior with clean semantics. The lifetime invariant gets stated normatively since the oneOf can only enforce per-entry.

    F3 — segment_ref ID space + latency

    Decided per the review's recommendation: segment_ref is the vendor's identifier as issued to the buyer (the ID the buyer can actually observe in the vendor's console/API). The seller owns the vendor-side mapping to whatever its ingest minted — it configured the destination and is the only party that can see both sides. Flow text gains the latency band (days-scale initial distribution, multi-day refresh cadence), and the bind_expired window (E3) declared with the #4324 platform_distribution pattern MUST accommodate it — a window shorter than the vendor's documented distribution latency is non-conformant by construction.

    F4 — Admissibility is per-flow; two corrections accepted

    The rule moves off vendor names onto the auth mechanism: a flow is in-protocol when the grant names a principal and no secret is conveyed through any channel this protocol occupies. Databricks open sharing under OIDC token federation qualifies; Snowflake token-bearer flows (PATs, Iceberg REST with bearer tokens) don't, whatever the vendor's default classification. The grant-mechanics comment above stands corrected on both factual points: D2D grants work cross-region/cross-cloud (identifier is region-qualified, not region-restricted; provider pays egress), and BigQuery grants to any IAM principal. consumer_identities[] qualifiers are accordingly reframed as routing/cost hints, not grant boundaries — and per the EDPB note, not compliance boundaries either: the Chapter V test is the recipient entity's jurisdiction, not the grantee account's cloud region. The DPA-responsibility line lands with that framing.

    F5 — Clean-room clause scoped

    "Settles into a shared table or distributed segment" gets scoped to rooms that can export output. Walled-garden rooms (ADH, AMC, PAIR) activate inside their own platforms and never traverse this surface — one sentence, no schema impact.

    Evgeny's 1–5 — all accepted as shaped

    1. last_synced_at required when source present; all count fields documented as as-of that timestamp; total_uploaded_count explicitly not a size metric.
    2. columns_read echoed on the response source object.
    3. bind_expired terminal path; window declared alongside platform_distribution in RFC: audience activation method (Snowflake / LiveRamp / direct API / clean rooms) #4324 (floor set by F3's latency band).
    4. SOURCE_ACCESS_FAILED as a new code with retryability mapping in enumMetadata (buyer-action-retryable / changed-request / no-action-retryable) — and both enum surfaces updated.
    5. file deferred with the readmission criterion recorded: IAM-granted bucket access is grantee-identified and admissible on the F4 rule; presigned URLs are token-bearer and stay out.

    On the external_id gap for clean-room outputs: decided — the buyer materializes external_id in the shared view, and aliasing the room's resolved key (or any stable per-row key) is sufficient. That's the one acknowledged place the buyer shapes the object, and the column-contract text will say so explicitly rather than letting "never conforms to seller-internal schemas" imply otherwise.

    Smaller notes — all in

    Canonical-form sentence on hashed identifiers (one-way, no re-derivation — E.164-with-+ is the form); "current as of the share's replication lag" replaces "current"; motivation reframed around refresh churn and delta orchestration rather than the 100K cap.


    @EvgenyAndroid — taking you up on the PR offer for items 1–3 once #4324 merges; the resolutions above should give the draft everything else it needs in one pass.

  9. bokelley commented on Aug 15, 2026

    @bokelley
    ContributorAuthor

    Third leg filed: #6552 (signal delivery methods — provider-initiated delivery to agent destinations). Closes the gap named in review here; consumes the core/ schemas this RFC factors out, and includes the three-RFC connection diagram.

  10. bokelley commented on Aug 24, 2026

    @bokelley
    ContributorAuthor

    WG approved the audience work for 3.2 as experimental (feature id media_buy.audience_activation, shared with #4324 as one cluster). This RFC remains queued behind PR #6549; when it lands, the source-reference schema changes should carry x-status: experimental under the same feature id — no separate declaration needed. @EvgenyAndroid the PR offer for items 1–3 is now unblocked as soon as #6549 merges.

  11. removed
    needs-wg-review
    on Aug 24, 2026
  12. added this to the 3.2.0 milestone on Aug 24, 2026
  13. sarah-hord-db commented on Aug 26, 2026

    @sarah-hord-db

    @lukasz-pubx - Confirming the resolution from the Databricks side, because it matches how Delta Sharing actually behaves: revoking a share or removing a recipient only stops the consumer's future reads. It does not reach back and claw back data the consumer already read. So #6857's rule #2 is correct for the Databricks D2D path: membership freezes at the last successful read and stays targetable, last_synced_at freezes, and a failed re-read surfaces through source.access_status rather than flipping the audience to suspended.

  14. EvgenyAndroid commented on Aug 26, 2026

    @EvgenyAndroid
    Contributor

    Databricks-specific implementation notes for the dataset path

    Three implementation-level questions came up alongside the design work above — answering them here so they're on the record.

    Canonical locator format

    Two distinct references, kept separate:

    Who reads the data — the consumer identity declared once via #4324's consumer_identities[] (region-qualified per the grant-mechanics comment above): <cloud>:<region>:<uuid>, e.g. aws:us-east-1:19a84bee-54bc-43a2-87de-023d0ec16016. Same trust class as an agent_url — safe to publish, never a credential. Per F4, the qualifier is a routing/cost hint, not a grant boundary: D2D grants work cross-region/cross-cloud (provider pays egress), so a seller isn't restricted to reading only same-region shares.

    What to read — the source.locator on the sync_audiences call, a Databricks-native pointer, opaque to AdCP:

    share://<provider_sharing_identifier>/<share_name>/<schema>.<object>
    

    example: share://aws:us-east-1:<provider-uuid>/acme_audiences/suppression.high_value_v3

    The seller resolves this against the share it was granted (matched on provider identifier + share name) and reads the object. access_expires_at is optional/declarative — it tells the seller when the grant closes; it doesn't change how the locator resolves.

    @sarah-hord-db — is share://<provider_sharing_identifier>/<share_name>/<schema>.<object> an existing Databricks-native reference shape, or should we document this as an AdCP-defined opaque-locator convention for the path specifically? locator is opaque to AdCP and meaningful only to the vendor per the RFC, so it doesn't strictly need to mirror an existing Databricks API — but worth pinning down which it is before this becomes the documented example sellers implement against.

    Reference audience-share template (shared object schema)

    The buyer exposes a Delta view carrying the canonical AdCP identifier columns — identical contract to the inline path; only the transport changes.

    Column Required Semantics
    external_id Yes buyer-assigned stable member id
    hashed_email No SHA-256 of lowercased and trimmed email
    hashed_phone No SHA-256 of E.164 phone (with leading +)
    uid_type, uid_value No one row per universal ID

    One share can serve many publishers via a recipient-property row filter, so the buyer or broker publishes once and each publisher sees only its entitled rows:

    CREATE FUNCTION audience_rls(pub STRING)
    RETURN pub = CURRENT_RECIPIENT('publisher_id');
    ALTER TABLE broker.audiences.master SET ROW FILTER audience_rls ON (publisher_id);

    The seller does the join against these columns on its side; the buyer never conforms to seller-internal schemas. Membership is live — the seller's next read reflects the current view, bounded only by the share's replication lag.

    Identity handshake (no secret ever crosses AdCP)

    1. Seller declares its sharing identifier as consumer_identities[] (RFC: audience activation method (Snowflake / LiveRamp / direct API / clean rooms) #4324).
    2. Buyer, in Databricks (out of band):
    CREATE SHARE acme_audiences;
    ALTER SHARE acme_audiences ADD VIEW broker.audiences.suppression_v3;
    CREATE RECIPIENT publisher_x USING ID 'aws:us-east-1:<seller-uuid>';
    ALTER RECIPIENT publisher_x SET PROPERTIES ('publisher_id' = 'pub_x');
    GRANT SELECT ON SHARE acme_audiences TO RECIPIENT publisher_x;
    1. Buyer calls sync_audiences with source.locator.
    2. Seller reads, matches, audience moves to ready. No grant → per-audience failed.

    The only thing exchanged in-protocol is a pointer. The grant names a principal in Databricks; no token is conveyed, which satisfies CREDENTIAL_IN_ARGS.

    For non-Databricks (open-sharing) recipients: OIDC token federation (the recipient authenticates via its own identity provider) is grantee-identified and in scope, per F4. The classic bearer-token recipient profile is token-bearer and stays excluded.

    Access expiry is not deletion — matches #6857 rule #2: revoking the grant freezes the last matched state; it does not claw back what was matched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claude-triagedmedia-buyrfcschemasignals

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions