Software project rescue: how to save a failing project

Contents
A failing software project can usually be saved if you act in a fixed order: regain control of the assets, get an independent view of the code, stabilize production, and only then decide whether to continue, refactor or rebuild. Deciding the rebuild question before the audit is the costliest mistake, because the evidence that settles it does not exist yet.
This guide is written for CTOs, VPs of Engineering and technical founders, and it gives the checks, the scoring criteria and the takeover steps. How much is salvageable depends on test coverage, architecture fit and what the departing team knew.
What is software project rescue?
Software project rescue is the recovery of a stalled or failing build: a team takes control of code, infrastructure and backlog, then decides what to keep.
A rebuild replaces the codebase, while a rescue treats that as one possible outcome, reached only after an independent code audit has measured the technical debt.
The order is access, audit, stabilization, then the continue-or-rebuild call.
We recommend the audit before any rebuild quote, because unmeasured technical debt turns every estimate into a guess. A project that is merely late, with access and code in your hands, needs replanning, not a rescue.
Warning signs a project needs rescue
A software project needs rescue when it fails the ownership and delivery tests below, and the access tests matter most because they decide whether you can act at all. Each sign has one yes/no question; answer it from evidence, not from the vendor's status report.
Repository and cloud account ownership means your company, not the vendor, holds the owner role on the source repositories, the cloud root account, the domains and the App Store accounts.
The bus factor is the number of people whose departure would stall the work. A CI/CD pipeline is the automated path that builds, tests and deploys code to production.
- Ownership: Can someone on your payroll add or remove an owner on the GitHub organization and the cloud root account today? Any "no" is a red flag by itself.
- Pipeline: Can someone outside the vendor deploy to production from a clean checkout, using written steps, without asking anyone?
- Bus factor: If the one engineer who knows the deployment and data model left tomorrow, could another person ship a release this week? A "no" means the bus factor is one.
- Missed milestones: Did the last two milestones slip, and does the vendor still lack a re-estimate built from delivered work, not the original plan?
- Rising defects: Over the last three releases, did production bug reports or reopened tickets increase each time?
- Vendor responsiveness: Does a blocking question regularly wait more than a business week for an answer? That threshold is our suggestion, so adjust it to your release cadence.
A failed ownership test justifies securing access immediately, even if delivery looks healthy (see What to secure in the first two weeks). Failures on milestones and defects alone are weaker signals, because a fixable process problem can cause them.
What to secure in the first two weeks
In the first two weeks, secure repository and cloud account ownership before anything else, and rotate credentials only after you hold the accounts they protect. The day ranges below are our suggested order, not a standard, and they compress or stretch with how cooperative the vendor is.

- Days 1-2, repositories. Add a company-controlled owner to the GitHub or GitLab organization, and keep at least two, because a single owner is a bus factor of one (GitHub's ownership continuity guidance). Mirror every repository with branches, tags, LFS objects and issues. Leave vendor engineers in place with write access until production is stable.
- Days 1-3, cloud root and IAM. Point the root account email at a company domain mailbox, enroll hardware MFA, and delete any root access keys (AWS root user best practices; Google Cloud and Azure publish equivalents). Create named admin identities for your own people and export a resource inventory. If the vendor holds root, see What if the vendor controls the only root account?
- Days 3-5, domains and third parties. Move domain registrar, DNS, TLS certificates, email sending, push notification, payment and analytics accounts into company ownership.
- Days 3-6, App Store accounts. Confirm the Apple Developer and Google Play accounts belong to your legal entity, and that someone on your side holds the signing keys or the upload-key reset path.
- Days 5-9, secrets rotation. Map where deploys read secrets, then rotate in this order: cloud keys, database passwords, CI tokens, third-party API keys. Rotating before you understand the deploy path is how a rescue causes its first outage.
- Days 7-12, infrastructure as code and documentation. Check whether the infrastructure as code (Terraform, CloudFormation, Pulumi) matches what is running, and record the drift. Collect runbooks, architecture notes and a list of who knows which subsystem.
- Days 12-14, proof. Have someone outside the vendor build from a clean checkout and deploy to a staging environment, then to production.
Sometimes the vendor hands over less than full access. The fallback depends on what you hold:
| What you hold | What to do |
|---|---|
| Read-only repo export | Check that history is intact, build it on a clean machine, and treat that snapshot as the baseline. Freeze vendor commits until you have a complete mirror. |
| Build artifacts only (images, binaries, APKs) | Run OWASP Dependency-Check against them to see what is inside. Treat the artifacts as a stopgap that keeps production running while source is recovered or rewritten. |
| Store listings only | Start the app transfer to your developer account now. Without the signing keys or an upload-key reset, you cannot ship updates. |
What if the vendor controls the only root account?
When the vendor controls the only root account, escalate in order: a written handover request, then the contract, then counsel. Repository and cloud account ownership you never held is recoverable, but only through the registered owner or a provider's proof-of-ownership process.
Each failure mode has an early check you can run before any dispute starts:
- Root lockout. The root email is a vendor mailbox and the MFA device is a vendor phone. Check who receives the root account's mail today. AWS root user best practices call for a company-controlled address and more than one MFA device.
- Domain registered to the vendor. The registrar record lists the vendor as registrant. Look it up in the registrar console or WHOIS, because a transfer needs the registrant's authorization code.
- App Store account under the vendor's name. The Apple Developer or Google Play account holder is the vendor, so the listing stays under their control. Check the account holder role.
The escalation order:
- Ask in writing for owner roles for your company and a root email change to a mailbox you control.
- Cite the contract. An IP assignment clause is the term that transfers ownership of the code and work product to you, and it matters most when it is missing or conditional on final payment.
- Pass the file to counsel for formal notice. Provider recovery processes will ask for proof of ownership.
Treat this section as engineering guidance, not legal advice; jurisdictions differ.
What should an independent code audit cover and produce?
An independent code audit covers code quality, architecture, tests, security, dependencies, and the delivery process. It produces a report, a risk register, a verdict, and a prioritized backlog.
"Independent" means the reviewer has no stake in the existing vendor's work and is not auditing to win the rebuild. The risk register is a ranked list of findings, each with likelihood, impact, an owner, and a proposed mitigation.
The audit areas and what each one feeds into:
| Audit area | What the reviewer examines | Main output |
|---|---|---|
| Code quality | Duplication, module boundaries, dead code, and how much technical debt sits in the change hotspots (the shortcuts and deferred work that raise the cost of every later change) | Report section, backlog items |
| Architecture | Fit to current load and roadmap, coupling, single points of failure, data model | Verdict input, risk register entries |
| Tests | Coverage of revenue paths, flaky tests, whether anyone trusts the suite | Backlog: characterization tests first |
| Security | Auth, input validation, secrets in history, mapped to OWASP ASVS and NIST SP 800-218 | Risk register, urgent-fix list |
| Dependencies | Dependency vulnerability scanning (for example OWASP Dependency-Check), end-of-life runtimes, license terms | Risk register, upgrade backlog |
| Delivery process | CI/CD pipeline state, release frequency, review habits, and the DORA delivery metrics if history exists | Report section, stabilization order |
The verdict is a recommendation to continue, refactor, or rebuild, with the evidence behind it. It feeds the scoring in Continue, refactor or rebuild?. The backlog should be ordered by risk to production, not by how interesting the fix is, so the first items are what the stabilization work picks up.
Duration tracks four things:
- Codebase size and the number of deployable services.
- Whether the reviewer already has read access to repositories and cloud accounts.
- How much documentation exists, and whether the original developers are available for interviews.
- How many environments must be inspected, since a missing staging environment means checking production behavior directly.
The scoping questions to settle before signing are covered in our software audit services guide.
Auditing AI-generated or messy codebases
AI-generated code usually fails the audit on consistency, not syntax. Look for the same logic written three ways, hand-rolled auth next to a framework's built-in, tests that assert nothing, and secrets committed during prototyping.
Check every declared package exists, is maintained, and is the one the code intends to use. Then trace the revenue-generating paths by hand, because the team often cannot explain them. In a codebase like that the bus factor is often zero, so budget interview time and extra audit days for the paths no one understands.
How to stabilize production before new features
Stabilizing production follows a fixed order: fix the defects that block releases, get the CI/CD pipeline running, add alerting, and write characterization tests before anyone touches undocumented logic. Feature work waits until each step holds.

- Production-blocking defects. Pull from the risk register only the findings that cause data loss, outages, payment errors, or security exposure, such as hardcoded secrets or dependencies with known exploits. Fix those and defer refactoring.
- CI/CD pipeline. Make one build reproducible from a clean checkout, gate each deploy on automated tests, and document a rollback. Deploys from a developer's laptop are the first thing to remove.
- Observability and monitoring. Add error tracking, structured logs, and alerts on user-facing symptoms (error rate, latency, failed background jobs), each with a named on-call owner. Without them, you cannot tell whether a fix worked.
- Characterization tests. These tests record what existing code does today for a given input, so a later change can be checked against current behavior. Write them around the modules you must change, starting with the ones that have no documentation.
DORA metrics are the four delivery measures from Google Cloud's DORA research: deployment frequency, lead time for changes, change failure rate, and time to restore service (DORA, the four keys). Steps 2 and 3 make them measurable, so record a baseline now; change failure rate and time to restore show whether stabilization is working.
Five defects block a safe refactor until they are fixed:
- Builds or deploys that cannot be reproduced.
- Flaky or permanently red tests, which teach the team to ignore failures.
- Hidden state: hand-edited server config, global variables, undocumented cron jobs.
- End-of-life dependencies that cannot be upgraded without code changes.
- Database schemas with no migration history or no tested backup restore.
There is one exception. If the audit verdict is to replace a module (see Continue, refactor or rebuild?), skip characterization tests for code you plan to discard. Once production is stable, ongoing upkeep moves to software maintenance services.
Continue, refactor or rebuild?
Continue with the existing codebase when the audit shows it holds up, refactor when the architecture is sound but the code is not, and rebuild only when the structure blocks every fix.
The rebuild vs refactor decision criteria are six conditions you score from audit evidence: test coverage, architecture fit, dependency age, team knowledge, security exposure, and time to first release.
The audit verdict they draw on is covered in What should an independent code audit cover and produce?
Criteria you can score
The thresholds below are our illustrative starting points, not industry benchmarks. Adjust them to your risk tolerance and release pressure.
| Criterion | Continue | Refactor | Rebuild |
|---|---|---|---|
| Test coverage | Core flows covered, suite green in CI | Patchy; characterization tests can wrap the hot spots | Logic can't be tested without restructuring it first |
| Architecture fit | Matches current load and roadmap | Sound module boundaries, tangled internals | Wrong core model, such as a data model that blocks planned features |
| Dependency age | Supported versions | One major version behind, upgrade path documented | End-of-life framework with no upgrade path |
| Team knowledge | Two or more people can explain and deploy it | One person, or documentation that can be recovered | Original authors gone, no documentation |
| Security exposure | No exploitable findings in an OWASP ASVS review or an OWASP Dependency-Check scan | Findings fixable in place | Flaws sit in authentication or data isolation design |
| Time to first release | Weeks | Incremental releases from the first month | First release needs a full replacement |
Weigh the rows unevenly. Test gaps, old dependencies and lost knowledge are all repairable, so on their own they point to refactoring. We recommend a rebuild verdict only when architecture fit or security exposure lands in the rebuild column, because those two rarely can be fixed one module at a time.
Refactor, replace gradually, or rebuild
Refactoring pays off when technical debt is concentrated in a few modules. When it runs through every layer, refactoring becomes a slow rewrite with the old code still in production.
If the verdict is rebuild but the business cannot pause, use the strangler fig pattern. Route traffic through a facade, replace one slice at a time, and retire the old code only after the new slice has run alongside it (see How to take over a project from another vendor for exit criteria). Our guide to refactoring and rewriting covers the mechanics, and our application modernization team runs this kind of gradual replacement.
Delay costs something in both directions. Each sprint spent refactoring a codebase that should be replaced adds more code to migrate later. A rebuild with no early release carries the opposite risk: months without user feedback and a budget committed before the scope is proven. Require the first rebuilt slice to reach production early.
How to take over a project from another vendor
Taking over a project from another vendor requires three agreements before the outgoing team rolls off. The three are a knowledge transfer plan, parallel run exit criteria, and IP assignment terms.
A knowledge transfer plan is a dated list of what the outgoing team hands over (architecture walkthroughs, deployment runbooks, environment configuration, open-issue context), who receives each item, and how you verify it. A parallel run is a fixed period when both teams work on the same system while the outgoing team supports and the new team takes over.
Most takeovers stall on the following failure modes:
| Failure mode | Early sign | Guard |
|---|---|---|
| Parallel run never ends | Nobody can name the end date; both teams keep billing | Write exit criteria as a definition of done for the handover: the new team ships a release unaided, restores from backup and rotates credentials |
| One engineer holds all knowledge | Every question routes to the same name | Record walkthroughs, then have the new team perform the next deploy while the outgoing engineer watches |
| IP assignment missing or conditional | The contract grants a license, or assignment applies only after final payment | Obtain a signed assignment of existing work product before disputing any invoice |
| Third-party licenses and services | Libraries, SDKs or paid APIs sit under the vendor's account or license | Inventory every license and subscription, and confirm each one can transfer |
| No transition assistance | The contract has no post-termination duties | Agree a capped block of assistance hours and named contacts in writing |
Unpaid invoices deserve early attention because they are the usual reason a vendor withholds access or signatures. Settle the disputed amount, or agree to pay it into escrow against delivery of the assignment and the handover items.
Source code escrow helps if the vendor still operates parts of the system. Insist on release conditions that cover insolvency or abandonment, and test that the deposited code builds.
A takeover does not have to start from zero. Raqib50, a Kuwaiti non-profit that makes the records of members of parliament public, came to Netguru after working with a previous developer. "With our previous software developer it was a one task project," the client said. "We designed the application, sent them the design, they programmed it, and gave back the final product with little chance to improve the app." Netguru opened with a scoping session, re-engineered the app mobile-first in Arabic and prioritized features against an election date that moved forward. The new version shipped in November, three weeks before the early vote, and drew 1,400 visitors a day.
Where the audit favors keeping the existing codebase, a takeover can proceed without a rebuild once ownership and handover are settled.
Have counsel review the assignment, escrow and assistance terms.
How much does software project rescue cost?
Software project rescue cost depends on four things you can check before signing: access state, test coverage, audit scope, and parallel-run length. We can't give a credible price range without seeing the codebase, and any partner who quotes one blind is guessing.
An independent code audit priced as a fixed scope gives you the evidence for the rebuild vs refactor decision criteria, so the rescue estimate rests on findings. Open-ended discovery lets cost drift while the project keeps losing time.
The drivers side by side:
| Driver | Raises cost when | Check before committing |
|---|---|---|
| Access state | The vendor holds owner roles, so access must be negotiated or environments rebuilt | Can you name the owner of every repository and account? |
| Test coverage | Few tests exist, so characterization tests come before any change | Does the suite run green in CI? |
| Audit scope | Scope is wide with no defined outputs | Are the outputs named up front? |
| Parallel-run length | Both teams are paid with no exit criteria | Are exit criteria dated? |
Delay has its own price. Defects keep reaching users, technical debt grows with each unreviewed change, and the outgoing vendor's invoices continue. A small, well-owned codebase may need only a light review, not a full audit.
Questions to put to any rescue partner:
- Access: What access do you need on day one, and who holds owner roles throughout?
- Audit: Is the audit fixed-scope, and does it end in a report, a risk register, and a continue, refactor, or rebuild verdict?
- IP: Does the IP assignment cover all work product from the first day, with no condition tied to final payment?
- Handback: What do you hand back at the end, and how will my team run it without you?
Re-baselining the roadmap and preventing the next failure
Re-baselining the roadmap means re-estimating the remaining work from the throughput you have measured since takeover, not from the dates in the old plan.

Start from the risk register and the audit verdict. Cut scope to the items tied to the next release goal, size what is left, and forecast from the completed work per iteration you have recorded.
Pull lead time for changes and deployment frequency from your DORA metrics as a cross-check. With only a few iterations of data the forecast is a wide range, so present it as one and re-forecast every iteration.
Four habits keep the project from sliding back:
- Ownership: Your company holds the owner role on the GitHub organization (GitHub roles) and the cloud root account, protected by MFA and held by two named people. Vendors get scoped roles. This is repository and cloud account ownership kept after the handover.
- Definition of done: A definition of done is the written checklist a change must satisfy before it counts as finished, for example reviewed, tested in CI, deployed to staging, and runbook updated.
- Code review: Branch protection blocks merges to the main branch without a second reviewer. On a two-person team, bring in an outside reviewer for risky changes.
- Regular releases: Ship small batches on a fixed cadence and track change failure rate, so problems surface within days.
If you want a partner to deliver against the new baseline, our software development services cover that. If the recovery plan exposes skill gaps, you can augment your team with specialists.
FAQ on rescuing failing software projects
Should we rebuild or refactor a failing software project?
How long does a software project audit take?
What to do if the vendor will not hand over code?
Talk to Netguru about a stalled project
If your project has stalled or your vendor has already left, we start by reviewing access, code and backlog with you, then agree whether to continue, refactor or rebuild. After production is stable, our software maintenance team keeps the system supported while feature work resumes.
Bring the current access state, the open backlog and the contract, and talk to our team about scoping the work.
