arXiv:2611.05457cs.SENov 2026

Manuscript Offprint

arXiv:2611.05457

Hybrid LLM-Deterministic Pipelines for Enterprise-Scale Code Migration at Bloomberg

Mario Corchero, David Williams, Laszlo Kiss Kollar, Haowen Liu, Shivam Bairoliya, Gala Malbasic, Serkan Kirbas, Federica Sarro

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mario Corchero

Bloomberg

London, United Kingdom

mcorcherojim@bloomberg.net

David Williams

University College London

London, United Kingdom

david.williams.22@ucl.ac.uk

László Kiss Kollár

Bloomberg

London, United Kingdom

lkisskollar@bloomberg.net

Haowen Liu

Bloomberg

New York, United States

hliu746@bloomberg.net

Shivam Bairoliya

Bloomberg

London, United Kingdom

sbairoliya@bloomberg.net

Gala Malbasic

Bloomberg

London, United Kingdom

gmalbasic1@bloomberg.net

Serkan Kirbas

Bloomberg

London, United Kingdom

skirbas@bloomberg.net

Federica Sarro

University College London

London, United Kingdom

f.sarro@ucl.ac.uk

Abstract—Large organizations carry a long tail of infrastructure migrations that are worth doing but rarely urgent enough to compete with feature work, because each one costs significant engineering time per repository.

This paper reports on our industrial experience from Automated Uplift, a multi-month initiative applying LLM-assisted migration pipelines across thousands of Bloomberg repositories.

We examine two distinct production campaigns: a heterogeneous Python packaging migration (≈1,900 candidate repositories) and a uniform C++ build system migration (≈6,700 candidate repositories). Together, these campaigns generated 2,333 pull requests, resulting in 729 successful migrations. We detail our hybrid architectural solution which maximizes deterministic processing, confines the LLM to bounded file transformations within a pre-computed context, and incorporates runtime production telemetry (such as execution logs and usage traces).

Our findings show that generating migrations turned out to be the easier part; the bottleneck was the cost, for owning teams, of reviewing, testing, and deploying them. These costs were lowered when changes could be verified directly in the pipeline before opening a PR (as with C++ compilation and test validation), and when the population was uniform enough for fixes to carry over from one repository to the next.

We conclude by distilling our experience and findings into actionable, transferable patterns for architecting hybrid LLM-deterministic pipelines and scaling code migrations across the enterprise.

Index Terms—code migration, large language models, software maintenance, pull requests, industrial experience report

I. INTRODUCTION

Software maintenance is a large and ongoing part of the cost of software. For long-lived systems, maintenance includes not only changes to application code but also keeping the surrounding infrastructure current. Build systems become obsolete, packaging formats evolve, frameworks are deprecated, and language runtimes advance, yet the production code persists, often for decades. Modernizing this substrate is unavoidable: unmigrated repositories accrue escalating maintenance costs, prevent performance improvements, and create operational fragility.

The challenge is scale. A large enterprise may maintain thousands of repositories spanning multiple technology stacks, each with its own build configuration, dependency graph, and deployment topology. Migrating even one repository requires understanding its structure, runtime dependencies, production deployment context, and accumulated conventions. Multiplying these requirements across thousands of repositories far exceeds the manual effort that the benefit would justify.

Large Language Models (LLMs) have demonstrated impressive code transformation capabilities, and recent work has explored their application to migration tasks ranging from language translation [1], [2] to API migration [3] to enterprise-scale change list generation [4].

However, applying out-of-the-box LLMs directly to repository migration tasks breaks down at scale. Benchmark evaluations reveal sharp degradation with repository complexity: Li et al. [5] report pass rates dropping from 91.3% for repositories under 10,000 lines of code to 15.3% for repositories exceeding 50,000 lines on RepoMod-Bench. Structurally, successful migration requires information absent from source code, such as which interpreter version runs in production, which dependency versions are deployed to which clusters, and which scripts are actually invoked at runtime versus dormant.

Scale is not the only obstacle; priority is another. Like most large engineering organizations, Bloomberg has a record of executing company-wide migrations and keeping its codebase up to date: urgent fleet-wide patches, end-of-life runtimes, and deprecations with hard deadlines are funded, centrally coordinated, and tracked to completion. Below these high-profile cases sits a long tail of migrations that are worthwhile but never urgent enough to compete with feature work, such as moving off an earlier-generation build tool that still works or adopting a packaging model that reduces operational risk. Individually, each is low priority, but collectively they represent a significant opportunity to simplify and modernize the organization's infrastructure. The economics explain the backlog: when the migration cost per repository is high, only the most important ones clear the bar. This raises the question that motivates our work: if automation drastically lowers the cost of producing a migration, can an organization take on migrations that were previously not worth doing?

Attempting to answer this question raises a more practical one: how does one build a reliable, cost-effective migration system that operates across thousands of diverse repositories, each with its own structural idiosyncrasies and production context?

At Bloomberg, we call this kind of work uplift: modernizing infrastructure at the repository level by moving repositories from earlier-generation tooling to current equivalents. Uplift does not change what the code does; it changes how it is built, packaged, deployed, and maintained, with the aim of lowering its future maintenance cost. Historically, a central team driving a low-priority uplift would announce it, publish instructions and an FAQ, and ask each owning team to perform the migration themselves; for example, the owners of the earlier-generation proprietary C++ build tool would ask every team to move to CMake. Each team then rediscovered the same edge cases independently. Our work improves that model: the central team encodes its instructions for a pipeline that generates the migration PRs, and owning teams review and deploy them.

This paper presents our industrial experience from Automated Uplift, a project at Bloomberg aimed at answering these questions. Over six months of campaigns, we developed and applied LLM-assisted migration pipelines at Bloomberg. We piloted across five technology domains, and in this paper we report on the two that grew into sustained campaigns. These campaigns differ on several key dimensions that matter most for automation: how uniform the source population is, how deep the validation feedback loop is (Section II-B), and therefore what role the LLM plays:

  1. Python packaging migration (“PyPackaging”): Migrating Python packages from a proprietary shared-environment packaging model to PyPackaging,¹ an internal dependency-isolated model in which each package declares and bundles its own dependencies. The source population is heterogeneous, and the pipeline’s checks give only partial confidence in a change. This campaign targets ≈1,900 candidate repositories (with 294 PRs generated).

  2. C++ build system migration (“CppBuild-to-CMake”): Migrating C++ projects from CppBuild, an internal proprietary build system, to CMake, including restructuring source trees, translating build configurations, and resolving dependency declarations. The source population is uniform, and the pipeline’s checks give high confidence in a change. This campaign targets ≈6,700 candidate repositories (with 2,039 PRs generated).

Together, the two campaigns target approximately 8,600 repositories and generated more than 2,300 pull requests. Both involve semantic adaptation beyond syntactic transformation: understanding what the code does in production, how it is deployed, and what it depends on at runtime. Both pipelines

also share a common design principle that underlies our hybrid architecture: maximize deterministic processing and confine the LLM to file transformation within a fully characterized, pre-computed context. The overall pipeline is deterministic, and the LLM handles one bounded task within it. Moreover, we provide the LLM with “migration context” from runtime production data, such as execution logs, module usage traces, and cluster-specific dependency versions, cross-referencing AST-inferred imports against runtime-observed usage.

We structure our study around three research questions:

  • RQ1: How should AI-assisted migration pipelines partition work between deterministic tooling and LLM-driven steps? We look at how the work is split in our two pipelines and how that split changed as models improved during the study.

  • RQ2: What is the impact of incorporating runtime production data on migration accuracy? We describe how production telemetry feeds the migration context and what changed once we added it, compared to relying on source code alone.

  • RQ3: What are the dominant bottlenecks in fleet-scale migration campaigns? We analyze the outcomes of more than 2,300 PRs across both campaigns to find where migrations stall once PRs are generated.

Over the study period, the two campaigns generated 2,333 PRs. Two months or more after being opened, 34.2% of CppBuild-to-CMake PRs and 10.5% of PyPackaging PRs had been merged, totaling 729 migrations. These rates can look low, but they should be read against the alternative: these are low-priority migrations that, without automation, would have stayed in each owning team's backlog, waiting to be prioritized. By the team's estimates, the merged changes alone represent well over a thousand person-days of manual migration work. Most unmerged PRs were not rejected but simply received no decision, and 34 of the 51 PyPackaging repositories where our PR was rejected later completed the migration themselves. Runtime production data proved essential for packaging migrations. Finally, the main constraint was not generating changes but the cost for owning teams to verify and deploy them, which was lowest when the pipeline could verify a change itself before opening a PR.

In summary, our contributions are:

  1. Exploring hybrid LLM-deterministic pipelines for enterprise-scale code migration, where deterministic phases handle classification, data collection, and validation, while LLMs perform creative transformation within a constrained scope (RQ1).

  2. Exploring the use of runtime-data-enriched migration context: augmenting LLM prompts with production telemetry, including interpreter startup logs, module usage traces, and cluster-specific dependency versions, reconciling statically inferred imports with runtime-observed module usage (RQ2).

  3. Exploring fleet-scale migration operations across two campaigns covering more than 2,300 pull requests, un-

¹PyPackaging and CppBuild are pseudonyms for internal Bloomberg tools.

veiling that developer engagement and PR adoption, not generation quality, is the primary operational constraint at scale for this kind of migration (RQ3).

  1. Sharing the lessons learned from our experience on engineering hybrid AI-assisted migration systems in enterprise environments.