Repository navigation
fix: bound batch worker VAD and sample clocks - #21821
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. |
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.
Frame-centered Pyannote VAD intervals can extend past the captured input, and ASR windows were rebased from a float origin that differed from the integer sample slice. Synthetic reproductions of both cases fail the original worker with ValueError despite usable in-buffer audio/word clocks.
Production diagnosis is intentionally bounded: read-only selected metadata and logs identify the two stages, but failed jobs do not contain VAD/ASR shape. No private audio, ciphertext object or transcript was fetched. The actual production condition is not proven; this PR fixes two independently reproduced boundary defects and supplies the missing safe signal. Empty ASR/no-owned-words remains an observable failure, not a claimed solution to every queued retry.
Validation: 52 worker tests and 20 projection tests passed with taskpolicy -b, serial processes. Tests use synthetic in-memory samples and controlled model outputs, not GPU inference. The original main source separately reproduces both boundary failures. A regression also preserves support for iterable hypotheses: counts are taken from validated words, so observation does not require a new len() capability on provider output. The fully enabled bounded push hook also passed: 52 worker tests with one worker, full backend type checking with zero errors, and source closure for 17 runtime images. No full standalone preflight, production mutation, merge or deployment was run.
The current scheduler retries forever; accepted batch_v1 claims deliberately exclude legacy ownership. A bounded quarantine/dead-letter policy needs durable client status, ordered-gap handling, explicit redrive rules and fenced recovery of partially projected work. Automatic legacy fallback is not small or clearly safe and is outside this PR. The local qualification report records the full guard-path inventory and recovery proposal.
Failure-Class: new
🤖 Generated with Claude Code