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

map_openai_params forwards a non-default parameter into the mapped optional params iff it is present in the Deepgram supported allowlist returned by get_supported_openai_params (the single OpenAI `language` param), dropping every other candidate so only allowlisted params reach the provider

All automated checks pass and 4/4 obligations are satisfied. Human review is still pending.
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

map_openai_params forwards a non-default parameter into the mapped optional params iff it is present in the Deepgram supported allowlist returned by get_supported_openai_params (the single OpenAI language param), dropping every other candidate so only allowlisted params reach the provider

FRETish formula
the deepgram_audio_transcription shall always satisfy (param_forwarded <-> param_supported)
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
  • scenarioreviewednominalempty_input

    nominal is the allowlist happy path over the finite param classes (a supported `language` param forwarded, an unsupported param dropped) enumerated in the deepgram_param_support table; empty_input is the empty non_default_params dict yielding the optional_params unchanged; malformed_input is suppressed because map_openai_params performs no value validation, it forwards the value verbatim by key membership, so it has no reject-invalid guarantee

  • propertyreviewedpure_function_property_testedtotality

    map_openai_params is a pure dict filter (output depends only on the two dict args and the static allowlist), so the forward-iff-supported property is property-testable and total over any candidate set; determinism follows from purity

  • structuralnot applicable

    Garbage-collected Python dict membership test and assignment with no manual memory, pointer arithmetic, overflow, or format string

  • domainnot applicable

    Pure in-process param filtering issuing no network/filesystem/IPC call

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

    get_supported_openai_params (line 31) returns exactly ["language"]; map_openai_params (line 43) forwards each non-default param under 'if k in supported_params' and drops the rest. FRETish (param_forwarded <-> param_supported) matches the single membership gate: forwarded iff in the allowlist.

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

Happy-path behavior with valid inputs.

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

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

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 3 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
Discharged

Every reachable input combination is covered by a requirement.

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

the deepgram_audio_transcription shall always satisfy (param_forwarded <-> param_supported)

Witnesses· 2 scenarios total

  • request_matches_python_shape
    exercises 1 condition scenario
  • test_forwards_supported_drops_unsupported
    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
#param_forwardedparam_supportedResultProvesCovering test
1FFTparam_forwarded
2FTFparam_supportedExempted · defensive — a supported param is always forwarded by map_openai_params, so the supported-yet-dropped biconditional violation is unreachable in a correct build (reviewed: agent:claude-opus-4-8)
3TFFparam_forwardedExempted · defensive — an unsupported param is never forwarded by map_openai_params, so the unsupported-yet-forwarded biconditional violation is unreachable in a correct build (reviewed: agent:claude-opus-4-8)

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).

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