Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
transform_audio_transcription_response raises a ValueError carrying the raw response text when the response cannot be parsed into the expected results/channels/alternatives shape, so a malformed or error response fails loud rather than returning a partial transcript
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
transform_audio_transcription_response raises a ValueError carrying the raw response text when the response cannot be parsed into the expected results/channels/alternatives shape, so a malformed or error response fails loud rather than returning a partial transcript
when (! response_parseable) the deepgram_audio_transcription shall always satisfy parse_error_raised
Verification & provenance
How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).
Review
- Status
- pending
History
- Created
- Jul 31, 2026, 00:00 UTC · Claude Code · AI agent
- Modified
- Jul 31, 2026, 00:00 UTC · Claude Code · AI agent
Hazard review
- scenarioreviewederror_handlingmalformed_input
error_handling and malformed_input are the exact hazards: an out-of-shape body (missing results/channels/alternatives, non-JSON, or missing metadata.duration) is caught and re-raised as a ValueError carrying the response text. empty_input is a degenerate malformed_input already covered by the same broad except path, not a distinct partition
- domainreviewederrors_propagatedmalformed_recovers_or_errors_loudly
Applied errors_propagated (the parse failure surfaces as a raised ValueError, never swallowed) and malformed_recovers_or_errors_loudly (fail loud, no partial TranscriptionResponse). Suppressed the external-call/http-client reliability and TLS set: this is a process_local transform of an already-received httpx.Response opening no socket, so those controls live on the Deepgram /listen HTTP call. untrusted_input_bounded and denial_of_service_resistant are suppressed because this narrow re-raise guarantee governs only that a parse failure is raised, not JSON schema/size bounding, which is a separate parser concern
- propertynot applicable
This is a single error-path guarantee (re-raise on parse failure), not an algebraic-invariant claim; determinism/idempotency/totality do not pertain, and atomicity (no partial state on failure) is already carried by the applied malformed_recovers_or_errors_loudly domain class
- structuralnot applicable
Python transform expressing failure by re-raising a typed ValueError; no manual memory, pointer arithmetic, overflow, or format string on this path
Change history
Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.
Review history
Human and AI-agent approvals of this requirement — the 'why was this approved' lineage, each with the reviewer's justification and the code it cites.
- Claude Code · AI agentApprovedSpec conformanceJul 31, 2026 · 4 months agoREVIEW-31
The broad 'except Exception as e' (132) re-raises as ValueError carrying the response text (133), so any out-of-shape body fails loud. FRETish 'when (! response_parseable) satisfy parse_error_raised' matches the re-raise on the except path.
Cited code (2)
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
4 obligations · 4 discharged
Browse the catalogueBehavior when operations fail or dependencies are unavailable.
- negativerequiredpresentCovered by 2 tests
- nominalrequiredpresentCovered by 2 tests
Errors from called functions shall be propagated to the caller (or transformed into a typed error); they shall not be silently dropped, swallowed, or downgraded to a default value.
- nominalrequiredpresentCovered by 2 tests
Behavior when inputs are syntactically or structurally invalid.
- negativerequiredpresentCovered by 2 tests
- nominalrequiredpresentCovered by 2 tests
Parsers shall declare their malformed-input policy: either documented recovery (and what is preserved) or loud error with no partial state.
- negativerequiredpresentCovered by 2 tests
- nominalrequiredpresentCovered by 2 tests
Formula evidence
The formal formula behind this requirement, the variables it is written over, and the tests that exercise it (each term is explained inline).
Formula evidence
The formal formula behind this requirement, the variables it is written over, and the tests that exercise it (each term is explained inline).
FRETish formula
when (! response_parseable) the deepgram_audio_transcription shall always satisfy parse_error_raised
Witnesses· 2 scenarios total
- malformed_response_is_rejectedexercises 1 condition scenario
- test_malformed_response_raises_value_errorexercises 1 condition scenario
MC/DC truth table· 3 rows
Each row assigns the formula's conditions (T/F) and shows the Result— the formula's value for that input row, not a test pass/fail. A row proves a condition when flipping only that condition flips the outcome. The test that covers each row is linked.
mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test| # | parse_error_raised | response_parseable | Result | Proves | Covering test |
|---|---|---|---|---|---|
| 1 | F | F | F | parse_error_raised | Uncovered |
| 2 | F | T | T | response_parseable | Uncovered |
| 3 | T | F | T | parse_error_raised |
Its place
How this requirement connects — what proves it, what it affects, and what it rests on. Authored links only here; automatically derived links come from the audit index.
Loading graph…
Trace evidence
The concrete artifacts linked to this requirement — implementing code, verifying tests, documents, and the findings raised against it.
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
If you change this
Files to re-check (2)
- audio_transcription.rslitellm-rust/crates/core/src/providers/bedrock/audio_transcription.rs
- transformation.pylitellm/llms/deepgram/audio_transcription/transformation.py
Tests to re-run (1)
- test_deepgram_audio_transcription_transform_baseline.pytests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py
What this rests on
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.