Skip to content

Auditing a model

A model is audited on three axes: its versions, what each version is built from; its bindings, which project versions call which model version and who decided that; and its traffic, what each version served and under what limits. Every change on each axis is an audited act, every version's runtime reports evidence naming its engine and its weights, and every run records the model version it called. This page covers the records on each axis and how to go from a model to the runs it served, or from a run to the weights that answered it.

The three axes

flowchart TB
  subgraph VER["VERSIONS"]
    direction TB
    MB["model_build.create, report"]
    MD["model.apply, model.deploy,<br/>model.deploy.from_build"]
    MS["model.stop, model.resume"]
    SE[("Serve evidence and trace chain<br/>engine image, weights digests")]
    MB --> MD --> SE
    MD --> MS
  end
  subgraph BND["BINDINGS"]
    direction TB
    BI["model_binding.bind, unbind"]
    RT[("Model release route<br/>selection reason")]
  end
  subgraph TRF["TRAFFIC"]
    direction TB
    TS["model_binding.traffic.set"]
    QQ["model_traffic.queue.upsert,<br/>model_traffic.quota.set"]
    SC["scaling.policy.set, lock, unlock"]
  end
  RUN(["A run<br/>model route contract per call"])
  BND --> RUN
  VER --> RUN
  TRF --> RUN

Each box is an audited action or a record the control plane keeps. A run joins all three: the binding chose the version, the version served the call, and the traffic rules governed it.

Versions

Record Holds
model_build.create, model_build.report A model build requested and its result: the engine, the image, the revision
model.apply, model.deploy, model.deploy.from_build A version deployed, from a spec or from a build
model.stop, model.resume A version stopped or resumed, and by whom
Lifecycle events Each version's lifecycle transitions, kept with its deployment evidence
Serve evidence and trace chain For each serve, the running engine image digest, the model source, the staged weights reference and their manifest and snapshot digests

The trace chain ties a served response to one engine build and one set of weights: runtime_image_digest with model_source_ref, and the materialization_staged_ref or resolved_revision_digest of the weights. See Serve observation and evidence and Snapshot ingest runtimes.

Bindings and routes

Record Holds
model_binding.bind, model_binding.unbind The project, its version, the alias, the model and its version, the actor
The model release route The version the model's name points at, and the rule that chose it: latest_deployed, latest_warming, and the rest

A binding records the version it pins, or that it follows the route. The route records why its target is the version it is. Together they answer why a given project version called a given model version on a given day. See Model versions and project bindings.

Traffic

Record Holds
model_binding.traffic.set A binding's traffic priority and split
model_traffic.queue.upsert, model_traffic.quota.set Queue and quota limits for the model
scaling.policy.set, scaling.lock, scaling.unlock Replica bounds, idle timeout, and locks
Autoscale state and decision records Each scale-down or wake the controller made, and each it refused, with the reason

See Traffic governance and Serve runtime, scaling, and scale to zero.

Reading a model's record

xratu obs audit model llm-small

The listing returns every audit record that concerns the model, filterable by actor and action, each with the state before and after.

From a run to the weights, and back

From a run to the weights. The run's determinism view and its model route contract name the model version each call used. That version's serve evidence names the engine image and the weights, and the weights' snapshot evidence names the source revision they were ingested from.

xratu obs determinism run $RUN_ID

From a model version to the runs it served. Every run's model route contract records the model name and the selected version, so the runs a version served are the runs whose contracts name it. Together with the bindings history, this answers which project versions were affected when a model version is found to be faulty.