Skip to content

fix: bound batch worker VAD and sample clocks - #21821

Merged
Git-on-my-level merged 1 commit into
mainfrom
batch-worker-valueerror
Oct 16, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
batch-worker-valueerror

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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.

  • Crop the model VAD end to the real audio duration. Nonfinite, reversed, negative-start and wholly outside spans remain failures; generic VAD validation stays strict.
  • Rebase ASR clocks using the exact integer sample index used for slicing. Keep the original word-clock tolerance and every retained word; no timestamp clamping, empty-success conversion or legacy takeover.
  • Add ValueError-subclass reason codes and numeric samples/VAD-span/window/ASR-word/owned-word counts. They distinguish empty ASR from ownership-empty hypotheses and validation failures without reading provider messages. Logging remains deferred until item exception handlers exit and failure-swallowed; existing raising-logger/stream privacy tests pass.

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

View guided diff Turn on auto-fix

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 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-16T08:40:06.003613Z 62a891d 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 b9454ba into main Oct 16, 2026
65 of 66 checks passed
@Git-on-my-level
Git-on-my-level deleted the batch-worker-valueerror branch October 16, 2026 09:23
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