Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
As a caller opening an OpenAI Realtime session through LiteLLM, I need the provider config to resolve my effective API base and API key across their documented precedence chains, target the correct /v1/realtime REST endpoints (client_secrets, calls, transcription_sessions) with exactly one canonical path and no doubled /v1, and always attach a Bearer Authorization header with a JSON content type, so my realtime credential and SDP-exchange requests reach OpenAI in a shape it accepts
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
As a caller opening an OpenAI Realtime session through LiteLLM, I need the provider config to resolve my effective API base and API key across their documented precedence chains, target the correct /v1/realtime REST endpoints (client_secrets, calls, transcription_sessions) with exactly one canonical path and no doubled /v1, and always attach a Bearer Authorization header with a JSON content type, so my realtime credential and SDP-exchange requests reach OpenAI in a shape it accepts
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
The OpenAI Realtime provider config is the pure endpoint/auth transform boundary mirroring the Rust core/providers realtime provider config (RealtimeProviderConfig); its base/key resolution, REST endpoint construction, and auth-header assembly must be specified and verified so realtime 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).
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
Stakeholder aggregate carries the transform partitions: nominal resolves a present base/key and builds a well-formed endpoint with a Bearer header, boundary is the redundant /v1 base suffix deduped at the endpoint seam, empty_input is the fully-unset base/key chain falling through to the OpenAI default and the empty-string key sentinel; these decompose into the openai_realtime SW-REQs
- propertynot applicable
Cross-cutting algebraic property invariants are discharged at the child SW-REQ level (pure-function resolution and endpoint construction); the informal stakeholder aggregate has no runtime code of its own
- structuralnot applicable
Informal stakeholder aggregate over garbage-collected Python string rstrip/concat and dict merge with no manual memory, pointer arithmetic, overflow, or format string
- domainnot applicable
The scoped provider-config boundary resolves credentials, formats REST endpoint URL strings and assembles a headers dict; it instantiates no HTTP client and opens no socket itself, so the external-call and http-client domain classes bind to the out-of-scope realtime HTTP handler / websocket 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.
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.
The caller's realtime credential and SDP-exchange request reaches OpenAI in a shape it rejects (wrong base, wrong or missing key, doubled /v1 path, or a missing auth header), so the caller cannot open a realtime session at all
- nominalrecommendedpresentCovered by 2 tests
Behavior at limits, thresholds, and edge-of-range values.
- nominalrecommendedpresentCovered by 1 test
Behavior when inputs are absent, nil, zero-length, or blank.
- nominalrecommendedpresentCovered by 1 test
Acceptance criteria
Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.
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 realtime request with any combination of present or absent api_base and api_key sources resolves the effective base and key by documented precedence, falling back to the OpenAI default base and the empty-string key when a chain is fully unset
Derived requirementsVerification rationale[Redacted: refers to a finding withheld pending disclosure.]
- AC-002verify: analysis
A realtime request targets the canonical /v1/realtime client_secrets, calls and transcription_sessions endpoints with exactly one path segment and no doubled /v1, and always carries a Bearer Authorization header with a defaulted application/json content type
Derived requirementsVerification rationaleVerified by analysis of SYS-REQ-260731-RT11, which decomposes into the endpoint-construction and auth-header SW-REQs; the unit tests assert the three endpoint shapes across every api_base class (including the /v1 dedup boundary) and the Bearer + Content-Type headers. 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.
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 (5)
- The OpenAI Realtime provider config shall honor its…openai_realtime · SYS
- get_api_base resolves the effective OpenAI Realtime…openai_realtime · SW
- validate_environment merges the caller-supplied headers and…openai_realtime · SW
- get_api_key resolves the effective OpenAI Realtime api_key…openai_realtime · SW
- get_complete_url, get_realtime_calls_url and…openai_realtime · SW
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
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.