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

transform_audio_transcription_response raises a ValueError carrying the raw response text when the response cannot be parsed into the expected results/channels/alternatives shape, so a malformed or error response fails loud rather than returning a partial transcript

All automated checks pass and 7/7 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

transform_audio_transcription_response raises a ValueError carrying the raw response text when the response cannot be parsed into the expected results/channels/alternatives shape, so a malformed or error response fails loud rather than returning a partial transcript

FRETish formula
when (! response_parseable) the deepgram_audio_transcription shall always satisfy parse_error_raised
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
  • scenarioreviewederror_handlingmalformed_input

    error_handling and malformed_input are the exact hazards: an out-of-shape body (missing results/channels/alternatives, non-JSON, or missing metadata.duration) is caught and re-raised as a ValueError carrying the response text. empty_input is a degenerate malformed_input already covered by the same broad except path, not a distinct partition

  • domainreviewederrors_propagatedmalformed_recovers_or_errors_loudly

    Applied errors_propagated (the parse failure surfaces as a raised ValueError, never swallowed) and malformed_recovers_or_errors_loudly (fail loud, no partial TranscriptionResponse). Suppressed the external-call/http-client reliability and TLS set: this is a process_local transform of an already-received httpx.Response opening no socket, so those controls live on the Deepgram /listen HTTP call. untrusted_input_bounded and denial_of_service_resistant are suppressed because this narrow re-raise guarantee governs only that a parse failure is raised, not JSON schema/size bounding, which is a separate parser concern

  • propertynot applicable

    This is a single error-path guarantee (re-raise on parse failure), not an algebraic-invariant claim; determinism/idempotency/totality do not pertain, and atomicity (no partial state on failure) is already carried by the applied malformed_recovers_or_errors_loudly domain class

  • structuralnot applicable

    Python transform expressing failure by re-raising a typed ValueError; no manual memory, pointer arithmetic, overflow, or format string on this path

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

    The broad 'except Exception as e' (132) re-raises as ValueError carrying the response text (133), so any out-of-shape body fails loud. FRETish 'when (! response_parseable) satisfy parse_error_raised' matches the re-raise on the except path.

    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

Behavior when operations fail or dependencies are unavailable.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 2 tests
  • nominalrequiredpresent
    Covered by 2 tests
Discharged

Errors from called functions shall be propagated to the caller (or transformed into a typed error); they shall not be silently dropped, swallowed, or downgraded to a default value.

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

Behavior when inputs are syntactically or structurally invalid.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 2 tests
  • nominalrequiredpresent
    Covered by 2 tests
Discharged

Parsers shall declare their malformed-input policy: either documented recovery (and what is preserved) or loud error with no partial state.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 2 tests
  • 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 parse_error_raised

Witnesses· 2 scenarios total

  • malformed_response_is_rejected
    exercises 1 condition scenario
  • test_malformed_response_raises_value_error
    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
#parse_error_raisedresponse_parseableResultProvesCovering test
1FFFparse_error_raisedUncovered
2FTTresponse_parseableUncovered
3TFTparse_error_raised

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