Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSTK-REQ-260730-RSP0StakeholderReview

As a caller of the OpenAI Responses API through LiteLLM, I need my request narrowed and normalized to what OpenAI accepts (gpt-5 temperature validated, sub-minimum max_output_tokens raised to the API floor, Anthropic-only cache_control markers stripped, reasoning items with null fields cleaned), the correct /responses endpoint targeted and my request authenticated, streaming events dispatched to their typed model, and fake-streaming chosen only when the model cannot stream natively, so my Responses API requests parse cleanly and reach OpenAI in a shape it accepts

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

As a caller of the OpenAI Responses API through LiteLLM, I need my request narrowed and normalized to what OpenAI accepts (gpt-5 temperature validated, sub-minimum max_output_tokens raised to the API floor, Anthropic-only cache_control markers stripped, reasoning items with null fields cleaned), the correct /responses endpoint targeted and my request authenticated, streaming events dispatched to their typed model, and fake-streaming chosen only when the model cannot stream natively, so my Responses API requests parse cleanly and reach OpenAI in a shape it accepts

Rationale & tags

Why this requirement exists, and how it is categorised.

The OpenAI Responses API transform is the pure request/response transform boundary mirroring the Rust core/providers responses transform; its param validation, request build, endpoint/auth construction, response parse, streaming-event dispatch, and fake-stream gating must be specified and verified so requests reach OpenAI in an accepted shape

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
Formalizationnone
Strategyinformal

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

    Stakeholder aggregate carries the transform partitions: nominal builds a well-formed request and parses a well-formed response, error_handling raises the mapped unsupported-params error for a gpt-5 temperature that cannot be honored, malformed_input covers the pydantic-to-dict and reasoning-null normalization of structurally-loose input items; these decompose into the openai_responses SW-REQs

  • propertynot applicable

    Cross-cutting algebraic property invariants are discharged at the child SW-REQ level (pure-function classification and endpoint construction); the informal stakeholder aggregate has no runtime code of its own

  • structuralnot applicable

    Informal stakeholder aggregate over garbage-collected Python with no manual memory, pointer arithmetic, overflow, or format string

  • domainnot applicable

    The scoped transform boundary builds request dicts, URLs and headers and parses already-fetched httpx responses; it opens no socket itself, so the external-call and http-client domain classes bind to the out-of-scope BaseLLMHTTPHandler call path, not to this aggregate

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 evidence0/0 required witnessed
  • nominalrecommendedpresent
    Covered by 15 tests
    via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1via SYS-REQ-260730-RSP1
Discharged

Behavior when operations fail or dependencies are unavailable.

Discharging evidence1/1 required witnessed
  • negativerequiredpresent
    Covered by 2 tests
    via SYS-REQ-260730-RSP1
Discharged

Behavior when inputs are syntactically or structurally invalid.

Discharging evidence1/1 required witnessed
  • negativerequiredpresent
    Covered by 2 tests
    via SYS-REQ-260730-RSP1
  • nominalrecommendedpresent
    Covered by 1 test
    via SYS-REQ-260730-RSP1

Acceptance criteria

Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.

Stakeholder-authored conditions defining when the requirement is satisfied, traced to derived requirements / evidence.

  • AC-001verify: analysis

    A gpt-5 request whose temperature cannot be honored is rejected with the mapped unsupported-params error unless drop_params is set, in which case the temperature is dropped

    Derived requirements
    Verification rationale

    Verified by analysis of SYS-REQ-260730-RSP1 (responses_transform_contract_honored), which decomposes into the gpt-5 temperature-disposition SW-REQ modeled by the gpt5_temperature_disposition decision table; the unit tests assert the mapped error is raised, the temperature dropped under drop_params, and flexible temperature kept when reasoning.effort is none/absent on a supporting model. See specs/software and tests/test_litellm/llms/openai/responses/test_openai_responses_transformation.py

  • AC-002verify: analysis

    A request forwards to the canonical /responses endpoint with a Bearer Authorization header, with cache_control markers stripped and reasoning-item null fields removed, and a sub-minimum max_output_tokens raised to the API floor

    Derived requirements
    Verification rationale

    Verified by analysis of SYS-REQ-260730-RSP1, which decomposes into the endpoint-URL, auth, request-build, cache-control-strip, reasoning-normalize and token-floor SW-REQs; the unit tests assert the endpoint shape, the Bearer header, the stripped cache_control keys, the cleaned reasoning items, and the floored token count. See specs/software and the mapped test file

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