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

Summary of the four controls, each covered in a step below
ControlWhat it does
IdentifyClassify every model identifier as an immutable snapshot or a movable alias.
EnforceBlock calls to any model not on a central allowlist.
RecordLog both the requested and the resolved model identifier.
ChangeMove 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:

  1. A policy-as-code allowlist keyed by provider, environment, and use case, listing the approved immutable identifiers.
  2. A rule that rejects aliases and unlisted identifiers, or flags them in a non-production observation mode while teams migrate.
  3. A version-controlled configuration store, so allowlist changes carry a reviewer and a commit history.
  4. 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.

Audit evidence to be able to produce

  • A current inventory of models in use, with each identifier classified as snapshot, alias, or managed endpoint
  • The approved-model allowlist with its version history and approvers
  • Request logs showing requested and resolved model identifiers for any output in scope
  • Alerts and resolutions for any mismatch or unapproved model call
  • Change records for each upgrade, including evaluation results, approval, and rollback plan
  • Updated risk assessments tied to the model version they cover

Review your model pinning approach

If you are assessing how to enforce approved model versions and keep an audit trail across providers, talk with our team about runtime policy enforcement and audit logging.

Talk to an Expert