Back to Methods & Assets Choose “Save as PDF” in the browser print dialog to take this page with you
CodeLeo · Method one-pager Change guide

Model change playbook: make every upgrade reversible

Leave a rollback path for upgrades, price changes and retirements: fix the evaluation set and call boundary first, then switch in a bounded scope and decide with the same yardstick.

Our position

A model change is not an endpoint swap; it is a product release that must carry its own rollback path.

What to take away

Method breakdown

  1. 01 · Freeze the evaluation yardstick first

    Before switching, select a fixed set of real tasks and write down the pass conditions, failure cases and the person who reviews them. Record quality, cost per run and response time the same way every time. When a new model arrives, change only the thing being evaluated — not the samples or the yardstick. Only then is the difference comparable and useful to the business owner.

    • Pick real tasks, not a demo set assembled on the day
    • Write pass conditions and failure cases before the switch
    • Record quality, cost and response time with one definition
  2. 02 · Put the call behind a reversible boundary

    Keep the model name, key parameters, prompt version, tool permissions and data scope in a configurable place, and write them into each call log. Retain the old model path until the new one passes review. When a rollback is needed, change configuration rather than code. If the prompt or data scope changes at the same time, treat it as a separate change; otherwise a failure cannot be attributed.

    • Centralise model names and parameters instead of scattering them
    • Log the model, prompt and data version with every call
    • Change one variable at a time and keep the old path for rollback
  3. 03 · Switch in a bounded scope and review the same way

    Start with one task class or a controlled slice, and let old and new models run on the same samples. Compare more than output quality: rework, human intervention, cost and error reports belong in the same review. Expand only when the pre-written conditions are met; otherwise roll back and keep the failed samples in the evaluation set. Archive the decision with the target version so the next change starts from this one.

    • Limit the first switch to one task class or bounded scope
    • Run old and new models on the same sample set
    • Expand on pass, roll back on fail, and archive the samples

Action checklist

Who this is for

Business owners of live AI applications, platform teams and delivery partners.