{"slug": "your-model-is-a-dependency", "title": "Your Model Is a Dependency", "summary": "A 2026 benchmark of 26 systemically important banks found fewer than half had a centralized, tool-based AI inventory and 46% had experienced an AI-related issue or incident in the previous twelve months, according to a blog post arguing that a large language model should be treated as a software dependency. The post cites research showing GPT-4's accuracy at identifying prime numbers fell from 84% in March 2023 to 51% in June 2023, and that three infrastructure bugs degraded some Claude responses between August and early September 2025 even though the weights never changed. The author, drawing on a KTH PhD on Java dependency bloat, recommends six supply-chain habits — pin, test, inventory, debloat, verify and exit — and says financial institutions should adopt them as soon as possible.", "body_md": "In December 2021, a critical flaw in Log4j, a small Java logging library used almost everywhere, sent organizations around the world scrambling to answer one question: *where do we use it?*<sup>[1](#fn:1)</sup>\nTeams with an inventory of their dependencies answered in hours, and everyone else started grepping (I wrote about it in [an earlier post](https://www.cesarsotovalero.net/blog/why-debloating-third-party-software)).\n\nNow ask the AI version: *which of our systems call which model, at which version, with which prompt, and with access to which tools?*\nIn a 2026 benchmark of 26 systemically important banks, fewer than half had a centralized, tool-based AI inventory, and 46% had experienced an AI-related issue or incident in the previous twelve months.[2](#fn:2)\n\nDuring [my PhD at KTH](https://www.cesarsotovalero.net/files/thesis/2023_debloating-java-dependencies_kth-phd-thesis_cesar-soto-valero.pdf), I studied how software dependencies bloat, break, and quietly turn into liabilities.[3](#fn:3)<sup>[4](#fn:4)</sup>\nThis post makes a simple argument: a large language model is a dependency.\nIt is the strangest one we have adopted (no source code, no semantic versioning, and a retirement date), but the software supply chain playbook applies to it almost line by line.\n\nThe running example is the covenant pipeline from [my post on reading financial documents](https://www.cesarsotovalero.net/blog/reading-financial-documents-with-ai), which extracts values like EBITDA and net debt from borrowers’ quarterly reports.\nI’ll cover what such a pipeline really depends on, six habits from the software supply chain (pin, test, inventory, debloat, verify, and exit) with code you can adapt, and why financial institutions should adopt them ASAP.\n\n## What You Actually Depend On\n\nOn paper, the covenant pipeline has one dependency: “the model.”\nFigure 1 shows the real graph.\nAs in any package manager, there are *direct* dependencies, which you choose and can pin, and *transitive* ones, which arrive with them.\n\nThis dependency misbehaves in ways a library never does.\n\n**The same name, a different model.**\nResearchers who tracked GPT-4 found that its accuracy at identifying prime numbers fell from 84% in March 2023 to 51% in June 2023.<sup>[5](#fn:5)</sup>\nCode that called the moving name got whichever version was current.\n\n**The same model, a different computation.**\nBetween August and early September 2025, three infrastructure bugs degraded some of Claude’s responses: requests misrouted to servers configured for a longer context window, a TPU misconfiguration that corrupted output tokens, and a compiler bug in approximate top-k selection that could drop the most likely token.<sup>[6](#fn:6)</sup>\nThe weights never changed, and Anthropic’s evaluations did not catch the degradation at first: a transitive dependency failed behind a model ID that stayed the same.\n\n**The same request, a different answer.**\nThinking Machines sent one prompt 1,000 times to an open model at temperature zero and got 80 distinct completions.<sup>[7](#fn:7)</sup>\nThe cause: the batch your request lands in depends on server load, and GPU kernels for matrix multiplication and attention do not produce bit-identical results across batch sizes.\nBatch-invariant kernels made all 1,000 completions identical, at about 1.6 times the runtime.\n\nWith a hosted model, you can pin the name (and, if the provider guarantees it, the weights), but not the computation. Temperature zero is not a lockfile. And there is no semantic versioning for behavior: the API (JSON in, JSON out) almost never breaks, while the behavior on your task can change with any snapshot. Treat every model change as a major version.\n\n## Habit 1: Pin the Whole Closure\n\nFirst, learn your provider’s version semantics, the way you learn whether `^1.2.3` floats in npm.\nFor Anthropic’s models before the 4.6 generation, `claude-sonnet-4-5-20250929` is a fixed snapshot and `claude-sonnet-4-5` is an alias that moves.\nFrom the 4.6 generation onward, the dateless ID is itself a pinned snapshot.<sup>[8](#fn:8)</sup>\nOpenAI lists both moving names like `gpt-5` and dated snapshots like `gpt-5-2025-08-07`.[9](#fn:9)\n\nSecond, pin more than the model.\nThe pipeline’s behavior depends on everything in Figure 1 that *can* be pinned.\nBuild systems like Nix call the full set of things a build depends on its *closure*, and that is the right unit here:\n\nEvery line is a release lever, including the prompt, which teams rarely treat that way: in a study of 1,262 prompt changes across 243 open-source repositories, only 21.9% were documented in commit messages.[10](#fn:10)\n\nA lockfile is only useful if something enforces it. This check runs in CI, at startup, and every time an MCP server lists its tools:\n\nThe `catalog` is your own registry metadata (snapshot or alias, and the retirement date), built from the providers’ model and deprecation pages.\n`MIN_RUNWAY` turns a retirement date into a failing build 90 days before it matters.\nAnd `tool_fingerprint` hashes exactly what the model reads, because an MCP server can change its tool definitions after you approve them.\nInvariant Labs called this a *rug pull*, next to *tool poisoning*, where hidden instructions live inside a tool’s description.<sup>[11](#fn:11)</sup>\nA tool description is a prompt you did not write, served by a dependency that can update itself without a version bump.\n\n## Habit 2: Test Every Upgrade, Statistically\n\nDependency upgrades are safe because regression tests catch what breaks, and model upgrades need the same discipline, with two twists.\nFirst, outputs vary between runs, so run every gold item several times and record a stable summary, such as “correct in at least 4 of 5 runs.”\nSecond, the average hides the damage.\nA snapshot that fixes 40 items and breaks 12 shows a net gain of 28, and it still ships 12 new failure modes.\nThe literature calls these *negative flips*: items the old model got right and the new one gets wrong.<sup>[12](#fn:12)</sup>\nDownstream processes are built around what used to work, so regressions deserve more attention than fixes.\n\nThe right statistic is paired: both versions see the same items, so only the items where they disagree carry information.\nThat is McNemar’s test,<sup>[13](#fn:13)</sup> and its exact version is a binomial test on the disagreements:\n\nWith 40 fixes and 12 regressions, the gate does not reject, but it returns the 12 regressions by name for someone to review before promotion. Reverse the counts (10 fixes, 30 regressions) and the chance of seeing that many regressions by luck drops to about 0.1%, so the gate rejects.\n\nFigure 2 puts the gate into a pipeline: offline gate, then a shadow run on live traffic (outputs compared, never used), then a canary with full human review, and only then promotion.\n\nThe bottom half matters as much as the top, because the serving stack can change underneath a pinned model. A daily probe feeding a control chart is cheap, and it gives you a signal when user reports are too noisy to read.\n\n## Habit 3: Keep a Bill of Materials\n\nAfter Log4Shell, software bills of materials (SBOMs) went from niche to expected, and the standards now cover models.\nCycloneDX has a component type for machine learning models, with a model card, and treats datasets as data components.<sup>[14](#fn:14)</sup>\nHere is the covenant pipeline’s AI bill of materials (AI-BOM), which validates against the CycloneDX 1.7 schema:\n\nGenerate it in CI from the lockfile, so that it cannot drift from what runs. With one AI-BOM per release of every application, the Log4Shell question becomes a function:\n\nBanks have a second reason: DORA requires a register of information on all contractual arrangements for ICT services from third-party providers.<sup>[15](#fn:15)</sup>\nThe register says which contracts you have, and the AI-BOM says which systems depend on what those contracts deliver.\nOn the supplier side, since 2 August 2025, providers of general-purpose AI models on the EU market must give downstream providers documentation of the model’s capabilities and limitations.<sup>[16](#fn:16)</sup>\nAsk for it, version it, and link it from the AI-BOM (that is what the `model-card` reference is for).\n\n## Habit 4: Debloat the Agent\n\nMy PhD research was about bloat.\nIn the Maven ecosystem, we analyzed 723,444 dependency relationships and found that 75.1% of them were bloated: declared, but not needed to build or run the application.<sup>[3](#fn:3)</sup>\nBloat also grows over time, because projects add dependencies far more often than they remove them.[4](#fn:4)\n\nAgents repeat the pattern with tools.\nEvery connected tool’s name, description, and schema goes into the model’s context.\nAnthropic reported that five MCP servers with 58 tools consumed about 55,000 tokens before a conversation even started, and that letting the model search for the tools it needs cut token usage by 85% and raised accuracy on their MCP evaluations from 49% to 74% for one model.[17](#fn:17)\n\nThe remedy is the one I used for Java: dynamic analysis. Log every tool call in production, find the declared tools that an agent never called over a long enough window, and remove them from the lockfile. Fewer tools mean fewer tokens, fewer wrong choices, and fewer rug pulls waiting to happen.\n\n## Habit 5: Verify What You Load\n\nEvery classic software supply chain attack has an AI counterpart, as Figure 3 shows.\n\n**Typosquatting** has a cousin called *slopsquatting*: code-generating models invent package names, and attackers register them.\nAcross 576,000 code samples from 16 models, 19.7% of the referenced packages did not exist.[18](#fn:18)\n\n**Abandoned names** are a classic hijacking target.\nOn Hugging Face, models are addressed as `author/model`, and when an author account is deleted, anyone can register the name again.\nUnit 42 showed that Google Vertex AI and Azure AI Foundry still offered models under such reusable names, and that an attacker who re-registered one could run code on the deployed endpoint.[19](#fn:19)\n\n**Malicious payloads** hide in formats that execute code when loaded: Python’s pickle format, long used for PyTorch checkpoints, can run arbitrary code during unpickling,<sup>[20](#fn:20)</sup> while safetensors stores only tensors.\n\n**Compromised upstreams**, like the xz Utils backdoor,<sup>[21](#fn:21)</sup> have a counterpart in data poisoning.\nIn the largest pretraining poisoning experiments to date, 250 malicious documents were enough to plant a (deliberately low-stakes) backdoor in models from 600 million to 13 billion parameters.<sup>[22](#fn:22)</sup>\nYou cannot scan weights for that, which is why provenance matters more than inspection.\n\nFor open-weight models, the defenses carry over from software almost unchanged:\n\n`revision` pins a commit SHA, which is Unit 42’s first recommendation.\nA commit SHA identifies content, not a name, so whoever owns the repository tomorrow, that revision either resolves to the files you reviewed or fails.\n`allow_patterns` refuses pickle-based weights, and the digest and file-set checks catch modified or added files.\nIn production, run this once, scan the result, and serve the model from an internal mirror (as you would for Maven or PyPI).\nWhere the publisher signs its models, also verify the signature with the OpenSSF model-signing tool.[23](#fn:23)\n\n## Habit 6: Plan the Exit\n\nEvery dependency eventually goes away, and models go away on a schedule.\nAnthropic commits to at least 60 days’ notice before a publicly released model retires.<sup>[24](#fn:24)</sup>\nOn 11 June 2026, OpenAI announced that its GPT-5 and o3 snapshots, among others, would shut down on 11 December 2026.<sup>[9](#fn:9)</sup>\nPreview models can go faster: GPT-4.5 preview had three months between its deprecation notice and its shutdown.\n\nSometimes there is no schedule at all.\nIn June 2026, Anthropic suspended access to two newly released models for all customers to comply with US export controls, and restored it on 1 July, after the controls were lifted.<sup>[25](#fn:25)</sup>\nThe European Systemic Risk Board has since warned that the concentration of leading AI providers outside the EU exposes the EU to strategic dependency.[26](#fn:26)\n\nDORA already asks for what an engineer would do anyway: documented and tested exit strategies for ICT services that support critical or important functions.<sup>[15](#fn:15)</sup>\nIn practice, that means a thin provider abstraction, a fallback that passes the same gate from Habit 2, and exit drills that run the fallback in shadow mode, so that the exit is a tested path and not a slide.\nNot every dependency is equally hard to leave:\n\n| Dependency | What switching costs | \n|---|---|\n| Prompt | Run the gate again | \n| LLM snapshot | Run the gate again, and recheck calibration and thresholds | \n| Tool server | Retest the tool, and approve its new definition | \n| Embedding model | Re-embed the whole corpus, rebuild the index, and re-evaluate retrieval | \n\nThe embedding model is the stickiest dependency in the graph: vectors from two models live in different spaces, so switching means re-embedding every document while two indexes run side by side. Pin it, and budget the exit before you need it.\n\n## Why Banks Should Not Wait\n\nRegulation leaves banks room (and responsibility) to define good practice here.\nIn April 2026, US supervisors replaced the SR 11-7 model risk guidance with SR 26-2, which explicitly leaves generative and agentic AI out of its scope.<sup>[27](#fn:27)</sup>\nIn the EU, the AI Omnibus moved the obligations for stand-alone high-risk systems (which include credit scoring of individuals) to 2 December 2027,<sup>[28](#fn:28)</sup> while DORA has applied since January 2025.\nAnd 96% of the banks in the BCG benchmark manage AI risk through their existing risk frameworks.<sup>[2](#fn:2)</sup>\nSoftware supply chain management is the existing framework that fits LLMs best, and engineers and risk teams already share its vocabulary.\n\n## Conclusion\n\nLLMs changed how we build software, but not what a dependency is: something you did not write, cannot fully inspect, and still have to answer for. Figure 4 summarizes the translation.\n\nHere are the 6 core lessons from this post:\n\n1. **Pin the closure, not the name.** The model ID is one line of a lockfile.\n2. **Test upgrades statistically.** Repeat runs, pair the comparison, and review every regression by name.\n3. **Keep an AI bill of materials.** Generate it from the lockfile, and link it to your third-party register.\n4. **Debloat your agents.** Every unused tool costs tokens, accuracy, and attack surface.\n5. **Verify what you load.** Pin commit hashes, load safetensors, and check digests and signatures.\n6. **Plan the exit before you need it.** Track retirement dates in CI, and keep a tested fallback.\n\nNone of these habits is new, and that is precisely the point. We already know how to govern dependencies. We just need to recognize the model as one.\n\n## Footnotes\n\n1. \nNational Institute of Standards and Technology, [*CVE-2021-44228 (Log4Shell)*](https://nvd.nist.gov/vuln/detail/CVE-2021-44228) (National Vulnerability Database, 2021).[↩](#fnref:1)\n2. \nBoston Consulting Group, [*AI Safety and Governance in Banking 2026*](https://www.bcg.com/press/13november2026-operationalizing-ai-governance-advantage-scaling-ai) (press release, 2026).[↩](#fnref:2)[↩<sup>2</sup>](#fnref:2:1)\n3. \nCésar Soto-Valero, Nicolas Harrand, Martin Monperrus, and Benoit Baudry, [*A Comprehensive Study of Bloated Dependencies in the Maven Ecosystem*](https://doi.org/10.1007/s10664-020-09914-8) (Empirical Software Engineering, 2021).[↩](#fnref:3)[↩<sup>2</sup>](#fnref:3:1)\n4. \nCésar Soto-Valero, Thomas Durieux, and Benoit Baudry, [*A Longitudinal Analysis of Bloated Java Dependencies*](https://arxiv.org/abs/2105.14226) (ESEC/FSE, 2021).[↩](#fnref:4)[↩<sup>2</sup>](#fnref:4:1)\n5. \nLingjiao Chen, Matei Zaharia, and James Zou, [*How Is ChatGPT’s Behavior Changing over Time?*](https://arxiv.org/abs/2307.09009) (arXiv, 2023).[↩](#fnref:5)\n6. \nAnthropic, [*A Postmortem of Three Recent Issues*](https://www.anthropic.com/engineering/a-postmortem-of-three-recent-issues) (2025).[↩](#fnref:6)\n7. \nHorace He and Thinking Machines Lab, [*Defeating Nondeterminism in LLM Inference*](https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/) (Connectionism, 2025).[↩](#fnref:7)\n8. \nAnthropic, [*Model IDs and Versioning*](https://platform.claude.com/docs/en/about-claude/models/model-ids-and-versions) (Claude Platform documentation).[↩](#fnref:8)\n9. \nOpenAI, [*Deprecations*](https://developers.openai.com/api/docs/deprecations) (OpenAI API documentation, accessed November 2026).[↩](#fnref:9)[↩<sup>2</sup>](#fnref:9:1)\n10. \nMahan Tafreshipour et al., [*Prompting in the Wild: An Empirical Study of Prompt Evolution in Software Repositories*](https://arxiv.org/abs/2412.17298) (MSR, 2025).[↩](#fnref:10)\n11. \nInvariant Labs, [*MCP Security Notification: Tool Poisoning Attacks*](https://invariantlabs.ai/blog/mcp-security-notification) (2025).[↩](#fnref:11)\n12. \nJessica Echterhoff et al., [*MUSCLE: A Model Update Strategy for Compatible LLM Evolution*](https://arxiv.org/abs/2407.09435) (Findings of EMNLP, 2024).[↩](#fnref:12)\n13. \nQuinn McNemar, [*Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages*](https://doi.org/10.1007/BF02295996) (Psychometrika, 1947).[↩](#fnref:13)\n14. \nOWASP CycloneDX, [*Authoritative Guide to AI/ML-BOM*](https://cyclonedx.org/guides/OWASP_CycloneDX-Authoritative-Guide-to-AI-ML-BOM-en.pdf) (2026).[↩](#fnref:14)\n15. \nEuropean Union, [*Regulation (EU) 2022/2554 on Digital Operational Resilience for the Financial Sector (DORA), Article 28*](https://eur-lex.europa.eu/eli/reg/2022/2554/oj) (2022).[↩](#fnref:15)[↩<sup>2</sup>](#fnref:15:1)\n16. \nEuropean Union, [*Regulation (EU) 2024/1689 (AI Act), Article 53: Obligations for Providers of General-Purpose AI Models*](https://artificialintelligenceact.eu/article/53/) (2024).[↩](#fnref:16)\n17. \nAnthropic, [*Introducing Advanced Tool Use on the Claude Developer Platform*](https://www.anthropic.com/engineering/advanced-tool-use) (2025).[↩](#fnref:17)\n18. \nJoseph Spracklen et al., [*We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs*](https://www.usenix.org/conference/usenixsecurity25/presentation/spracklen) (USENIX Security, 2025).[↩](#fnref:18)\n19. \nPalo Alto Networks Unit 42, [*Model Namespace Reuse: An AI Supply-Chain Attack Exploiting Model Name Trust*](https://unit42.paloaltonetworks.com/model-namespace-reuse/) (2025).[↩](#fnref:19)\n20. \nPython Software Foundation, [*pickle: Python Object Serialization*](https://docs.python.org/3/library/pickle.html) (Python documentation).[↩](#fnref:20)\n21. \nNational Institute of Standards and Technology, [*CVE-2024-3094 (xz Utils backdoor)*](https://nvd.nist.gov/vuln/detail/CVE-2024-3094) (National Vulnerability Database, 2024).[↩](#fnref:21)\n22. \nAlexandra Souly et al., [*Poisoning Attacks on LLMs Require a Near-Constant Number of Poison Samples*](https://arxiv.org/abs/2510.07192) (arXiv, 2025).[↩](#fnref:22)\n23. \nSigstore and OpenSSF, [*Taming the Wild West of ML: Practical Model Signing with Sigstore*](https://blog.sigstore.dev/model-transparency-v1.0) (2025).[↩](#fnref:23)\n24. \nAnthropic, [*Model Deprecations*](https://platform.claude.com/docs/en/about-claude/model-deprecations) (Claude Platform documentation).[↩](#fnref:24)\n25. \nAnthropic, [*Statement on the US Government Directive to Suspend Access to Fable 5 and Mythos 5*](https://www.anthropic.com/news/fable-mythos-access) (2026).[↩](#fnref:25)\n26. \nEuropean Systemic Risk Board, [*Frontier AI Models Could Strain Cyber Resilience in the Financial System, ESRB Warns*](https://www.esrb.europa.eu/news/pr/date/2026/html/esrb.pr260707~4e1b68241a.en.html) (press release, 2026).[↩](#fnref:26)\n27. \nBoard of Governors of the Federal Reserve System, [*SR 26-2: Revised Guidance on Model Risk Management*](https://www.federalreserve.gov/supervisionreg/srletters/SR2602.htm) (2026).[↩](#fnref:27)\n28. \nOrrick, [*EU AI Act Update: Digital Omnibus Finalizes 8 Compliance Changes*](https://www.orrick.com/en/Insights/2026/05/EUs-Digital-Omnibus-on-AI-7-Key-Changes-You-Need-to-Know) (2026).[↩](#fnref:28)", "url": "https://wpnews.pro/news/your-model-is-a-dependency", "canonical_source": "https://www.cesarsotovalero.net/blog/your-model-is-a-dependency.html", "published_at": "2026-11-25 23:00:00+00:00", "updated_at": "2026-11-26 14:15:06.005931+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-safety", "mlops"], "entities": ["Anthropic", "OpenAI", "GPT-4", "Claude", "Thinking Machines", "KTH Royal Institute of Technology", "Log4j"], "also_reported_by": [], "takeaway": "Pin the full model closure rather than the model name alone: Anthropic's claude-sonnet-4-5 is a moving alias while claude-sonnet-4-5-20250929 is a fixed snapshot, and batch-invariant kernels made 1,000 temperature-zero completions identical at about 1.6 times the runtime.", "recommendation": {"advice": "Pin dated model snapshots and treat every model change as a major version, since temperature zero is not a lockfile and behavior can shift without the API breaking.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/your-model-is-a-dependency", "markdown": "https://wpnews.pro/news/your-model-is-a-dependency.md", "text": "https://wpnews.pro/news/your-model-is-a-dependency.txt", "jsonld": "https://wpnews.pro/news/your-model-is-a-dependency.jsonld"}}