Repository navigation
fix: persist taught speaker identities across sessions - #14842
Merged
Git-on-my-level merged 2 commits intoSep 19, 2026
Merged
Conversation
Publish a verified person sample, transcript, embedding, version, and source provenance through one fenced transaction. Invalidate corrected or deleted profiles, isolate account caches, and cover fresh live sessions plus offline sync with synthetic regression fixtures. Failure-Class: FC-split-mutation-authority
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Git-on-my-level
deleted the
codex/persistent-speaker-identity-20260919
branch
September 19, 2026 11:48
This was referenced Sep 20, 2026
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
A person label could be written to transcript segments without producing a durable, versioned person profile. The first concrete broken boundary was between label assignment and profile publication: sample storage and embedding storage were separate writes, and the offline cache accepted legacy vectors without a version contract. A second reproduced boundary left an embedding behind when one of several samples was deleted. Adjacent short segments were also verified against only the selected segment text, so valid expanded speech was rejected before persistence.
Related issues: #7187, #5625, #4455, #5266. PRs #12893 and #12935 are already merged; this change builds on the current code instead of repeating them.
Change
speech_samples_version: 3, and source conversation/segment IDs in one Firestore transaction fenced by the person update version.No model, language threshold, production setting, or customer data was changed.
Verification
make preflight— 31 checks passed.BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-speaker-backend-tests.txt BACKEND_PYTEST_WORKERS=4 bash backend/test.sh— all 12 selected backend files passed (including the new persistence suite).backend/.venv/bin/python -m pytest backend/tests/unit/test_taught_speaker_persistence.py backend/tests/unit/test_speaker_identification_language_fallback.py backend/tests/unit/test_speaker_person_embedding_recovery.py -q— 19 passed.(cd backend && PYTHON=.venv/bin/python bash scripts/typecheck.sh)— 0 errors (5997 existing warnings).backend/.venv/bin/python backend/scripts/check_unit_test_discovery.py— 1166 selected, 56 policy-covered, 0 orphans.PATH=/Users/dazheng/fvm/versions/3.44.5/bin:$PATH make mobile-verify ARGS='fast --filter j6'— 3 executed, 3 passed.(cd app && /Users/dazheng/fvm/versions/3.44.5/bin/dart analyze integration_test/journeys/j6_persisted_speaker_name_test.dart)— no issues found.git diff --check— passed.Remaining checks
Physical-device microphone capture, provider quality on real voices, and deployment/runtime verification remain for the mobile release lane. This branch is left reviewable locally and has not been merged or deployed.
Failure-Class: FC-split-mutation-authority
Line-Count-Exception: backend/database/users.py | 2285 -> 2342 | atomic person speech-profile replacement and invalidation transactions
Line-Count-Exception: backend/routers/conversations.py | 2231 -> 2249 | authenticated person validation and correction invalidation at the assignment boundary