Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSW-REQ-260802-BB0ESoftwareDraft

get_complete_url resolves api_base from the parameter else the AZURE_API_BASE env var and raises ValueError when none resolves; otherwise it strips a trailing slash and builds the canonical Azure Foundry /anthropic/v1/messages endpoint - leaving an api_base that already ends with /v1/messages or /anthropic/v1/messages unchanged, truncating any path after an existing /anthropic segment before appending /v1/messages, and appending /anthropic/v1/messages when no /anthropic segment is present

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

Specification

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

Description

get_complete_url resolves api_base from the parameter else the AZURE_API_BASE env var and raises ValueError when none resolves; otherwise it strips a trailing slash and builds the canonical Azure Foundry /anthropic/v1/messages endpoint - leaving an api_base that already ends with /v1/messages or /anthropic/v1/messages unchanged, truncating any path after an existing /anthropic segment before appending /v1/messages, and appending /anthropic/v1/messages when no /anthropic segment is present

FRETish formula
the azure_messages shall always satisfy (base_error_raised <-> api_base_absent)
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 2, 2026, 00:45 UTC · Claude Opus 4 8 · AI agent
Modified
Aug 2, 2026, 00:45 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

Behavior when operations fail or dependencies are unavailable.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 1 test
  • nominalrequiredpresent
    Covered by 1 test
Discharged

Happy-path behavior with valid inputs.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    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 azure_messages shall always satisfy (base_error_raised <-> api_base_absent)

Witnesses· 2 scenarios total

  • url_appends_anthropic_and_messages_suffix
    exercises 1 condition scenario

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_base_absentbase_error_raisedResultProvesCovering test
1FFTapi_base_absent
2FTFbase_error_raisedExempted · defensive — get_complete_url raises only when no api_base resolves, so a supplied base can never raise in a correct build (reviewed: agent:claude-opus-4-8)
3TFFapi_base_absentExempted · defensive — an absent api_base always raises before any URL is built, so an absent-base-yet-no-error 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.

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/messages/transformation.rs
  • messages_transformation.pylitellm/llms/azure_ai/anthropic/messages_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