Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSYS-REQ-260730-AQZSSystemReview

The Anthropic /v1/messages request-param utility shall honor its contract: forward only supported non-null optional params, gate the speed-param drop on the model being known, dispatch each mock-response directive to its mapped typed error or a well-formed response, and resolve the optional-param allowlist exactly once as a stable frozenset

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

Specification

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

Description

The Anthropic /v1/messages request-param utility shall honor its contract: forward only supported non-null optional params, gate the speed-param drop on the model being known, dispatch each mock-response directive to its mapped typed error or a well-formed response, and resolve the optional-param allowlist exactly once as a stable frozenset

FRETish formula
the anthropic_messages shall always satisfy messages_util_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
Jul 30, 2026, 20:38 UTC · Claude Code · AI agent
Modified
Aug 1, 2026, 18:42 UTC · Claude Opus 4 8 · AI agent

Hazard review

Reviewed Aug 1, 2026, 18:42 UTCby agent:claude-opus-4-8catalog v1.9.1
  • scenarioreviewednominalerror_handling

    The umbrella contract: nominal narrows params to the supported non-null allowlist and returns a well-formed mock response; error_handling is the sentinel mock directives that raise their mapped typed exception. Both refine into the child SW-REQs (allowlist filter, mock dispatch)

  • propertynot applicable

    Totality and purity are discharged at the child SW-REQ level; the umbrella conjunction has no standalone algebraic property surface

  • structuralnot applicable

    Garbage-collected Python with no manual memory, pointer arithmetic, overflow, or format string across the utility

  • domainnot applicable

    The request-param utility performs zero network/filesystem/IPC I/O; external-call and http-client domain classes have no construct to bind to at this aggregate

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

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

Happy-path behavior with valid inputs.

If it were violatedMedium

If the umbrella contract were dishonored, params could be forwarded unfiltered or supported params dropped, and the allowlist recomputed per request, breaking the black-box parse guarantee callers depend on.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 13 tests
    via SW-REQ-260730-1NADvia SW-REQ-260730-327Pvia SW-REQ-260730-327Pvia SW-REQ-260730-F12Wvia SW-REQ-260730-F12Wvia SW-REQ-260730-F12Wvia SW-REQ-260730-JWPYvia SW-REQ-260730-JWPYvia SW-REQ-260730-JWPYvia SW-REQ-260730-JWPYvia SW-REQ-260730-JWPY
Discharged

Behavior when operations fail or dependencies are unavailable.

If it were violatedMedium

If a mock-response directive were mismapped, a sentinel error directive would return a normal response or the wrong exception type, masking error-path regressions across the messages interface.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 3 tests
    via SW-REQ-260730-327P
  • nominalrequiredpresent
    Covered by 3 tests
    via SW-REQ-260730-327P

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 anthropic_messages shall always satisfy messages_util_contract_honored

Witnesses· 2 scenarios total

  • transform_narrows_body_keeps_supported_params_and_never_drops_speed
    exercises 1 condition scenario
  • test_filter_narrows_and_dispatch_returns_response
    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
#messages_util_contract_honoredResultProvesCovering test
1FFmessages_util_contract_honoredExempted · defensive — the utility always narrows to supported non-null params and dispatches every directive to its mapped outcome; a correct build cannot dishonor the contract, so this invariant-violation row is unreachable (reviewed: agent:claude-opus-4-8)
2TTmessages_util_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.

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

Files to re-check (1)

  • utils.pylitellm/llms/anthropic/experimental_pass_through/messages/utils.py

Tests to re-run (2)

  • transformation.rslitellm-rust/crates/core/src/providers/anthropic/messages/transformation.rs
  • test_request_optional_param_utils.pytests/test_litellm/llms/anthropic/experimental_pass_through/messages/test_request_optional_param_utils.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