Skip to content

Search personal connected sources without storing live hits - #890

Merged
zlareb1 merged 6 commits into
mainfrom
feat/live-source-search
Nov 18, 2026
Merged

zlareb1 merged 6 commits into
mainfrom
feat/live-source-search

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Related: #883

Changelog category

  • New Feature

Changelog entry

Search can include ephemeral Drive and Notion results using the caller's own connected account. Set live=true to request this optional leg; it is disabled by default.

Why

A connected source can contain answers that have not reached its index. Native search can return those answers without ingesting a second copy. It uses the merged connected-account lifecycle linked above.

Scope and risk

search.query and MCP loom_search accept a strict boolean live field and return an optional, separate live section. The leg considers at most three owned connected registrations and returns at most ten hits within one five-second deadline. Six catalog settings let operators reduce these ceilings, provider response bytes, Drive items and Notion ancestry checks; configuration cannot increase the original limits. It runs only on an untagged first page for queries of at most 1,000 characters. Indexed ranking and paging keep their existing paths.

Account checkout requires the existing authenticated source authority, session-protection promise, request privacy marking and required publication tail. Each selected result retains its original account/source authority and native corpus membership through final publication. Shared ingestion credentials and another person's registrations cannot supply this leg. Revoked or expired final evidence prevents private bytes from being sent.

Hits do not enter ingestion, indexed traces, page state, served memory keys or gap contributions. Existing numeric private accounting remains required. The Python SDK generator also emits boolean and null literals as Python values so the generated live marker types are valid.

Drive uses full-text search; folder coverage is limited to direct children and explicit file registrations do not widen to account search. Notion searches titles and checks registered page/database ancestry. Coverage is bounded and does not prove absence. Linear native search is not implemented in this change.

Compatibility, rollout and rollback

  • Wire: additive live=false input and optional live output, with generated SDK types and MCP schema/text support. No field is removed or existing default changed.
  • Operator steps: deploy the connected-account dependency first. Live reads require the existing mirrored-source configuration and protected-client contract. The knowledge_live_search_* settings retain these bounds by default and require a restart. No migration or backfill is added here.
  • Rollback: reverting removes the optional leg and its wire types; it leaves no stored live results or schema changes.

Tests

The checks below distinguish earlier feature validation from the catalog and MCP corrections. All five PR workflows pass on the final head.

  • The composed dependency passed 23 focused provider, privacy, cancellation, publication, output and SDK checks. After review, all 12 provider checks pass, including eight cutoff and malformed-timestamp controls; the regression first failed in four cases. Tests use fake HTTP/account boundaries and the real request privacy/publication machinery.
  • Earlier scoped mypy passed for the six feature modules and Python SDK generator. Scoped Ruff, pinned Markdown formatting and prose checks pass for the corrections.
  • All five canonical SDK/reference/reach checks pass. The boolean-literal regression failed before the generator fix and passes afterward with generated-file controls.
  • All 39 focused checks pass after the catalog and MCP corrections, including the native provider/coordinator/output tests, six settings-boundary cases, both defaults tests, the tunable-constant guard, every listing budget and the optional output schema. All three canonical settings checks are current; the defaults snapshot adds exactly six names. The expiry regression patches the catalog setting and still requires the started native call to close before return.
  • Full PR CI passes, including unit coverage and benchmarks, native and Postgres integration, mixed versions, SDK packages and smoke checks. Only the two post-merge publication jobs are skipped. No live provider or deployment acceptance is claimed.
python -m pytest -q -o addopts= tests/unit/test_live_provider_search.py tests/unit/test_live_source_search.py tests/unit/test_loom_search_live_output.py tests/unit/test_sdk_py_generated.py::test_boolean_and_null_literals_are_python_values tests/unit/test_sdk_py_generated.py::test_generated_ops_py_is_current tests/unit/test_sdk_py_generated.py::test_typed_dicts_carry_required_and_optional_keys

AI assistance in the code

  • AI-generated: an agent wrote the change. Source boundaries, generated artifacts, focused regressions and cleanup evidence were checked separately; independent review is required before merge.
  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Required formatting, lint, type, unit and integration gates pass in PR CI.
  • Generated SDK, reference and reach artifacts are produced by their canonical generators.
  • No migration or plugin version change is required.
  • No frontend files change in this diff.
  • Documentation describes wire changes, work bounds, protection and operator requirements.
  • Repository text contains no deployment details.
  • Commits are signed off.

@zlareb1
zlareb1 force-pushed the feat/live-source-search branch from 7dcefe3 to 1b7ad71 Compare November 18, 2026 19:54
@zlareb1
zlareb1 changed the base branch from feat/connected-account-lifecycle to main November 18, 2026 19:55
Run the required PR checks after integrating the merged connected-account dependency.

Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 marked this pull request as ready for review November 18, 2026 20:53
@zlareb1
zlareb1 merged commit 64bfafc into main Nov 18, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant