Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
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
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
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
the anthropic_messages shall always satisfy messages_util_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
- 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
- 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 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.
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.
- nominalrequiredpresent
Behavior when operations fail or dependencies are unavailable.
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.
- negativerequiredpresentCovered by 3 tests
- nominalrequiredpresentCovered by 3 tests
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 anthropic_messages shall always satisfy messages_util_contract_honored
Witnesses· 2 scenarios total
- transform_narrows_body_keeps_supported_params_and_never_drops_speedexercises 1 condition scenario
- test_filter_narrows_and_dispatch_returns_responseexercises 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| # | messages_util_contract_honored | Result | Proves | Covering test |
|---|---|---|---|---|
| 1 | F | F | messages_util_contract_honored | Exempted · 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) |
| 2 | T | T | messages_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).
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)
- the AnthropicMessagesRequestOptionalParams key allowlist is…anthropic_messages · SW
- mock_response maps each mock-response directive string to…anthropic_messages · SW
- get_requested_anthropic_messages_optional_param forwards a…anthropic_messages · SW
- get_requested_anthropic_messages_optional_param invokes the…anthropic_messages · SW
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
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.