Problem
Five Deno edge patches embed the same pricing table. The current synchronization test catches drift only after multiple manual edits. The code already records the desired shared-source direction, but deployment/bundling compatibility has not been proven.
Phase 1: feasibility/design spike
- Determine whether the edge deployment supports a shared Deno-compatible module/import or a build-time generated artifact.
- Verify the deployment/versioning contract and inspect deployed or bundled artifacts, not only local compilation.
- Record the smallest compatible approach and rollback path.
Implementation acceptance criteria (only after feasibility passes)
- All five functions consume one canonical Deno-compatible pricing artifact, or a generated artifact with equivalent single-source ownership.
- No Node-only dependency, runtime network fetch, credential, or source-precedence change is introduced.
- Alias handling, zero pricing, and cost calculations remain unchanged.
- Tests prove each endpoint uses the same artifact and retain model-level pricing regressions.
- Deployment/package validation covers every affected edge function.
Out of scope
- Replacing the core
src/LiteLLM pricing engine.
- Adding automatic external pricing synchronization.
- Bundling this work with the 2026-08-31 Sonnet 5 cutoff remediation.
Problem
Five Deno edge patches embed the same pricing table. The current synchronization test catches drift only after multiple manual edits. The code already records the desired shared-source direction, but deployment/bundling compatibility has not been proven.
Phase 1: feasibility/design spike
Implementation acceptance criteria (only after feasibility passes)
Out of scope
src/LiteLLM pricing engine.