Skip to content

chore(search): diagnose unsupported Fireflies response shapes - #9488

Merged
waleedlatif1 merged 4 commits into
stagingfrom
codex/fireflies-response-diagnostics
Oct 31, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
codex/fireflies-response-diagnostics

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

A successful Fireflies MCP call can return a transcript-list envelope that Search rejects. Existing provider timings identify the failure stage but cannot distinguish the rejected container or encoding.

Log a bounded description immediately before the existing rejection: types under fixed envelope keys, known nested containers, and text length/encoding. Keep WARN diagnostics enabled in production and skip text inspection above 65,536 characters. Provider content, arbitrary keys, query text, credentials, and JSON parse errors never enter the diagnostic. Request parameters, accepted formats, results, and failure behavior remain unchanged. This supplies evidence for the investigation; it does not fix the unknown provider response format.

Validation: lint, all 29 workspace type checks, all 62 audits, generated artifacts, and the block-registry check passed. Independent cleanup/safety review is clean. The privacy guard was written before implementation and failed as intended in CI run 41146215188: rejection remained intact but no diagnostic was emitted. Coverage now checks useful metadata and redaction for text, JSON, fenced JSON, and oversized text. The additional test-only CI control passed text/JSON/fenced-JSON coverage and failed only the oversized case before its inspection cap was added. All 39 jobs in final CI passed on reviewed head 4fb0ae6, including unit/type, build, integration, desktop, mobile, and browser-extension checks. Both reviewers returned 5/5 with zero unresolved threads. Tests ran in CI, not locally.

@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Oct 31, 2026 12:00am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no blocking issues were found.

Summary

Adds bounded descriptions of unsupported Fireflies responses before the existing rejection.

  • Fireflies search logs the shape when a transcript list is unsupported.

The earlier test-coverage finding is addressed: tests now require useful metadata while checking rejection, redaction, and bounded output. No new actionable issues were found. Tests were not run during this review.

Reviews (2) · Last reviewed commit: "fix(search): retain bounded provider dia..." · Reviewed by Greptile

@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 2 files

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

Turn on auto-fix | 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. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/sim/lib/sim-search/live/fireflies-mcp.ts">

<violation number="1" location="apps/sim/lib/sim-search/live/fireflies-mcp.ts:183">
P2: This diagnostic is suppressed by the logger's default production `ERROR` threshold, so the response-shape evidence is missing in default production—the environment where this investigation is needed. Emit this failure at an enabled level or configure this logger to retain WARN entries.</violation>
</file>

@waleedlatif1
waleedlatif1 marked this pull request as draft October 30, 2026 23:54
@waleedlatif1
waleedlatif1 marked this pull request as ready for review October 31, 2026 00:01
@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 Oct 31, 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.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 08bdbea into staging Oct 31, 2026
60 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/fireflies-response-diagnostics branch October 31, 2026 00:06

This branch was previously deployed

1 inactive deployment
Preview — 4fb0ae69 Deployed Oct 31, 2026 by vercel[bot]
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