Skip to content

feat(processing): read transcript evidence by exact media version - #736

Merged
wesm merged 2 commits into
mainfrom
pr/240-8-transcript-read
Oct 2, 2026
Merged

wesm merged 2 commits into
mainfrom
pr/240-8-transcript-read

Conversation

@rodboev

@rodboev rodboev commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Apps that store a recording in Docbank, such as msgvault saving a call, can now read its transcript, with each line's speaker and timing, using the IDs they already hold. Before, a transcript could only be reached through IDs Docbank assigns to its processed copies, which those apps never see, so they couldn't show what was said.

The transcript is at GET /api/v1/media/sources/{source_id}/versions/{source_version_id}/transcript and docbank media transcript. It comes from exactly that version of the recording, with each line checked against its checksum. If the version doesn't match or the file was replaced, the answer is stale with no text, so an app never shows a transcript of different audio.

It returns the transcript lines Docbank already stores, so the text has one copy and needs no code to read each caption format. As a result the response has no provider or language field, since the stored lines don't record either.

Refs #240 (comment), slice 7 (read a saved transcript)

@roborev-ci

roborev-ci Bot commented Sep 30, 2026

Copy link
Copy Markdown

roborev: Combined Review (f9db99a)

Verdict: No findings at or above medium severity.


Reviewers: codex, codex (security) | Synthesis: codex | Total: 8m50s

@rodboev
rodboev marked this pull request as ready for review September 30, 2026 00:24
@roborev-ci

roborev-ci Bot commented Sep 30, 2026

Copy link
Copy Markdown

roborev: Combined Review (5b0fa96)

Verdict: No findings at or above medium severity.


Reviewers: codex, codex (security) | Synthesis: codex | Total: 6m7s

@rodboev
rodboev force-pushed the pr/240-8-transcript-read branch from 5b0fa96 to 589a9db Compare September 30, 2026 02:46
@roborev-ci

roborev-ci Bot commented Sep 30, 2026

Copy link
Copy Markdown

roborev: Combined Review (589a9db)

Verdict: No findings at or above medium severity.


Reviewers: codex, codex (security) | Synthesis: codex | Total: 7m28s

@wesm

wesm commented Oct 1, 2026

Copy link
Copy Markdown
Member

reviewing

@roborev-ci

roborev-ci Bot commented Oct 1, 2026

Copy link
Copy Markdown

roborev: Combined Review (ac4beeb)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 9m45s

@rodboev
rodboev added this pull request to stack #752 October 1, 2026 23:42
Callers holding a recording's source, version, and content IDs can read its
transcript through the embedded API, HTTP, and the CLI. The read resolves the
source version to its content version and covering profile, takes the active
rendition the way rendition selection does, and returns the build's
checksum-verified normalized evidence units.

- fix(daemonconn): accept every transcript unit the daemon returns
- fix(processing): reject non-canonical transcript version ids
- fix(processing): reuse time_span for transcript unit timing

Co-authored-by: Wes McKinney <wesmckinn+git@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wesm
wesm force-pushed the pr/240-8-transcript-read branch from ac4beeb to 2519f55 Compare October 2, 2026 03:26
@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (2519f55)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 7m31s

Lint failed on this PR after it was rebased onto main. Main now
requires every top-level test in the api, processing, and store
packages to call t.Parallel(). The new transcript tests did not.

These tests use their own catalog, blob store, and temporary
directories. They do not set environment variables or change
process-wide state, so they can run in parallel.

Generated with Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (eaedc83)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 8m31s

@wesm
wesm merged commit a1debc4 into main Oct 2, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants