Versioning Models, Prompts, Data, and Tools › Versioning is not the same as packaging

Michael BrenndoerferDecember 2, 20263 min read
Language AI HandbookAll chapters
Part 64 of 67Compound AI System Design
Chapter 489Versioning Models, Prompts, Data, and Tools › Versioning is not the same as packaging
Reading section 2 of 14 · Versioning is not the same as packaging · 3 minSection 2 of 14 · 3 min

Section 2 of 14 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Start with two records. The manifest binds the component identities that can be deployed together. The deployment record says how requests are assigned to one or more manifests. During a canary, both records matter. A request log can reference its resolved manifest even after the deployment record changes.

Component

A component is any artifact whose identity affects system behavior. Models, prompts, retrieval indexes, tool schemas, routers, guardrails, and the orchestration code are all components. A component is identified by a key (e.g., model, prompt.main) and a version. The key names the role the artifact plays in the system; the version names which instantiation of that role is in use. Keeping both is what lets you ask either "what is the model right now?" (a lookup by key) or "where is this specific prompt instantiation used?" (a lookup by version).

Artifact identity

An artifact identity selects an artifact within a stated identity scheme. For artifacts you can read, a digest can detect changed bytes. For an externally hosted model, a provider-issued version identifier records which version you requested or which version the service reports. Its resolution and guarantees depend on the provider. NIST Secure Hash Standard

Manifest

A manifest is a versioned document mapping component keys to artifact identities, plus the compatibility constraints that must hold among them. A manifest is the unit of coordinated release. It is the thing you sign off on, the thing you canary, and the thing you can point at during a postmortem. The manifest is immutable: changing a component produces a new manifest, never an edited old one. Immutability is what makes an old manifest id a meaningful pointer to an old configuration.

Deployment

A deployment assigns traffic to active manifests. Two deployments can point to the same manifest. One deployment can point to both the stable and the candidate manifests during a canary.

The separation between manifest and deployment matters. Many teams conflate the two by treating "the currently deployed version" as a global mutable alias. That works until you need a canary (two manifests live at once) or a rollback (revert a deployment without reverting the manifest store). Keep them as separate stores. The manifest store is append-only: it grows with every release and never forgets. The deployment store is small and mutable: it changes on every promotion and every rollback. When these are conflated, rollback means "rebuild the previous state from git history and hope," which is exactly the panic mode that versioning is supposed to eliminate.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy