Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
The Vertex AI OCR integration shall honor the provider request/response contract: authenticate with a Vertex access token Bearer header, target the canonical Vertex Mistral rawPredict endpoint, require a vertex project, convert non-data document/image URLs to base64 data URIs, reject a non-dict document, and delegate a well-formed request body to the Mistral OCR transform
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
The Vertex AI OCR integration shall honor the provider request/response contract: authenticate with a Vertex access token Bearer header, target the canonical Vertex Mistral rawPredict endpoint, require a vertex project, convert non-data document/image URLs to base64 data URIs, reject a non-dict document, and delegate a well-formed request body to the Mistral OCR transform
the vertex_ocr shall always satisfy vertex_ocr_contract_honored
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 1, 2026, 19:50 UTC · Claude Opus 4 8 · AI agent
- Modified
- Aug 1, 2026, 19:50 UTC · Claude Opus 4 8 · 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.
4 obligations · 4 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.
Happy-path behavior with valid inputs.
- nominalrequiredpresent
Behavior when operations fail or dependencies are unavailable.
- negativerequiredpresentCovered by 3 tests
- nominalrequiredpresentCovered by 3 tests
Behavior when inputs are syntactically or structurally invalid.
- negativerequiredpresentCovered by 3 tests
- nominalrequiredpresentCovered by 3 tests
Endpoints handling secrets shall reject plaintext HTTP.
If the assembled Vertex OCR call sends the Bearer access token over plaintext or a downgraded transport, a MITM on the path captures the token and can impersonate the customer against Vertex AI and read their documents
- nominalrequiredpresentNo covering test recorded
- negativerecommendedpresentNo 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).
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 vertex_ocr shall always satisfy vertex_ocr_contract_honored
Witnesses· 2 scenarios total
- vertex_mistral_ocr_contract_honored_end_to_endexercises 1 condition scenario
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.
mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test| # | vertex_ocr_contract_honored | Result | Proves | Covering test |
|---|---|---|---|---|
| 1 | F | F | vertex_ocr_contract_honored | Exempted · defensive — the assembled stack always targets the rawPredict endpoint with a Bearer header and returns a structured OCRResponse; a correct build cannot dishonor the contract, so this invariant-violation row is unreachable (reviewed: agent:claude-opus-4-8) |
| 2 | T | T | vertex_ocr_contract_honored |
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.
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.
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.
- Vertex AI OCR: Python -> RustMIR-006DiffersPython → RustView in Mirrors
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 (9)
- Interface decomposition of SYS-REQ-260801-A2AR between…vertex_ocr · INT
- get_complete_url builds the canonical Vertex Mistral…vertex_ocr · SW
- transform_ocr_request delegates to the parent Mistral OCR…vertex_ocr · SW
- When the model name contains "deepseek",…vertex_ocr · SW
- validate_environment builds an Authorization Bearer header…vertex_ocr · SW
- transform_ocr_request converts a document_url or image_url…vertex_ocr · SW
- transform_ocr_request and async_transform_ocr_request raise…vertex_ocr · SW
- get_complete_url raises ValueError when vertex_project is…vertex_ocr · SW
- async_transform_ocr_request mirrors the synchronous…vertex_ocr · SW
Files to re-check (2)
- transformation.rslitellm-rust/crates/core/src/providers/vertex_ai/ocr/transformation.rs
- transformation.pylitellm/llms/vertex_ai/ocr/transformation.py
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.