Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
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
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
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
the openai_realtime shall always satisfy openai_realtime_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 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).
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
- 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 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 2 tests
Behavior at limits, thresholds, and edge-of-range values.
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
- nominalrequiredpresentCovered by 1 test
Behavior when inputs are absent, nil, zero-length, or blank.
- nominalrequiredpresentCovered by 3 tests
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_realtime shall always satisfy openai_realtime_transform_contract_honored
Witnesses· 2 scenarios total
- complete_url_custom_baseexercises 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| # | openai_realtime_transform_contract_honored | Result | Proves | Covering test |
|---|---|---|---|---|
| 1 | F | F | openai_realtime_transform_contract_honored | Exempted · 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) |
| 2 | T | T | openai_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).
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 to re-check (2)
- transformation.rslitellm-rust/crates/core/src/providers/openai/realtime/transformation.rs
- http_transformation.pylitellm/llms/openai/realtime/http_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.