# Your legacy system is an asset with a maintenance problem

> A legacy system holds decades of business rules recorded nowhere else, and it works. What makes it frightening is usually missing tests, lost knowledge and deferred upkeep, all of which cost far less to fix than a replacement.

Digital transformation · Opinion · November 16, 2026 · 7 minute read · By Nabil Ahmed
Canonical: https://farside.works/insights/legacy-systems-are-assets/

![The lunar surface near 17°N, 32°W, lit by a low Sun with night falling across one side.](https://farside.works/content/images/2026/11/legacy-systems-are-assets.webp)

In enterprise technology, "legacy" works as an insult and a job description at the same time. The system it refers to runs the policies, the ledgers or the production schedule and has done so every working day for twenty years, yet it shows up in strategy documents as a liability to be eliminated, usually with a target date that has already slipped twice.

The case against such a system is familiar, since it is hard to change, uses an old language on an old platform, and depends on people close to retirement. All of that may be accurate without showing that the system does the wrong thing, and most of it points to under-maintenance, a different diagnosis with a different treatment.

We think a working legacy system is an asset, because it is the most complete account your organization has of how its business actually operates, and that it suffers from a maintenance problem, sometimes a severe one. Fix that first, then decide piece by piece on evidence what deserves replacing, which occasionally turns out to be the whole system but often does not.

## In brief

- A legacy system is valuable because it encodes business rules and edge cases that are recorded nowhere else, and a careless rewrite destroys that value instead of carrying it over.
- Most complaints about legacy systems describe deferred maintenance (no tests or documentation, manual deployment, knowledge held by a few people) rather than a defect in what the system does.
- Full rewrites are risky because the old system is the only complete specification of itself, and the new one has to match it before it can deliver anything new.
- Tests, interfaces, documentation and a repeatable deployment make a legacy system safer to keep and also cheaper to replace, so the work pays off whichever way you decide.
- Replacement is the right decision when the platform loses vendor support, when the skills cannot be hired or trained, or when the architecture cannot meet a real business requirement.

## What the old system knows

As we use the term here, a legacy system is one the business depends on that has become difficult or risky to change. That has little to do with age, since plenty of five-year-old systems qualify and some thirty-year-old ones do not.

Inside one you usually find knowledge no requirements workshop could reproduce, such as a pricing rule with seven conditions, each added after a particular dispute, handling for a product withdrawn fifteen years ago that still has live contracts, or rounding conventions that make the figures agree with the regulator's.

Hardly anyone remembers most of these rules, and any documentation describes the system at launch, so the code is the only record, and an accurate one, because it has been corrected against real cases for two decades.

That is why relying on the business to supply the requirements tends to fail as a replacement strategy, because the business knows its mainstream cases but has handed the rest to the system so completely that it has forgotten them, and they reappear as defects that customers find one by one in production.

## The complaints are about upkeep

Take each usual charge against a legacy system and ask whether it concerns what the system does or how it has been looked after.

| The complaint | What is usually wrong | A remedy short of replacement |
| --- | --- | --- |
| "Every change breaks something" | No automated tests, so nobody knows what a change affects | Characterization tests around the areas that change most |
| "Only two people understand it" | Knowledge was never written down or shared | Pair those people with others now; document rules as tests and short notes |
| "Releases are quarterly and terrifying" | Manual build and deployment, no rehearsal environment | Scripted build, a production-like test environment, smaller releases |
| "We can't integrate with it" | No interface other than screens and batch files | A thin API or event layer in front of it |
| "It runs on an unsupported version" | Upgrades were skipped for years | Upgrade the runtime, database or operating system in stages |
| "It can't do what the business now needs" | Sometimes a real architectural limit | Examine the specific requirement; this one may justify replacement |

Five of the six rows describe neglect. A system that never got tests or a deployment pipeline is hard to change in any language, and rewriting it in a modern stack while skipping the same disciplines produces, within a few years, a new legacy system holding fewer of the business rules.

The last row is the genuine exception, and we return to it further down.

## Why the rewrite disappoints

A full rewrite promises to leave every problem behind at once, but tends to disappoint for structural reasons.

**The running system is the specification.** Replacing it means someone has to rediscover every rule it contains from the code or in production, and that effort is hard to estimate because no one can size work whose existence is unknown.

**Parity has to come before any new value.** The old system cannot be switched off until the new one does everything it does, so for most of the program the business is paying to get back to where it started.

**The old system keeps changing during the rewrite.** Regulations change and the business launches products meanwhile, so each change is made twice or the old system is frozen and the business waits, and either way the target moves.

**Both systems have to run at once.** Dual running, data synchronization and reconciliation between old and new amount to a project of their own, and they are among the main reasons large programs slow down, as described in [why transformation programs stall in their second year](https://farside.works/insights/why-transformation-programs-stall/).

A safer way to replace a system is incrementally, one function at a time, with the old system still serving everything else, as covered in [the strangler pattern in practice](https://farside.works/insights/strangler-pattern-in-practice/). Incremental replacement relies on the same groundwork as keeping the system, since you need to know what it does and be able to test it, and you need an interface to route around it.

## Treating the maintenance problem

Four pieces of work turn a feared system into a managed one, and none requires deciding its long-term future first.

**Pin down the current behavior with tests.** A characterization test, a term from Michael Feathers's book *Working Effectively with Legacy Code*, records what the system does today, correct or not, so that any change in behavior is detected. You feed in real historical inputs and assert that the recorded outputs stay the same.

```python
# Characterization test: capture today's behavior of the legacy rating engine.
# Cases are real historical quotes: inputs plus the premium the system produced.
import json, pytest
from legacy_bridge import rate_policy   # thin wrapper that calls the old engine

with open("golden_cases/motor_quotes.json") as f:
    CASES = json.load(f)

@pytest.mark.parametrize("case", CASES, ids=lambda c: c["quote_id"])
def test_premium_unchanged(case):
    result = rate_policy(case["inputs"])
    assert result["premium"] == case["expected_premium"]
    assert result["applied_rules"] == case["expected_rules"]
```

Cases chosen to cover the product range and its odd corners also become the acceptance test for whatever replaces the system, which makes this the place where [quality engineering](https://farside.works/services/software-engineering/quality-engineering/) pays off most.

**Put an interface in front of the system.** Wrap the functions other systems need in an API, or publish the system's changes as events, so consumers stop depending on its screens and file layouts and the system can later be replaced behind the interface.

**Make deployment routine and predictable.** Put the source in version control if it is not there already, script the build, create a production-like test environment and release small changes often.

**Spread the knowledge more widely.** The two people who understand the system are the biggest risk and the biggest resource, so they should work with other engineers on real changes, recording each rule they explain as a test and a paragraph. The platform is brought back into support by upgrading it in stages.

This is steady [application management](https://farside.works/services/managed-services/application-management/) work.

## A rating engine at an insurer

Consider a regional insurer whose motor premiums come from a COBOL program on a mainframe, maintained by two developers both within a few years of retirement. Changes to rating factors take months because each one is tested by hand, and the strategy paper proposes replacing the whole policy platform over three years.

A different first step takes about a quarter. The team extracts a large set of historical quotes with their inputs and calculated premiums and builds a characterization suite like the one above. The two developers spend part of each week taking younger engineers through the rating logic, and each explanation is recorded against the tests that exercise it. The engine is wrapped in a service, so the quote website and broker portal call an API instead of submitting batch files.

After that quarter the insurer's position has changed. A rating change can be verified quickly, because the suite shows exactly which quotes moved, and four people understand the logic in place of two. The replacement question can also be asked precisely, and since the engine's logic is sound and well tested, the candidates are the surrounding parts where the real limits lie, such as document production or the broker interface.

If the insurer later moves the rating logic off the mainframe too, the test suite is the specification and the API is the seam where the new implementation is switched in.

## When replacement is the right answer

Sometimes keeping a system is the wrong decision.

- **The platform is losing support.** Once the vendor ends support for the hardware, operating system, database or product, security fixes stop, which sets a real deadline.
- **The skills cannot be found.** If you have tried both training and hiring and still cannot staff the system safely, the risk has become an operational one.
- **The architecture blocks a real requirement.** A system built around an overnight batch cannot serve a business that needs an answer during the customer's call, though you should be specific about the requirement and confirm an interface layer cannot meet it.
- **The cost of ownership is out of proportion.** Work it out with real figures for both options, migration included.
- **The business has changed shape.** If the system models a business you no longer run, its accumulated rules have stopped being an asset.

Even in these cases, the groundwork described above is what prepares a replacement that works. Deciding which systems across an estate fall into which category is portfolio work and the subject of [technology modernization](https://farside.works/services/technology-consulting/technology-modernization/), while the engineering of each replacement belongs to [application modernization](https://farside.works/services/software-engineering/application-modernization/).

## Questions to ask about your own system

Before the next strategy paper condemns a system, ask its owners these questions.

1. If we changed one rule tomorrow, how would we find out what else changed? If the answer is manual testing, begin with characterization tests.
2. Who can explain the core logic, and how many such people are there? If there are fewer than four, start transferring knowledge this month.
3. Can we rebuild the system from source and deploy it to a test environment whenever we need to?
4. Which components are out of vendor support, and what is the approaching end-of-support date for each?
5. What specific business requirement can the system not meet, and has anyone tested whether an interface layer would meet it?
6. What would a replacement have to reproduce before the old system could be switched off, and who has written that list?

The answers often reveal a system starved of maintenance rather than one that has failed, so give it that maintenance first, and if it still cannot do the job you will replace it with better information and the tests to prove the new system right. The same questions are a good start for anyone examining a system from outside, as set out in [what technical due diligence should actually examine](https://farside.works/insights/technical-due-diligence-what-to-examine/).
