Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
get_complete_url resolves the effective api_base (falling back to DEEPGRAM_API_BASE or the https://api.deepgram.com/v1 default when none is supplied), strips a trailing slash, and builds the /listen endpoint carrying the model plus the filtered provider query params, where each param value is rendered by _format_param_value as a lowercased boolean literal or its str() coercion, yielding an absolute endpoint for every api_base class
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
get_complete_url resolves the effective api_base (falling back to DEEPGRAM_API_BASE or the https://api.deepgram.com/v1 default when none is supplied), strips a trailing slash, and builds the /listen endpoint carrying the model plus the filtered provider query params, where each param value is rendered by _format_param_value as a lowercased boolean literal or its str() coercion, yielding an absolute endpoint for every api_base class
the deepgram_audio_transcription shall always satisfy listen_endpoint_wellformed
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
- scenarioreviewednominalempty_input
nominal is the well-formed endpoint over the api_base classes (absent, explicit-no-slash, explicit-trailing-slash) enumerated in the deepgram_listen_endpoint table with boolean and non-boolean query params formatted per the deepgram_query_param_formatting table; empty_input is the absent api_base falling through the DEEPGRAM_API_BASE / default chain so an unset base still yields the default /listen host
- propertyreviewedpure_function_property_testedtotality
get_complete_url is a pure URL builder (output depends only on api_base via the resolution chain, the model, and the filtered params); the /listen-with-model property is property-testable and total over any api_base; determinism follows from purity and there is no numeric boundary, only the None-vs-present and trailing-slash string edges already carried by the api_base classes
- structuralnot applicable
Garbage-collected Python rstrip/urlencode/concat with no manual memory, pointer arithmetic, overflow, or format string
- domainreviewed
get_complete_url instantiates no HTTP client and opens no socket; it only formats a URL string and reads DEEPGRAM_API_BASE as process config, so the http-client and external-call classes bind to the out-of-scope Deepgram handler that dials the /listen endpoint
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-33
get_complete_url resolves the base ('if api_base is None' -> DEEPGRAM_API_BASE or the api.deepgram.com/v1 default, line 184), rstrips it, and appends /listen with model plus filtered params; _format_param_value lowercases booleans ('if isinstance(value, bool)', line 213) and str-coerces the rest. FRETish listen_endpoint_wellformed holds for every api_base class.
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 catalogueHappy-path behavior with valid inputs.
- nominalrequiredpresentCovered by 3 tests
Behavior when inputs are absent, nil, zero-length, or blank.
- nominalrequiredpresentCovered by 2 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
Every reachable input combination is covered by a requirement.
- 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
the deepgram_audio_transcription shall always satisfy listen_endpoint_wellformed
Witnesses· 2 scenarios total
- complete_url_defaults_when_absentexercises 1 condition scenario
- test_absent_api_base_falls_back_to_deepgram_defaultexercises 1 condition scenario
MC/DC truth table· 2 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| # | listen_endpoint_wellformed | Result | Proves | Covering test |
|---|---|---|---|---|
| 1 | F | F | listen_endpoint_wellformed | Exempted · defensive — get_complete_url always resolves a base (caller/secret/default) and appends /listen with the model, so a malformed endpoint is unreachable in a correct build (reviewed: agent:claude-opus-4-8) |
| 2 | T | T | listen_endpoint_wellformed |
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.