Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSYS-REQ-260730-RSP1SystemReview

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

All automated checks pass and 5/5 obligations are satisfied. Human review is still pending.
PriorityshallTypeguaranteeCategoryfunctionalComponentopenai_responsesAssuranceEFindingsLowworst open

Specification

The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.

Description

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

FRETish formula
the openai_responses shall always satisfy responses_transform_contract_honored
View full formal model

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).

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_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 catalogue

Evidence 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.

Discharged

Happy-path behavior with valid inputs.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 25 tests
    via 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
Discharged

Behavior when operations fail or dependencies are unavailable.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 3 tests
    via SW-REQ-260730-REASvia SW-REQ-260730-TEMP
  • nominalrequiredpresent
    Covered by 2 tests
    via SW-REQ-260730-REASvia SW-REQ-260730-TEMP
Discharged

Behavior when inputs are syntactically or structurally invalid.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 4 tests
    via SW-REQ-260730-CC58via SW-REQ-260730-REASvia SW-REQ-260730-REQB
  • nominalrequiredpresent
    Covered by 5 tests
    via SW-REQ-260730-CC58via SW-REQ-260730-REASvia SW-REQ-260730-REASvia SW-REQ-260730-REQB

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_together
    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
#responses_transform_contract_honoredResultProvesCovering test
1FFresponses_transform_contract_honoredExempted · 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)
2TTresponses_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.

  • 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).

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