Skip to content

Bug: Simultaneous human caption cues lose text in completed video transcripts #3705

Closed

Description

@yannickmonney

rollingWindowDedup groups every same-start cue and retains only the longest text, without checking its speaker or whether one cue extends the other. The ingest worker applies it to manual tracks as well as automatic tracks and marks the resulting incomplete transcript completed.

Reproduced at 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d. Suggested severity: P2.

Reproduction

  1. Use a supported video with a manual WebVTT caption track containing two distinct overlapping cues that start at the same time. For example, Alice says “The shipment is ready.” from 00:00:01 to 00:00:04, while Bob says “Hold the shipment until Monday.” from 00:00:01 to 00:00:09.
  2. Paste the video URL into chat and let caption ingestion finish. The local proof supplies those valid caption bytes at the download boundary, without contacting a video service.
  3. Read the completed transcript attachment/native file_metadata transcript.

Expected: Preserve both independent speaker cues. Rolling-caption deduplication should collapse repeated growing text, not delete a distinct simultaneous utterance.

Actual: rollingWindowDedup groups every same-start cue and retains only the longest text, without checking its speaker or whether one cue extends the other. The ingest worker applies it to manual tracks as well as automatic tracks and marks the resulting incomplete transcript completed.

Impact: The assistant receives an incomplete source transcript with a human-caption provenance label and no warning. A speaker's independent statement can disappear entirely from downstream answers or summaries.

Evidence and controls

parseVtt accepted both Alice/Bob cues. The actual native worker completed, but both the retained blob bytes and PostgreSQL transcript omitted Alice's sentence and kept only Bob's. The saved header reported Method: captions_human.

Executed from /Users/yannick/.codex/notes/tale-1000-additional/worktree:

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x --no-install vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/video-wave01/native-batch1.vitest.config.ts --maxWorkers=1 --reporter=verbose --silent=false

Observed 6 passed (6), exit 0, in 25.39 seconds. Frozen proof: native-batch1.test.ts, native-batch1.vitest.config.ts and native-batch1.log.

  • The identical manual cues with different start times preserve both speakers and complete sentences through the same native worker/finalizer.
  • Actual growing automatic prefixes (“We”, “We will”, “We will ship Monday.”) collapse correctly to one complete sentence with captions_auto provenance.
  • The same native path retains chapter heading text and writes the expected completed video_link file row.

Source

Scope and deduplication

  • Actual Hono video routes, session/org membership and own-thread guards, video service SQL, ingest worker, video-specific shim, caption parser, paragraphizer and native file/job finalizer execute. Every rerun creates a fresh retained PostgreSQL database on the assigned loopback cluster. The video table and its checks come directly from the pinned production migration; supporting identity/thread/file tables contain the columns these paths use. This is not a full production-schema test.
  • Metadata/caption download boundaries are controlled synthetic local fixtures. Native URL validation runs with a deterministic DNS resolver; global fetch refuses all network. The metadata shape is the current YtDlpMetadata contract, and the caption bytes are a normal blank-line-delimited WebVTT track with valid cue timings/voice tags. No real media, yt-dlp process, ffmpeg, provider, browser-source page or model is called.
  • Queue and realtime outbox sinks record calls; unrelated budget/rate-limit/2FA decisions are permissive fixtures. Audit writes, browser-session pool and unrelated chat/RAG tool handlers are omitted. Blob writes retain local bytes; the native transcript metadata and job status are committed in PostgreSQL. No indexing result, live provider outcome or production defect reproduction is claimed.
  • All identities, databases and files are new retained fixtures. No existing state is reset or deleted, no source file is edited and no credentials are logged. Browser verification is pending/unavailable and does not support this batch. An initial harness run lacked an unused knowledge shim export; its working log is retained and excluded as product evidence.
  • Searched all 1028 cached all-state issue bodies and baseline 102/current wave ledger for rollingWindowDedup, rolling-window captions, same-start cues and simultaneous caption loss; no matching report was found.
  • Read bug(platform): transcript attachment tells the model to call document_retrieve even when the agent lacks that tool #2760 (retrieval-tool instructions for video transcripts): it concerns message tool availability after ingestion, not caption content loss. Toolchain Video ingestion fails out of the box on dev/self-hosted (yt-dlp toolchain not wired into the Convex env) #2746 and source-trust Bug: email content reaches the model as trusted #3081 are also separate. No documented debt covers this loss. Search details are frozen in dedup-batch1.json.

Independent review

Independently replayed the real caption parser, worker and PostgreSQL finalization. Both native transcript and retained blob lost the shorter distinct same-start cue. Different-time manual captions and real rolling-prefix controls passed. Network and media boundaries stayed closed; no browser claim.

The affected source files are unchanged between the tested revision and current main d351611bd as checked before publication. Checked all-state issue bodies and the separate baseline of 102 reports; this entry is additional to that baseline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions