Business
Software Project Takeover: A Legal AI Product, Four Codebases
7 min readBy Eugen Yamamoto, Founder of CQUELLE

A software project takeover starts with reading and with a written description of how the system works today, signed off by the client before any code changes. On a contract drafting product for US law firms that we took over in 2025 it was a written map of four codebases, and only after it we shipped anything, with new behaviour coming last, behind the alignment of the two client surfaces.
The previous vendor had left the product, a contract drafting and review tool, in a state the client's own team could not safely move forward from, with release risk nobody could size. Our case study of the takeover records what we inherited and changed, this post is about the order of it.
What does a software project takeover start with?
We spent the early weeks reading code. The product had four codebases which had evolved independently:
- Microsoft Word add-in, React running inside Office.js;
- React web application;
- Subscription and identity platform, built with asp.net core on .NET 9;
- AI services layer – typescript on AWS Lambda, with LangChain and Pinecone.
The written map described which calls crossed which boundary, where prompts were written and which AI behaviours the client was responsible to its own customers for. With it we could predict, before making a change, where else in the product it would show up, more or less.
The client signed it off before the first change landed.
If you are in a software project handover yourself, it's recommended to ask the new team for such description that you can check and challenge, a list of repositories would have left the relationships between these four codebases unexplained.
Our entry point for a takeover is a code assessment over five working days, producing prioritized findings report with recommendations on what to keep and what to change. What exactly is read on each of the days can be discussed in a separate scope.
What was actually wrong?
A lawyer drafting in Word and a lawyer reviewing on the web got materially different AI behaviour on the same clause, and that difference was not by design.
The two surfaces had been built and edited at different times by different people, against AI layer with no single source of truth for prompts or retrieval logic. The four codebases had also evolved independently and the place where a problem appeared was not reliably telling us where it came from. Something that looked like a backend question was sometimes a Word client question, and we had the same between model and retrieval.
The in-house team was the one answering for how the surfaces work together while the code integrating them was not in their hands. Our brief was to stabilize the product across those boundaries and put the company back in the position to plan a roadmap, adding features was not part of it.
The order of the work
We first worked towards shipping to the existing customer base without surprises. Alignment between Word and web came after that and nothing new was added to the product before the alignment was done.
In order to align them we pulled the prompts and retrieval configuration, and with them the contracts between the AI services layer and its clients into one place that both Word and web read from, before that each surface had its own copy of them.
The client could see on each stage what had moved and why. I make that a condition for any takeover: the client reviews the current change before we agree to widen the scope. The product kept serving its customers throughout, without customer base seeing the recovery work.
And what stays as it is
I don't think a takeover is a reason to rewrite a product, and a vendor arriving with a rewrite plan was not what a product in the state this one was in needed. On this one, customers already had choices about model usage and providers, while the system already had identity and audit arrangements that we had to preserve through the changes across the all four codebases.
During the takeover we kept the .net platform on the version it arrived with, .NET 9. A framework upgrade is decision of its own with its own testing and in my view it does not belong inside a takeover brief by default. Our .NET takeover and modernization work includes deciding what can stay in place while the surrounding product changes.
The bring-your-own-key model stayed. A customer could pay for model usage included in the subscription or provide its own provider keys. That choice involves key storage, per-tenant routing, cost accounting, fallback when a customer key fails, contract terms, etc. We preserved and hardened it. After the takeover keys are stored per tenant and used only for that tenant's calls. They are never logged in the clear either, and every model call is attributed to tenant and provider. The same goes for provider switching, the customer can still choose which provider answers. We did rewrite the inside of the AI services layer, though. Different providers produced materially different outputs from the same prompt and retrieved context, therefore prompts are maintained per provider. The rewrite allows us adding or replacing a provider as a contained change, the Word add-in and web application are not touched by it.
The inherited compliance posture also remained a constraint. Identity, audit logging, key handling and the boundaries of what client text may leave the customer's tenant were already in place when we arrived. Our internal policy on what client code and data may be processed through AI tools applied from day one, since the product itself processes customer contract text.
Some inherited behaviour did need correction. Precedent retrieval is the example. Chunking now respects clause and section boundaries, before it was done on paragraph boundaries and the structure of a clause was lost, and re-ranking tuned for general prose surfaced the wrong precedent first. That is also a thing I ask from engineers on a takeover, to be able to explain such failure before changing it and to leave alone what is merely unfamiliar.
And one remark about Word. The add-in runs inside Office.js and had to behave the same across Word for Windows, Word for Mac and Word on the web, each interpreting the API slightly differently, so stabilizing something in Word was meaning to stabilize it in three hosts, at least in our case.
When is a software project takeover finished?
For this product it was finished when the four codebases were shipping under one team on one release path and a clause reviewed in Word was getting the same review on the web. The in-house team can plan a roadmap against the product again.
What this case does not tell you
This is one software project rescue, of a live legal drafting product which was not consequent across its two client surfaces. No duration and no team size are given here, and I would not take them from another product for your takeover anyway.
Different shape appears in the marketplace and practice platform of a veterinary company. Earlier vendors had left codebases half finished, while parts of the platform already served real users and real payments, which ruled out both a complete rewrite and a freeze. 5 developers spent two years replacing it from the inside. The inherited core kept serving traffic while new capability was built as self-contained modules, the legacy code was shrinking in importance with every release. Again no rewrite plan there, the same as on the legal product.
For your system, we offer the assessment and its findings report as starting point for deciding what to preserve and what to replace. I would leave the implementation commitment open until that reading is done, a fixed price for the work might follow the report but it doesn't come before anyone has read the code. If you are choosing a vendor again, you might use our guide to choosing a software development company to prepare questions for that separate decision.
We do the first conversation as a fit check, it makes sense when the product is live and your team cannot predict what a change will affect, and there we look together at how and if we can take it over.
Frequently Asked Questions
What is a software project takeover?
A software project takeover is a change of the team responsible for an existing software product: a new vendor assumes engineering responsibility for code that somebody else wrote, usually while the product stays in use. It differs from a rewrite, because the existing code remains the starting point and is changed step by step.
How does a software project takeover start?
With reading the code before changing it. CQUELLE starts a takeover with a code assessment over five working days that produces a prioritized findings report with recommendations on what to keep and what to change. On a legal drafting product taken over in 2025, the first deliverable was a written map of four codebases, signed off by the client before the first change landed.
Does a takeover mean rewriting the software?
Not by default. In the 2025 takeover of a contract drafting product, CQUELLE kept the platform on .NET 9, the version it arrived with, and preserved the bring-your-own-key model and provider switching. The inside of the AI services layer was rewritten, so that adding or replacing a model provider is a contained change.
Can the product keep running during a takeover?
Yes. On the legal drafting product the work was ordered so the product kept shipping: first ship to existing customers without surprises, then align the Word add-in and the web application, then add new behaviour. The product kept serving its customers throughout. On a veterinary platform, five developers replaced an inherited system over two years while it kept serving traffic.