Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSYS-REQ-260801-0NT9SystemDraft

The Azure AI OCR integration shall honor the provider request/response contract: authenticate with a Bearer Azure AI API key header, target the canonical Azure AI providers/mistral/azure/ocr endpoint, require both an api_key and an api_base, 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

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

Specification

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

Description

The Azure AI OCR integration shall honor the provider request/response contract: authenticate with a Bearer Azure AI API key header, target the canonical Azure AI providers/mistral/azure/ocr endpoint, require both an api_key and an api_base, 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

FRETish formula
the azure_ocr shall always satisfy azure_ocr_contract_honored
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 1, 2026, 20:53 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 catalogue

Evidence 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.

Discharged

Behavior when operations fail or dependencies are unavailable.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 3 tests
    via INT-REQ-260801-QN0Qvia SW-REQ-260801-BF1W
  • nominalrequiredpresent
    Covered by 3 tests
    via INT-REQ-260801-QN0Qvia SW-REQ-260801-BF1W
Discharged

Behavior when inputs are syntactically or structurally invalid.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 3 tests
    via INT-REQ-260801-QN0Qvia SW-REQ-260801-B424
  • nominalrequiredpresent
    Covered by 3 tests
    via INT-REQ-260801-QN0Qvia SW-REQ-260801-B424
Discharged

Happy-path behavior with valid inputs.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 5 tests
    via INT-REQ-260801-QN0Qvia SW-REQ-260801-B424via SW-REQ-260801-BF1Wvia SW-REQ-260801-MBCB
Discharged

Endpoints handling secrets shall reject plaintext HTTP.

If it were violatedHigh

If the assembled Azure AI OCR call sends the Bearer Azure AI API key over plaintext or a downgraded transport, a MITM on the path captures the key and can impersonate the customer against Azure AI and read their documents

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 azure_ocr_contract_honored

Witnesses· 2 scenarios total

  • azure_ai_contract_honored_end_to_end
    exercises 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.

Covereda test exercises this rowExempteda reviewed mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test
#azure_ocr_contract_honoredResultProvesCovering test
1FFazure_ocr_contract_honoredExempted · defensive — the assembled stack always targets the providers/mistral/azure/ocr 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)
2TTazure_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.

Impact

Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).

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