Repository navigation
trusted-match: bar single-user content from context_signals.embedding - #7415
EvgenyAndroid wants to merge 1 commit into
Conversation
Closes the normative half of adcontextprotocol#7393. ContextSignals is gated on form ("only classified outputs"), which a dense vector satisfies by construction while still carrying the content. On ai_assistant properties the "content environment" for one Context Match can be a single user's turn, and the spec's own usage guidance names conversation turns as a context_signals use case without restriction. data-protection-roles.mdx already flags the scenario ("if a publisher's context_signals are specific enough to identify an individual (e.g., a unique AI conversation summary), the contextual path could carry de facto identity"), but that is lowercase guidance on an explainer page, it names summary rather than embedding, and it never mentions embedding at all. An implementer reading the field table sees nothing. The distinction that makes embedding the field worth naming: a publisher can read a summary before sending it and instruct a classifier to leave things out. Nobody can look at a vector and see what leaked. Two additive edits, no schema change, no field added or removed. A publisher already sending article-level embeddings on a website property stays conformant.
| | `artifact` | Artifact | No | Full content artifact adjacent to this ad opportunity. Same schema as content standards evaluation. The publisher sends the full artifact when they want the buyer to evaluate the actual content. Contractual protections govern buyer use. TEE deployment upgrades contractual trust to cryptographic verification. | | ||
| | `artifact_refs` | List\<ArtifactRef\> | No | Public content references the buyer can resolve independently. Each has a `type` (one of: `url`, `url_hash`, `eidr`, `gracenote`, `isrc`, `gtin`, `rss_guid`, `isbn`, `custom`) and a `value`. For URL-addressable content, the buyer may have pre-classified these. Use `url_hash` when the publisher prefers not to reveal the URL (contextual clean room). | | ||
| | `context_signals` | ContextSignals | No | Pre-computed classifier outputs for the content environment. Use when content is ephemeral (conversation turns, search queries) or to supplement artifact-based matching. Can replace `artifact_refs` entirely. Raw content MUST NOT be included — only classified outputs. The publisher is the classifier boundary. | | ||
| | `context_signals` | ContextSignals | No | Pre-computed classifier outputs for the content environment. Use when content is ephemeral (conversation turns, search queries) or to supplement artifact-based matching. Distinguish ephemeral content that many users encounter (a trending query, a syndicated segment) from ephemeral content authored by one user in one session: `embedding` is appropriate for the first, and for the second populate `topics`, `keywords`, `sentiment`, `language` and `summary` instead. Can replace `artifact_refs` entirely. Raw content MUST NOT be included — only classified outputs. The publisher is the classifier boundary. | |
There was a problem hiding this comment.
Medium: This example collides with the MUST NOT added on line 77. Edit 1 lists search queries among the content publishers MUST NOT populate embedding from ("content authored by a single user within a single session (conversation turns, search queries, prompts)"). Edit 2 here lists "a trending query" as ephemeral content where "embedding is appropriate." A trending query is a search query — the two examples put the same content class on opposite sides of a privacy-critical MUST NOT. An implementer handling search queries reads line 77 as "never send embedding" and line 59 as "send embedding if it's trending," with no way to reconcile them.
The load-bearing distinction you intend is uniqueness, not surface type: a query typed by thousands is not identifying; a bespoke prompt is. Say that. Either drop search queries from the line-77 parenthetical, or requalify it (e.g. "a single user's search query / prompt") so the trending-query carve-out on this line doesn't contradict the prohibition.
There was a problem hiding this comment.
Ladon verdict: Comment (human reviewer recommended)
Comment — 1 medium finding; not auto-approvable.
This PR is a two-line docs edit to docs/trusted-match/specification.mdx adding a normative MUST NOT on populating context_signals.embedding from single-user single-session content.
Medium findings
- docs/trusted-match/specification.mdx:59 — Self-contradiction: Edit 1 (line 77) forbids embedding for "search queries" while Edit 2 (line 59) permits it for "a trending query" — the same content class on both sides of a privacy-critical MUST NOT. A human should resolve which side is correct before this normative language ships.
No schema, dist, changeset-scoped, or operational surface was touched, so schema↔docs coherence and changeset-scope gates do not apply. No critical/high findings. gated_paths is false, so the REVIEW_REQUIRED status does not force escalation via row 2. The single medium finding falls below the row-8 threshold (3+ mediums) and is not in a data-loss/schema/infra category, so no escalation trigger fires. The self-contradiction in privacy-critical normative language warrants a human eye before merge, which is why this surfaces as comment rather than approve.
|
Closing as superseded by #7396, which landed the same normative privacy boundary on current main in a stronger and internally consistent form. Current text explicitly distinguishes shared/trending content from a single user’s query, prohibits embeddings computed directly or indirectly from non-public single-user/session content, constrains the remaining derived fields, and adds the requirement to the Privacy Requirements section. That also resolves the review concern about the ambiguous |
Closes the normative half of #7393. The caching item raised there is split out as #7414 and is not in this PR.
Two additive text edits to
docs/trusted-match/specification.mdx. No schema change, no field added, removed or retyped. A publisher already sending article-level embeddings on awebsiteproperty stays conformant.Edit 1 —
embeddingrow of theContextSignalsfield tableAppends to the existing description:
This is an unqualified MUST NOT. An earlier draft carried an exception for vectors computed over a publisher-authored classification, conditioned on the publisher being able to demonstrate non-reversibility on request. The #7393 triage was right that this is unenforceable — the condition is invisible on the wire, so it reads as a free escape clause. Dropped.
Edit 2 —
context_signalsrow of the Context Match request field tableInserts after the existing ephemeral-content sentence:
Edit 1 alone leaves the usage guidance pointing at conversation turns with no caveat, and the usage guidance is where an implementer starts.
Why this belongs in the specification rather than the guidance pages
data-protection-roles.mdx§4 already names the scenario:That paragraph is lowercase "should" on an explainer page, it names
summary, anddata-protection-roles.mdxdoes not mentionembeddinganywhere.privacy-architecture.mdxlistsembeddingamong what a buyer learns from Context Match and gives it no risk treatment, while the same section analyses identity-side disclosure in detail. An implementer reading theembeddingrow sees nothing.The two fields are not interchangeable here. A publisher can read a
summarybefore sending it and instruct a classifier to leave things out. Nobody can look at a vector and see what leaked, which is why the vector is the one that needs saying explicitly.Scope
Deliberately not in this PR, and available if the WG wants them:
embedding_min_contributorsaggregation floor, if the group would rather keep the field open on those properties than close itBoth are discussed in #7393. Neither is a precondition for these two edits.
Versioning
Additive documentation text on an experimental surface (
trusted_match.core). No conformance impact and no wire-format change, so this should land as a3.1.xpatch. Happy to redline any of the wording.Disclosure: I co-lead the Signals and Measurement working group. This is filed as an implementer reading the spec; no WG position attaches to it.