Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSW-REQ-260730-TEMPSoftwareReview

map_openai_params dispatches a gpt-5 temperature per the gpt5_temperature_disposition table: a non-gpt-5 model or a temperature of None or 1 passes through; a gpt-5 temperature other than 1 is kept flexible only when the model supports reasoning.effort='none' and effort is none or absent, otherwise it is dropped under drop_params (per-request or litellm.drop_params) or raised as UnsupportedParamsError

All automated checks pass and 3/3 obligations are satisfied. Human review is still pending.
PriorityshallTypeguaranteeCategoryfunctionalComponentopenai_responsesAssuranceEFindingsMediumworst 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 dispatches a gpt-5 temperature per the gpt5_temperature_disposition table: a non-gpt-5 model or a temperature of None or 1 passes through; a gpt-5 temperature other than 1 is kept flexible only when the model supports reasoning.effort='none' and effort is none or absent, otherwise it is dropped under drop_params (per-request or litellm.drop_params) or raised as UnsupportedParamsError

FRETish formula
the openai_responses shall always satisfy gpt5_temperature_dispatched
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 Jul 31, 2026, 00:00 UTCby agent:claude-codecatalog v1.9.0
  • scenarioreviewednominalerror_handling

    nominal is the passthrough, kept-flexible, and dropped outcomes; error_handling is the raised UnsupportedParamsError when a gpt-5 temperature cannot be honored and drop_params is not set. malformed_input is suppressed because a numeric temperature and reasoning dict are well-formed inputs that are validated, not rejected as structurally invalid

  • propertynot applicable

    map_openai_params is a finite enum dispatch over the (is_gpt5, temperature, effort, supports_none, drop) tuple modeled by the gpt5_temperature_disposition decision table, not an algebraic pure-function property surface; totality over that tuple is discharged by the table rows

  • structuralnot applicable

    Garbage-collected Python conditional chain with no manual memory, pointer arithmetic, overflow, or format string

  • domainnot applicable

    The UnsupportedParamsError is constructed and raised in-process and the none-effort capability is a local model-metadata lookup; no network/filesystem/IPC call is issued

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

    map_openai_params: line 113 gates on _is_gpt_5_model; 115 'temperature is not None and temperature != 1' selects non-passthrough temps; 119 'supports_none and (effort==none or effort is None)' keeps flexible; 121 'drop_params or litellm.drop_params' drops else raises UnsupportedParamsError. gpt5_temperature_dispatched holds: every gpt-5 temperature maps to exactly one of passthrough/kept_flexible/dropped/raised per the disposition table.

    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.

2 obligations · 2 discharged

Browse the catalogue
Discharged

Happy-path behavior with valid inputs.

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

Behavior when operations fail or dependencies are unavailable.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 1 test
  • nominalrequiredpresent
    Covered by 1 test

Code signals

Static-analysis signals from external scanners that bear on this requirement's obligations — the source location, the obligation each touches, and its closure status.

  • Missingbuiltinunordered_set_to_output
    Obligation: Determinism · Property

    Output identical regardless of collection ordering or runtime conditions.

    OpenAIResponsesAPIConfig.get_supported_openai_params: list(set(...)) — no total order

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 openai_responses shall always satisfy gpt5_temperature_dispatched

Witnesses· 1 scenario total

  • test_passthrough_for_non_gpt5_and_temp_none_or_one
    exercises 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.

Covereda test exercises this rowExempteda reviewed mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test
#gpt5_temperature_dispatchedResultProvesCovering test
1FFgpt5_temperature_dispatchedExempted · defensive — every gpt-5 temperature maps to exactly one outcome (passthrough/kept_flexible/dropped/raised) in the disposition table; a temperature that dispatches to nothing is unreachable in a correct build (reviewed: agent:claude-opus-4-8)
2TTgpt5_temperature_dispatched

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.

  • OpenAI Responses API: Python -> RustMIR-003
    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
1
Tests
1
At-risk contracts
0

Files to re-check (1)

  • transformation.pylitellm/llms/openai/responses/transformation.py

Tests to re-run (1)

  • test_openai_responses_transformation.pytests/test_litellm/llms/openai/responses/test_openai_responses_transformation.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