feat(search): expand live providers and discussion reads

Merged
WA
1mo ago
+4515-358

Summary

  • Add Linear, Fireflies, Granola and Notion to live Search using the existing account and authorization pipeline.
  • Include GitHub PR comments, reviews and inline discussions, plus Drive comments and replies, in document reads.
  • Share managed MCP read validation, make provider limits explicit in query guidance, bound streamed MCP events, and update the Granola icon.
  • Coordinate the matching worker contract and query guidance.

Companion: simstudioai/mothership#539

Type of Change

  • Feature enhancement

Testing

  • 1,381 provider, authorization, legacy Search, MCP and integrations UI regression tests passed; nine real Postgres setup/rollback/concurrency tests passed.
  • Failure-first checks for argument validation, repeated cursors, oversized streamed events and structured transcript attribution.
  • Live Fireflies, Granola and Notion agent acceptance: 10 questions across 14 executions, with source facts and citations checked. Response latency: 8.172–18.776s, median 13.321s.
  • GitHub discussion and review acceptance against independent provider queries: seven positive cases plus five date-bound cases passed 30 checks. Real conversation and inline-comment matches are tied to their original comment IDs. Negative controls reject title-only or unrelated-comment evidence, absent review results, and contradictory approval expectations. Mixed queries verify separate issue and PR result limits. Approval expectations cover submitted review events; the adapter acceptance checks native inclusive date candidates, while application date filtering is covered separately. Linear OAuth was not included in live acceptance.
  • Type-check across 26 workspaces, lint, generated artifact checks, block-registry audit and all 51 audits passed.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)