Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSTK-REQ-260731-RT10StakeholderReview

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

Automated checks pass.
PriorityshallTypeguaranteeCategoryfunctionalComponentopenai_realtimeAssuranceEFindingsnone 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 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.

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

Assurance levelE
Formalizationnone
Strategyinformal

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

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

If it were violatedMedium

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

Discharging evidence0/0 required witnessed
  • nominalrecommendedpresent
    Covered by 2 tests
    via SYS-REQ-260731-RT11
Discharged

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

Discharging evidence0/0 required witnessed
  • nominalrecommendedpresent
    Covered by 1 test
    via SYS-REQ-260731-RT11
Discharged

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

Discharging evidence0/0 required witnessed
  • nominalrecommendedpresent
    Covered by 1 test
    via SYS-REQ-260731-RT11

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 requirements
    Verification 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 requirements
    Verification rationale

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

If you change this

Requirements
5
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