Skip to main content

Documentation Index

Fetch the complete documentation index at: https://u22a8-police-sweep-2026-06-01.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

A version is a snapshot of a model’s trained parameters. Every training run records one — v1, v2, and so on — an active pointer selects which version serves scores, and naming a version lets you pin or roll back to it.

Definition

A version captures the trained geometry and calibrated thresholds from one training run — not the samples, which accumulate independently as an append-only log. Versioning targets parameters: each run produces a new snapshot, and the model can serve any one of them.

Mechanism

Each version carries the record of the run that produced it:
FieldMeaning
version_noThe integer behind vN, incrementing per run.
triggered_byWhat produced it — train, retune, a background retrain_buffered, or backfill.
sample_countHow many samples the run trained on.
metricsQuality metrics recorded at training time.
tagsUser-named pointers to this version.
created_atWhen the run completed.
The model’s current_version_id names the version serving scores. Two operations move it:
  • Tag a version to give it a stable name, independent of its number (tag_version on MCP, the version endpoints on REST).
  • Activate a version to make it serve scores (activate_version), by number or by tag. Activating an older version is a rollback.
Samples keep accumulating after a rollback; the next retrain produces a fresh version against the current sample set, which you activate when ready.

Interpretation

  • Scoring always serves the active version, so changing it controls behavior without retraining. A rollback is instant and reversible — the parameters are stored, not recomputed.
  • Tag the versions you depend on. Tagged and named versions are retained; older unnamed snapshots are pruned over time. A tag is also a stable handle to pin against, so a caller is not exposed to the latest run by default.

Edge cases

  • A model has no version until its first successful training run — current_version_id is null while it is a draft.
  • A background retrain creates a new version and swaps it in atomically; scoring is uninterrupted and never serves a half-trained snapshot.

Next

Model lifecycle

Where training and versioning sit in the lifecycle.

REST API

The endpoints that list and activate versions.