Repository navigation
fix(tmp): restrict single-user context embeddings - #7396
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS review.
This PR modifies static/schemas/source/trusted-match/context-match-request.json, which matches the hard approval-gate glob static/schemas/source/**. gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: the gate is not satisfied and the PR cannot be auto-approved.
No blocking findings. The reviewer verified schema↔docs coherence across all six touched files, confirmed the changeset is present and correctly patch-scoped for the experimental Trusted Match surface, and noted a regression test was added. No Critical/High/Medium findings were surfaced. The change itself (restricting single-user context embeddings, requiring privacy reduction) is a privacy-tightening that appears clean.
Escalation reasons:
- Modifies
static/schemas/source/trusted-match/context-match-request.json— protected schema-source path under a hard approval gate. Requires human/CODEOWNERS review (review_decisionis currentlyREVIEW_REQUIRED, notAPPROVED).
Once a real human/CODEOWNERS approval lands, this clean diff can fall through to approve.
Why human review
- Modifies static/schemas/source/trusted-match/context-match-request.json — gated schema-source path under a hard approval gate; review_decision is REVIEW_REQUIRED (not APPROVED), so human/CODEOWNERS review is required.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/trusted-match/context-match-request.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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS review.
This PR modifies static/schemas/source/trusted-match/context-match-request.json, which matches the deterministic gated-path glob static/schemas/source/**. gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: the hard approval gate is not yet satisfied and the PR cannot be auto-approved.
The reviewer surfaced no Critical/High/Medium findings: the change is a tightly-scoped privacy tightening on the experimental Trusted Match Context Match surface (prohibits dense embeddings from non-public single-user content, requires privacy-reduction for free-form keywords/summary), propagated consistently across schema, spec/surface docs, examples, a patch changeset, and a regression test. Schema↔docs coherence, changeset scope/type, oneOf discriminator baseline, and dist immutability were all verified clean. The diff itself looks mergeable.
Escalation reasons
- Modifies
static/schemas/source/trusted-match/context-match-request.json— protected schema-source path under a hard approval gate; requires human/CODEOWNERS review (review_decisionis currentlyREVIEW_REQUIRED).
Once a human/CODEOWNERS approval lands (review_decision: APPROVED), this PR falls through to a normal approve on the next run absent new findings.
Why human review
- Modifies static/schemas/source/trusted-match/context-match-request.json — gated schema-source path (static/schemas/source/**) under a hard approval gate; review_decision is REVIEW_REQUIRED, so human/CODEOWNERS review is required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/trusted-match/context-match-request.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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS review.
This PR modifies static/schemas/source/trusted-match/context-match-request.json, which matches the deterministic hard approval gate glob static/schemas/source/** (gated_paths: true). The required review status is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 forces escalation — auto-approval is not permitted regardless of how clean the diff is.
The reviewer found no Critical/High/Medium findings: the change is a clean spec/docs tightening on the experimental Context Match surface (prohibits embeddings from non-public single-user content, requires privacy-reduced keywords/summaries), with verified schema↔docs coherence across all four field descriptions, a correct patch changeset with no wire-shape break, consistent example updates, and an added regression test. On findings alone this would approve, but the gated path with unsatisfied review status controls.
Escalation reasons
- Modifies
static/schemas/source/trusted-match/context-match-request.json— a gated protocol-source path. Human/CODEOWNERS review required (review_decision is REVIEW_REQUIRED, not APPROVED).
Why human review
- Modifies static/schemas/source/trusted-match/context-match-request.json — gated protocol-source path (static/schemas/source/**); human/CODEOWNERS approval required since review_decision is REVIEW_REQUIRED, not APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/trusted-match/context-match-request.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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS review.
This PR modifies static/schemas/source/trusted-match/context-match-request.json, which falls under the repo's hard approval gate (gated_paths: true). The required review status is REVIEW_REQUIRED, not APPROVED, so per decision-table row 2 the gate is not satisfied and the PR cannot be auto-approved.
The reviewer's assessment is otherwise clean: a privacy-boundary tightening on the experimental Trusted Match Context Match surface. Schema↔docs coherence verified across the four edited context_signals descriptions with no wire-shape drift (embedding stays a string; no field/required/enum change), a valid patch changeset consistent with x-status: experimental, no oneOf or immutable dist edits, and a new load-bearing test pinning the MUST clauses. No Critical/High/Medium findings.
Escalation reasons
static/schemas/source/trusted-match/context-match-request.jsonis under a hard approval gate (static/schemas/source/**);review_decisionisREVIEW_REQUIRED. Human/CODEOWNERS approval is required before merge.
Once a human/CODEOWNERS approval sets review_decision to APPROVED, the diff is clean and can fall through to approval on a subsequent run.
Why human review
- static/schemas/source/trusted-match/context-match-request.json is under the hard approval gate (static/schemas/source/**) and review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/trusted-match/context-match-request.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.
EvgenyAndroid
left a comment
There was a problem hiding this comment.
Reviewed against #7393. This lands what I asked for and goes past it in two places; noting both, plus a branch question.
What matches. embedding now carries an unqualified MUST NOT for non-public content attributable to a single user or session, "directly or indirectly", and the MAY clause ("MAY represent public content or a shared content environment that is not attributable to one user's activity") takes in the trending-query and syndicated-segment cases from Edit 2. The disclosure-ladder text says why a dense vector differs from bounded outputs. The Privacy Requirements bullet adds the derived-representation clause I had parked as longer-term, including "Router isolation prevents identity-path data from entering the context path; it does not make user-derived context anonymous." The demonstration obligation from my Edit 1 is gone in favour of the flat prohibition triage recommended. I accept that: it removes the only exception nobody could observe on the wire, and the aggregation-floor proposal (embedding_min_contributors, from the issue's longer-term section) stays on the table if a publisher ever needs semantic retrieval on ai_assistant.
Two things to reconsider, both wording:
-
The keyword examples over-correct relative to the rule. The rule says keywords "MUST NOT reproduce distinctive verbatim phrasing" and publishers "SHOULD prefer bounded category labels".
trail shoes,cold brewandrunningare bounded category labels;rocky terrainandankle supportare the phrasing. Replacing all of them withathletic footwear/product recommendationsreads as "genericize everything", which is the relevance loss the ladder exists to avoid, and implementers copy examples before they read rules. Suggest keeping the category keywords and dropping only the phrasing, e.g.["trail shoes", "athletic footwear", "outdoor recreation"]and["cold brew", "coffee products"]. -
The
context_signalsrow lost the ephemeral guidance entirely. It used to name conversation turns and search queries; now an implementer starting from the row sees neither the old steer nor the new split. Theembeddingrow already states the split (conversation turns, prompts and individual search queries on one side; public or shared content environments on the other), but thecontext_signalsrow is where people start. One sentence covers it: "Ephemeral content many users encounter (a trending query, a syndicated segment) is shared content; one user's turn or query is not."
Branch. This targets main, which is the 3.2 line (945 commits ahead of 3.1.x); v3.1.21 is the head of 3.1.x, and #7383 reached it as #7384. #7393 was filed against 3.1.21 and the triage called for a 3.1.x patch. Is a 3.1.x backport planned, or should the base change? Without one, the 3.1.20 line both registry cards grade on stays as it was.
Approving on the substance; the two items are wording, the branch question is the one I'd want answered before merge.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate not satisfied.
This PR modifies static/schemas/source/trusted-match/context-match-request.json, which is under a hard, non-overridable approval gate (static/schemas/source/**). gated_paths is true and review_decision is REVIEW_REQUIRED, not APPROVED. Per decision rule row 2, the outcome must be escalate until a human/CODEOWNERS approval is recorded.
The reviewer's delta pass found the change clean: a description-only clarification mirrored coherently across the schema, specification.mdx, and the trusted-match doc/example surfaces, with a regression test pinning the new prose. No wire-shape change, no schema↔docs drift, and a changeset is present. No Critical/High/Medium findings surfaced. The diff is mechanically sound — but the gate lifts only on a recorded human/CODEOWNERS approval, not on a clean diff.
Escalation reasons
static/schemas/source/trusted-match/context-match-request.jsonis under the hard approval gate (static/schemas/source/**) andreview_decisionisREVIEW_REQUIRED, notAPPROVED— human/CODEOWNERS review required before this can merge.
Why human review
- static/schemas/source/trusted-match/context-match-request.json (modified) is under the hard approval gate (static/schemas/source/**) and 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/trusted-match/context-match-request.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.
|
Thanks — addressed both wording points in 580a1e4: the examples now retain useful bounded category terms (including For the branch question, #7424 is now open directly against |
|
Independent protocol, security/privacy, and ad-tech product reviews found two additional privacy gaps, fixed in 61f090a:
Regression assertions cover both rules. Ev feedback on bounded keywords and shared-vs-single-user ephemeral context remains intact. |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on protocol schema path not yet satisfied.
This PR modifies static/schemas/source/trusted-match/context-match-request.json, which is under the deterministic hard approval gate (static/schemas/source/**). gated_paths is true and review_decision is REVIEW_REQUIRED, not APPROVED. Per decision table row 2, the outcome must be escalate until a human/CODEOWNERS approval is recorded.
The delta itself is clean: the reviewer reports no Critical/High/Medium findings. Schema↔docs coherence holds (topics/keywords/summary/embedding single-user restrictions match verbatim across specification.mdx, ai-assistants.mdx, and the schema), the ai-assistants example remains schema-valid after dropping optional artifact_refs, regression coverage is present, and a patch changeset accompanies an x-status experimental surface. No prior blockers to re-surface.
Escalation reasons
static/schemas/source/trusted-match/context-match-request.json(modified) is under the hard approval gate (static/schemas/source/**) andreview_decisionisREVIEW_REQUIRED, notAPPROVED— human/CODEOWNERS approval is required before merge, regardless of how clean the diff is.
Why human review
- static/schemas/source/trusted-match/context-match-request.json (modified) is under the hard approval gate (static/schemas/source/**) and 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/trusted-match/context-match-request.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.
Summary
Closes #7393.
Validation
npm run build:schemasnpm run test:schemasnpm run test:examplesnpm run test:docs-navnpm run test:owned-linksnode --test tests/trusted-match-offer-creative-data.test.cjsnpm run typecheckKnown unrelated test failure
The full server-unit hook reaches three failures in
server/tests/unit/addie-router.test.ts; all three reproduce when run alone, and this PR does not modify Addie/router code. The protocol, schema, documentation, and type checks above pass.Open workspace in Conductor