Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSTK-REQ-260731-DGSTStakeholderReview

As a caller transcribing audio through LiteLLM against Deepgram, I need the provider config to forward only Deepgram-supported params, send my audio bytes to the correct /listen endpoint with a Token auth header, and turn the /listen response back into an OpenAI-shaped transcription (including diarized transcripts) or fail loud when the response is malformed, so my transcription request and its result round-trip in a shape the OpenAI SDK accepts

Automated checks pass.
PriorityshallTypeguaranteeCategoryfunctionalComponentdeepgram_audio_transcriptionAssuranceEFindingsnone open

Specification

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

Description

As a caller transcribing audio through LiteLLM against Deepgram, I need the provider config to forward only Deepgram-supported params, send my audio bytes to the correct /listen endpoint with a Token auth header, and turn the /listen response back into an OpenAI-shaped transcription (including diarized transcripts) or fail loud when the response is malformed, so my transcription request and its result round-trip in a shape the OpenAI SDK accepts

Rationale & tags

Why this requirement exists, and how it is categorised.

The Deepgram audio-transcription provider config is the pure request/response/param/endpoint/auth transform boundary mirroring the generic Rust core audio_transcription transform trait (AudioTranscriptionProviderConfig); its param mapping, request build, response parse, endpoint construction and auth-header assembly must be specified and verified so transcription requests reach Deepgram and their results reach the caller in an accepted shape

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
Formalizationnone
Strategyinformal

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
  • scenarioreviewednominalboundaryempty_input

    Stakeholder aggregate carries the transform partitions: nominal forwards supported params, sends bytes to /listen with a Token header and extracts the transcript, boundary is the diarization and detected-language edges and the trailing-slash api_base seam, empty_input is the empty param dict / empty word stream / absent api_base default fallback; these decompose into the deepgram_audio_transcription SW-REQs, with the malformed-response path carried by the DERR re-raise guarantee

  • propertynot applicable

    Cross-cutting algebraic property invariants are discharged at the child SW-REQ level (pure param filter, pure response transform, pure URL builder); the informal stakeholder aggregate has no runtime code of its own

  • structuralnot applicable

    Informal stakeholder aggregate over garbage-collected Python dict/list/string operations with no manual memory, pointer arithmetic, overflow, or format string

  • domainnot applicable

    The scoped provider-config boundary maps params, formats a /listen URL string, transforms an already-received response and assembles a headers dict; it instantiates no HTTP client and opens no socket itself, so the external-call and http-client domain classes bind to the out-of-scope Deepgram HTTP handler

Change history

Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.

Obligations

What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.

3 obligations · 2 discharged · 1 not yet witnessed

Browse the catalogue

Evidence tagged via <REQ> is witnessed by a requirement that satisfies this one — normal for stakeholder / aggregate requirements, which are proven through the requirements that refine them.

Discharged

Happy-path behavior with valid inputs.

Discharging evidence0/0 required witnessed
  • nominalrecommendedpresent
    Covered by 13 tests
    via SYS-REQ-260731-DGSYvia SYS-REQ-260731-DGSYvia SYS-REQ-260731-DGSYvia SYS-REQ-260731-DGSYvia SYS-REQ-260731-DGSYvia SYS-REQ-260731-DGSY
Discharged

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

Discharging evidence0/0 required witnessed
  • nominalrecommendedpresent
    Covered by 5 tests
    via SYS-REQ-260731-DGSYvia SYS-REQ-260731-DGSYvia SYS-REQ-260731-DGSY
Not yet witnessed

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

Discharging evidence0/0 required witnessed

    Acceptance criteria

    Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.

    Stakeholder-authored conditions defining when the requirement is satisfied, traced to derived requirements / evidence.

    • AC-001verify: analysis

      A transcription request forwards only Deepgram-supported params, sends the audio bytes to a well-formed /listen endpoint carrying the model and a Token Authorization header, for any api_base class

      Derived requirements
      Verification rationale

      Verified by analysis of SYS-REQ-260731-DGSY (deepgram_transcription_transform_contract_honored), which decomposes into the param-mapping (DPMP), request-passthrough (DREQ), endpoint (DURL) and auth (DAUT) SW-REQs modeled by the deepgram_param_support, deepgram_listen_endpoint and deepgram_query_param_formatting decision tables; the unit tests assert supported-only forwarding, the /listen endpoint across api_base classes, and the Token header. See specs/software and tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transformation.py

    • AC-002verify: analysis

      A /listen response is turned back into an OpenAI-shaped transcription selecting the transcript per diarization mode (plain, paragraph, per-word reconstruction), and a malformed response raises a loud ValueError rather than returning a partial transcript

      Derived requirements
      Verification rationale

      Verified by analysis of SYS-REQ-260731-DGSY, which decomposes into the response-extraction (DRSP), parse-failure re-raise (DERR) and diarized-reconstruction (DDIA) SW-REQs modeled by the deepgram_transcript_extraction and deepgram_language_resolution decision tables; the unit tests assert each diarization mode, the detected-language fallback, and the re-raise on a malformed body. See specs/software and the mapped test file

    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.

    No implementation linked

    No source files are traced to this requirement yet.

    Impact

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

    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