Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
transform_audio_transcription_response returns a TranscriptionResponse whose text is the transcript selected for the diarization mode (plain alternative transcript when diarization is absent, the pre-formatted paragraph transcript when diarized paragraphs are present, otherwise the per-word reconstruction) and which carries task=transcribe, the detected language or the en default, the metadata duration, and the OpenAI-shaped words list when words are present, whenever the raw response parses into the expected shape
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
transform_audio_transcription_response returns a TranscriptionResponse whose text is the transcript selected for the diarization mode (plain alternative transcript when diarization is absent, the pre-formatted paragraph transcript when diarized paragraphs are present, otherwise the per-word reconstruction) and which carries task=transcribe, the detected language or the en default, the metadata duration, and the OpenAI-shaped words list when words are present, whenever the raw response parses into the expected shape
when response_parseable the deepgram_audio_transcription shall always satisfy transcript_extracted
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
- scenarioreviewednominalboundary
nominal is the transcript-extraction happy path over the three diarization modes enumerated in the deepgram_transcript_extraction table; boundary is the diarization-detection edge where words are present but empty or carry no speaker key, which falls back to the plain transcript, and the detected_language-vs-en fallback enumerated in the deepgram_language_resolution table; empty_input is suppressed because a fully-empty/malformed body cannot parse into the results/channels/alternatives shape and is the parse-failure re-raise guarantee of SW-REQ-260731-DERR, not this nominal extraction
- propertyreviewedpure_function_property_tested
transform_audio_transcription_response is a pure transform of an already-received httpx.Response (its only side effect is the .json() read), so the mode-to-transcript-source property is property-testable; determinism follows from the pure mapping and totality is delegated to the parse-failure re-raise guarantee of SW-REQ-260731-DERR for out-of-shape bodies
- structuralnot applicable
Garbage-collected Python dict/list indexing and comprehension over the parsed JSON with no manual memory, pointer arithmetic, overflow, or format string
- domainreviewed
This is a process_local transform of an already-delivered response; it opens no socket, so the external-call reliability and TLS classes bind to the httpx client that issued the Deepgram /listen POST, not to this parser. untrusted_input_bounded (schema/size bounding of the JSON) is delegated to the parse-failure re-raise guarantee of SW-REQ-260731-DERR, which fails loud on any out-of-shape body rather than partially constructing a response
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-30
transform_audio_transcription_response selects text by diarization mode: 'if not has_diarization' (98) -> plain transcript, 'elif paragraphs' (101) -> paragraph transcript, else -> reconstruct; diarization detected by 'words present and non-empty' (94) then speaker key. Language falls back detected_language else 'en' (116). FRETish transcript_extracted (guarded by response_parseable) matches the mode selection.
Cited code (4)
Open known issues
Findings currently open against this requirement — issues its verification surfaced that are not resolved yet. Each links to the full finding.
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
3 obligations · 3 discharged
Browse the catalogueHappy-path behavior with valid inputs.
- nominalrequiredpresentCovered by 4 tests
Behavior at limits, thresholds, and edge-of-range values.
- nominalrequiredpresentCovered by 4 tests
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.
- 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 transcript_extracted
Witnesses· 2 scenarios total
- response_concatenates_content_blocksexercises 1 condition scenario
- test_no_diarization_uses_plain_transcriptexercises 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| # | response_parseable | transcript_extracted | Result | Proves | Covering test |
|---|---|---|---|---|---|
| 1 | F | F | T | response_parseable | Uncovered |
| 2 | T | F | F | response_parseable | Uncovered |
| 3 | T | T | T | transcript_extracted |
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.
Mirrors
Ports this requirement participates in — it carries a reviewed exemption on one side, or a finding raised against it is tracked as part of the port.
Mirrors
Ports this requirement participates in — it carries a reviewed exemption on one side, or a finding raised against it is tracked as part of the port.
- Deepgram audio transcription: Python -> RustMIR-005Not portedPython → RustView in Mirrors
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.