Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
As an operator running the LiteLLM Rust ai-gateway realtime surface (upstream dial, the pre-warmed connection pool, and the client<->upstream WebSocket splice), I need that runtime to be resource- and fault-safe on its own terms: every upstream dial is time-bounded so one silent upstream cannot wedge the pool; every spliced session has an absolute lifetime cap so a continuously-active client cannot hold an upstream socket and billing meter open without bound; the pool isolates warm sockets per credential key so no socket crosses a credential boundary; and the pool survives a worker panic without a poisoned lock permanently deadlocking it.
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
As an operator running the LiteLLM Rust ai-gateway realtime surface (upstream dial, the pre-warmed connection pool, and the client<->upstream WebSocket splice), I need that runtime to be resource- and fault-safe on its own terms: every upstream dial is time-bounded so one silent upstream cannot wedge the pool; every spliced session has an absolute lifetime cap so a continuously-active client cannot hold an upstream socket and billing meter open without bound; the pool isolates warm sockets per credential key so no socket crosses a credential boundary; and the pool survives a worker panic without a poisoned lock permanently deadlocking it. This runtime is Rust-native with no Python counterpart, so these are first-class Rust requirements, not mirrored transforms.
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
The Rust ai-gateway realtime dial + connection pool + WS splice are an UNSPECIFIED first-class surface (no mirror, no obligation owner) whose operational failure modes — unbounded dial, unbounded session lifetime, cross-credential socket reuse, mutex-poison pool death — are Rust-native and owned by no prior requirement; this stakeholder need makes them auditable
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
- Aug 12, 2026, 15:05 UTC · Claude Code · AI agent
- Modified
- Aug 12, 2026, 15:08 UTC · Claude Code · AI agent
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.
The tests that discharge each obligation need a synced audit
The evidence matrix behind each obligation comes from the audit index, which is produced by running an audit — not read from git. Nothing here means unknown — not that the requirement has no obligations.
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: test
A realtime upstream dial against a peer that accepts TCP but never completes the WebSocket upgrade returns a typed timeout error within an explicit connect/first-event deadline, so neither the caller nor the pool replenisher hangs unbounded
Derived requirementsNo acceptance-test witness found
- AC-002verify: test
A realtime or responses WebSocket session that stays continuously active past its idle window is still closed at an absolute session-lifetime cap measured from session start, releasing the upstream socket, the forwarding task, and the billing meter
Derived requirementsNo acceptance-test witness found
- AC-003verify: test
Two callers presenting distinct API keys never share a pooled upstream socket: a socket warmed for one credential key is never handed to a take() for a different key, and the pool key redacts the credential when rendered
Derived requirementsNo acceptance-test witness found
- AC-004verify: test
After a panic is taken while a pool lock is held, the pool still serves a subsequent take() rather than panicking, so one worker panic does not permanently deadlock the pool for the process
Derived requirementsNo acceptance-test witness found
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)
- The RealtimePool (crates/ai-gateway/src/io/realtime_poolrealtime_gateway · SW
- dial_upstream (crates/ai-gateway/src/io/realtimerealtime_gateway · SW
- The RealtimePool (crates/ai-gateway/src/io/realtime_poolrealtime_gateway · SW
- The realtime splice loop (crates/ai-gateway/src/io/realtimerealtime_gateway · SW
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.