Skip to content

feat(search): expand live providers and discussion reads - #8340

Merged
waleedlatif1 merged 5 commits into
stagingfrom
codex/search-providers
Sep 26, 2026
Merged

waleedlatif1 merged 5 commits into
stagingfrom
codex/search-providers

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

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)

@vercel

vercel Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 26, 2026 10:24pm UTC

Request Review

@github-actions github-actions Bot added the requires-mothership-merge Has a companion PR on the mothership/copilot side — merge in lockstep label Sep 26, 2026
@github-actions

Copy link
Copy Markdown

⚠️ Cross-repo companion check

One or more companion PRs aren't merged into staging yet. Merging this without them will leave copilot and sim out of sync — merge them in lockstep.

  • ❌ simstudioai/mothership#539 — OPEN, not merged (targets staging) — feat(search): expand live provider contracts and query guidance

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 57 files

Tip: instead of fixing issues one by one fix them all with cubic

Re-trigger cubic

Comment thread apps/sim/app/o/[organizationId]/integrations/live-member-integrations.tsx Outdated
Comment thread apps/sim/lib/sim-search/live/source-catalog.ts
Comment thread apps/sim/lib/sim-search/live/granola-mcp.ts
Comment thread apps/sim/scripts/test-search-discussions-live.ts
@greptile-apps

greptile-apps Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds new search providers and discussion-read features.

The PR appears safe to merge; no outstanding findings or accepted new issues remain.

Summary

The PR adds Linear, Fireflies, Granola, and Notion to live Search; expands GitHub and Drive discussion reads; and updates managed MCP setup, query guidance, transport limits, documentation, and acceptance checks. Subsequent changes bound Function and chat inputs, revise dependency scanning, and strengthen discussion-evidence checks.

Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Live Search request] --> B[Account and policy checks]
  B --> C{Provider}
  C --> D[Native provider API]
  C --> E[Managed MCP read adapter]
  D --> F[Search result or document read]
  E --> F
  F --> G[Source evidence and coverage status]
Loading

Reviews (5) · Last reviewed commit: "fix(search): bind acceptance evidence to..."

Comment thread apps/sim/lib/sim-search/live/linear.ts
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 58 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/scripts/test-search-discussions-live.ts Outdated
Comment thread apps/sim/scripts/test-search-discussions-live.ts Outdated
Comment thread apps/sim/scripts/test-search-discussions-live.ts Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

The latest Greptile summary includes grep scanning, workflow-variable caching, and Slack progress changes inherited from staging during rebase. They are not changes in this PR's current staging diff. GitHub's published file list and git diff origin/staging...HEAD agree: neither apps/sim/lib/mothership/agent-cli/engines/universal-grep.ts, apps/sim/lib/workflows/application/workflow-variables.ts, nor apps/sim/lib/slack-search/assistant-stream.ts is changed here; each file is byte-for-byte identical to staging.

The grep change came from staging PR #8338 (d9b9e1dc61), the workflow-variable change from #8339 (5b667d727f), and the Slack change from #8336 (7a36d74507). Please evaluate the search-provider PR against its current staging base rather than treating changes between its pre-rebase and post-rebase heads as newly introduced code. This clarification is about review scope; it does not dismiss a potential issue in the separate grep change.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 58 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/sim/scripts/test-search-discussions-live.ts">

<violation number="1" location="apps/sim/scripts/test-search-discussions-live.ts:260">
P3: Untyped issue queries can return up to 10 issues plus 10 pull requests from the adapter, but the oracle fetches only 10 mixed results, so this check rejects valid results for mixed matches. Mirror the adapter’s type split in the oracle queries, or require an explicit `is:issue`/`is:pr` qualifier.</violation>
</file>

Comment thread apps/sim/scripts/test-search-discussions-live.ts
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 58 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/scripts/test-search-discussions-live.ts Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 58 files

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/scripts/test-search-discussions-live.ts
@waleedlatif1
waleedlatif1 merged commit 6a6a882 into staging Sep 26, 2026
33 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/search-providers branch September 28, 2026 19:56

This branch was successfully deployed

1 active deployment
Preview — 5f393728 Deployed Sep 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requires-mothership-merge Has a companion PR on the mothership/copilot side — merge in lockstep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant