Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
93 withheld (location undisclosed)
As a LiteLLM user, I need the Azure AI Foundry Anthropic /v1/messages passthrough to authenticate my request with Azure credentials (an x-api-key header, or an Entra ID Bearer token), target the correct Azure Foundry /anthropic/v1/messages endpoint, fold any role=system messages into the top-level system field and strip the unsupported cache_control scope field, and reject a missing api_base with a clear error, so that I can call Claude models hosted on Azure AI Foundry through the native Anthropic messages API reliably
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
As a LiteLLM user, I need the Azure AI Foundry Anthropic /v1/messages passthrough to authenticate my request with Azure credentials (an x-api-key header, or an Entra ID Bearer token), target the correct Azure Foundry /anthropic/v1/messages endpoint, fold any role=system messages into the top-level system field and strip the unsupported cache_control scope field, and reject a missing api_base with a clear error, so that I can call Claude models hosted on Azure AI Foundry through the native Anthropic messages API reliably
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
Azure AI Foundry hosts Anthropic models behind an Anthropic-compatible /v1/messages endpoint but diverges from the first-party Anthropic API in authentication (Azure api-key -> x-api-key, or Entra Bearer), endpoint shape (/anthropic/v1/messages), rejection of the role=system message position, and non-support of the cache_control scope field; these deltas must be specified and verified so an Anthropic-format request routed to azure_ai reaches Foundry correctly
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
- 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 catalogueBehavior when operations fail or dependencies are unavailable.
- negativerequiredpresentNo covering test recorded
- nominalrecommendedpresentNo covering test recorded
Happy-path behavior with valid inputs.
- nominalrecommendedpresentNo covering test recorded
Acceptance criteria
Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.
Acceptance criteria
Stakeholder conditions for satisfaction, traced to the derived requirements and evidence that discharge them.
Stakeholder-authored conditions defining when the requirement is satisfied, traced to derived requirements / evidence.
- AC-001verify: analysis
An Anthropic-format /v1/messages request routed to azure_ai with a resolvable Azure api_base is authenticated with an Azure x-api-key (or Entra Bearer) header, carries anthropic-version and content-type, and targets the Azure Foundry /anthropic/v1/messages endpoint
- AC-002verify: analysis
A request that carries a role=system message and a cache_control block with a scope field has the system message folded into the top-level system field and the scope key stripped before the body is sent to Azure Foundry
- AC-003verify: analysis
A request with no resolvable Azure api_base is rejected with a clear ValueError before the provider is called
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.
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.
- Azure AI messages: Python -> RustMIR-008DiffersPython → RustView in Mirrors
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 (6)
- The Azure AI Foundry Anthropic messages integration shall…azure_messages · SYS
- Interface decomposition of SYS-REQ-260802-NCJA between…azure_messages · INT
- _remove_scope_from_cache_control removes the scope key from…azure_messages · SW
- transform_anthropic_messages_request delegates the…azure_messages · SW
- get_complete_url resolves api_base from the parameter else…azure_messages · SW
- validate_anthropic_messages_environment builds Azure…azure_messages · SW
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.