Legacy modernization with AI starts as archaeology

Contents

Most legacy modernization programs begin with technology choices: cloud platform, target architecture, programming language and delivery model. Yet the first problem is usually more fundamental—the organization no longer fully understands the system it intends to replace.

Modernization therefore starts less like building from a specification and more like reconstructing one from evidence. AI’s greatest value is not generating new code faster, but helping recover the business logic, dependencies and operational knowledge hidden inside the existing system.

 

The real legacy problem is lost knowledge

Legacy software is more than old technology. It is accumulated organizational memory.

Over time, a core system absorbs regulatory changes, product rules, local-market exceptions, merger integrations, emergency fixes and operational workarounds. Some of these decisions are documented. Many remain embedded only in source code, database procedures, configuration tables, batch schedules, file exchanges and operating instructions.

The system continues to run, but the reasoning behind it gradually disappears. That is the real source of modernization risk.

A company can replace the technology successfully and still fail because it preserves the wrong behavior, removes an important exception or overlooks a dependency that becomes visible only after production cutover.

The uncomfortable truth is that an organization can know exactly how much a legacy system costs and still not know precisely what it does.

That is the problem AI should address first.

 

Code generation is the easy demonstration

It is easy to demonstrate an AI model translating COBOL into Java or explaining a PL/SQL procedure. The output looks modern and creates an immediate impression that decades of technical debt can be removed by applying a sufficiently capable model.

But generating code is not the hardest part of modernization. The harder question is whether the new implementation preserves the right business behavior. A model can translate a condition correctly while misunderstanding its significance. It may not recognize that a threshold originates from a regulatory requirement, that a redundant-looking flag activates a process used in one country, or that a database field feeds a reconciliation job outside the analyzed application. It may also fail to identify that an apparent defect has become expected behavior for a downstream system.

This is why the most valuable use of AI in legacy modernization is not code generation. It is knowledge reconstruction.

 

The unit of modernization is not a file

Many modernization programs still organize work around programs, procedures, repositories or applications. That is convenient for engineering teams, but it is often the wrong unit of analysis.

Businesses do not operate in files. They operate through behaviors and processes: approving a credit decision, calculating a fee, settling a transaction, closing an account, issuing an invoice or producing a regulatory report.

A single business behavior may pass through several programs, a stored procedure, a scheduler, a batch job, an external interface and a manual approval step. Understanding one source file does not mean understanding the process.

The correct unit of modernization is therefore a business behavior with a traceable implementation. That means being able to start with a business question and follow it through the underlying code, data, dependencies, exceptions and operational evidence.

Take a seemingly simple question: What determines whether a customer receives a fee exemption? A credible answer should identify the rule, where it is implemented, which data it uses, which exceptions apply, which downstream processes depend on the result, whether the rule is still active and who owns the decision.

This is not merely documentation generation. It is the reconstruction of an operating model from technical evidence.

AI should interpret the system, not invent it

There is a dangerous tendency to treat large language models as though they can independently discover the truth about a complex application estate.

They cannot.

AI can interpret evidence, but it should not replace it.

A reliable approach begins with deterministic analysis. Parsers, code-analysis tools, database dependency analysis, scheduler inspection, interface inventories, logs and runtime traces establish technical facts.

They reveal which programs call one another, which tables are read and written, how jobs are sequenced, which interfaces produce or consume data and which execution paths are active.

AI then interprets those facts. It can explain the flow in business language, group technical components into meaningful processes, identify candidate business rules, highlight inconsistencies and formulate questions for technical and business experts.

This division of labor matters.

If a parser can establish that one program calls another, the model should not be asked to guess. If runtime evidence shows that a branch has not executed for several years, the model should not describe it as an active process without qualification. If code and documentation disagree, the system should expose the conflict rather than select the most convenient explanation.

The strongest use of AI does not hide uncertainty. It makes uncertainty visible and manageable.

 

The real asset is the chain of evidence

An AI-generated explanation is useful only when it can be traced back to its sources.

Consider a rule such as: Premium customers are exempt from the standard transaction fee unless a manual block is active. The sentence may be correct, but on its own it is not enough to support a modernization decision.

The team still needs to know which program implements the rule, which field identifies a premium customer, where the manual block is stored, which channels use the logic, whether the rule has executed recently and which systems consume the resulting fee.

It must also establish whether the business still wants the rule to exist.

The useful output is not the sentence itself. It is the chain connecting:

 

Business rules are the real intellectual property

For many organizations, the most valuable part of a legacy system is not the code itself. It is the business logic embedded within it.

That logic determines how customers are treated, how prices are calculated, how risks are assessed, how exceptions are handled and how regulatory obligations are met. Yet these rules are often scattered across thousands of technical conditions.

AI can translate those conditions into business language, identify recurring patterns, compare implementations across systems and surface exceptions that would be difficult to find manually.

But extracting a rule is only the beginning.

A usable business-rule record should contain the rule itself, the code and data that implement it, the processes and systems affected, known exceptions, unresolved questions, a business owner, a validation status and a test that captures the expected behavior.

This is where AI changes the economics of legacy analysis. It can create the first version of this knowledge far more quickly and connect information across code, documentation and operational records that would otherwise require days of manual investigation.

The rule must still be validated.

A condition may be technically active but commercially obsolete. Two versions of the same rule may exist because different markets operate under different policies. A workaround may look redundant while still protecting a downstream process from invalid data.

AI can identify the implemented rule. It cannot independently decide whether that rule should survive modernization.

That remains a business decision.

 

Runtime evidence changes the conversation

Static analysis tells us what a system can do. Enterprise leaders need to know what it actually does.

A code path may exist but no longer be used. A program may appear unused while still being triggered externally. Two implementations of the same rule may support different channels. A table may look local while feeding a downstream regulatory process.

This is why logs, traces, scheduler data, transaction volumes and observed branch execution are so important. They help teams distinguish between possible, active, historical and unexplained behavior.

An apparent contradiction between code, runtime data and business understanding is not a failure of the analysis. It is often one of the most valuable findings in the program because it reveals exactly where operational knowledge has become unreliable.

 

Change-impact analysis is where AI proves its value

The real test of an AI-assisted legacy capability is not whether it can explain a program. It is whether it can answer a decision-relevant question.

Consider a proposal to change the minimum transaction fee from EUR 5 to EUR 7.

A weak analysis finds one constant in one program.

A strong analysis shows that the threshold appears in three calculation paths, one market has a local override, a batch reprocessing job still uses the previous value, an invoicing interface assumes the old amount and a reporting extract uses the fee before adjustment.

It may also identify several tests that encode EUR 5 as an expected value and a historical procedure that appears unused but lacks sufficient runtime evidence to confirm that conclusion.

More importantly, the analysis explains why each finding matters.

This is the point at which AI stops being a developer-productivity tool and becomes a decision-support capability for enterprise transformation. The technology is no longer merely summarizing code; it is helping the organization understand the consequences of change.

 

What a credible proof of concept should show

A proof of concept based on a single, well-documented program proves very little. A representative PoC should analyze a complete business flow.

It should include multiple connected components, database reads and writes, at least one batch or asynchronous step, an external interface, business rules, exception paths, runtime evidence and access to both technical and business reviewers.

The objective is not to show that the model can produce an elegant explanation. It is to prove that the approach can:

  • reconstruct known dependencies and identify non-obvious ones;
  • extract business rules with clear provenance;
  • distinguish facts from hypotheses;
  • expose missing or conflicting evidence;
  • support meaningful impact analysis;
  • reduce the effort required from scarce experts.

 

The outputs should be tangible: a dependency map, a process description, a validated rule catalogue, a register of unknowns, a change-impact assessment and tests capturing important existing behavior.

The success metric is not the number of lines of code analyzed. It is the time required to produce a reliable answer to a difficult question about the system.

 

What enterprise leadership should ask

When evaluating AI-assisted legacy-analysis capabilities, leaders should look beyond generic demonstrations of code summarization.

Does the solution analyze the broader system or only source-code repositories? Can it connect code with databases, batch jobs, interfaces and runtime evidence? Which findings come from deterministic tools, and which are generated by the model?

Every important conclusion should be traceable to evidence.

The platform should also show how it handles uncertainty. Does it expose missing data, contradictions and alternative interpretations, or does it always produce a single confident answer?

Business-rule validation is equally important. Leaders should understand how rules are reviewed, approved, versioned and linked to tests.

They should also ask whether the recovered knowledge can be exported and reused. A modernization program should not replace application lock-in with knowledge lock-in.

Finally, quality must be evaluated on the organization’s own systems. A general benchmark does not prove that a tool can understand local abbreviations, platform conventions, historical integrations or the specific architecture of a company’s application estate.

 

The leadership implication

Legacy modernization is not only a delivery challenge. It is first a knowledge challenge.

AI can help reconstruct how the system works, which rules it implements, what depends on it, and where uncertainty remains. But this value appears only when AI is grounded in code, runtime evidence and business validation.

The goal is not more documentation. It is a verifiable model that helps leaders decide what to preserve, redesign, replace or retire. That is the real promise of AI in legacy transformation: moving from assumptions to evidence before engineering begins.

Sign up for the newsletter and other marketing communication

You may also find interesting:

Book a free 15-minute discovery call

Looking for support with your IT project?

Let’s talk to see how we can help.

The controllers of the personal data are companies of FABRITY Group (hereinafter referred to as “Fabrity”) with its mother company Fabrity SA seated in Warsaw, Poland, National Court Register number 0000059690; the data is processed for the purpose of marketing Fabrity’s products or services; the legal basis for processing is the controller's legitimate interest. Individuals whose data is processed have the following rights: access to the content of your data and the right to rectification, erasure, restriction of processing, the right to object if the processing of personal data is based on consent and the right to data portability. You also have a right to lodge a complaint with PUODO. Personal data in this form will be processed according to our privacy policy.

dormakaba 400
frontex 400
pepsico 400
bayer-logo-2
kisspng-carrefour-online-marketing-business-hypermarket-carrefour-5b3302807dc0f9.6236099615300696325151
ABB_logo
Fabrity
Privacy overview

Cookies are small text files that are stored on your device using the browser. They do no harm and do not allow any conclusions to be drawn about your identity. We use cookies to make our offer user-friendly. You can find more information under our data protection notice.