Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

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

93 withheld (location undisclosed)

All requirements
RequirementSTK-REQ-260812-HEQ9StakeholderDraft

As a LiteLLM operator, I need the Rust ai-gateway control surface (callback log egress, master-key auth, and the FFI/GIL boundary) to keep telemetry trustworthy and the process safe: spend and usage logs must not be silently lost when the Python proxy hangs, the master key must never reach a cross-origin redirect target, the inbound bearer token must be compared in constant time, and the GIL activity boundary must never panic across into Python

Automated checks pass.
PriorityshallTypeguaranteeCategoryfunctionalComponentrust_ai_gateway_control_surfaceAssuranceEFindingsnone open

Specification

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

Description

As a LiteLLM operator, I need the Rust ai-gateway control surface (callback log egress, master-key auth, and the FFI/GIL boundary) to keep telemetry trustworthy and the process safe: spend and usage logs must not be silently lost when the Python proxy hangs, the master key must never reach a cross-origin redirect target, the inbound bearer token must be compared in constant time, and the GIL activity boundary must never panic across into Python

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
Formalizationnone
Strategyinformal

Review

Status
pending

History

Created
Aug 12, 2026, 15:00 UTC · Claude Opus 4 8 · AI agent
Modified
Aug 12, 2026, 15:01 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.

The tests that discharge each obligation need a synced audit

The evidence matrix behind each obligation comes from the audit index, which is produced by running an audit — not read from git. Nothing here means unknown — not that the requirement has no obligations.

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: test

    The callback log egress worker POSTs with a timeout-bounded HTTP client and does not silently drop spend/usage LogRecords when the proxy hangs: against a hung TCP sink the worker must not block indefinitely and subsequent enqueues must not be silently lost

    No acceptance-test witness found

  • AC-002verify: test

    The callback log egress does not deliver the master key to a cross-origin redirect target and ships only the SHA-256 user_api_key_hash in the batch body, never a raw credential

    Acceptance test
  • AC-003verify: test

    A gateway request presenting the wrong bearer token is rejected 401 and the master key is compared in constant time via subtle::ConstantTimeEq

    Acceptance test
  • AC-004verify: test

    GIL-activity record and snapshot never panic on any reachable input, including a clock that predates the last recorded acquisition

    Acceptance test

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
0
Files
3
Tests
0
At-risk contracts
0

Files to re-check (3)

  • mod.rslitellm-rust/crates/ai-gateway/src/auth/mod.rs
  • gil.rslitellm-rust/crates/ai-gateway/src/gil.rs
  • mod.rslitellm-rust/crates/ai-gateway/src/integrations/litellm_python_proxy_api/mod.rs

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