When a software project goes wrong: rescue, restart or walk away
TL;DR
Difficulty: Intermediate
When a software project goes wrong, the order of your moves decides how much you save.
- Secure access first: code repository, hosting, domain, data, payment and messaging accounts, in your name, before you mention leaving.
- Get an independent assessment: can it be built from scratch, what really works, are there tests, is the data model sound, how much is left as a range.
- Decide on what is left to spend, not what is gone. Expected remaining cost is the plan plus the chance of failing again times what that would cost.
- Prefer a rescue in stages over a rewrite from scratch, and do not fix lateness by adding people.
- Talk to the supplier in writing, with specific issues and deadlines, and get the handover before the argument about money.
The launch date has come and gone twice, most of the budget is spent, and every fix breaks something else. This is the last chapter of the series on commissioning software, and it answers the hardest question in it: rescue, restart or walk away? Shown step by step on an invented Cork clinic group's booking system at month seven.
The question behind this article
The launch date has come and gone twice. Most of the budget is spent. Every new release fixes one thing and breaks another, and the replies from the supplier are getting slower and vaguer. You are asking yourself the question this article answers: what do I do now?
There are three honest answers. Rescue the project and finish it. Restart it, in whole or in part. Or walk away. Which one is right depends on facts you probably do not have yet, and the order in which you collect them matters more than anything else. The short version: secure your access first, get an independent view second, decide on what is left to spend rather than what is already gone, and only then talk about blame.
This is the last chapter of the series on commissioning software, with the same invented business as before. Lee Valley Physio runs three physiotherapy clinics in Cork (leevalleyphysio.example). Its owner, Orla, commissioned an online booking system with a patient portal, card payments for self pay patients, reminders by email and text, and an export for the accounts. In this chapter, the project has gone wrong anyway, because sometimes it does. Orla, the clinics and the supplier, Brackenridge Digital, are all made up.
One note before we start. Parts of this article touch on contracts and the law. It is general information, written to help you ask better questions. It is not legal advice, and for a real dispute you want a solicitor who has read your contract.
Example: the Lee Valley clinics at month seven
Orla signed a fixed price contract with Brackenridge Digital in March for €60,000, paid in four milestones of €15,000. Launch was promised for July. It is now October.
Here is where things stand:
- Orla has paid three milestones, €45,000. She paid the third in August because Brackenridge said the work was "basically done".
- Online booking works for single appointments, but not for the block bookings her patients buy as packages.
- Card payments work, but in testing two patients were charged twice, and there is no way to refund.
- Email reminders go out. Text reminders were never built.
- The patient portal lets patients log in, but not see their past appointments.
- The export for the accounts does not exist.
- Brackenridge's lead developer left in August. Emails now take about a week to get an answer.
Orla's question is the reader's question: rescue, restart or walk away?
Spot the trouble early, because the signs come months before the crisis
Projects rarely fail overnight. They drift, and the signs are visible long before anyone says the word "failed". Recognising them early is worth money, because the further a project drifts, the fewer good options are left.
The risk is also not the one most people expect. Bent Flyvbjerg and Alexander Budzier analysed 1,471 IT projects and found an average cost overrun of 27%. The average hides the real danger: one project in six was what they call a black swan, with a cost overrun of 200% on average and a schedule overrun of almost 70%1. Your project is not likely to be a little over. If it goes wrong, it is likely to go very wrong. That is why early signs matter.
The signs to watch for:
- Demos only on their machine. You never see the software running somewhere you can try it yourself.
- Dates that move without reasons. A new date is fine. A new date with no explanation of what changed is not.
- "Ninety per cent done" for weeks. The last 10% is where the hard parts hide. If the percentage stops moving, the plan has stopped meaning anything.
- Every fix breaks something else. A sign that there are few or no automated tests guarding the parts that already work.
- Key people leave. Especially the one person who understood how everything fits together.
- Invoices ahead of the work. Being asked to pay a milestone whose acceptance criteria are not met.
- Silence. Replies that get shorter, slower and less specific.
Chapter 8 of this series, judging software quality when you cannot read code, turns these into a monthly check. If you are reading this article in a hurry, the list above is the short version.
Example: Orla's warning signs, month by month
Looking back, Orla writes down when each sign first appeared:
| Month | What happened | Which sign |
|---|---|---|
| 3 (May) | Demos only on the developer's laptop, on a video call | Demos only on their machine |
| 4 (June) | Launch moved from July to September, no reason given | Dates without reasons |
| 5 (July) | "About 90% done" in three weekly updates in a row | The percentage stopped moving |
| 6 (August) | Lead developer leaves, milestone three invoiced with items open | Key people leave, invoice ahead of work |
| 7 (September) | Fixing the reminders broke the payment confirmation email | Every fix breaks something else |
| 7 (October) | Answers take a week and avoid dates | Silence |
The first sign was there in May. Each month after that added one more. If she had acted in June, she would have had €30,000 still unpaid and far more room to move. That is not a reason to feel bad. It is the reason the monthly check in chapter 8 exists.
Secure your access before you say anything about leaving
This is the most important step in the whole article, and it comes first for a reason. Before you raise the possibility of ending the contract, make sure you can reach everything the project depends on. Most suppliers behave well when a project ends. But a supplier who is about to lose a client, and who controls the code, the servers and the payment account, holds all the cards, and you do not want to find out how they play them.
The things to secure, in rough order of how badly you would miss them:
- The code repository. The place where the source code and its full history live (often GitHub, GitLab or Bitbucket). You want it in an account your business owns, or at least admin access to it. A repository can be transferred from one account to another without losing its history2.
- The domain and its settings. The name your patients type in, and the settings (called DNS) that point it at the servers.
- The hosting account. Where the software runs and where its database lives.
- The data and the backups. A recent copy of the database that you hold yourself, and proof that backups run.
- The payment provider account. The account that takes the money. If it is in the supplier's name, the money flows through their account, which is a problem far beyond this project.
- The email and text message services. The accounts that send reminders.
- Everything else with a login. Analytics, error monitoring, app stores, the password manager entries.
You are also the one responsible for the patients' data. Under the GDPR, the contract with a supplier who processes personal data for you must require them, at your choice, to delete or return all of it when the service ends3. Check that your contract says so, and plan to use it. The article on GDPR vendor risk and due diligence goes into that contract in depth.
Once you hold admin access to everything, change the passwords and keys the supplier knows, or ask the new developer to do it on day one of any handover. Not out of suspicion. It is simply what you do when access changes hands.
How to ask without starting a fight: frame it as housekeeping, because it is. "Before we plan the next phase, I would like admin access to the repository, hosting and payment accounts in our own name, as our contract sets out." Chapter 6, who owns the code, explains why those accounts should have been in your name from the first day.
Example: Orla's access audit
Orla lists everything and checks who holds it:
| What | In whose name | Orla has admin? | Action |
|---|---|---|---|
| Domain leevalleyphysio.example | Lee Valley Physio | Yes | None, she bought it herself |
| DNS settings | Lee Valley Physio | Yes | None |
| Code repository | Brackenridge Digital | No | Ask for transfer to a Lee Valley Physio account |
| Hosting and database | Brackenridge Digital | No | Ask for a full database export now, transfer later |
| Payment provider | Lee Valley Physio | Yes | Remove Brackenridge's user, issue new keys |
| Email service | Brackenridge Digital | No | Open an account in Lee Valley Physio's name |
| Text message service | None yet | No | Nothing to move |
| Error monitoring | Brackenridge Digital | No | Ask for an invite as owner |
She sends one friendly email asking for the repository transfer, the database export and owner access to error monitoring, quoting the clause in her contract. Brackenridge, keen to keep the relationship, agrees within the week. Now she can act on facts, whatever she decides.
Get an independent assessment before you decide anything
You cannot decide between rescue, restart and walk away by reading status reports. You need someone who does not work for the supplier to look at what actually exists. This is an independent assessment, sometimes called a code audit or a technical review. For a project of this size it usually takes a few days.
A useful assessment answers plain questions:
- Can it be built from scratch? Can a new developer take the repository, follow the instructions and get the software running on a clean machine? If not, nobody but the original team can work on it.
- What actually works? Each journey in the brief, tried by hand: works, partly works, or missing.
- Are there automated tests, and do they pass? And do they cover the parts where mistakes cost money, such as payments? The article on the critical path in software explains how to find those parts.
- Is the data model sound? The data model is how the software stores appointments, patients and payments. Get it wrong, and every feature built on top inherits the problem. Get it right, and messy code around it can usually be repaired.
- Is it secure? Passwords stored properly, patient data protected, no secret keys sitting in the code.
- Are the framework and libraries supported? Code built on versions that no longer receive security updates has a short life.
- How much is left, and how sure are we? A range, not a single number, with the assumptions written down. Chapter 4, why software estimates slip, explains why.
Ask for a written report that a non developer can read, with options and estimates for each. And ask the assessor to state whether they would bid for the follow on work. An assessor who might win the rescue has a reason to make the code look worse than it is. That does not rule them out, but you should know.
Example: what the assessment finds at Lee Valley Physio
Orla pays an independent developer €3,500 for five days. The report says:
- Builds from scratch: yes, after fixing two missing steps in the instructions.
- Journeys: single bookings work, block bookings are missing, payments work but double charge when a patient presses the button twice, refunds are missing, email reminders work, text reminders are missing, the portal history is missing, the accounts export is missing. Roughly 60% of the brief works.
- Tests: 14 automated tests, three of them failing, none on payments.
- Data model: sound for appointments and patients. The payment records are tangled up with the bookings, which is why refunds were hard to add.
- Security: one secret key for the email service committed in the code, otherwise reasonable.
- Framework: current and supported.
- Estimate to finish: €25,000 to €34,000 with a new supplier, most likely €29,000, of which about a third is rebuilding the payment part properly.
- Conflict of interest: the assessor states they would not bid for the work.
For the first time in months, Orla knows what she has.
Rescue, restart or walk away: the three options in plain words
With facts in hand, the options become concrete:
- Rescue means keeping the existing code and finishing it. Either the current supplier does it under a new, written plan, or a new supplier takes it over.
- Restart means building it again. Either all at once, or, much safer, piece by piece while the old system keeps running.
- Walk away means stopping. You might switch to an off the shelf product, go back to the old way of working for now, or pause until the business is ready.
There is no right answer in general. There is a right answer for your project, and it comes from two questions. Is the problem still worth solving with bespoke software? And are the foundations sound enough to build on? The flow below puts them in order.
Example: Orla runs through the questions
Is the problem still worth solving? Yes. In chapter 1 she worked out what booking by phone costs her receptionists every month, and that cost has not gone away. She also checked again whether an off the shelf booking product would do: it would handle single bookings and reminders, but not her block booking packages or the export her accountant needs.
Are the foundations sound? Mostly. The assessment says the data model for appointments and patients is good and the framework is current. The payment part needs rebuilding, but that is one part, not the whole.
Can Brackenridge fix it, with evidence and dates? Orla asks them for a plan. Their answer is a new date in December and an offer to add two more developers, with no tests, no list of what will change and no explanation of the double charging. That is a no. Her path through the flow is rescue with a new supplier.
Forget what you have already spent
Here is the trap almost everyone walks into. "I have already paid €45,000. I cannot throw that away." It feels like prudence. It is a well documented error of judgement.
Psychologists call it the sunk cost effect: a greater tendency to carry on with something once money, effort or time has gone into it. Hal Arkes and Catherine Blumer showed it in a series of experiments in 19854. In software, researchers have studied the same pattern under the name escalation of commitment, where a failing project keeps getting more money because of what it has already had5.
The money you have spent is gone whatever you choose next. It is the same in every option, so it cannot tell you which option is better. The only useful comparison is forward looking: what will each option cost from today, including the risk that it goes wrong again?
A simple way to put a number on that is the expected remaining cost, which uses the idea of an expected value from the Foundations: expected value page:
Here is the expected remaining cost of an option, is the cost of the plan if it goes as planned, is the probability that it goes wrong again (a number between 0 and 1), and is the extra cost if it does. The values of and are judgements, ideally taken from the assessment, not facts. Writing them down still beats arguing about feelings, because it makes everyone say what they believe.
Example: Orla's four options in numbers
Orla and the assessor fill in the table together. All figures are invented for this example. For walking away, includes the manual work she would keep doing for three years, €1,000 a month, because that is the cost of not having the software.
| Option | , the plan | , chance it goes wrong | , extra cost if it does | |
|---|---|---|---|---|
| Rescue with Brackenridge | €15,000 | 0.6 | €34,000 | €35,400 |
| Rescue with a new supplier | €29,000 | 0.25 | €17,000 | €33,250 |
| Restart from scratch | €56,000 | 0.35 | €28,000 | €65,800 |
| Walk away, buy off the shelf | €53,000 | 0.1 | €6,000 | €53,600 |
Step by step for the first row. The plan costs , the last milestone. The assessor puts the chance of it going wrong again at , because nothing about the team or the tests has changed. If it does go wrong, finishing it with someone else later costs about . So .
Two things stand out. The plan with the smallest price tag, paying Brackenridge the last €15,000, is not the lowest expected cost, because it is the most likely to fail again. And the €45,000 already paid appears nowhere in the table. It cannot change the answer, so it is left out.
Why a full rewrite is riskier than it looks
When code is messy, the urge to start again is strong. A new team often suggests it, because writing your own code is more pleasant than reading someone else's. Be careful.
In a well known essay from 2000, the software entrepreneur Joel Spolsky called rewriting code from scratch "the single worst strategic mistake that any software company can make"6. That is one experienced person's opinion, not a study, and it was written about software companies, not clinics. But his reasoning travels well. Old code that looks messy often contains years of small fixes for real situations. Throw it away and you throw those fixes away too, and the new version has to discover them all again, while the business waits.
There are good reasons to restart: the data model is wrong at the core, the framework no longer gets security updates, or nothing can be tested without rebuilding it anyway. Even then, there is a safer way than all at once. Martin Fowler describes it as the strangler fig approach: build the new parts alongside the old system and move its behaviour across piece by piece, until the old system can be retired7. Each piece goes live on its own, so the business gets value along the way and the risk is spread out.
Example: the payment part at Lee Valley Physio
The new supplier's first instinct is to rewrite the whole system "properly". Orla asks them to point at what is actually broken. The answer is the payment part: payments are tangled into bookings, there is no protection against pressing the button twice, and there are no refunds.
So they agree a narrower plan. Keep the booking, portal and reminder code, which works. Build a new, separate payment part next to it, with tests from the start. Switch the clinics over to it one at a time, starting with the smallest. Only when all three clinics run on it is the old payment code deleted. If anything goes wrong during the switch, the clinic falls back to the old payment code that day, not after a month of rebuilding.
Do not try to fix a late project by adding people
When a project is late, the obvious fix is more developers. Fred Brooks, who managed one of the largest software projects of the 1960s, wrote the opposite into his book The Mythical Man Month: adding people to a late software project makes it later8. New people need time to learn the system, and the people who already know it spend their time teaching instead of building. The more people, the more time goes into talking to each other.
This is not an absolute law, and one experienced person added early can help. But an offer of "two more developers" late in a troubled project, without any change in how the work is tested and planned, mostly adds cost.
Example: Brackenridge's offer of two more developers
Brackenridge offers to add two developers and promises December. Orla asks three questions. Who are they, and have they seen this code? Who will teach them, now that the lead developer has left? What will be tested before each release? The answers: two new contractors, the remaining developer will onboard them, and testing will be "as before". Nothing in that answer reduces the chance of the same problems. Orla declines the offer.
Talk to the supplier in writing, with specific issues and dates
Whatever you decide, the conversation with the current supplier should be calm, written down and specific. A clear written record helps you in every outcome, from a friendly handover to a dispute.
Four things to do:
- List the issues. Each one specific, tied to the brief or the acceptance criteria, with evidence: a screenshot, a date, the steps to see it.
- Read your contract first. Look for the notice period, how the contract can be ended (for convenience, or for breach), what is owed for work done, who owns the code at each stage, and what the supplier must hand over when it ends.
- Give a reasonable deadline. In writing, for a specific list of fixes, so that both sides know what "fixed" means and when.
- Separate the decision from the blame. You can agree a clean handover and still disagree about money. Get the handover first.
Example: the email Orla sends to Brackenridge
Orla sends this:
"Thank you for the repository transfer and the database export. I have had an independent review done, and attach the findings. Against the brief and the acceptance criteria for milestones two and three, the following are not met: block bookings (brief section 4.2), refunds (4.5), protection against double payment (4.5), portal appointment history (4.7). Milestone three was invoiced and paid on 14 August on the basis that the work was complete.
I have decided to move the remaining work to another supplier. Under clause 11 of our contract I am giving notice to end it. I would like to agree three things by 31 October: a handover call with the new supplier, transfer of the hosting account and email service to Lee Valley Physio, and a credit for the unfinished milestone three items. I would prefer to settle this between us."
Brackenridge agrees to the handover and offers a €3,000 credit. Orla accepts, because a fast, cooperative handover is worth more to her than a long argument over a few thousand euro. The last milestone, €15,000, is never invoiced because its work was never delivered.
What the law gives you in Ireland, briefly
Your contract comes first. It is what you agreed, and most disputes are settled on its terms. But some things apply even if the contract is silent.
The Sale of Goods and Supply of Services Act 1980 implies terms into every contract for a service where the supplier acts in the course of a business. Among them: the supplier has the necessary skill to render the service, and will supply it with due skill, care and diligence9. Under section 40 of the same Act, an express term of a business contract can vary or exclude these terms, which is one more reason to read yours. The Act does not set a deadline for you, so a clear launch date and milestone dates in the contract matter all the more.
If talking fails, mediation is the expected next step, not a soft option. Under the Mediation Act 2017, a solicitor must advise a client to consider mediation, and give them information about it, before issuing proceedings10. The District Court's small claims procedure, which works without a solicitor, only covers claims of €2,000 or less11, so a dispute over a software project usually lands in the ordinary courts, where legal costs rise quickly. A negotiated exit with a clean handover is often worth more than being proved right.
If your supplier is abroad, the picture changes again. The article on the true cost of outsourcing development covers legal recourse by country and how to cap what a dispute can cost.
Example: why Orla settles
Orla's solicitor reads the contract and her evidence. The skill and diligence point is arguable, the missed dates are well documented, and the amount in dispute, the value of the unfinished milestone three work, is around €5,500. That is well above the small claims limit, so going further means solicitors on both sides and costs that could match the sum itself. Brackenridge's offer of €3,000 plus a full, cooperative handover gets most of the value today, with no further cost and no delay to the rescue. She takes it, fair play to her, and writes the settlement down in a short letter both sides sign.
Hand over to the new supplier properly
A handover is where rescues are won or lost. The new supplier is about to take responsibility for code they did not write, so they need everything, and their first job is not new features. It is making the existing system safe to change.
The handover package:
- The repository, with its full history, in your account.
- Instructions to build and run the software from scratch, tested by the new supplier.
- A list of every environment (live, staging), where it runs and how to deploy to it.
- A list of every external service and account, with owner access for you.
- The open issue list, including the problems from the assessment.
- A recent database export, and confirmation the supplier has deleted their copies of patient data, as the data processing terms require.
- A handover call between the old and new developers, recorded with notes.
Then the new supplier's first weeks: get it running on their side, set up a staging environment you can try yourself, write automated tests around the journeys where mistakes cost money, and only then start fixing. Chapter 7, acceptance and done, covers how each fix is then tested and signed off.
For what it is worth, this is how I work anyway. I write the tests first, freeze verified critical paths behind an approval step, and put every release through a test gate and into a release register. My development terms say the client tests before launch and gives written sign off, and that bespoke code and design paid for in full become the client's intellectual property immediately on payment, while open source frameworks and my own pre existing libraries and tools stay excluded or licensed. A rescue is easier when those things were agreed at the start.
Example: the handover checklist at Lee Valley Physio
| Item | Status at 31 October |
|---|---|
| Repository in Lee Valley Physio's account, full history | Done |
| Build instructions tested by the new supplier | Done, two steps added |
| Hosting account transferred | Done |
| Email service moved to Lee Valley Physio's account, old key revoked | Done |
| Owner access to error monitoring | Done |
| Open issue list, including assessment findings | Done, 23 items |
| Database export held by Lee Valley Physio | Done |
| Brackenridge confirms deletion of patient data copies | Done, in writing |
| Handover call with notes | Done, 90 minutes |
The rescue plan, week by week
A rescue plan needs short steps, each with something Orla can see and test. Long silent stretches are how she got here. The new supplier proposes a 12 week plan, priced as a range, €25,000 to €34,000, with the payment rebuild first because it carries the most risk.
Example: twelve weeks to launch at Lee Valley Physio
| Week | What happens | What Orla sees |
|---|---|---|
| 1 | Access secured, passwords and keys changed, no new features | The access audit, all rows done |
| 2 | Independent assessment | The written report |
| 3 | Decision, email to Brackenridge, new supplier chosen | The signed plan and price range |
| 4 | Handover from Brackenridge | The handover checklist, all done |
| 5 | Software running on the new supplier's side, staging set up | A staging link she can try |
| 6 | Automated tests around booking and payment, failing tests fixed | A test report she can read |
| 7 to 8 | New payment part built next to the old one, with refunds and double payment protection | Refunds working on staging |
| 9 | Payment switched over at the smallest clinic | Real payments at one clinic, checked daily |
| 10 | Block bookings and text reminders | Both tried and signed off on staging |
| 11 | Portal history and accounts export, full acceptance test | Her five acceptance scenarios from chapter 7, signed off |
| 12 | Launch at the other two clinics, old payment code removed | The release notes, and a quiet week |
The plan is not a promise that nothing will slip. It is a way to see within a week if something does: if week 6 shows the tests cannot be written without restructuring, Orla knows in week 6, not in month ten.
How to avoid it next time
Most rescues trace back to something missing at the start, and each chapter of this series covers one of them:
- A clear problem and budget range before the first call: before you call a developer.
- A brief suppliers can quote on, with acceptance examples: writing a software brief a developer can quote on.
- A pricing model where risk sits where it belongs: fixed price, time and materials, or a retainer.
- Estimates as ranges with assumptions: why software estimates slip.
- Proposals read for what they leave out: reading a software proposal.
- Code and accounts in your name from day one: who owns the code.
- A written definition of done and a real sign off: acceptance and done.
- A monthly look at the evidence: judging software quality when you cannot read code.
Example: what Orla would do differently
Asked what she would change, Orla names three things. The repository and hosting in her own accounts from the first commit, so that step one of this article would have taken an afternoon. Milestones paid only after she had tried the work on a staging site herself, so milestone three would never have been paid early. And the ten minute monthly check from chapter 8 starting in month two, so the signs from May would have been on her desk in May.
Conclusion
When a software project goes wrong, the order of your moves decides how much you can save. Secure your access first, quietly and as housekeeping. Get an independent assessment, so you decide on facts. Compare the options on what is left to spend and how likely each is to fail again, and leave the money already spent out of the sum, because it is the same in every option. Prefer a rescue in stages over a rewrite from scratch, and be wary of fixing lateness by adding people. Talk to the supplier in writing, with specific issues and deadlines, and get the handover before the argument about money.
Most projects that go wrong can still be finished, often for less than the panic suggests. The ones that cannot are better stopped early than late. Either way, the decision should be yours, made with your own access, on your own evidence.