Repository navigation
test(sync): repair stale conversation fingerprint mocks - #24195
Merged
Merged
Conversation
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. |
Git-on-my-level
added a commit
that referenced
this pull request
Oct 31, 2026
) After 30 minutes, recordings whose tail or proof size cannot be certified can transcribe retained audio with an explicit partial marker. Complete seals, producer fences, audio custody, and hard-3 thresholds are unchanged. Encrypted continuation plans use at most 128 siblings per page and 300 seconds/256 references per unit, with 8,192-entry source/coverage and 8 MiB plan bounds. Every partial pass now fills only spans without existing text, including the first generation. It preserves unannotated transcripts and edits without correction metadata; overlap or ambiguous alignment keeps the original text. Completed coordinators claim their hourly poll transactionally before listing, so stale scheduler snapshots across serving replicas do no storage I/O. They retire after 24 hours without inventory change, retaining audio, coverage and partial status. A new producer upload revision lets the existing repair pass reopen a retired coordinator. Unsignalled storage-only arrivals after retirement need separately authorized operator recovery. Recorded BYOK policies are refused and counted at initial finish and during late continuation. Discard and payer state are checked before retained audio/plan reads and again at atomic intake. The CI fixes classify the server-authored partial metadata, use a closed outcome enum, omit the partial-only binding field from ordinary work so the frozen pre-E1 constructor remains compatible, and correct the deadline test's assumption that all eight requests must start before a 30 ms timeout. Validation: 496 unique backend cases across 14 focused files through backend/test.sh under TZ=UTC and omi-heavy. The final stage-policy/intake/partial selection passed 119 overlapping cases, including the stale-scheduler poll fence. Strict Firestore transaction and real staging/intake/worker fixtures cover preservation, hourly scheduling, 24h retirement, producer-revision repair reopening, and payer/discard races. All 22 donor-projection cases pass with stored bindings decoded through their wire defaults. The hermetic listen/core-flow e2e passed 15 cases; wrapped make preflight passed all 68 checks. These are local checks, not production acceptance. Optional generated API wire metadata remains additive; UI behavior is unchanged. Lead owns merge and all deploys. Keep recordSealRules.partialEnabled=false while rolling pusher; require rollout completion and an authoritative PodList count of zero old-image instances, including terminating instances. Roll all CPU admission/projection hosts and API, then worker/repair. Drain old or enabled repair Jobs before enabling the existing partial switch for new Jobs. No new rollout flag, workflow, production write or capacity added. The paired collector patch remains lead-owned. Two full-suite Flutter failures also receive test-only fixes: boot preference cleanup waits for both getter-triggered quarantine records and joins the journal before deleting its directory; phone-mic safety-copy tests await the actual scheduled drain or durable notification instead of 60/150 ms sleeps. A held-disk completer proves the WAL remains in memory until I/O is released. The canonical targeted app/test.sh run passed 138 protected spine tests plus all eight selected Flutter cases, without a timeout increase or app behavior change. The safe false negative where later complete proof does not upgrade a partial row, and held pages waiting on the existing redrive path, remain follow-ups per lead scope. Includes the test-only shared-main fixture fix from #24195 at 855231d. After #24192 extracted the freshness helper, two test files still patched the router function and returned superseded before their upload-fence assertions. The patch targets the current helper and changes no assertion or production behavior. Independent integration validation passed all 120 cases across the four affected playback test files. Product invariants affected: none (repository selector). UI-Evidence: none Only generated wire DTOs change on clients; there is no UI behavior change. Failure-Class: new Line-Count-Exception: backend/database/conversations.py | 4627 -> 4638 | Preserve coordinator-owned partial receipts across stale processing writes. Line-Count-Exception: backend/utils/batch_pipeline/projection.py | 1716 -> 1717 | Carry partial continuation text-preservation authority into the existing transactional assignment.
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.
After #24192, four audio merge test cases still patched the router's fingerprint function. The job now checks freshness through
sync_playback.conversation_merge_fingerprint, so those mocks no longer matched the payload and the job returnedsupersededbefore reaching the behavior under test.Patch the helper at its current call site in the tombstone/upload-fence and destructive-deferral tests. Production code and every assertion are unchanged.
Validation:
backend/test.sh, file isolation, one worker,TZ=UTC,nice -n 19, andomi-heavy.backend/testsfor all fingerprint references. The only remaining router fingerprint patch is intest_audio_merge_tasks.py, which also patches the new helper and uses the router patch for the separate artifact fingerprint.make preflight, metadata validation, andgit diff --checkpass.Failure-Class: none
Test fixture maintenance after a helper extraction; no production behavior change. Lead owns merge. No deploy needed.