Multi-product SaaS · 2026
Case study
Taking a live SaaS platform over from an exiting vendor, and owning it in eight weeks
I inherited live multi-tenant SaaS products mid-flight from an outside vendor whose development was ending. Eight weeks later every release ran through a test-gated, rollback-capable pipeline, nobody could merge to production by hand, AI spend on three production workloads was down about 84% on measured traffic, and the infrastructure invoice was down about a fifth.
- ↓ ~84%AI spend · three production workloads
- ~⅕Off the infrastructure invoice
- 0Manual merges to production, admins included
- ~3,200Integration tests before a backend merge
- 12Services on automated deploys
- 330kLines inherited with no automated tests
The challenge
What I walked into.
- Inherited mid-flight. Live products with paying customers in two regions, built and run by an outside vendor whose development was about to stop. Whatever the vendor’s people carried in their heads would leave with them.
- The code was better than the system around it. Roughly 330,000 lines across a Java backend, two portals and seven Python services, with a sound multi-tenant design. Around it: no automated tests anywhere, no infrastructure as code, most backend services deployed by hand, and rollback broken because every deploy overwrote the same image tag.
- The documentation and the account disagreed. The live inventory contradicted the handover documents on the hosting platform, the number of running services, and even which cloud account was production.
- Secrets weren’t secret. Production credentials sat where anyone with repository access could read them, and the team had no safe way to rotate them without breaking live traffic.
- Costs were planned on assumptions. AI and infrastructure budgets rested on estimates nobody had checked against real usage. Once measured, one per-conversation figure was out by more than an order of magnitude.
The approach
I ran it in one order: measure, contain, gate, then cut. Measure meant taking the live account, the real pipeline files and real call logs as the source of truth, never the documents or my own earlier estimates. Contain meant closing the vendor’s access before anything was announced, with production health checked between every step and every change reversible. Gate meant no release reached customers without tests, review and a rollback that had actually been exercised, admins included. Cut came last, and every saving had to show up on measured traffic before I reported it. Underneath all of it sat a rule for AI-first delivery: agents build, a separate session verifies, and nothing signs off its own work, mine included. When my own changes caused an outage, I said so, named the impact and fixed the class of problem rather than the instance.
The systems
How I built it.
A vendor exit run on evidence
A written transition plan with exit criteria, not dates: the test was whether an engineer who hadn’t built the system could set it up, ship, roll back and restore a database using only the handover material. I brought the vendor’s development stop forward once the company signed it off. Their administrator rights came off before any notice went out, then accounts, keys and network paths were closed one at a time with production checked in between. Every repository now re-syncs into a daily backup, and the raw configuration of every service, database and DNS zone lives in source control, so a service can be replayed from zero.
Release gates nobody can bypass
The first test-gated, rollback-capable pipeline turned 22 production releases in one day from a risk into routine. From there the gates only tightened. Reviewed pull requests only. Production branches refuse direct changes from anyone, admins included. Only verified promotions deploy, and every database migration runs against a real database before it ships. One backend runs about 3,200 integration tests in roughly ten minutes before a merge. An AI review, secret scanning and a weekly dependency audit sit on every change. A product that had shipped straight to customers got its own test environment.
A cost programme with a tested-and-rejected ledger
Real call logs replaced the assumptions before anything was cut. AI spend on resume parsing, tagging and experience calculation fell about 84% on a real day’s volume, with the cases where the cheaper model is measurably worse written down next to the saving. Ideas that failed real tests went into a tested-and-rejected section so nobody re-proposes them. On infrastructure, idle environments switch off outside working hours and compute moved to cheaper platforms. I reported the reduction on the invoice, about a fifth, separately from cost avoided, and turned down a migration that would have cost more than it saved.
AI-first delivery where the builder never certifies its own work
Planning, building and verifying are separate roles, and verification runs in a fresh session. It paid for itself on the first afternoon, when two of my own tasks came back rejected for reporting green while running zero tests. A few days later it caught a database-isolation defect before release. The demo rule is blunt: a successful response on an empty page is a failure. With that in place, a product roadmap that would normally take a quarter landed phase by phase in days.
The outcomes
Measured.
What it taught me
- Inventory the live system before you read the documentation. Every handover document I was given was confidently wrong about something that mattered.
- Contain before you announce. Telling a departing party they’re cut off while they can still log in is the wrong order of operations.
- A gate that reports green without running is worse than no gate, because people trust it.
- Report the saving that shows up on the invoice separately from the one that doesn’t. Both are real; only one pays the bill.
- With agents doing the building, verification is the scarce resource. Whoever builds a thing should never be the one who signs it off.