Why LLMs Should Be Managed as Software Dependencies

TLDR AITLDR AI·Original
Operator Bae ChangHyun

Key point

LLMs need six software-supply-chain practices because hosted serving can drift even when a model name or weights are pinned.

Details

  • The article argues that LLMs should be managed as software dependencies: pin their dependency closure, test upgrades, track inventory, debloat tools, verify models, and plan exits.
  • Hosted model behavior can shift despite a pinned name: GPT-4’s prime-number accuracy fell from 84% in March 2023 to 51% in June 2023; three infrastructure bugs degraded some Claude responses between August and early September 2025. Thinking Machines found 80 distinct completions from 1,000 identical prompts at temperature zero; batch-invariant kernels made all 1,000 outputs identical at about 1.6 times the runtime.
  • Dependency inventories matter: during the 2021 Log4j flaw, teams with dependency inventories could answer where they used the library in hours. In 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 prior 12 months.
  • Financial-sector rules leave a gap: in April 2026, US supervisors replaced SR 11-7 with SR 26-2, which leaves generative and agentic AI outside its scope. The EU AI Omnibus moved obligations for standalone high-risk AI systems to 2027-12-02, while DORA has applied since January 2025. In the BCG benchmark, 96% of banks managed AI risk through existing risk frameworks.

Pinning and testing changes

  • Pin the dependency closure, including prompts, output schemas, tools, retrieval indexes, embedding models, serving stack, weights and training data, region, and fallback revisions. With hosted models, users may be able to pin a name and, if the provider guarantees it, the weights—but not the serving computation. Before Anthropic’s 4.6 generation, claude-sonnet-4-5-20250929 was a fixed snapshot and claude-sonnet-4-5 a moving alias; from 4.6 onward, dateless IDs are pinned snapshots. OpenAI lists moving names such as gpt-5 and dated snapshots such as gpt-5-2025-08-07.
  • Record dependencies in a lockfile and validate it in CI. The example gate flags model retirements within 90 days, and the article recommends fingerprinting MCP tool definitions. A study found 1,262 prompt changes across 243 open-source repositories, but only 21.9% appeared in commit messages.
  • Compare upgrades using repeated runs of a reference set, inspect regressions, and use paired tests such as McNemar’s test or a binomial test on disagreements. In the article’s example, 40 fixes and 12 regressions do not trigger automatic rejection but send the regressions for review; 10 fixes and 30 regressions yield about a 0.1% chance of occurring by chance and are rejected. The proposed path is offline testing, shadow runs, a human-reviewed canary, and then promotion; daily probes and control charts monitor drift.

Inventory, tools, and model verification

  • Generate an AI bill of materials (AI-BOM) from the lockfile. CycloneDX 1.7 supports machine-learning model components and model cards, while datasets are represented as data components. Linking the AI-BOM to DORA’s third-party ICT contract register helps map systems to suppliers. Since 2025-08-02, providers of general-purpose AI models on the EU market must give downstream providers documentation of model capabilities and limitations.
  • Debloat agents by removing tools they do not need. A Maven study found that 75.1% of 723,444 dependency relationships were not needed to build or run the projects. Anthropic reported that five MCP servers with 58 tools used about 55,000 tokens before a conversation; letting a model search for needed tools cut token use by 85% and raised one model’s MCP evaluation accuracy from 49% to 74%.
  • Verify model sources and files. A slopsquatting study found that 19.7% of packages referenced in 576,000 code samples from 16 models did not exist. Unit 42 showed that deleted Hugging Face author accounts can be re-registered and that reused model names on Google Vertex AI or Azure AI Foundry could enable code execution at deployment endpoints. Python pickle can execute code during loading; safetensors stores tensors only. One poisoning experiment found that 250 malicious documents were enough to plant a low-stakes backdoor in models ranging from 600 million to 13 billion parameters. Recommended checks include pinning a commit SHA, excluding pickle-based weights, checking file lists and SHA-256 digests, serving from an internal mirror, and verifying publisher signatures with the OpenSSF model-signing tool when available.

Exit plans and governance

  • Prepare tested fallbacks and exit drills, using a thin provider abstraction and shadow runs. Changing an embedding model can require re-embedding the data.
  • Track retirement notices and provider changes: Anthropic promised at least 60 days’ notice for public model retirements. OpenAI announced on 2026-06-11 that GPT-5 and o3 snapshots, among others, would shut down on 2026-12-11; GPT-4.5 preview had three months between its deprecation notice and shutdown. Anthropic restored customer access to two models on July 1, 2026, after suspending access in June to comply with US export controls that were later lifted.
  • DORA requires documented, tested exit strategies for ICT services supporting critical or important functions. The European Systemic Risk Board warned that the concentration of leading AI providers outside the EU exposes the EU to strategic dependency. The author argues that software supply-chain management is an existing framework suited to governing LLM dependencies.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.