AI Implementation
AI Workflow Versioning: A Plain Guide to Safe Changes.
AI workflow versioning means saving every change to your AI system as a numbered version. You can compare versions. You can go back to an old one when a new one breaks.
Think of a recipe book. Each time you change a recipe, you write a new edition and keep the old one. If guests hate the new dish, you cook the old one again.
The hard part is knowing what counts as "the recipe" in an AI system. It is more than code. Here is what to save, and how to change things safely.
TL;DR
- Version four things: prompts, model settings, workflow logic and test data. Code alone is not enough.
- Give each version a unique ID. Never point production at "latest".
- Test a new version beside the old one before you switch.
- Keep the old version ready, so a rollback takes minutes, not days.
- Let running jobs finish on the old version. Send only new jobs to the new one.
Why AI workflows break in quiet ways
Normal software breaks loudly. An error appears and someone fixes it.
AI workflows break quietly. You change one word in a prompt (the instruction you give the AI). The output still looks fine, but it is a bit worse. Nobody notices for a week.
That is why versioning matters more here. Without a record of what changed and when, you are guessing.
The usual causes of a quiet break:
- Someone edited a prompt in a live tool.
- The AI provider updated the model behind the same name.
- A step in the chain changed its output format.
- New data came in that the old logic never saw.
With versions, you read the change log, point at the cause, and fix it or roll back.
What to version in an AI workflow
Most people version only the code. That misses most of the risk.
AWS guidance on prompt, agent and model lifecycle says prompts are as critical as code. It says to version prompts as templates, along with model settings and the state of your data, and to give each prompt version a unique ID.
Treat it as the full recipe card, not just the ingredient list.
| Layer | Kitchen version | What to record |
|---|---|---|
| Prompts | The written recipe | Full text, examples, system instructions |
| Model settings | Oven type and temperature | Model name, exact version, temperature and other settings |
| Workflow logic | The order of steps | Which step runs first, what passes between steps |
| Test data | The taste-test panel | The sample cases you check each version against |
Add one more: the knowledge your agents read from, like documents or a database. If that changes, the output changes. Note which snapshot each version used.
Give every version a plain ID
Keep the pattern simple. For example: support-triage-v1.4. Add a short note on what changed and why.
Never rename an old version. Never edit one after you ship it. A shipped version is frozen. Any change makes a new version.
Keep a draft and frozen copies
Work in a draft. When it passes your checks, freeze a copy and give it an ID. Many production workflow tools work this way: one editable draft, many locked versions. You can copy that idea by hand with a folder and a spreadsheet.
Code tools are moving this way too. Atomic's guide to version control for AI agents describes keeping each agent session's work in a separate draft view, so a reviewer decides what goes into the shared record. The tool is built for code, but the habit carries over: agent changes get reviewed before they become the live version.
Pin your model version
This one catches people out.
Providers retire models. Anthropic says on its model deprecations page that it regularly retires older models, and that it gives at least 60 days' notice before retiring a publicly released one. So the model your workflow runs on today has an end date. Some provider names also point to a newer model over time. Your workflow then changes and you did nothing.
In kitchen terms: you want the same flour every time. You do not want the shop to swap brands without telling you.
How to do it:
- Use the full, exact model name from your provider in your settings.
- Write it in your version record.
- When a new model arrives, treat it as a new version.
- Test it on your sample cases first.
We wrote about testing models on real work in our guide to choosing an LLM. The same habit applies when you upgrade.
Record where each change came from
A list of edits helps. A list of reasons is better.
The MLflow guide to version tracking describes a "LoggedModel". That is one record for a whole AI application. It captures or links the code, the settings, the test results and the traces (a step-by-step log of what the AI did). You can repeat a result, find why something got worse, and compare versions fairly.
You may not use MLflow. Copy the idea. For each version, keep one page that answers:
- What changed?
- Why did we change it?
- Which test cases did we run?
- How did it score against the last version?
- Who approved it?
One page per version. Short. Easy to find.
Write for machines too
Researcher Jimmy Lin makes a newer point in an ACM paper on reproducibility in the era of AI agents. Work is increasingly handed to agents, he says, so software and docs need to be legible to agents, not only to people.
In plain words: keep your version notes neat and structured. Use set fields, not loose paragraphs. Then a person and an AI agentNoun · glossaryAn AI agent is a focused worker you hand a single job to.Read the full entry → can both read them.
A simple record could look like this:
version: support-triage-v1.4
model: (exact model name from your provider)
prompt: prompts/triage-v1.4.txt
change: added rule for refund requests
tests: 40 cases, 38 passed
approved_by: ops lead
That is clear to you. It is also clear to a script.
Roll out new versions without breaking live jobs
Here is a hidden problem. Some AI workflows run for hours or days. They wait for a person to approve, or for a file. Change the workflow in the middle and the job can get lost.
The Temporal documentation on Go workflow versioning explains the hard rule. For long-running logic, a change to workflow code needs patching or versioned deployments. Otherwise runs already in progress can hit non-determinism errors (the system replays their history and the new code does not match).
You do not need that tool to take the lesson. Use this rule:
Old jobs finish on the old version. New jobs start on the new version.

Think of a restaurant changing its menu. Tables already seated keep the old menu. New guests get the new one.
A safe rollout in four steps
- Shadow run. Run the new version beside the old one on real inputs. Do not send its output to customers. Compare.
- Small slice. Send a small share of live work to the new version. Watch it.
- Full switch. If the scores hold, move all new jobs over.
- Retire the old one. Only when no jobs still run on it.
AWS guidance also points to shadow mode and confidence thresholds before a full rollout. A confidence threshold is a minimum score. If the AI is less sure than that, a person checks the work.
Test before you ship, and test again after
A version with no test is a guess with a number on it.
Build a small set of real cases. Start with 20 to 50. Include normal ones, odd ones, and the ones that went wrong before. Run every new version against the same set.
If a new prompt fixes one case and breaks three, you see it at once. That is the point of versions: fair comparisons.
We cover this in our posts on AI agent testing with replay and CI checks and how AI systems handle edge cases.
Keep sessions clean
Long chats get messy.
An arXiv paper, a phased workflow for operating LLM-based coding agents, lists "poisoning" as a context failure: hallucinations (made-up facts the AI states as true) that persist across turns. Its workflow runs each task in a fresh session, loaded with project-level instructions and a task definition. It does not lean on one long-running agent state.
For versioning, that means store your instructions in files you control. Do not let a chat history be the only copy of what the agent "knows". Start each task clean and load the right version of the instructions.
Prompt governance for sensitive work
Some output carries real risk: health advice, legal text, financial guidance. Here, versioning is not optional.
AWS guidance says that when prompts shape user-facing or regulated output, you should formalise how prompts are written, reviewed and tested. In practice:
- A named person approves each prompt change.
- Every approval is logged against a version ID.
- You can show later which prompt produced which output.
If you work in finance, read about generative AI compliance rules for US advisers. Check with your own compliance officer or lawyer before you rely on any AI output in a regulated setting.
For a wider frame, see our 90-day plan for AI system governance.
Version the judgement, not just the files
Most versioning advice is about files: prompt files, config files. That matters. But the founders we work with, running $1M+ education and consulting businesses, need to protect something else. Their judgment.
A founder knows when to bend a rule. They know which client needs a call, not an email. That knowledge goes into the AI employees we build, so it has to be versioned too. This is the idea behind the AI Operating System: the founder's IP written down as rules and examples, run by agents built with Claude Code, so output scales without the founder in every loop.
In practice:
- Write the rules down. Pull the founder's decisions into plain rules and examples.
- Put each rule in a versioned file. Those files become the agent's instructions.
- Check each version against the founder's own calls. If a new version disagrees with how the founder would act, you find out before clients do.
Versioning also keeps the system readable. A system you cannot read or move is a trap, and clear versions let you see what each agent does and why.
Versioning will not fix a bad process. If the workflow is unclear, ten versions of it will still be unclear. Fix the process first, then version it. For how the agents fit together, start with six AI orchestration patterns, or read how custom AI delivery systems get built with Claude Code. Our glossary explains the terms in simple words.
James Killick
Start small: a one-week setup
You do not need a big tool to begin.
- Day 1. List every prompt and setting in your workflow. Put them in one folder.
- Day 2. Give each a version ID. Freeze what is live today as v1.0.
- Day 3. Write 20 test cases from real work.
- Day 4. Pin your model to an exact version.
- Day 5. Write the one-page change record template.
- Weekend rule. From now on, no edits to live prompts. Every change is a new version.
That alone puts you ahead of most teams.
Common mistakes
- Editing live. Someone tweaks a prompt in the tool. No record, no rollback.
- Using "latest". The ground moves under you.
- Versioning code only. Prompts and data drive the output.
- No test set. You cannot tell better from worse.
- No owner. Nobody approves. Nobody is accountable.
- Deleting old versions. Keep them. Storage is cheap. A rollback is not.
Where we can help
If you run a consulting or education business above $1M a year and your team still waits on you for decisions, this is our work. The AI Orchestrators Program is a 90-day done-with-you build of an AI system around your expertise, with testing and versioning set up from the start. You keep full ownership.
Prefer to build it yourself? Platform Access is the self-serve route.
Next step
Not sure where your workflows stand? Take the assessment and see what to fix first.
Frequently asked questions.
James Killick
Founder
The AI Orchestrator. 10+ years building digital products and 200+ apps shipped, now helping $1M+ educators and consultants turn their IP into AI-powered delivery systems.
James Killick founded and runs The AI Orchestrators.
More from James Killick