The invisible danger of "Closure Drift": How AI agents are corrupting software versioning
The use of AI agents has exposed a structural flaw in code version management, where the same Git tag ends up pointing to multiple states. Tools via the MCP protocol are emerging as a defense.

The automation of the development cycle by artificial intelligence has brought speed gains, but it has introduced silent flaws into the primary code infrastructure. The central problem lies in the concept of "Closure Drift": the situation where the same Git version tag — a mere editable string — ends up pointing to distinct code states over time. When autonomous agents, such as Claude Code equipped with the Sonnet model, are given the autonomy to update versions and create tags without cross-validation, what was once an occasional human error turns into an automated systemic risk.
The independent developer known as lfnsilva published a detailed investigation on the topic on October 30, 2026, accompanied by the release of the closure_drift tool. The utility exposes how reliance on automation overrides the mathematical reality of versioning, creating a scenario where software reproducibility is destroyed without triggering any continuous integration (CI) alerts.
Context and background
The disconnect between what AI understands as a version and what is actually in the repository is not a new phenomenon, but its manifestation has changed. In a June 2026 blog post, Tian Pan described how language models generate code for library versions that existed at the time of their training, ignoring recent updates. This phenomenon is underscored by an ICSE 2025 study, which revealed that the use of obsolete APIs by LLMs varies from 25% to 38%. The same study showed a drastic drop in accuracy for APIs introduced after the model's training: from 56.1% to 32.5%.
It was in that same month of June 2026 that the VibeDrift repository emerged, created to mitigate "Agentic Drift" — a variation of the problem where multiple agents write incompatible code in parallel that, in isolation, compiles without errors.
However, the "Closure Drift" problem addressed by lfnsilva in October 2026 focuses specifically on Git integrity. The closure_drift tool was designed as a read-only Python script with no external dependencies and no need for a network connection, which examines local tags and returns three possible states: clean (exit 0), drifted (exit 1), or impossible to decide (exit 2).
Concrete data on the structural flaw
The surveys underlying this alert are precise and documented. The technical report published on Zenodo on October 5, 2026, exposes the statistical severity of the problem:
- In a grid analysis covering 10,080 code states, it was detected that 25% of the published texts differed under the same version tag.
- In an empirical test reported by lfnsilva, one project presented 26 different states simultaneously named by the version
0.0.0. - The problem affects even mature packages in the open-source ecosystem. In the official
psf/requestsrepository, thev2.16.1tag in Git internally declared version2.16.0in the__version__.pyfile. - In the market for AI drift solutions, the competitor VibeDrift (created on June 16, 2026) currently has 59 stars on GitHub.
Impact on the sector and users
The vulnerability directly affects three pillars of modern development. First, software developers and architects lose the guarantee of reproducibility. If version v1.4.2 can represent different codes depending on the time or environment in which the repository was cloned, the entire security audit collapses.
Second, DevOps and AI engineers face the "illusion of automation." By giving agents guidelines such as "bump the version and commit" (as tested by lfnsilva in the AGENTS.md file), the AI executes blindly, aggravating the accumulation of conflicting tags.
Finally, in the Latin American market, where there is a strong dependence on open-source solutions and package integrations as primary dependencies in startups, the risk to Supply Chain Security increases severely. A team may approve a library for staging and, at the time of deployment, download an altered code state under the exact same tag.
What is still unknown
Despite the clarity of the conceptual flaw, there are dark areas in the technical landscape:
- Scale of the problem in the global ecosystem: lfnsilva's article makes it clear that his measurements with agents were a pilot (one round per scenario). The exact frequency with which autonomous AI agents cause the problem in the wild still requires broader audits of corporate repositories.
- Native Git solutions: It is unclear whether maintainers of platforms like GitHub or GitLab will implement system-level locks to prevent tag mutation natively, or whether the community will rely exclusively on third-party tools (such as
closure_driftandVibeDrift). - Financial impact: The costs associated with production outages caused by silent code drift have not been quantified by any of the 2026 studies mentioned.
What to expect next
The use of the MCP (Model Context Protocol) architecture will consolidate itself as the standard "emergency brake" for coding agents. The publication of the closure_drift MCP server on the SourceWeft platform on October 18, 2026, sets the trend: instead of acting blindly, the agent consults the local tool (such as Claude Code via the Agent Skills standard) before performing a bump and publication.
A clearer distinction is also expected in the market between "Closure Drift" (Git version failure) and "Agentic Drift" (logical incompatibility of agents in parallel), forcing teams to adopt both static version analyzers and logical orchestrators in CI pipelines.
Frequently asked questions
What is "Closure Drift"?
It is the anomaly where the same version tag in Git (e.g., v1.0.0) is assigned to different code states over time, causing the same identifier to point to divergent logic or history.
Why do AI agents make the problem worse? Agents configured to automate release routines often perform version increments in isolation, creating and applying tags without verifying if that version number is already tied to another state or divergent commit in the repository.
How does closure_drift solve this?
The tool reads the repository's tag history locally and alerts the AI agent (via MCP) or the developer if the tag about to be manipulated already has inconsistencies, blocking corrupted publications before they enter the system.
Consejo LatinoTech
¿Quieres crear tu propio portal de IA o SaaS sin programar? Usa la plataforma que nosotros usamos.
Master Artificial Intelligence before your competition.
Join thousands of professionals. Get the 5 best AI news and tools of the week, straight to your inbox.
Zero spam. Unsubscribe at any time.