This is the decision I would defend hardest, because both of these were expensive, invisible to every user, and correct.
The Flutter rewrite, then the redesign on top of it
The mobile client was rebuilt from scratch as a clean-architecture Flutter app. The legacy client was deliberately and fully discarded rather than incrementally migrated — only the logo, the locale files and the model documentation were salvaged.
Then, on top of that, a brand redesign across the whole app, executed as a behaviour-identical refactor: a new design system with no change to the logic underneath. Two full passes over the same surface, neither shipping a feature.
What it bought: a codebase where a change is a change rather than an excavation, and a test suite that has grown past a thousand tests. What it caught: the app was never sending the user's preferred language back to the server, so AI summaries were arriving in English whichever of the six languages the user had chosen. A localisation feature that was live, tested, and doing nothing for anyone.
The job queue, migrated completely rather than partially
The background-job layer ran on a library that was no longer maintained. It was migrated in one complete pass, with integration tests against a real queue written first — the first test coverage that layer had ever had.
It was done completely rather than incrementally because of a standing rule: never run two versions of the same library at once. A half-migrated queue layer has two sets of semantics for the same operation and no way to reason about which one a given job got.
The tests earned their place before the migration finished. They caught two behaviour changes in the new library of the worst kind — the job completes, the count goes up, and the work never happens — and both were fixed before they shipped. The same pass surfaced older scheduling defects that had never announced themselves, and that no partial migration would have found.
Traded away: months of visible progress, as the only engineer. Both were the price of being able to change anything afterwards.