Key takeaways

  • An AI agent model upgrade is a release, not a config tweak. Pin everything that shapes behaviour in one manifest, so "old" and "new" mean something exact.
  • Run both versions on the same set of real past cases, several times each, and diff them case by case on outcome, action, hand-over, refusal and cost.
  • Write the release rule as code before the run, then roll out in stages behind a single kill switch.

What counts as an AI agent model upgrade?

An AI agent model upgrade is any change that can alter what the agent does with the same input. That includes the obvious one, a new model, but also a prompt edit, a new or changed tool, a different retrieval source, or a policy rule. If it can change a tool call, treat it as a release and test it.

The model is the change you control least. Vendors ship and retire models on their own timetable: OpenAI's ChatGPT release notes record GPT-6 Sol rolling out to paid plans on 7 October 2026, with GPT-4.5 withdrawn from ChatGPT on 26 June 2026. If your agent points at a floating alias, the upgrade may already have happened.

So step zero is a lock file for behaviour:

# agent.lock.yaml -- everything that defines "this version" agent: order-entry version: 2026-12-01.b model: { provider: vendor-a, id: model-b-2026-11, temperature: 0 } prompt: { file: prompts/order_entry.md, sha256: 9f2c41... } tools: - create_order@v3 - lookup_customer@v2 retrieval: { index: product-catalogue, snapshot: 2026-11-28 } policy: { file: policy/limits.yaml, sha256: 51ab07... } regression_set: { path: cases/, version: 14, cases: 212 } 

Commit one of these for the current version before you touch anything. That file is your baseline and your rollback target.

Which cases should the regression set contain?

Use real past cases from your own logs, not invented prompts. A useful set mixes three kinds: routine work in roughly its real proportions, hard cases pulled from the exception queue, and "must-never" cases where the agent must not act alone. Record the expected outcome for each, not the expected wording.

A few dozen cases is enough to start. The rules that keep the set honest:

  • Expected outcome, not expected text. "Order created for 12 cartons, customer C-0193" survives a model that phrases things differently. A string match does not.
  • One case per production error. Every incident becomes a test before it is closed.
  • Refresh monthly. Retire cases for products or rules that no longer exist, and strip personal and payment data.

If you already run an injection suite (we covered putting guardrails at the tool call in an earlier post), fold those cases into the must-never group. Prompt injection is ranked first by OWASP for LLM applications, and a new model can be more or less easily talked into things than the old one.

How do you diff the old and new versions?

Run every case through both versions several times, score the worst run, and compare per case rather than as an average. Look at five things: was the outcome right, were the tool calls right, did it hand over when it should, did it refuse what it must refuse, and what did the task cost in tokens and time.

Averages hide the cases that matter. A new model can lift overall accuracy while quietly breaking one must-never case. Here is a minimal paired diff with the release rule written in before anyone sees the results:

from statistics import mean RUNS = 3 def score(agent, case): """Worst of N runs. Each run returns a dict of checks.""" results = [agent.run(case["input"]) for _ in range(RUNS)] worst = lambda key: all(r[key] for r in results) return { "outcome_ok": worst("outcome_ok"), # matches case["expected"] "actions_ok": worst("actions_ok"), # no wrong or extra tool calls "handover_ok": worst("handover_ok"), # escalated when expected "refusal_ok": worst("refusal_ok"), # refused blocked actions "tokens": max(r["tokens"] for r in results), "seconds": max(r["seconds"] for r in results), } def release_gate(cases, old, new): report, blockers = [], [] for case in cases: a, b = score(old, case), score(new, case) report.append((case["id"], a, b)) if case["kind"] == "must_never" and not (b["actions_ok"] and b["refusal_ok"]): blockers.append(f"{case['id']}: must-never case failed") routine = [(a, b) for cid, a, b in report if next(c for c in cases if c["id"] == cid)["kind"] == "routine"] old_acc = mean(a["outcome_ok"] for a, _ in routine) new_acc = mean(b["outcome_ok"] for _, b in routine) if new_acc < old_acc: blockers.append(f"routine accuracy fell: {old_acc:.1%} -> {new_acc:.1%}") token_change = (mean(b["tokens"] for *_, b in report) / mean(a["tokens"] for _, a, _ in report)) - 1 notes = [f"tokens per task changed {token_change:+.0%}: explain before release"] return blockers, notes, report 

The rule mirrors the one in the source guide: any must-never failure blocks the release, routine accuracy may not fall, and any cost change needs a written explanation. Hand-over changes are not automatically bad, but someone should read every one.

How do you roll out once the gate passes?

Release in stages behind one switch. Run the new version in draft mode first, then send about one case in ten to it for a full week, then half, then all. Decide the rollback triggers before the canary starts, and make the kill switch route everything back to the pinned version.

Because the lock file from step zero is in version control, "roll back" is a single config change, provided the old version is still runnable.

Why bother, if monitoring is in place?

Monitoring tells you something broke after customers saw it; a regression set tells you before. In KPMG's Q3 2026 AI Pulse of 314 US leaders at large firms, 62% were building, deploying or developing AI agents and 70% used AI monitoring dashboards. Only 49% had defined high-risk uses where agents may not decide alone.

That 49% maps directly to your must-never cases. If nobody has written down what the agent may never do unsupervised, there is nothing for the gate to block on.

Pre-release checklist

  1. Commit an agent.lock.yaml for the current version before changing anything.
  2. Build the regression set from real past cases: routine, hard and must-never, each with an expected outcome.
  3. Run old and new versions three times per case and score the worst run.
  4. Apply the release rule you wrote before the run; the business owner signs off.
  5. Roll out draft, then one in ten for a week, then all, with a tested kill switch.

FAQ

How many test cases do I need?
A few dozen real cases is a reasonable start. Grow it by adding one case for every production error.

Should I rerun the set if nothing changed?
Yes. The source guide recommends a full rerun monthly, because data, tools and vendor-side models drift even when your code does not.

Can I use an LLM as the judge?
For wording-level checks, perhaps. For actions, hand-overs and refusals, check the tool-call log directly in code.

What goes in the evidence pack?
Version identifiers, the regression set version and case count, per-dimension results with failures listed, the release rule and decision, a dated sign-off with the canary plan, and cost and latency before and after.

This post is the developer cut of a longer guide from Sigzen AI, which covers sign-off, review cadence and a worked example in more depth. If you are still deciding which process an agent should own in the first place, start with AI Agents for Business Processes: Write the Process Card Before You Build Anything. For the support-desk view of keeping an agent reliable after launch, see How to Build an AI Agent for Customer Support That Still Works in Month Three.

What is in your must-never set? Tell us in the comments.

Written by the Sigzen AI editorial team. Sigzen AI builds AI agents for operations teams and helps B2B brands show up accurately in ChatGPT, Gemini, Copilot and Google AI answers.