Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
The Rust ai-gateway shall bound every outbound provider request by a timeout.
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
The Rust ai-gateway shall bound every outbound provider request by a timeout. execute_ocr_provider_call applies the per-call timeout to the provider POST, and the shared http_client carries an absolute ceiling, so a hung or slow upstream surfaces a typed timeout error instead of pinning the async task forever
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
The recon meta-finding is that the Rust ai-gateway network runtime is unspecified as a first-class surface; the timeout invariant of the outbound provider call was governed only by the Python-subject INT-REQ-001. This requirement homes the invariant on the Rust gateway itself
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, 18:30 UTC · Claude Opus 4 8 · AI agent
- Modified
- Aug 12, 2026, 18:30 UTC · Claude Opus 4 8 · AI agent
Hazard review
- domainreviewedexternal_call_timeout_bounded
The assembled OCR provider call is real outbound network I/O over the shared reqwest client; a hung or slow upstream must be time-bounded so it cannot starve the async worker pool. The per-call .timeout(duration) in execute_ocr_provider_call is the guard; the document-fetch timeout gap is a separate subject (SW-REQ-260812-DFCH)
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 discharged
Browse the catalogueEvidence 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.
Every cross-process call shall declare connect, read, and total deadlines; no external call is defaulted to "no timeout."
If the outbound provider request carried no timeout, a single upstream that accepts TCP then stalls would pin one async worker until the process is restarted; enough such calls exhaust the worker pool and deny OCR to every co-tenant on that gateway
- nominalrequiredpresentCovered by 1 test
- negativerecommendedpresentCovered by 1 test
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 (3)
Files to re-check (1)
- common_utils.rslitellm-rust/crates/ai-gateway/src/ocr/common_utils.rs
Tests to re-run (1)
- tests.rslitellm-rust/crates/ai-gateway/src/ocr/tests.rs
What this rests on
Parent requirements (1)
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.