Repository navigation
fix(chat): search saved transcripts and gate unverified recall - #23792
Merged
Merged
Conversation
Read bounded, owner/query/date-bound transcript pages directly, preserve verbatim source citations, and suppress model follow-on facts when an explicit transcript read supplies no evidence in either serving runner. Verified: 291 focused backend tests; 791 Firestore guard tests; full hermetic E2E 137 pass / 3 skip / 2 xfail; final two HTTP journeys pass; actual SDK Firestore-emulator cursor/date test passes; backend typecheck zero errors. Both new HTTP regressions fail on unchanged main 90c2a97. Refs #20629 Failure-Class: FC-chat-search-skips-transcript-evidence
Reserve read headroom and bound matching/rendering before publishing a source; resume before the unreturned match on deadline. Verify both streamed and persisted answers against the no-evidence guard and align legacy backfill docs. Verified 292 focused backend tests, including the rendering-deadline regression. Failure-Class: FC-chat-search-skips-transcript-evidence
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
aryanorastar
marked this pull request as ready for review
October 27, 2026 10:15
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and behavior
Closes #20629. Chat could miss a fact present only in saved speech, then produce a precise unsupported answer after a request to check again. Semantic retrieval queries summaries and an optional transcript index; automatic transcript indexing was retired by #20959, and the old backfill covers only existing history.
Explicit transcript recall now reads current saved transcripts through
search_conversations_tool(transcript_query=...)and the shared REST service. It finds unindexed old and new recordings without restoring indexing, copying speech to another store or requiring a per-account backfill.Verification
Revision:
09a20f4dab2710660cf758437f44750721598bd4.74952c7a49and pass after these fixes. No timeout, assertion or allowlist was relaxed.Delivery
Keep this PR draft for review. Merge and backend deployment remain separate steps. No mobile store release, retired indexing flag, schema/index provisioning or customer backfill is needed for the direct path. Existing semantic requests, MCP and native desktop local tool manifests retain their contracts. Historical account/customer confirmation remains separate Support work. No merge, deployment, production-data mutation, backfill or assignment change was performed.
Product invariants affected
none
Failure-Class: FC-chat-search-skips-transcript-evidence
UI-Evidence: none -- backend retrieval and streaming policy only; no client layout or styling changed.
Line-Count-Exception: backend/utils/retrieval/agentic.py | 1916 -> 1937 | Keep the two serving-loop integration points beside existing stream ownership; shared instructions and turn-local policy live in transcript_recall.py.
Line-Count-Exception: backend/database/conversations.py | 4550 -> 4561 | Thread the optional read budget through the existing exact-conversation no-photo reader and both correction projection codecs; existing unbudgeted callers keep their default behavior.