Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
transform_list_input_items_request includes each optional query parameter (after, before, include, limit, order) in the request params if and only if its value is present (not None / non-empty for include), building the /input_items URL from the encoded response id
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
transform_list_input_items_request includes each optional query parameter (after, before, include, limit, order) in the request params if and only if its value is present (not None / non-empty for include), building the /input_items URL from the encoded response id
the openai_responses shall always satisfy (list_query_param_included <-> list_param_value_present)
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 includes present query params and omits absent ones; empty_input is the all-defaults call where optional params resolve to their defaults or None. malformed_input is suppressed because the response id is percent-encoded rather than rejected
- propertynot applicable
The query-param build is a finite per-param presence gate, not an algebraic property surface; the biconditional per param is captured by the nominal/empty scenarios
- structuralnot applicable
Garbage-collected Python dict/URL assembly with no manual memory, pointer arithmetic, overflow, or format string
- domainnot applicable
transform_list_input_items_request builds a URL and params dict and opens no connection; the http-client domain classes bind to the out-of-scope handler that issues the GET
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-22
transform_list_input_items_request: lines 544-553 include each optional query param (after/before/include/limit/order) under 'if <param> is not None' / 'if include' gates; absent params omitted. FRETish list_query_param_included <-> list_param_value_present matches the per-param presence gate.
Cited code (3)
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 catalogueHappy-path behavior with valid inputs.
- nominalrequiredpresentCovered by 1 test
Behavior when inputs are absent, nil, zero-length, or blank.
- nominalrequiredpresentCovered 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_outputObligation: 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).
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 (list_query_param_included <-> list_param_value_present)
Witnesses· 1 scenario total
- test_present_params_included_absent_omittedexercises 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.
mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test| # | list_param_value_present | list_query_param_included | Result | Proves | Covering test |
|---|---|---|---|---|---|
| 1 | F | F | T | list_param_value_present | |
| 2 | F | T | F | list_query_param_included | Exempted · defensive — an absent query param is never added, so including a missing param is unreachable in a correct build (reviewed: agent:claude-opus-4-8) |
| 3 | T | F | F | list_param_value_present | Exempted · defensive — a present query param is always added, so omitting a present param 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).
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 (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.