Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSYS-REQ-260731-RT11SystemReview

The OpenAI Realtime provider config shall honor its endpoint/auth contract as a whole: resolve the effective api_base across the caller/litellm/env/default precedence chain, resolve the effective api_key across the caller/litellm.api_key/litellm.openai_key/env/empty precedence chain, build the canonical /v1/realtime client_secrets, calls and transcription_sessions endpoints with exactly one path segment and a deduped /v1 base suffix, and always assemble a Bearer Authorization header with a defaulted application/json content type

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

Specification

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

Description

The OpenAI Realtime provider config shall honor its endpoint/auth contract as a whole: resolve the effective api_base across the caller/litellm/env/default precedence chain, resolve the effective api_key across the caller/litellm.api_key/litellm.openai_key/env/empty precedence chain, build the canonical /v1/realtime client_secrets, calls and transcription_sessions endpoints with exactly one path segment and a deduped /v1 base suffix, and always assemble a Bearer Authorization header with a defaulted application/json content type

FRETish formula
the openai_realtime shall always satisfy openai_realtime_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 Realtime provider config, 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
Aug 1, 2026, 18:19 UTC · Claude Opus 4 8 · AI agent

Hazard review

Reviewed Aug 1, 2026, 18:25 UTCby agent:claude-opus-4-8catalog v1.9.1
  • scenarioreviewednominalboundaryempty_input

    The umbrella contract: nominal resolves present base/key sources and builds a well-formed endpoint with a Bearer header, boundary is the redundant /v1 base suffix deduped at the endpoint seam so the path never doubles into /v1/v1, empty_input is the fully-unset base/key chain falling through to the OpenAI default and the empty-string key sentinel. All refine into the child SW-REQs

  • propertynot applicable

    Totality and purity are discharged at the child SW-REQ level (pure resolution, pure endpoint construction); the umbrella conjunction has no standalone algebraic property surface

  • structuralnot applicable

    Garbage-collected Python building strings and a headers dict; no manual memory, pointer arithmetic, overflow, or format string across the transform

  • domainnot applicable

    The provider config resolves credentials, formats REST endpoint URL strings and assembles a headers dict; it instantiates no HTTP client and opens no socket, so external-call and http-client domain classes bind to the out-of-scope realtime HTTP handler / websocket 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.

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 2 tests
    via SW-REQ-260731-AB40
Discharged

Behavior at limits, thresholds, and edge-of-range values.

If it were violatedMedium

Any child contract degrades at its edge (base or key precedence inverts, the /v1 dedup doubles the path, or the Bearer/JSON header is dropped) so the aggregate realtime request leaves LiteLLM misrouted, unauthenticated, or malformed and OpenAI rejects the session

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 1 test
Discharged

Behavior when inputs are absent, nil, zero-length, or blank.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 3 tests
    via SW-REQ-260731-AB40via SW-REQ-260731-AB40

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_realtime shall always satisfy openai_realtime_transform_contract_honored

Witnesses· 2 scenarios total

  • complete_url_custom_base
    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
#openai_realtime_transform_contract_honoredResultProvesCovering test
1FFopenai_realtime_transform_contract_honoredExempted · defensive — the provider config always resolves a base/key, builds a canonical /v1/realtime endpoint, and sets a Bearer + JSON header; a correct build cannot dishonor the contract, so this invariant-violation row is unreachable (reviewed: agent:claude-opus-4-8)
2TTopenai_realtime_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.

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
4
Files
2
Tests
0
At-risk contracts
0

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