Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
The OpenAI Responses API transform shall honor its request/response contract: classify gpt-5 models exactly, validate or drop gpt-5 temperature, raise sub-minimum max_output_tokens to the API floor, strip cache_control markers and normalize reasoning input items, build the canonical /responses endpoint with a Bearer auth header, include list query params exactly when present, dispatch streaming events to their typed model, and choose fake-streaming only for models that cannot stream natively
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
The OpenAI Responses API transform shall honor its request/response contract: classify gpt-5 models exactly, validate or drop gpt-5 temperature, raise sub-minimum max_output_tokens to the API floor, strip cache_control markers and normalize reasoning input items, build the canonical /responses endpoint with a Bearer auth header, include list query params exactly when present, dispatch streaming events to their typed model, and choose fake-streaming only for models that cannot stream natively
the openai_responses shall always satisfy responses_transform_contract_honored
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
System-level black-box behavior of the OpenAI Responses transform, decomposed into component software requirements
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
- scenarioreviewednominalerror_handlingmalformed_input
The umbrella contract: nominal builds a well-formed request/URL/headers and parses a well-formed response and streaming event, error_handling is the gpt-5 temperature that raises the mapped unsupported-params error, malformed_input is the pydantic-to-dict and reasoning-null normalization that cleans structurally-loose input items before send. All refine into the child SW-REQs
- propertynot applicable
Totality and purity are discharged at the child SW-REQ level (pure classification, floor, endpoint construction); the umbrella conjunction has no standalone algebraic property surface
- structuralnot applicable
Garbage-collected Python building dicts, strings and typed models; no manual memory, pointer arithmetic, overflow, or format string across the transform
- domainnot applicable
The transform builds request dicts, endpoint URLs and headers and parses already-fetched httpx.Response objects; it instantiates no HTTP client and opens no socket, so external-call and http-client domain classes bind to the out-of-scope BaseLLMHTTPHandler call path, not to this transform boundary
Change history
Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.
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.
3 obligations · 3 discharged
Browse the catalogueEvidence 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.
Happy-path behavior with valid inputs.
- nominalrequiredpresentCovered by 25 testsvia SW-REQ-260730-CC58via SW-REQ-260730-CC58via SW-REQ-260730-FAKEvia SW-REQ-260730-G5MCvia SW-REQ-260730-QF83via SW-REQ-260730-REASvia SW-REQ-260730-REASvia SW-REQ-260730-REQBvia SW-REQ-260730-TEMPvia SW-REQ-260730-TEMPvia SW-REQ-260730-TEMPvia SW-REQ-260730-TEMPvia SW-REQ-260730-TK17via SW-REQ-260730-VE71via SW-REQ-260730-VN38
Behavior when operations fail or dependencies are unavailable.
- negativerequiredpresentCovered by 3 tests
- nominalrequiredpresentCovered by 2 tests
Behavior when inputs are syntactically or structurally invalid.
- negativerequiredpresentCovered by 4 tests
- nominalrequiredpresent
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 openai_responses shall always satisfy responses_transform_contract_honored
Witnesses· 1 scenario total
- test_endpoint_auth_and_param_validation_togetherexercises 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| # | responses_transform_contract_honored | Result | Proves | Covering test |
|---|---|---|---|---|
| 1 | F | F | responses_transform_contract_honored | Exempted · defensive — the transform always validates params, targets /responses with a Bearer header, and normalizes input; a correct build cannot dishonor the contract, so this invariant-violation row is unreachable (reviewed: agent:claude-opus-4-8) |
| 2 | T | T | responses_transform_contract_honored |
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.
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.
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-003Not portedPython → RustView in Mirrors
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
Requirements (10)
- remove_cache_control_flag_from_input_and_tools applies the…openai_responses · SW
- should_fake_stream enables fake-streaming if and only if…openai_responses · SW
- _is_gpt_5_model classifies a model as an actual OpenAI…openai_responses · SW
- transform_list_input_items_request includes each optional…openai_responses · SW
- _validate_input_param converts pydantic input items to…openai_responses · SW
- transform_responses_api_request and…openai_responses · SW
- map_openai_params dispatches a gpt-5 temperature per the…openai_responses · SW
- _enforce_min_max_output_tokens raises max_output_tokens to…openai_responses · SW
- get_complete_url resolves the effective api_base (caller…openai_responses · SW
- validate_environment resolves the API key from…openai_responses · SW
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
Parent requirements (1)
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.