The Shadow on the Wall
When you hand the Claude model a legacy system, you hand it text.
Source files. Copybooks. Stored procedures. A schema dump, if someone found one. Job control that runs at two in the morning. Maybe a design document from 2004 describing a system that was never quite built.
The model reads that text quickly, and usually accurately. It can tell you what a COBOL paragraph does, trace a field from the screen that captures it to the table that stores it, and find the procedure nobody calls anymore. It has read more of this kind of code than a person could in a career.
But what it is reading is the shadow, not the thing that casts it.
What casts the shadow
A legacy system is the shadow of an organization’s operations, cast onto code over decades. The operations are people: clerks, inspectors, supervisors, the resident at the counter, the auditor who asked for a report once in 1997. Most branches in that code are there because something happened in the room.
The model sees the branch. It does not see the room.
Take a field called FLAG_7. The model can usually tell you where it is set and where it is read. It can tell you that when it is Y, the record skips the second approval. What it cannot tell you is why. Maybe it marks a category of applicant the law exempted. Maybe it’s how one supervisor, long retired, got urgent cases through faster, and everyone has relied on it since. Maybe it’s a bug that three departments now depend on.
All three cast the same shadow.
The danger is its fluency
Here is what you should worry about. Ask the model what FLAG_7 is for and it will give you an answer. The answer will be plausible. It will be well written. It will fit the code. And it may be wrong.
This isn’t deception. Explaining is what the model is built to do, and a gap in the evidence doesn’t stop it. The gap gets filled with the most likely story. A person who doesn’t know usually hesitates. The model usually doesn’t, unless you’ve told it to.
So tell it to. “Don’t explain this yet. List what you’d need to know to explain it, and who would know.” That turns its fluency into questions, and questions are what a project like this is short of. The author calls this letting the machine ask. It is the most valuable instruction you can give.
Translation preserves the shadow
An expensive mistake the model can help you make is a faithful translation.
It can turn COBOL into Java or C# line by line. The result will compile. It may pass every test you have. And you will have paid a great deal to move the shadow from one wall to another: the workarounds, the dead branches, the rule that stopped mattering when the regulation changed, all carried forward in a modern language, where they are harder to recognize as old.
A replacement worth paying for asks a different question. Not “what does the old system do?” but “what does the organization need to do now, and which of the old behaviors does that still require?” The model can answer the first question fairly well. On the second it can raise questions, but it can’t settle it. That one belongs to the people in the room.
Where the model is useful
Spend tokens on the model here:
- Inventory. What’s in there: tables, jobs, screens, programs, interfaces, who calls what. Tedious for people, fast for the model.
- Characterization tests. Pin down what the old system actually does, input by input, before anyone changes it. The tests become the shared record of the shadow. When the new system disagrees with them, someone has to decide whether the old behavior was a requirement or an accident. That decision is the project.
- Questions. For every rule the model finds, a question for a person: why does this exist, who depends on it, can it go?
- Compression. The regulation, the vendor manual, the interface spec for the outside system nobody wants to read. The model can turn it into cases you can check.
- Review at the gate. A model that didn’t help write the spec, given the whole thing, looking for what’s missing.
Don’t spend tokens on the model here:
- Generating the new system before the spec is blessed.
- Explaining the business purpose of legacy behavior without someone who knows checking it.
- Deciding what the organization needs.
The model won’t remember this project
A project like this runs for years. The model runs for a session. When the conversation ends it will not remember FLAG_7, or what the retired supervisor told you about it, or which department said it can’t lose it.
That isn’t a flaw to work around later. It’s the design constraint. Everything the project learns has to be written down where the next session, the next model and the next person can find it: the decision log, the characterization tests, the answered questions. If it lives only in a chat history, it’s lost the same way the original reasons for FLAG_7 were lost.
There’s an irony here. The legacy system is hard to replace because its reasons were never written down. A project run with the model can repeat that mistake quickly. Or it can record every reason, because the model needs the reasons recorded to be useful at all.
The scarce resource
On a project like this, the model is the most abundant thing you have. It is available at any hour, it will read a great deal, and it costs little per page.
The scarcest thing you have is the people who remember: the clerk with twenty years at the counter, the programmer who wrote the two a.m. job and retires next spring. Their time runs out on a calendar.
So spend the abundant resource to protect the scarce one. Let the model do the reading, the inventory and the drafting, so that when you sit down with the people who remember, you arrive with the right questions, and they spend their hour answering instead of explaining from scratch.
The model can show you every shadow on the wall. Only they can tell you what’s casting it.