Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
get_complete_url, get_realtime_calls_url and get_transcription_session_url each resolve the effective api_base, strip trailing slashes, dedupe a redundant /v1 base suffix, and append their fixed /v1/realtime/<kind> path, yielding an absolute endpoint that carries exactly one realtime path segment and never doubles into /v1/v1 for every api_base class
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
get_complete_url, get_realtime_calls_url and get_transcription_session_url each resolve the effective api_base, strip trailing slashes, dedupe a redundant /v1 base suffix, and append their fixed /v1/realtime/<kind> path, yielding an absolute endpoint that carries exactly one realtime path segment and never doubles into /v1/v1 for every api_base class
the openai_realtime shall always satisfy realtime_endpoint_wellformed
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
- scenarioreviewednominal
nominal is the well-formed endpoint over the finite api_base classes (absent, trailing-slash, no-slash, ends-/v1, ends-/v1-slash, custom-host) enumerated in the realtime_endpoint_construction table; an empty-string base falls through get_api_base to the default and is not a distinct behavioral partition at this seam
- propertyreviewedboundarypure_function_property_testedtotality
each endpoint builder is a pure string builder (output depends only on api_base via the resolution chain and rstrip/dedup/append); boundary is the /v1 base-suffix edge deduped so the path carries exactly one /v1, and the single-realtime-segment property is property-testable and total over any api_base; determinism follows from purity
- structuralnot applicable
Garbage-collected Python string rstrip/slice/concat with no manual memory, pointer arithmetic, overflow, or format string
- domainnot applicable
The endpoint builders instantiate no HTTP client and open no socket; they only format a URL string, so the http-client and external-call domain classes bind to the out-of-scope realtime HTTP handler that dials the endpoint
Change history
Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.
Review history
Human and AI-agent approvals of this requirement — the 'why was this approved' lineage, each with the reviewer's justification and the code it cites.
- Claude Code · AI agentApprovedSpec conformanceJul 31, 2026 · 4 months agoREVIEW-26
realtime_endpoint_wellformed is the always-holds guarantee over the three endpoint builders. Each has the single gating branch 'if base.endswith("/v1"): base = base[:-3]' after get_api_base().rstrip("/"), then appends a fixed /v1/realtime/<kind>. The FRETish models the /v1 dedup boundary and the rstrip; both true (ends /v1) and false (no /v1) arms are exercised by the realtime_endpoint_construction table, and the appended literal guarantees exactly one realtime segment with no /v1/v1 for a non-blank or absent base.
Cited code (3)
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
4 obligations · 4 discharged
Browse the catalogueHappy-path behavior with valid inputs.
- nominalrequiredpresentNo covering test recorded
Behavior at limits, thresholds, and edge-of-range values.
The /v1 base-suffix dedup fails at the boundary so the path doubles into /v1/v1 (or a non-canonical base survives rstrip), and the credentialed realtime client_secrets/calls/transcription_sessions request targets a wrong path that OpenAI rejects or that a misconfigured proxy misroutes
- nominalrequiredpresentNo covering test recorded
A function declared pure (no I/O, no global state, output is f(input) only) shall carry property-based tests that exercise its declared algebraic properties (determinism, totality, commutativity, monotonicity, idempotency — whichever apply); example-based tests alone shall not be sufficient evidence for a pure-function obligation.
- nominalrequiredpresentNo covering test recorded
Every reachable input combination is covered by a requirement.
- nominalrequiredpresentNo covering test recorded
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 realtime_endpoint_wellformed
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| # | realtime_endpoint_wellformed | Result | Proves | Covering test |
|---|---|---|---|---|
| 1 | F | F | realtime_endpoint_wellformed | Exempted · defensive — get_api_base always yields a non-empty base and rstrip+dedup+append produces exactly one /v1/realtime/<kind>; a malformed endpoint is unreachable for a non-blank or absent base in a correct build (reviewed: agent:claude-opus-4-8) |
| 2 | T | T | realtime_endpoint_wellformed | — |
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.
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
Files to re-check (1)
- 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.