Skip to content

fix: skip unchanged partial repair inventory and reject negative initial offsets - #24197

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/sealpartial3
Oct 31, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/sealpartial3

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

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

  • Heavy/nice/UTC backend/test.sh with BACKEND_PYTEST_WORKERS=1 and exact file list: test_record_partial.py 63 passed, test_record_seal_cluster_repair.py 64 passed.
  • The real per-row repair path is invoked 288 times for both pending and retired coordinators, counts zero inventory calls, then counts one after a producer upload revision and verifies reopening with coverage and transcript preserved.
  • Initial empty-transcript alignment cases cover clock-shifted negative starts, zero duration, nonfinite ends, unplaced/unknown alignment and a valid segment.
  • Heavy/nice/UTC bash backend/testing/e2e/run.sh -k 'listen_stt or core_flow_expansion' -q --tb=short: 15 passed, 170 deselected.
  • Heavy/nice/UTC scripts/pr-preflight --pr-body-file ...: 36 selected checks passed. Ordinary wrapped git push exited 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_record semantic change or hard-3 change. Lead owns merge and deployment. Images: batch-pipeline-worker for 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

…ial offsets

Failure-Class: FC-completeness-proof-starves-retained-transcription
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T23:13:23.522717Z d88749e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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
Git-on-my-level merged commit b2155f2 into main Oct 31, 2026
69 of 70 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/sealpartial3 branch October 31, 2026 23:48
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