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-J0PDSoftwareDraft

validate_environment builds an Authorization Bearer header from the Vertex access token resolved via VertexBase.get_access_token and preserves caller-supplied headers

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

Specification

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

Description

validate_environment builds an Authorization Bearer header from the Vertex access token resolved via VertexBase.get_access_token and preserves caller-supplied headers

FRETish formula
the vertex_ocr shall always satisfy (bearer_from_api_key <-> api_key_provided)
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, 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.

2 obligations · 2 discharged

Browse the catalogue
Discharged

Happy-path behavior with valid inputs.

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

Authorization headers, session IDs, secrets, and PII never appear in logs.

If it were violatedHigh

If the Vertex access token or the assembled Authorization Bearer header is written to debug/verbose logs, anyone with access to log aggregation, support bundles, or a shared console exfiltrates a live Vertex credential and can bill usage to the customer and read their documents

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 1 test
  • negativerecommendedpresent
    Covered by 1 test

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 (bearer_from_api_key <-> api_key_provided)

MC/DC truth table· 3 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
#api_key_providedbearer_from_api_keyResultProvesCovering test
1FFTapi_key_provided—
2FTFbearer_from_api_keyExempted · defensive — the Bearer header is built from api_key only in the api_key branch, so it can never be api_key-sourced when no api_key was provided (reviewed: agent:claude-opus-4-8)
3TFFapi_key_providedExempted · defensive — a supplied api_key always builds the Bearer header directly via the early return, so this trigger-satisfied-yet-not-from-api_key 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.

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

Files to re-check (1)

  • 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

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