Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSTK-REQ-260812-RTGWStakeholderDraft

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.

Automated checks pass.
PriorityshallTypeguaranteeCategorysafetyComponentrealtime_gatewayAssuranceEFindingsnone open

Specification

The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.

Description

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.

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

Assurance levelE
Formalizationnone
Strategyinformal

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.

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 requirements

    No 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 requirements

    No 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 requirements

    No 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 requirements

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

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