Repository navigation
fix: skip unchanged partial repair inventory and reject negative initial offsets - #24197
Merged
Merged
Conversation
…ial offsets Failure-Class: FC-completeness-proof-starves-retained-transcription
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.
Summary
The five-minute repair sweep repeatedly listed producers for unchanged partial coordinators, including retired ones. Read the coordinator and partial barrier before producer inventory and skip unchanged rows. A changed upload revision still obtains fresh producer proof and uses the existing transactional refresh/reopen path, retaining prior coverage.
Initial partial projection now applies the same alignment checks before and after clock shifting as a non-empty transcript. Invalid or negative-offset incoming segments are omitted; valid segments still fill empty spans and existing text remains intact.
For an unchanged row at 288 repair attempts/day: zero producer-inventory reads/day, down from 288. The cheap check uses two document reads/attempt (coordinator + row), or 576/day, plus the existing discovery read (288/day if visited every sweep). Revision changes require one inventory read per attempted refresh; retries remain fenced by fresh proof. No inventory claim is made for other producers or CPU storage polling.
Validation
backend/test.shwithBACKEND_PYTEST_WORKERS=1and exact file list:test_record_partial.py63 passed,test_record_seal_cluster_repair.py64 passed.bash backend/testing/e2e/run.sh -k 'listen_stt or core_flow_expansion' -q --tb=short: 15 passed, 170 deselected.scripts/pr-preflight --pr-body-file ...: 36 selected checks passed. Ordinary wrappedgit pushexited zero; its enforced backend typecheck reported 0 errors, runtime-image source closure and selected backend suites passed. GitHub CI is the remaining full authority.No GCP access, production mutation, audio deletion, workflow change, flag/default change,
partial_recordsemantic change or hard-3 change. Lead owns merge and deployment. Images:batch-pipeline-workerfor record-seal-repair; all CPU admission/projection hosts (backend/listen today, including backend API and worker roles where split) for projection. No pusher-specific code changed; retain the lead's #24188 release order.Failure-Class: FC-completeness-proof-starves-retained-transcription
UI-Evidence: none