Implementation Guide
Pinning Large Language Model Versions Across Providers for Compliance
To pin LLM model versions across providers, call only immutable model identifiers, never aliases such as "latest". Enforce an approved-model allowlist at a central runtime layer, record the model version the provider reports in each response, and route every change through a reviewed upgrade process. Together these controls let you show auditors which exact model produced a given output.
Four controls for consistent version pinning
| Control | What it does |
|---|---|
| Identify | Classify every model identifier as an immutable snapshot or a movable alias. |
| Enforce | Block calls to any model not on a central allowlist. |
| Record | Log both the requested and the resolved model identifier. |
| Change | Move to new versions only through test, approval, and rollback steps. |
Why unpinned models are a compliance problem
An alias such as "latest" is a movable identifier. When the model behind it changes, you can no longer show auditors which exact model produced a given output. Pinning treats the model version as something you govern at runtime and change through a controlled process. The four steps below cover identification, enforcement, logging, and change management.
Step 1Step one: classify identifiers by how they can change
Start by identifying each model identifier your teams call and classifying it as an immutable snapshot or a movable alias. Keep the result in a current inventory of models in use, with each identifier classified as snapshot, alias, or managed endpoint. Call only immutable identifiers; never call aliases such as "latest".
Step 2Step two: enforce pins centrally at runtime
Application-level configuration records intent. It does not enforce anything. A central enforcement point, such as a gateway or proxy on the model-call path, can check every request against policy before it reaches a provider, regardless of which team or framework made the call.
A workable design has four parts:
- A policy-as-code allowlist keyed by provider, environment, and use case, listing the approved immutable identifiers.
- A rule that rejects aliases and unlisted identifiers, or flags them in a non-production observation mode while teams migrate.
- A version-controlled configuration store, so allowlist changes carry a reviewer and a commit history.
- A requirement that applications reach providers only through this layer, backed by network and credential controls, so the path cannot be bypassed.
Step 3Step three: log the resolved model, not only the requested one
Log both the requested and the resolved model identifier for every call. Record the model version the provider reports in each response, so that the log shows which exact model produced a given output. Raise alerts for any mismatch between the requested and resolved identifiers, and for any call to an unapproved model, and keep the resolutions.
Step 4Step four: govern upgrades and deprecations as change management
Move to new versions only through test, approval, and rollback steps. Route every change through a reviewed upgrade process, and keep a change record for each upgrade that includes evaluation results, approval, and a rollback plan. Update the risk assessment so that it is tied to the model version it covers.