Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSW-REQ-260801-F0AHSoftwareDraft

transform_ocr_request converts a document_url or image_url to a base64 data URI iff the URL is non-empty and not already a data: URI, otherwise forwards it unchanged, then delegates to the Mistral OCR request build

All automated checks pass and 3/3 obligations are satisfied. Human review is still pending.
PriorityshallTypeguaranteeCategoryfunctionalComponentazure_ocrAssuranceEFindingsMediumworst open

Specification

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

Description

transform_ocr_request converts a document_url or image_url to a base64 data URI iff the URL is non-empty and not already a data: URI, otherwise forwards it unchanged, then delegates to the Mistral OCR request build

FRETish formula
the azure_ocr shall always satisfy (url_converted <-> (url_present & !url_is_data_uri))
View full formal model

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 1, 2026, 20:52 UTC · Claude Opus 4 8 · AI agent
Modified
Aug 12, 2026, 13:33 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.

Open known issues

Findings currently open against this requirement — issues its verification surfaced that are not resolved yet. Each links to the full finding.

Obligations

What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.

3 obligations · 3 discharged

Browse the catalogue
Discharged

Behavior for unusual but valid input combinations.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    No covering test recorded
Discharged

Happy-path behavior with valid inputs.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    No covering test recorded
Discharged

HTTP clients with user-influenced URLs shall enforce an allowlist of reachable destinations and reject internal-network targets.

If it were violatedMedium

The conversion fetches a caller-supplied document/image URL server-side. If the fetch were not SSRF-validated, a semi-trusted caller could make the proxy reach internal-network / cloud-metadata / localhost services it cannot reach directly (document_url/image_url are the core OCR inputs and are NOT api_base-banned at ingress). The control (image_handling.safe_get -> url_utils.validate_url, default litellm.user_url_validation=True) exists and is witnessed; the grade reflects the cost if it regressed to a raw fetch.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    No covering test recorded
  • negativerecommendedpresent
    No 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).

FRETish formula

the azure_ocr shall always satisfy (url_converted <-> (url_present & !url_is_data_uri))

MC/DC truth table· 5 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
#url_convertedurl_is_data_uriurl_presentResultProvesCovering test
1FFFTurl_converted—
2FFTFurl_presentExempted · defensive — a present non-data URL is always converted, so a present-non-data-yet-unconverted state is unreachable in a correct build (reviewed: agent:claude-opus-4-8)
3TFFFurl_convertedExempted · defensive — conversion only fires when a URL is present, so an absent-url-yet-converted state is unreachable in a correct build (reviewed: agent:claude-opus-4-8)
4TFTTurl_is_data_uri—
5TTTFurl_is_data_uriExempted · defensive — an already-data URL is never re-converted, so a data-uri-yet-converted state is unreachable in a correct build (reviewed: agent:claude-opus-4-8)

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.

Mirrors

Ports this requirement participates in — it carries a reviewed exemption on one side, or a finding raised against it is tracked as part of the port.

  • Azure AI OCR: Python -> RustMIR-007
    Not portedPython → Rust
    View in Mirrors

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
0
Files
2
Tests
0
At-risk contracts
0

Files to re-check (2)

  • transformation.rslitellm-rust/crates/core/src/providers/azure_ai/ocr/transformation.rs
  • transformation.pylitellm/llms/azure_ai/ocr/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.

Sign in to discuss this with the proof team.Sign in