Same Destination, Opposite Tactics

Legacy does not prescribe a solution. The right modernisation strategy depends on what is valuable in the existing system and where that value lives.

Same Destination, Opposite Tactics

When teams say a system is “legacy,” they usually mean one of two things: it is old, or they do not yet know what to do with it.

Those are not the same problem. A modernisation strategy only starts to make sense once you separate age from value. Some systems contain useful behaviour that should be preserved. Some contain valuable interfaces but the implementation underneath can be replaced. Some are mostly architecture-shaped risk and should be rebuilt. Some have enough external coupling that the right move is to replatform. And some are simply carrying historical weight that no longer deserves to survive.

That distinction is the point of the framework from the previous post: before you choose a tactic, ask where the value actually lives. The answer changes the plan.

!Where does value live?

In practice, we used this lens across five different parts of Forge and its adjacent systems. The names of the tactics are familiar — refactor, rewrite, rebuild, replatform, rationalise — but the reason for choosing each one was not ideology. It was a judgment about value, compatibility and risk.

1. API: refactor

The first case was the Forge API. Its value lived in the contract, not in any particular implementation detail.

The Forge API was the clearest case for refactoring.

The API had real value in its contract. It was the thing other systems depended on, and the shape of that contract mattered more than the code that happened to implement it on the day we started. That means the useful part lived in the interface: request shapes, response shapes, behaviour expectations, and the compatibility guarantees those brought with them.

What did not need to survive was the older implementation style around it. We could change internals, tighten boundaries, improve structure and reduce brittleness without making callers re-learn the system. That is what refactoring is for: keep the contract stable, improve the inside.

The main risk here was accidental compatibility breakage. If the API changed in subtle ways, every downstream consumer would pay for it. So the modernisation question became: how do we improve code quality while preserving the public surface? That is a refactor question, not a rewrite question.

The decision was not about how much work the codebase deserved. It was about where the value lived.

2. CLI: rewrite

The CLI was different.

A CLI is only valuable if it is easy to call, easy to automate and reliable under non-human use. The old Ruby command-line experience was small enough that preserving its implementation offered little benefit. The real value was not in the code itself. It was in what a command-line tool should become: a programmable surface for humans, CI and agents.

That makes rewrite the right label.

The existing surface could be reimagined around a new runtime, new output conventions and a better model for structured automation. JSON output, explicit exit codes, scoped credentials and clearer context handling all matter here because the job of the CLI had changed. We were no longer preserving a tool “for developers.” We were designing a platform interface that would have to serve people and software together.

The risk in a rewrite is usually that you break trust while you are trying to gain capability. So the new CLI had to be better in ways the old one could not be, while still respecting the essential calling patterns that people depended on.

This is also why the rewrite supported a broader argument in the campaign: MCP and other agent-facing patterns should sit on top of a good contract, not compensate for a weak one.

3. Hammer: rebuild

Hammer was a rebuild case because the problem was not merely implementation age.

The important thing about Hammer was the operational model around it. The old system carried build jobs in a way that mixed concerns too tightly: shared filesystems, host or container-side orchestration, and execution patterns that were too close to the control plane itself. Even if parts of the technology stack were modernised, the underlying shape would still have left too much risk in the wrong place.

A rebuild becomes necessary when the architecture itself is the issue.

Here, the valuable thing was not the existing implementation. It was the build contract: customers still needed a reliable way to produce output, but the execution model needed to be safer, more isolated and more explicit about boundaries. So the right move was to keep the contract and rebuild the system that fulfilled it.

That distinction matters. Rebuild does not mean “throw everything away.” It means the current structure is the wrong one to preserve, even if the outward promise remains useful.

The main risk was that a superficial upgrade would leave the same safety issues in place. Rebuild was the honest answer because the model itself needed to change.

4. Edge: replatform

The edge layer was a replatform decision.

This was not about discarding behaviour. It was about moving the environment that hosted it. Managed TLS, WAF and CDN capabilities solve one class of problem, but they do not automatically replace the application-specific routing, rewrite and access behaviours that had accumulated over time.

The key question here was: which behaviour belonged to the platform, and which belonged to Forge? Once you answer that, the path becomes clearer. The edge services could be replatformed onto a managed foundation, but the system-specific logic still needed to be preserved and made explicit.

That is what makes replatform different from rebuild. You are changing the base on which the thing runs, not asking whether the thing itself still deserves to exist.

The risk is migration drift: if you move the platform but fail to reconstruct the behaviour faithfully, users will feel the difference even when the infrastructure looks cleaner. Replatform succeeds only if the useful behaviour comes along for the ride.

5. Ignite: rationalise

Ignite was the case for rationalisation.

Not every surviving piece of software needs a heroic transformation. Sometimes the correct answer is to remove operational burden, keep the useful data or capability, and stop maintaining the parts that no longer justify their cost.

That is what rationalise means here. Ignite had value, but not every layer around it still deserved to be carried forward. Some behaviour could be simplified. Some operational overhead could be retired. Some legacy paths no longer needed to keep their old shape.

The challenge with rationalisation is emotional as much as technical. It is easy to defend old implementation detail because it feels familiar. But familiarity is not value. If a system’s remaining purpose can be served more cleanly by trimming it back, then rationalisation is the right move.

The risk is over-pruning: keep enough to preserve the important capability, but not so much historical baggage that the system stays expensive to own.

The decision model

Put simply:

  • Retain when the current shape still serves you well
  • Refactor when the interface has value and the implementation can improve
  • Rewrite when the implementation is the thing holding the value back
  • Rebuild when the architecture itself is the problem
  • Replatform when the environment should change but the behaviour still matters
  • Rationalise when the useful remainder can survive with less baggage
  • Retire when the thing no longer justifies its existence

That list is intentionally not a ladder. One option is not “more advanced” than another. Each is simply a different answer to the same question: where does the value live, and what must survive the move?

That is the useful part of the framework. It keeps modernisation from collapsing into a reflex. You do not pick the fanciest tactic. You pick the one that matches the shape of the value you are trying to preserve.

In the next posts, we will move from the model to the worked examples: the Rails jump, Hammer Cloud, the CLI rewrite and the edge migration. Those are not four versions of the same story. They are four different answers to the same decision-making test.

And that is the point. Same destination. Opposite tactics.

Want to learn more?

We write about AI, product strategy, and the future of building. Get in touch to continue the conversation.

Start a conversation →