litellm/litellm-rust
Yujong Lee de9287f529
Some checks failed
LiteLLM Rust DB / db-queries (push) Has been cancelled
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
refactor(auth): prove the JWT budget check with types instead of AST tests
JwtUser now carries a WithinModelBudgets or BudgetsSkipped, which only
core/model_budgets.py builds, so a JWT path that skips the user model budget
check no longer type-checks. A new check, check_core_proof_constructors.py,
flags those proofs being built anywhere else, and in gateway-auth-core they
have private fields. A user over budget on the JWT path is refused through the
same denial projection as the key path.

The skip decision is one pure rule, skips_model_budgets, shared by the key,
JWT and common-checks paths and mirrored in Rust with the same cases. The
user's model budget is now host answer data (OwnerFacts and JwtPolicy), and
one attach_user_model_budgets() projection puts it on the token for the key
and auto-registered paths.

The last two AST tests on the JWT branch are removed. Recording-host cases in
tests/unit/proxy/auth/core cover the same behavior, and both AGENTS.md files
now say invariants are held by types and behavior tests, never by tests that
parse source.
2026-11-10 23:38:23 +09:00
..
.agents/skills feat(redis): extend the native Redis foundation for the store families (#50169) 2026-11-06 12:30:07 +09:00
crates refactor(auth): prove the JWT budget check with types instead of AST tests 2026-11-10 23:38:23 +09:00
docs/adrs docs(rust): add ADRs for the Rust core (#45205) 2026-10-08 10:21:56 -07:00
.gitignore feat: add LiteLLM Rust workspace with Mistral OCR bridge (#31033) 2026-06-23 13:16:47 -07:00
AGENTS.md feat(redis): extend the native Redis foundation for the store families (#50169) 2026-11-06 12:30:07 +09:00
Cargo.lock refactor(auth): prove the JWT budget check with types instead of AST tests 2026-11-10 23:38:23 +09:00
Cargo.toml refactor(auth): fold every facet into AuthCore and plan the credential path in the core 2026-11-10 18:31:20 +09:00
clippy.toml build(rust): upgrade reqwest to 0.13 and move MCP out of litellm-http (#48039) 2026-10-28 07:32:40 -07:00