Repository navigation
SCA-3299 Preserve V3 Home claims across sync redirects - #25845
Merged
Merged
Conversation
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.
What changed and why
SCA-3299. A sync redirect was hiding the donor recording while leaving its V3 Home card claims there. Sync now moves an eligible donor's transcript-only claims and its cards' source links to the survivor in the same Firestore transaction, with an immediate pending marker for V3. Deletion re-reads the card links after durable delete intent. Sources with playback, tombstones, competing claims, or insufficient speech evidence stay in place.
The operator command previews one nominated redirect chain, applies only the reviewed revision-bound receipt, and restores only fields whose documents still match the repair commit. It preserves published card content and visibility. A historical overlap without exact segment and custody evidence remains for review. Coordinate the preview with the live re-derive owner in #25817 and record the TestFlight build and serving revision in SCA-3299 before readback. This release is separate from the sit-down configuration rollout.
Product invariants affected
none
How it was verified
make preflightpassed all 42 selected checks with this PR body.Tests
backend/tests/unit/test_conversations_v3_claim_growth.pyasserts two redirects, retry idempotency, preserved user title and one owner per segment after V3 reconciliation.backend/tests/integration/test_conversations_v3_sync_custody_firestore.pyexercises live Firestore transaction semantics on the local emulator.UI-Evidence: none -- backend custody fix with no UI changes
Failure class (fixes)
Failure-Class: FC-split-mutation-authority
Line-Count-Exception: backend/utils/sync/assignment.py | 1617 -> 1677 | Keep claim, redirect, card linkage and rollover staging in the owning transaction. The standalone custody module owns speech and claim validation.