Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

Back to findings
Known issueKI-rust-bedrock-response-content-coercion

Python->Rust silent-coercion parity gap: Bedrock transcription returns empty/partial transcript as SUCCESS on empty/non-text content

OpenOpenMedium

Medium-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

  4. 4.Independently re-run

    Not yet established

  5. 5.Meets quality standard

    Needs attention

  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.

Rust rewrite silent-coercion parity gap (sibling of KI-ocr-response-coercion-divergence). crates/core/src/providers/bedrock/audio_transcription.rs transform_transcription_response (lines 148-168) iterates output.message.content and concatenates ONLY blocks carrying a text string (if let Some(value) = block.get("text")...), silently skipping every non-text block. When the upstream Bedrock converse body has an empty content array or only non-text blocks, the function returns AudioTranscriptionResponseData{ text: "" } as a SUCCESS with no error, so an empty/partial transcript is emitted as a healthy 200 rather than surfacing the loud failure the Python fail-loud reference would. Together with KI-ocr-response-coercion-divergence this is a SYSTEMIC Rust-rewrite pattern: the port coerces malformed/degenerate upstream responses into a silently-degraded success where Python fails loud. The branch is UNTESTED: the bedrock suite has only a happy-path response_concatenates_content_blocks test (audio_transcription.rs:281) and no empty/non-text-content case, so nothing witnesses the silent-empty outcome. AUDIT-ONLY: no code changed.

Reachability

Evidence disposition: this documents behavior in the Rust target (litellm-rust/crates/, outside the Python verification_scope in proof.yaml), established by the static read recorded in reproducer_command. Per the AUDIT-ONLY task scope (KI-files only) no Rust test was added, so there is no bound in-repo tripwire and no runnable evidence row; recorded as honest tracked debt below the runnable-reproducer floor. Fabricating an evidence hash would be dishonest.

Affected requirements

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

Severity, explained

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

MediumRated severity — the impact if this issue is exploited or hit.
why this rating
Risk-rated
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.

  • BedrockAudioTranscriptionConfig::transform_transcription_response (Rust) vs Python fail-loud reference

Reproduction steps

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

read crates/core/src/providers/bedrock/audio_transcription.rs:148-168 (concatenates only text blocks, returns empty text as Ok on empty/non-text content); no empty/non-text-content test exists in the module (only happy-path response_concatenates_content_blocks at :281)

What protects you, and the fix

What limits your exposure today, and the planned remediation.

What protects you now

Python fail-loud path is the reference; upstream ai-gateway callers currently do not distinguish empty-transcript-success from a real failure.

The fix

Make the Bedrock transcription response transform fail loud (or signal empty) when content has no text blocks, matching the Python reference; add an empty/non-text-content test. AUDIT/divergence finding only, no code changed here.

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.

No authoredcode links reach these requirements in this historical reconstruction. Automatically derived code links aren't reconstructible for past runs, so implementing code may have existed without an authored trace.

Tracing blast radius…

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