API request: User-authorized cross-chat search for assistants (scoped + citable)

Feature request for the API: add a user-authorized Search endpoint so assistants can perform scoped retrieval across a user’s prior chats/projects and return citable snippets. Key guards: explicit opt-in per scope, audit log, org controls, and no training unless opted in.

Why: Enables trustworthy RAG on first-party user data without exporting to external stores; improves answer quality and enterprise auditability.

MVP:

  • Opt-in per scope (current chat, project, or all my chats), with explicit prompts

  • Query operators (phrase/boolean/basic regex) and date/participant filters

  • Results include snippet + chat_id + message_id + timestamp + permalink so assistants can cite sources

  • Audit log of search events; org controls; no training unless the account has opted in

API sketch (fields only):

POST /v1/user-content/search
{
  "scope": "project:example-project",
  "query": "\"Council of\" OR Conclave",
  "filters": { "start": "2025-09-01", "end": "2025-10-31", "participants": ["me"] },
  "limit": 20,
  "return_fields": ["snippet","chat_id","message_id","timestamp","permalink"]
}