The Email That Broke Our Codebase
A vendor announced a model deprecation with six months notice, but half our tooling was fitted to that model's quirks. That is model dependency debt, the seventh of seven AI debts.
The Email That Broke Our Codebase
TL;DR: A vendor sent a polite email announcing a model deprecation. Six months notice. Plenty of time. Except half our internal tooling had been quietly built around the specific behaviour of that model — its quirks, its formatting, its tone. That’s model dependency debt: your architecture renting its intelligence from someone else’s roadmap.
The email was 200 words long and very polite.
“As part of our continued investment in model quality, [Model X] will be deprecated on [date six months from now]. We recommend migrating to [Model Y], which offers improved performance across most benchmarks.”
I forwarded it to the team with a shrug emoji. Six months. Plenty of time.
Then I started counting where Model X actually lived in our stack.
- The internal ticket-summariser. Built around the model’s specific summarisation style.
- The PR-description generator. Tuned to its particular formatting.
- The customer-email draft tool. Prompts engineered against its exact tone calibration.
- The semantic search re-ranker. Calibrated to its embedding space.
- Three internal slash-commands in Slack. All of them, same model.
- Two customer-facing features. One of them, frankly, only worked because of a quirk of how that model handled ambiguous inputs.
I stopped counting at fourteen.
”Just Swap the Model” Is a Lie
Here’s what the vendor email implied: change the model name in a config, redeploy, done.
Here’s what actually happened when we tried Model Y in staging:
- The summariser started writing in a noticeably different voice. Stakeholders noticed in 24 hours.
- The PR-description generator now omitted fields we’d come to rely on.
- The email tool became more formal in a way that didn’t match our brand.
- The semantic re-ranker’s results subtly shifted — not worse on benchmarks, but different enough that user-facing relevance changed.
- The feature built around the quirky behaviour? Just broken. The quirk was gone. The feature had no fallback.
None of these were bugs. The new model was, by every objective measure, better.
It was just different. And every piece of our system had been quietly, invisibly, fitted to the old shape.
The Hidden Coupling
Traditional dependencies are explicit. You import a library. You see it in package.json. You know it’s there.
Model dependencies are implicit. They live in:
- Prompts tuned by trial and error to one model’s idiosyncrasies.
- Output parsers that assume a specific response shape.
- UX decisions that depend on a specific tone or verbosity.
- Downstream code that quietly trusts the model never returns certain edge cases.
- User expectations shaped over months of one particular “personality.”
None of this is in your dependency graph. None of it is in your architecture diagram. All of it breaks when the model changes.
And the model will change. Not “if.” Every major vendor has deprecated models. Every one of them will do it again. The roadmap is theirs, not yours.
You’re Renting, Not Owning
The uncomfortable framing:
Your product’s intelligence is on a month-to-month lease, from a landlord who can raise the rent, change the locks, or sell the building on six months’ notice.
For a side project, fine. For a hobby tool, totally fine.
For a system that ships revenue? That’s a structural risk you almost certainly haven’t priced in.
And it compounds in a particularly nasty way: the better the AI features in your product, the deeper the dependency, because the better features are usually the ones most carefully tuned to one specific model.
The worst-case isn’t “the model gets deprecated.” The worst-case is “the model gets upgraded, behaves slightly differently, and a feature your customers love quietly degrades — and you can’t roll back because the old version is gone.”
What “Paying It Down” Looks Like
Model dependency debt isn’t fixed by switching providers. (That just trades one landlord for another.) It’s fixed by building a layer you own between your product and the model.
- Abstract the model behind an interface. Your code calls
summarise(text), notopenai.chat.completions.create(...). The model is a swappable implementation, not a hard dependency. - Eval suites, not vibes. A golden dataset of inputs + expected output shapes. Run it against every candidate model. You catch behavioural drift before it ships, not after customers complain.
- Multi-model from day one for anything serious. Even if you only deploy one in prod, having a second working implementation forces the abstraction to be real.
- Own the prompts, version them, test them. Prompts are code. They belong in the repo, in CI, with regression tests against fixed model versions.
- Pin versions in production. “Latest” is convenient and dangerous. Pin to a specific model snapshot. Upgrade deliberately, with evals, like any other dependency bump.
- Know which features are quirk-dependent. If a feature only works because the model behaves a certain way, that’s not a feature — that’s a liability. Either harden it or be ready to lose it.
The Real Lesson
The email gave us six months. We needed nine.
Not because migration was technically hard — the API call changes in an afternoon. We needed nine months because the model wasn’t a dependency we’d been managing. It was a foundation we’d been building on without realising we didn’t own the land.
Every AI-powered feature you ship without an abstraction layer is a small bet that this specific model will exist, behave this way, and be priced this way, forever.
It won’t.
That’s debt number seven of seven.
The Whole Set
Prompt. Context. Comprehension. Verification. Skill. Documentation. Model Dependency.
Seven flavours of the same underlying mistake: treating AI output as a finished product instead of an artifact that needs the same care as code.
Every one of them looks like productivity on the way in.
Every one of them is invisible on a dashboard.
Every one of them compounds — not in years, like classical technical debt, but in sprints.
The good news: now that you can name them, you can see them. And anything you can see, you can start paying down.
Related Posts
I Shipped a Black Box, Not a Feature
I merged a 400-line AI-assisted PR I understood for about 48 hours, then couldn't explain my own code when a bug came in. That gap between 'I shipped it' and 'I understand it' is comprehension debt, the third of seven AI debts.
I Shipped a Feature That Didn't Match Our Codebase
AI assistants write code that looks like it belongs, but they work from context we never gave them. That invisible gap between what the model assumed and what our codebase does is context debt, the second of seven AI debts.
Git Remembers the What. Nobody Remembers the Why.
A new hire asked why our payment service uses a queue, and git blame said only 'per AI suggestion'. The decision survived, the reasoning didn't. That is documentation debt, the sixth of seven AI debts.