Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSW-REQ-260812-PANCSoftwareDraft

The RealtimePool (crates/ai-gateway/src/io/realtime_pool.rs) shall survive a panic taken while a warm/backoff lock is held: a poisoned std::sync::Mutex shall not permanently deadlock or disable the pool for the remaining life of the process, either by recovering from PoisonError at each access or by keeping every guarded critical section panic-free by construction

0/1 obligations satisfied, 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

The RealtimePool (crates/ai-gateway/src/io/realtime_pool.rs) shall survive a panic taken while a warm/backoff lock is held: a poisoned std::sync::Mutex shall not permanently deadlock or disable the pool for the remaining life of the process, either by recovering from PoisonError at each access or by keeping every guarded critical section panic-free by construction

FRETish formula
the realtime_gateway shall always satisfy realtime_pool_poison_resilient
View full formal model

Rationale & tags

Why this requirement exists, and how it is categorised.

[Redacted: refers to a finding withheld pending disclosure.]

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
Formalizationvalid
Strategyfretish

Review

Status
pending

History

Created
Aug 12, 2026, 15:07 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.

1 obligation · 1 deferred

Browse the catalogue
Deferred
Worst case if violatedLow

One panic taken while a warm/backoff Mutex guard is held poisons the lock; every later .lock().unwrap() panics, so take() on the request hot path and the whole replenisher die and the pool is permanently unusable for the remaining life of the process with no recovery

Deferred — tracked by a finding withheld pending disclosure.

Discharging evidence0/1 required witnessed
  • nominalrequireddeferred
    Witnessing deferred — accepted while the tracking known issue stays open.

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 realtime_gateway shall always satisfy realtime_pool_poison_resilient

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.

Covereda test exercises this rowExempteda reviewed mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test
#realtime_pool_poison_resilientResultProvesCovering test
1FFrealtime_pool_poison_resilientUncovered
2TTrealtime_pool_poison_resilientUncovered

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

Nothing downstream depends on this yet

No downstream impact — "The RealtimePool (crates/ai-gateway/src/io/realtime_pool" has no downstream edges.

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