What to rebuild should be decided by an asset ownership inventory, a production baseline, and a written assessment—not by gut feeling.

Key Takeaways

  • The first goal is keeping the business running as usual; improvements can wait.
  • Look at the real system first, then the documentation: when the two disagree, trust the database.
  • A full rewrite is a conclusion based on evidence; most inherited code only needs refactoring.

On Monday, you arrive at the client's office. The previous outsourcing vendor has left, leaving behind a code repository, a few cloud accounts whose passwords nobody seems to know, a pipeline that only runs halfway, and a group of executives asking "when will this be done?" What everyone wants to know first is: should we tear it all down and start over?

That's the wrong place to start. An AI Codex article on scoping points out that most wayward Forward Deployed Engineer (FDE) projects have already gone off track by the end of the first week. When taking over a project, the first week carries even more weight: you're inheriting not just a system, but also the client's lingering doubts after an abandoned engagement.

The following breaks down the first five days one by one: first take stock of what you have, then settle on a rebuild list—one you can justify to the client with numbers.

The First Thing Is Not to Fix

When introducing a large legacy system takeover, Thoughtworks deliberately set the near-term goal very low: at minimum, keep the business running as usual. No improvements, no optimizations—just don't break what's already running.

It sounds obvious, but on-the-ground pressure often pushes the other way. The client wants to see progress, and the fastest way to "show progress" is committing code. The problem is that every change made before understanding the system is a gamble; if something goes wrong, the blame lands on you, not the previous vendor.

So the first week should deliver three things: an asset ownership inventory, a production baseline, and a written assessment. The rebuild list emerges from these three.

Who Actually Holds the Keys?

Wavect's 30-day takeover plan requires that, on days 1 through 5, you record for each asset: the legal owner of the account, who pays for it, the admin, the recovery contact, and the handover path.

Assets here means everything: domains, cloud accounts, code repositories, third-party API keys, email sending accounts, even the workspace of the task tracking tool.

Suppose a logistics client was left with a half-finished order sorting system by the previous vendor. By the end of day two, the inventory might look like this:

AssetLegal OwnerPayerAdminRecovery MethodHandover Path
Main domainClientClientPrevious vendorVendor's emailChange admin through the registrar
Cloud accountPrevious vendorPrevious vendor, to be transferred to clientPrevious vendorUnknownTransfer account or rebuild
Code repositoryClient's organizationClientTwo vendor developersClientRemove old access, add new team
LLM service API keyUnknownVendor's credit cardUnknownUnknownNeeds verification

Every "unknown" cell is a concrete risk you can name right now. In this example, the middle two rows are more dangerous than any bad code: once the vendor stops paying for the cloud account, the system goes down, and nobody on the client side has the permissions to turn it back on.

When you start rotating passwords and access keys, Wavect flags an easily overlooked point: rollback permissions must stay in the client's hands. Don't become the next "previous vendor"—the only person holding the keys.

Measure First, Then Change

The second deliverable is the baseline. Wavect lists the metrics to record before any changes: traffic, error rates, latency, queue depth, backup status, open incidents, ticket volume, and the release status of known versions.

The purpose is to be able to distinguish later which failures you caused and which you inherited. Suppose this order sorting system has a 4% request failure rate.

Without a measurement, you ship your first patch on Thursday, the client sees a 4% error rate next week, and asks why you broke the system. With a timestamped baseline, you can point to the numbers and say: this is where the system already was, and here's the plan to bring it down.

The baseline is also the foundation for all future value discussions. Without a starting point, no one can prove how much things improved.

Trust the Database, Not the Documentation

The previous vendor usually leaves documentation behind, and documentation usually looks better than reality. AI Codex suggests requesting read-only access to the real system before asking for documentation: documentation describes intent, the database describes reality, and when the two disagree, trust the database.

In the logistics example, the documentation might say every order is automatically sorted. But a query counting orders by status might show that a large portion of orders are stuck in "pending manual review." This gap is exactly what the client is paying to solve, yet it appears nowhere in the documentation.

A dev.to guide on taking over codebases from outsourcing companies recommends spending the first 48 hours reading only, touching nothing. During this time, read the code, logs, commit history, and database schema before touching anything.

To grasp the big picture, Thoughtworks uses C1/C2 diagrams to map the inherited architecture and tracks takeover progress on a single map: completed services marked green, pending ones marked gray.

Such a map is also the best tool for reporting to the client every Friday afternoon.

Settle the Rebuild List with Criteria, Not Feelings

By day four, you have enough data to classify every component. Wavect writes that "rewrite everything" is a conclusion, not a starting approach.

Redwerk offers a clearer rule: refactor when the architecture is sound and only the details are messy. Most decisions about inherited code end up being refactoring, because messy code is far more common than truly broken code.

Applied to the example: if the data flow from the order system to the sorter is correct, and the problems are just code duplication and missing tests, then refactor.

If the sorter writes directly to the production database without going through a queue, losing orders every time something fails, that's an architecture problem, and rebuilding that part is justified.

Two components, two conclusions—not a blanket "tear it all down" for the whole system.

Thoughtworks uses a standard template as the acceptance criteria for taking over each service. You can do the same: a service only turns "green" once the following conditions are met—the owner of every asset is identified, a baseline exists, someone on the new team can deploy and roll back, and it has been assigned to one of three categories: retain, refactor, or rebuild.

The Written Assessment, and Who Signs Off

The dev.to guide is emphatic: before changing anything, write a document. The day-five assessment includes the asset inventory, the baseline, the service map, and a classification list with a rationale for each item.

But even a document in the wrong hands isn't enough. AI Codex recommends pushing until you get a measurable definition of success, endorsed by whoever controls the budget.

In the logistics example, that definition might be "the proportion of orders requiring manual review drops to X within Y weeks," with X and Y set by the client based on the baseline you just measured.

Once the budget owner signs off, the rebuild list is no longer your personal opinion—it's a shared commitment between both parties.

Common Mistakes

The most common mistake is fixing things on day one to "make your mark," then being unable to prove how bad the system originally was. The second is trusting the handover documentation without ever opening the database to take a look.

Another common mistake is rotating all the credentials but keeping admin access for yourself—exactly repeating the problem you were hired to solve. The last one is settling scope with the most agreeable user instead of the person who controls the budget.

Takeover Skills Are Worth Putting on Your Resume

When browsing FDE job postings, watch for descriptions that mention working on clients' existing systems: the ability to take over is exactly what comes in handy in these scenarios, and it's worth including a concrete example in your resume.

This week's exercise: pick a system you maintain but didn't build, and assume its outsourced vendor disappears tomorrow morning. Spend an afternoon writing a one-page assessment. The number of "unknown" boxes you count is the risk the client is carrying without knowing it.

Was this article helpful?

Thanks for your feedback!

6 sources

Next on the roadmap · Phase 4: Client work. Spend 45 minutes figuring out who will quietly drag down your client project. After the kickoff meeting, draw a RACI matrix and a power-interest grid to see clearly who approves the budget, who decides implementation, and who might hold up the project.