Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
get_supported_ocr_params returns exactly the set of parameters the Mistral OCR API accepts, per the enumerated membership set in domain table ocr_supported_params_membership (every accepted param present, no unaccepted param included), not merely a 13-item code literal
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
get_supported_ocr_params returns exactly the set of parameters the Mistral OCR API accepts, per the enumerated membership set in domain table ocr_supported_params_membership (every accepted param present, no unaccepted param included), not merely a 13-item code literal
the mistral_ocr shall always satisfy supported_params_complete
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
- approved
- Reviewer
- Buger · lead_engineer
- Reviewed
- Jul 1, 2026, 16:42 UTC
History
- Created
- Jul 1, 2026, 09:53 UTC · Claude Code · AI agent
- Modified
- Jul 2, 2026, 05:50 UTC · Claude Code · AI agent
Hazard review
- domainreviewedpure_function_property_tested
Pure in-process allowlist getter (no I/O). pure_function_property_tested applies: the function is declared pure, so its algebraic properties (determinism/totality) must be witnessed by property tests, not example tests alone. All network reliability classes (external_call_timeout_bounded, external_call_concurrency_bounded, external_call_failure_observable, upstream_budget_coordinated) and http_client classes (cert_validation_strict, redirect_policy_explicit) are suppressed: this function crosses no process/network boundary; those controls live in the Mistral OCR call path (litellm/ocr/main.py + httpx handler) under SYS-REQ-260701-3HNG.
- propertyreviewedpure_function_property_tested
The purity invariant is the real property here and is carried by pure_function_property_tested (domain). Standalone determinism and totality are suppressed as redundant: the function returns a constant literal regardless of the model argument, so determinism is trivial (no unordered-collection or concurrency non-determinism) and the input domain has no undefined cases for totality to close.
- scenarioreviewednominal
nominal covers the single behavior: return the complete 13-item allowlist. error_handling/malformed_input/empty_input do not apply (no failure path, no input parsing; the model arg is ignored and the output is a fixed literal), boundary/edge_case do not apply (no thresholds or value ranges), concurrent does not apply (no shared mutable state; a constant return is interleaving-safe), access_denied does not apply (no authorization surface).
- structuralnot applicable
Requirement is a pure Python getter returning a hard-coded list. The structural classes target C/C++/Rust language-level safety (pointer_arithmetic_bounded, format_string_constant, manual_memory_ownership_clear) or byte-level concerns (overflow_safety, encoding_safety) that a managed-runtime constant-list return cannot exhibit; nil_safety does not apply because the model parameter is never dereferenced.
Change history
Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.
Review history
Human and AI-agent approvals of this requirement — the 'why was this approved' lineage, each with the reviewer's justification and the code it cites.
- UnknownApprovedSpec conformanceJul 1, 2026 · 5 months agoREVIEW-2
get_supported_ocr_params returns a hard-coded 13-item list literal (lines 50-64). No branches; the FRETish invariant 'supported_params_complete' models the always-complete allowlist. Verified the literal contains all 13 documented params.
Cited code (2)
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 catalogueHappy-path behavior with valid inputs.
- nominalrequiredpresentCovered by 2 tests
A function declared pure (no I/O, no global state, output is f(input) only) shall carry property-based tests that exercise its declared algebraic properties (determinism, totality, commutativity, monotonicity, idempotency — whichever apply); example-based tests alone shall not be sufficient evidence for a pure-function obligation.
- nominalrequiredpresentCovered by 2 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 mistral_ocr shall always satisfy supported_params_complete
Witnesses· 2 scenarios total
- supported_params_match_python_mistral_ocr_configexercises 1 condition scenario
- test_returns_exact_13_item_allowlistexercises 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| # | supported_params_complete | Result | Proves | Covering test |
|---|---|---|---|---|
| 1 | F | F | supported_params_complete | Exempted · defensive — get_supported_ocr_params returns a hard-coded 13-item literal; a correct build can never yield an incomplete allowlist, so this invariant-violation row is unreachable (reviewed: agent:claude-opus-4-8) |
| 2 | T | T | supported_params_complete |
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).
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
If you change this
Files to re-check (2)
- transformation.rslitellm-rust/crates/core/src/providers/mistral/ocr/transformation.rs
- transformation.pylitellm/llms/mistral/ocr/transformation.py
Tests to re-run (1)
- test_mistral_ocr_transformation.pytests/test_litellm/llms/mistral/ocr/test_mistral_ocr_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.