Skip to content

SCA-3299 Preserve V3 Home claims across sync redirects - #25845

Merged
Git-on-my-level merged 4 commits into
mainfrom
agent/m1-studio-codex-sol/4225b0b4a837
Nov 20, 2026
Merged

Git-on-my-level merged 4 commits into
mainfrom
agent/m1-studio-codex-sol/4225b0b4a837

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

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

  • 2,083 focused backend unit cases passed across sync assignment, V3 claim growth, claim deletion and the lifecycle writer guard.
  • make preflight passed all 42 selected checks with this PR body.
  • Both Firestore emulator tests passed. They cover the stale V3 reconcile commit, deletion with a stale card snapshot, dry-run drift, apply retries, rollback and edit/tombstone conflicts.
  • Production preview, mutation, serving verification and internal TestFlight QA are pending release and operational approval.

Tests

  • backend/tests/unit/test_conversations_v3_claim_growth.py asserts two redirects, retry idempotency, preserved user title and one owner per segment after V3 reconciliation.
  • backend/tests/integration/test_conversations_v3_sync_custody_firestore.py exercises 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.

View guided diff Turn on auto-fix

@Git-on-my-level
Git-on-my-level merged commit ca420f9 into main Nov 20, 2026
63 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-codex-sol/4225b0b4a837 branch November 20, 2026 16:51
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