- Home
- Blog
- AI in Software Development
- How to Modernize Legacy Software with AI: A Practical Roadmap for 2027
How to Modernize Legacy Software with AI: A Practical Roadmap for 2027
To modernize legacy software with AI, follow seven steps in order: make the business case, score your portfolio, check your organization's AI readiness, pick a first slice, prove it in a 90-day pilot with guardrails, scale slice by slice on a modern delivery platform, and govern the program with quarterly go, adjust, or stop gates. AI speeds up the slowest work (understanding old code, writing tests, mechanical conversion), but engineers verify every change. The order of the steps matters more than the choice of tool.
By Marielis Ontiveros
It is budget season, and the 2027 plan has a familiar tension. Gartner expects worldwide IT spending to reach $7.35 trillion in 2027, up 15%, and says the next trillion dollars of growth is shaped by two interconnected AI domains. McKinsey's March 2026 study of technology budgets found that AI is absorbing up to a third of companies' change budgets. Meanwhile, the old systems that run billing, claims, scheduling, and fulfillment keep consuming the run budget, and they are often what stops AI from paying off.
Sancrisoft is a nearshore AI development company based in Medellín, Colombia, that modernizes and builds web, mobile, and AI products for US teams. This guide is the program-level roadmap: seven steps that take you from the budget request to a first production slice and a repeatable rhythm. For the technical method behind each slice, read our guide to AI legacy system modernization. If you are already comparing vendors, see our buyer's guide to legacy application modernization services.
Why Is Legacy Modernization Competing With AI for the 2027 Budget?
Because the two are linked. In Ensono's 2026 survey, 54% of decision makers said AI had accelerated modernization, up from 39% a year earlier, yet 33% struggled to integrate AI into existing workflows. Programs also stall: CIO reports that 61% of surveyed organizations paused, delayed, scaled back, or abandoned modernization work in the past 24 months. These are the numbers worth quoting in a budget memo, each with the caveat that goes with it.
| Figure | Source | Read it this way |
| Worldwide IT spending: $7.35 trillion in 2027 (up 15%); software $1.68 trillion (up 14.6%). | Gartner, Oct 2026 | A forecast. It shows where the budget is flowing, not what modernization costs. |
| AI takes up to one third of change budgets, and “deliberate modernizers” earmark at least one third of spend for change. | McKinsey, Mar 2026 | Survey of 17 companies. Directional, not a benchmark. |
| More than seven in ten organizations exceeded original modernization budgets; 61% paused, delayed, scaled back, or abandoned work. | Ensono via CIO.com, Sep 2026 | Vendor survey. The coverage does not publish the sample size. |
| Enterprises spend nearly 30% of IT budgets maintaining legacy technology; fewer than a third have modernized core applications. | HFS Research via CIO Dive, May 2025 | 600+ leaders surveyed; sponsored by a services firm. |
What Is Different About Planning for 2027?
Three shifts separate this plan from last year's:
- AI can now read large code estates. Cloud platforms and AI vendors ship agents that map and document old code, and Anthropic's February 2026 COBOL guidance claims modernization can move in quarters instead of years. Treat that as a vendor position to test on your own system, not a benchmark.
- Independent evidence is catching up, and it is mixed. Research from Thoughtworks, DORA, and METR shows real gains on checkable work and real drag when context is missing, and Gartner's June 2026 prediction warns about overestimated tooling.
- AI now competes for the same dollars. Leaders who funded AI pilots in 2026 will be asked why those projects stall when data and integrations are trapped in old systems. That question is your opening for Step 1.
What Does the Seven-Step Roadmap Look Like at a Glance?
| Step | When | You produce | Gate question |
| 1. Make the case | Q1 | One-page ask and a staged budget. | Will finance fund stage one? |
| 2. Score the portfolio | Q1 | A heat map of every system. | Which two or three systems matter most? |
| 3. Check AI readiness | Q1 | Readiness scorecard. | Will AI amplify good habits or bad ones? |
| 4. Pick the first slice | Q2 | One bounded slice with an owner. | Is it valuable, bounded, and checkable? |
| 5. Run a 90-day pilot | Q2 | Pilot scorecard and a decision. | Did the numbers beat the baseline? |
| 6. Scale slice by slice | Q3 | Waves, platform, decommission dates. | Is each release small and reversible? |
| 7. Govern every quarter | Q3 onward | Gate reviews and a retirement list. | Continue, adjust or stop? |
The timing is illustrative. A small system can compress it, and a regulated one will stretch it. What should not change is the order, because each step produces the evidence the next one needs.
Step 1: How Do You Make a Business Case That Finance Will Fund?
Finance funds outcomes, not rewrites. Build the case from three numbers you can defend, then ask for money in stages.
| Line | What to measure | Where to find it |
| Cost to run | Hosting, licenses, support hours, and contractor rates for the system. | Finance, vendor invoices, timesheets. |
| Cost of delay | Outages, security findings, hiring difficulty, and features you cannot ship. | Incident log, audit reports, backlog. |
| Value unlocked | Revenue or savings enabled, such as AI features that need clean data and APIs. | Product and finance leads. |
Then write the ask in two sentences: fund a 90-day pilot on one named slice for a stated amount, and return with measured lead time, defect, and cost data plus a go or no-go for the next stage. Staged funding limits regret, and it answers the objection behind the 61% stall rate above: nobody has to approve a multi-year program on faith.
Step 2: How Do You Map and Score Your Legacy Portfolio?
List every system that touches revenue, customers, or compliance. Score each from 1 to 5 on six factors: business criticality, change frequency, test coverage (inverted), security exposure, skills availability, and number of integrations. Then plot business value against the cost of change.
| Quadrant | Profile | Default action |
| High value, high pain | Revenue-critical and hard to change. | Modernize first, in slices. |
| High value, low pain | Works and changes safely. | Protect: wrap with APIs, keep tests current. |
| Low value, high pain | Costly and rarely used. | Retire, or replace with a SaaS product. |
| Low value, low pain | Cheap and stable. | Leave alone and monitor. |
AWS Prescriptive Guidance supplies the vocabulary for the action column: retire, retain, rehost, relocate, repurchase, replatform, and refactor. Two of the seven involve no engineering at all, and the heat map is where you find candidates for both. The assessment itself, including the read-only, AI-assisted analysis, is laid out in the 30-day plan in our AI modernization guide.
Step 3: Is Your Organization Ready to Use AI on Legacy Code?
AI amplifies what is already there. The DORA research program identified seven capabilities that amplify the benefits of AI-assisted development, drawing on 78 interviews and a survey that reached almost 5,000 respondents. Turned into a readiness check for modernization, they look like this:
| DORA capability | Modernization question | If the answer is no |
| Clear AI stance | Do engineers know which tools and data are allowed on legacy code? | Write a one-page AI policy first. |
| Healthy data ecosystems | Is test data clean and close to production reality? | Budget data cleanup into stage one. |
| AI-accessible internal data | Can approved tools read docs, tickets, and repositories? | Connect them, read-only. |
| Strong version control | Is every system in version control, with frequent commits and rollbacks? | Fix this before any AI-assisted change. |
| Small batches | Can you release a small change within days? | Build the pipeline first (Step 6 moves forward). |
| User-centric focus | Do slices follow user workflows rather than code modules? | Re-cut the slices. |
| Quality internal platforms | Are there shared pipelines, environments, and observability? | Invest in DevOps foundations. |
Context matters as well. In a randomized METR trial of 16 experienced developers in large, mature repositories, AI-allowed tasks took 19% longer, although the developers expected a speedup. Legacy code resembles that setting, which is why readiness comes before tooling. The 2025 DORA report makes the same point: AI is an amplifier, not a fix.
Step 4: How Do You Choose the First Slice?
The first slice sets the credibility of the whole program. Test every candidate against five questions:
- Bounded? It has clear edges, such as one workflow, report, or API.
- Valuable? Someone senior notices if it improves.
- Checkable? Correctness can be verified automatically. Google's report on AI-assisted code migrations (80% of code changes fully AI-authored, about 50% time saved by engineers' estimate) and Airbnb's migration of about 3,500 test files in six weeks both involved work that tests could check.
- Low coupling? A seam exists where behavior can be redirected without editing the old code.
- Owned? A named business owner and an engineer who knows the code are both attached.
Start by understanding, not converting. In Thoughtworks' CodeConcise work on mainframe code, an LLM paired with a knowledge graph of the code was estimated to cut reverse engineering from about six weeks to about two weeks per module on one client proof of concept (an estimate, not a measured result). Thoughtworks also cautions that direct translation restates existing constraints and technical debt in a new language. Anthropic's own COBOL guidance, a vendor view, also advises starting with a single component that has clear boundaries.
Step 5: How Do You Run a 90-Day Pilot With Guardrails?
A pilot answers one question: does this approach beat our baseline on our system? Set the baseline in week one, then run the slice end to end (understand, test, transform, verify, release) using the same AI-augmented workflow you would use at scale. Write an AI working agreement before anyone touches code:
| Rule | Why |
| Read-only access first | Limits the blast radius while the team learns the tool. |
| Tests before transformation | Current behavior is the contract; AI output is a draft. |
| Small batches | Smaller changes are easier to review and to reverse. |
| Human review of every change | Google found review speed was the bottleneck, so plan reviewer hours. We cover the principle in human-in-the-loop AI development. |
| No secrets or regulated data in prompts | Protects credentials, patient and customer data. |
| Log AI use per change | Makes audits and root-cause analysis possible. |
Anchor the agreement in published guidance: the NIST AI Risk Management Framework, NIST SP 800-218A for secure AI-assisted development, and the OWASP Top 10 for LLM Applications. In healthcare, add HHS HIPAA requirements.
Pilot scorecard. Measure the five DORA delivery metrics against the baseline, plus review hours per change, defects that escape to production, and total cost against the estimate. Define the go, adjust, and stop thresholds before the pilot starts, so the decision is arithmetic and not politics. Add a pre-mortem too: ask the team to imagine it is day 91 and the pilot failed, then fix the top three reasons now.
Step 6: How Do You Scale Slice by Slice Without Losing Control?
After a good pilot, resist the urge to start everything at once. Move in waves of two or three slices, limit work in progress, and build the platform that makes each release routine:
- Pipelines. CI/CD with automated test gates, so every slice is releasable on demand. This is core DevOps work.
- Environments as code. Tools such as Terraform keep staging and production identical and changes reviewable.
- Observability and rollback. You cannot shift traffic gradually if you cannot see errors or reverse a release.
- Architecture review per wave. The AWS Well-Architected Framework offers a neutral checklist across security, reliability, and cost.
- Parallel run and gradual cut-over. Martin Fowler's strangler fig pattern replaces functionality piece by piece instead of in one jump.
Give every slice a decommission date for the old component; otherwise you run two systems forever. Staffing matters here too: an embedded nearshore team in your time zone adds capacity without freezing your roadmap.
Step 7: How Do You Govern the Program and Prove the Return?
Hold a gate review every quarter, with the same five questions and the evidence to answer them.
| Question | Evidence to bring |
| Is delivery faster and safer? | DORA metrics against the pilot baseline. |
| Is the legacy footprint shrinking? | Components retired, run cost removed. |
| Is quality holding? | Escaped defects and test coverage of migrated slices. |
| Is the money on track? | Actual against estimate, per slice. |
| Are people and risk in order? | Reviewer capacity, security findings, skills gaps. |
Each gate ends in one of three decisions: continue, adjust scope, or stop. Keeping “stop” on the menu is what keeps stages credible. Seat the same people at every review: an executive sponsor, a business owner per slice, an architect, QA and security leads, and the partner's lead engineer. A modernization is not finished when code ships. It is finished when something is turned off.
How Should the Roadmap Change for Your Situation?
| Situation | What changes | Watch for |
| Mid-size SaaS with one core monolith | Compress Steps 1 to 3 into a few weeks and pilot on a customer-facing module. | Pressure for a feature freeze. |
| Regulated organization (healthcare, fintech) | Add compliance review to every gate and write the AI policy before the pilot. | Longer approvals, data-handling limits. |
| Large portfolio with many systems | Spend more time in Step 2, run one pilot first, then parallel waves with a central platform team. | Fragmented tooling across teams. |
Which Mistakes Stall Modernization Programs?
| Mistake | Why it hurts | Fix |
| Translating code without redesign | The old constraints and debt move into the new language. | Re-slice around workflows and refactor while you move. |
| Treating AI as the plan | Gartner predicts more than 70% of mainframe exit projects started in 2026 will fail, citing overestimated generative AI. | Let scope, tests, and review decide the outcome. |
| One lump-sum program | Overruns and stalls (61% paused, delayed, scaled back, or abandoned). | Staged funding with gates. |
| No decommission date | You pay to run both systems. | A retirement date per slice. |
| A never-ending assessment | Analysis without a release teaches little. | Time-box it and learn in the pilot. |
| Ignoring reviewer capacity | AI produces changes faster than people can check them. | Plan review hours as a budget line. |
How Does Sancrisoft Run This Roadmap?
We combine two services. AI Development brings Conduct, our process of specify, build, and verify: architecture, scope, and timeline are approved before code is written, agents accelerate the build, and nothing ships without automated testing and human review. DevOps brings the platform in Step 6, and our QA services supply the safety net. Across AI-augmented delivery, we report 30-40% productivity gains, 45% fewer bugs, and 35% faster testing cycles (company-reported).
The approach comes from live work. We inherited a production telehealth platform that had passed through several development teams, documented its patterns first, and then ran a phased plan that included multi-factor authentication, penetration-test remediation, perimeter protection, an email delivery migration, and cloud optimization, all without disrupting active users. The engagement has run for more than 18 months, on the path toward full HIPAA compliance. Read the telehealth platform case study or explore our healthcare experience. Choosing a partner for your own program? Our buyer's scorecard covers the questions to ask.
Ready to Turn Your 2027 Modernization Plan Into a Funded First Slice?
Legacy modernization demands two things at once: keep the business running and move before the risk and the budget squeeze catch up. At Sancrisoft, we use AI not as a shortcut but as a way to understand and change old software safely, with engineers verifying every step, so you gain speed without a risky big-bang rewrite.
Our nearshore team in Medellín, Colombia, works in your time zone, understands the compliance demands of regulated industries, and brings the seven-step approach you just read about.
Whether you are building the business case, scoring your portfolio, or scoping a 90-day pilot, we bring proven experience applying AI to this work. Schedule a consultation to pressure-test your plan, size a first slice, or talk through technical challenges with engineers who have solved similar problems. No sales pitch, just an honest conversation about what is realistic for your systems.
Frequently Asked Questions
In seven steps: make the business case, score your portfolio, check AI readiness, pick a first slice, run a 90-day pilot with guardrails, scale slice by slice on a modern delivery platform, and govern the program quarterly. AI accelerates analysis, testing and conversion; engineers verify every change.
With a portfolio heat map and a readiness check, then one bounded slice whose correctness can be verified automatically. A small, measurable win earns the funding for the next stage.
It depends on size, risk, and test coverage. McKinsey notes that large programs often take five to seven years. A 90-day pilot produces your first measured evidence, and incremental releases deliver value long before the program ends.
There is no standard figure because scope varies widely. Fund the pilot first, use its measured data to estimate the next stage, and treat anyone who quotes a single number for the whole program before an assessment with caution.
No. Thoughtworks notes that models cannot reliably ingest tens of millions of lines at once, that direct translation carries old constraints into new code, and that every program needs subject-matter experts. AI is strongest at understanding, testing, and repetitive conversion.
It can be, with controls: read-only access first, no secrets or regulated data in prompts, human approval of every change, logging, and security testing aligned with NIST and OWASP guidance.