Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSW-REQ-260731-DRSPSoftwareReview

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

All automated checks pass and 3/3 obligations are satisfied. Human review is still pending.
PriorityshallTypeguaranteeCategoryfunctionalComponentdeepgram_audio_transcriptionAssuranceEFindingsLowworst open

Specification

The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.

Description

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

FRETish formula
when response_parseable the deepgram_audio_transcription shall always satisfy transcript_extracted
View full formal model

Verification & provenance

How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).

Assurance levelE
Formalizationvalid
Strategyfretish

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

Reviewed Aug 1, 2026, 18:01 UTCby agent:claude-opus-4-8catalog v1.9.1
  • 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.

  1. 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 catalogue
Discharged

Happy-path behavior with valid inputs.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 4 tests
Discharged

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

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 4 tests
Discharged

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.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered 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).

FRETish formula

when response_parseable the deepgram_audio_transcription shall always satisfy transcript_extracted

Witnesses· 2 scenarios total

  • response_concatenates_content_blocks
    exercises 1 condition scenario
  • test_no_diarization_uses_plain_transcript
    exercises 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.

Covereda test exercises this rowExempteda reviewed mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test
#response_parseabletranscript_extractedResultProvesCovering test
1FFTresponse_parseableUncovered
2TFFresponse_parseableUncovered
3TTTtranscript_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.

  • Deepgram audio transcription: Python -> RustMIR-005
    Not portedPython → Rust
    View in Mirrors

Impact

Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).

If you change this

Requirements
0
Files
2
Tests
1
At-risk contracts
0

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.

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