MODULE 3 ยท LESSON 3
Free โ no login requiredSign in to track progress, save quiz attempts and enrol in the full course.
Sign in to track progress / enrolShipping Safely When the Ground Moves
Everything that changes behaviour is a version
In conventional software the code is the artefact. In an AI product, output depends on several things, and a change to any of them changes behaviour:
- The model, and its version.
- The prompt or system instruction.
- The retrieval configuration โ what is fetched, how much, from where.
- The knowledge base contents.
- Parameters such as temperature and token limits.
- Pre- and post-processing rules.
All of these must be versioned together and deployable as a unit, because the question after any incident is "what was live when this happened?" and it must have a single answer.
The most common failure here is treating prompts as configuration rather than as code. A prompt edited directly in a production console, unversioned and unreviewed, is a change to your product's behaviour with no record โ and prompts are edited far more often than models are.
Regression evaluation before release
Any change to any of the above triggers a run of the suite. The bar is not "did the score go up" but "did anything get materially worse?"
This matters because AI changes are frequently uneven. A prompt adjustment that improves handling of one input type routinely degrades another, and an aggregate score can rise while a category collapses. Report by category, not only in total.
A workable gate:
The regression and adversarial sets being zero-tolerance is what makes this workable in practice โ it gives the team a clear, non-negotiable line without requiring judgement calls under release pressure.
When the provider changes the model
This is the situation with no equivalent in conventional software: your product's behaviour can change without you deploying anything.
A provider updates a model behind the same name, deprecates a version, or adjusts a safety layer, and your carefully tuned prompt now behaves differently.
The defences, in order:
Pin the version where you can. Many providers offer dated model identifiers. Use them, and upgrade deliberately rather than by default.
Contract for notice. Practical AI for Future Managers covers the term: notification of model change plus a testing window. Ask for it.
Run the suite on a schedule, not only on your own changes. A weekly regression run against a pinned production configuration detects a provider-side change you were not told about. This is the control that actually catches it.
Keep a rollback path. If upgrading a model degrades a category, you need to go back. That requires the previous configuration to be deployable, which requires the versioning above.
Staged rollout
Never move a change to all users at once. The staging that works:
- Internal first, on real inputs, with the team using it.
- A small percentage of live traffic, monitored against both offline categories and online signals.
- Increase in steps, with a defined rollback trigger at each.
Define the rollback trigger numerically before starting, exactly as with the stop condition in the managers course: "roll back if edit rate rises above X or refusal rate exceeds Y". A trigger written under pressure, after the change is live and someone's work is attached to it, is a negotiation rather than a control.
Give the rollout time to be observed. AI quality problems surface unevenly โ a category that appears once a week will not show up in a two-hour canary. Match the observation window to how often your rarer input types actually occur.
Concrete enough to adopt. Every item exists because skipping it has caused an incident somewhere.
Before the change
- What exactly is changing โ model, prompt, retrieval, knowledge base, parameters, processing? List all of them, because changes usually bundle.
- Is the current configuration captured and redeployable?
- What is the rollback trigger, stated numerically?
Evaluation 4. Core set run, reported by category, not only aggregate. 5. Regression set: zero failures. 6. Adversarial set: zero new passes where refusal is expected. 7. If an automated grader was used, has it been sanity-checked against human judgement on a sample recently? 8. Latency and cost per request measured โ a quality improvement that doubles cost is a product decision, not an engineering detail.
Rollout 9. Internal use on real inputs for a defined period. 10. Percentage rollout with the observation window matched to the frequency of rare input types. 11. Online signals watched โ edit rate, rewrite rate, override rate, retry rate. 12. Named person accountable for the rollback decision.
After 13. Any new failures added to the regression set. 14. Configuration and evaluation results recorded together, so the question "what was live when this happened?" has an answer.
Item 8 is the one most often missing, and it is a product item rather than an engineering one. Teams optimise quality and discover the margin impact after the change is embedded โ which module 4 explains is the fastest way to build a product that works and cannot be sold profitably.
What is the distinctive release risk in an AI product that has no equivalent in conventional software?
Everything that changes behaviour is a version
Click to flipModel, prompt, retrieval configuration, knowledge base contents, parameters and processing rules โ versioned together and deployable as a unit, so "what was live when this happened?" has one answer.
Click to flip backVersion everything that affects output โ model, prompt, retrieval, knowledge base, parameters โ as one deployable unit, and treat prompts as code rather than console configuration. Gate releases on whether anything got materially worse by category, with zero tolerance on regression and adversarial sets. Defend against providers changing the model under you by pinning versions, contracting for notice and running the suite on a schedule. And stage rollouts with a numeric rollback trigger set before you start.