Treat Every AI Model as a Dependency

Diagram of an AI model dependency graph with pinned versions and tools

Teams that kept a dependency inventory could say within hours where they ran Log4j after its critical flaw surfaced in December 2021. The rest searched their code by hand. Asking the equivalent for AI is harder: which systems call which model, at what version, using what prompt and which tools? Engineers now argue that every AI model dependency deserves the same discipline as any library, and a 2026 benchmark shows how far behind banks are.

The gap in banks

A Boston Consulting Group benchmark of 26 systemically important banks found fewer than half had a centralized, tool-based AI inventory. Some 46% had hit an AI-related issue or incident in the previous twelve months. And 96% manage AI risk through existing risk frameworks.

A model is a strange thing to depend on. You can’t read its source, versions carry no compatibility promise, and each has an end date. It can also fail in ways a library never does.

Detail of the Stockholm rail network map, with metro, commuter rail, and light rail lines converging on T-Centralen
Image: César Soto Valero

Three ways a pinned model still moves

Researchers who followed GPT-4 saw its accuracy on prime-number questions drop from 84% in March 2023 to 51% by June. Anything calling the floating model name silently got the newer behavior.

Anthropic’s own postmortem covers a stretch from August to early September 2025, when three infrastructure faults degraded some Claude replies. Some requests went to servers built for a longer context window, a TPU setup error garbled output tokens, and a compiler bug in approximate top-k selection could discard the likeliest token. Model weights stayed the same throughout.

Thinking Machines ran an open model 1,000 times on one prompt at temperature zero and received 80 different completions. Server load decides which batch a request joins, and GPU kernels for matrix multiplication and attention give slightly different numbers at different batch sizes. Forcing batch-invariant kernels made all 1,000 outputs match, though runs took about 1.6 times as long. Setting temperature to zero doesn’t freeze behavior.

Six habits borrowed from software supply chains

Pin the whole closure. Find out whether each provider ID names a fixed snapshot or an alias that moves. Anthropic’s dateless IDs are pinned snapshots from the 4.6 generation on, while earlier ones need a dated name. Prompts and tool definitions need pinning as well. In a study of 1,262 prompt changes across 243 open-source repositories, only 21.9% were documented in commit messages. An MCP server can rewrite its tool definitions after you approve them, so fingerprint what the model actually reads.

Test upgrades statistically. Run every reference item multiple times and compare old and new versions on identical items. Picture an upgrade that fixes 40 items and breaks 12: the net is plus 28, yet 12 new failures still reach users. A paired exact test on those disagreements would not reject the upgrade, though it surfaces the 12 regressions by name for review. Flip the numbers to 10 fixes and 30 regressions and the chance of that many regressions by luck falls to about 0.1%, so the gate blocks promotion.

Keep a bill of materials. The CycloneDX standard now includes a component type for machine learning models. Build the AI bill of materials from the lockfile during CI, so it always matches what’s deployed. Banks also face DORA’s register of ICT third-party contracts, and since 2 August 2025 general-purpose model providers in the EU must give downstream users documentation of capabilities and limits.

Debloat the agent. Earlier research on 723,444 Maven dependency relationships found that 75.1% were bloated, declared but never needed. Agents show the same waste with tools: Anthropic reported five MCP servers with 58 tools used about 55,000 tokens before a conversation began. Letting the model search for tools cut usage 85% and raised accuracy from 49% to 74% on one model. The fix is to record production tool calls and delete tools that never get used.

Verify what you load. Code-writing models invent package names, and attackers register them, a trick called slopsquatting. Across 576,000 code samples from 16 models, 19.7% of referenced packages didn’t exist. Hugging Face names follow an author/model pattern, so when an account is deleted anyone can claim its name, and Unit 42 showed major cloud platforms still offering models under such reusable names. Python’s pickle format can execute code on load, whereas safetensors stores only tensors. Defenses carry over from software: pin a commit hash, refuse pickle-based weights and serve from an internal mirror. Data poisoning is harder to catch, since 250 malicious documents were enough to plant a backdoor in models from 600 million to 13 billion parameters.

Plan the exit. Retirement is routine. Anthropic promises at least 60 days’ notice before it retires a publicly released model. OpenAI said on 11 June 2026 that GPT-5 and o3 snapshots, among others, would shut down on 11 December 2026. In June 2026 Anthropic suspended all customers’ access to two new models to comply with US export controls, then restored it on 1 July. Embedding models are the hardest to swap: vectors from different models sit in different spaces, so a switch means re-embedding every document while two indexes run in parallel.

Why banks shouldn’t wait for regulators

US supervisors replaced SR 11-7 with SR 26-2 in April 2026, and it explicitly leaves generative and agentic AI out of scope. In the EU, the AI Omnibus moved obligations for stand-alone high-risk systems, including individual credit scoring, to 2 December 2027. DORA has applied since January 2025.

What to do first

A practical first step is a lockfile for one pipeline, for example one that pulls EBITDA and net debt from borrowers’ quarterly reports. Track retirement dates in CI so builds fail 90 days ahead of a shutdown. After that, add the bill of materials and a fallback model that clears the same upgrade gate.

Source: César Soto Valero

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.