Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

LiteLLM Python->Rust migration audit (proof mirroring).

Back to findings
Known issueKI-deepgram-diarized-whitespace

Deepgram diarized transcript: final speaker segment is wrapped in stray newlines, delimiters not uniform

OpenOpenLow

Low-severity issue, currently open.

How well is this finding proven?

  1. 1.Reported / candidate

    Complete

  2. 2.Reproducer written

    Complete

    View reproducer
  3. 3.Reproduces (recorded run)

    Not yet established

    View evidence
  4. 4.Independently re-run

    Not yet established

  5. 5.Meets quality standard

    Not assessed

  6. 6.Validated for submission

    Not assessed

Recorded runs show whether the issue reproduces. Independent re-runs are shown separately. A later review does not fill in a missing earlier step.

Description

The issue as recorded.

[Redacted: refers to a finding withheld pending disclosure.]

Affected requirements

The requirement(s) this issue violates — click through to the spec.

Port parity

How this finding relates to the port: whether the behaviour diverges, isn't ported yet, was fixed, or matches across both implementations.

  • Deepgram audio transcription: Python -> RustMIR-005
    Not yet ported to RustPython → Rust
    View in Mirrors

Severity, explained

Why this is rated the way it is — and the scoring signals behind the rating (each ⓘ explains the term).

LowRated severity — the impact if this issue is exploited or hit.
why this rating
Reproducer-confirmed
risk area
Correctness
Security classification
Not a security surface
CVE surface
None

Where it is

The code the issue lives in — peek the affected function inline to see it in context.

  • DeepgramAudioTranscriptionConfig._reconstruct_diarized_transcript

Reproducer and evidence

The recorded reproducer and its evidence-run outcome. Inspect the test and source, or run the command to check the behavior yourself.

Known issue reproducedRun status: Passprofiledeepgram-known-issue-reproducer
Reproducer test
Run it yourself
.venv/bin/pytest tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py -k final_segment_whitespace_is_not_uniform
Covers (2)
Last run Jul 31, 2026, 7:31 AM

Reproduction steps

Technical steps for your engineers to confirm the issue by hand.

.venv/bin/pytest tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py -k final_segment_whitespace_is_not_uniform

What protects you, and the fix

What limits your exposure today, and the planned remediation.

What protects you now

Diarized transcripts are still readable; downstream consumers should strip/normalize whitespace if uniform delimiters are required.

The fix

Append every speaker segment with the same "Speaker <id>: <words>" template (no leading/trailing newline on the final one) and join with a single consistent delimiter. AUDIT/finding only.

Blast radius

If you touch this issue, what else may need re-checking — the requirements it affects and the code and tests that hang off them. Historical view: authored trace links only — automatically derived links aren't reconstructible for past runs.

Tracing blast radius…

Touch this finding and you re-check 1 requirements · 1 code files · 1 tests.

Requirements (1)
Code files (1)
  • transformation.py
Tests (1)
  • test_deepgram_audio_transcription_transform_baseline.py

Per-requirement evidence

For each requirement this finding touches: the implementing code, verifying tests, and proof obligations that discharge it.

Implementing code (1)
  • litellm/llms/deepgram/audio_transcription/transformation.py
    DeepgramAudioTranscriptionConfig._reconstruct_diarized_transcript
Tests & evidence (2)
  • docs/requirements/deepgram_audio_transcription.md
  • tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py
Proof obligations (4)
boundary

Behavior at limits, thresholds, and edge-of-range values.

  • ✓nominal (required) — tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py:215
empty_input

Behavior when inputs are absent, nil, zero-length, or blank.

  • ✓nominal (required) — tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py:236
nominal

Happy-path behavior with valid inputs.

  • ✓nominal (required) — tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py:214
pure_function_property_tested

A function declared pure (no I/O, no global state, output is f(input) only) shall carry property-based tests that exercise its declared algebraic properties (determinism, totality, commutativity, monotonicity, idempotency — whichever apply); example-based tests alone shall not be sufficient evidence for a pure-function obligation.

  • ✓nominal (required) — tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py:216

Evidence trail

The raw evidence manifests behind this finding — superseded by the resolved reproducer above, kept here for traceability.

  • proof/evidence/ki-deepgram-diarized-whitespace.yaml

Change history

Every recorded revision of this finding's source file — when it was added, edited, or re-classified, with the diff for each change.

Discussions

Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.

Sign in to discuss this with the proof team.Sign in