Agentic AI for Cloud Migration and Application Modernization at Scale
commonwealth_bank_of_australia · Finance · 2025 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.2 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Cloud migration
Commonwealth Bank of Australia needed to modernize legacy Windows applications faster despite missing documentation and technical debt.
Constraints:
- Security and compliance
- Manual modernization bottlenecks
- Legacy technical debt
- Quality gates
Architecture
CBA's Lumos is an internal modernization platform that combines AI agents with deterministic engineering engines. Engineers use Lumos to analyze application estates, reconstruct documentation, assess cloud readiness, transform legacy code, test changes, and route human review. The platform runs orchestrator and specialist agents with Strands and AgentCore runtime, containers on ECS/Fargate, MCP/OpenSearch for tool and context access, deterministic code analyzers and OpenRewrite for factual transformations, Q Developer/Kiro CLI for repair, evaluation agents and continuous compliance agents for reliability, and human-in-the-loop pull-request review.
Diagram confidence: explicit (topology described by the source).
flowchart LR lumos-portal[Lumos portal] --> orchestrator-agent[Orchestrator agent] orchestrator-agent --> analysis-accelerators[Analysis accelerators] analysis-accelerators --> opensearch-context[OpenSearch context] opensearch-context --> mcp-server[MCP server] mcp-server --> agent-runtime[Agent runtime] agent-runtime --> orchestrator-agent orchestrator-agent --> transformation-accelerators[Transformation accelerators] transformation-accelerators --> build-validation[Build validation] build-validation --> evaluation-agents[Evaluation agents] evaluation-agents --> continuous-compliance-agents[Continuous compliance agents] continuous-compliance-agents --> human-review[Human review]
Components
| Component | Role | Interacts with |
|---|---|---|
Lumos portal |
Engineer-facing modernization workflow entry point. | Orchestrator agent |
Orchestrator agent |
Coordinates specialist modernization agents and tools. | Lumos portal, Analysis accelerators, Transformation accelerators, Evaluation agents |
Analysis accelerators |
Static code analyzers and documentation accelerators that create factual baselines. | Orchestrator agent, OpenSearch context |
OpenSearch context |
Context and retrieval layer used by agents and MCP tools. | Analysis accelerators, MCP server |
MCP server |
Tool interface for agents and modernization services. | OpenSearch context, Agent runtime |
Agent runtime |
AgentCore/Strands runtime hosted on ECS/Fargate. | MCP server, Orchestrator agent |
Transformation accelerators |
OpenRewrite and Q Developer/Kiro-assisted code transformation path. | Orchestrator agent, Build validation |
Build validation |
Compilation, testing, and failure feedback for transformed applications. | Transformation accelerators, Evaluation agents |
Evaluation agents |
Review generated code and documents for reliability and quality. | Build validation, Continuous compliance agents |
Continuous compliance agents |
Check generated artifacts against security and compliance expectations. | Evaluation agents, Human review |
Human review |
Engineer review and approval of agent-produced pull requests. | Continuous compliance agents |
Data flow
A migration engineer starts an application workflow in Lumos. Deterministic analyzers generate facts such as sequence and class diagrams; AI agents reason over analysis, documentation, cloud readiness, and transformation steps; OpenRewrite attempts deterministic code upgrades; Q Developer repairs failed builds; evaluation and compliance agents review generated code/documents; and a human engineer reviews the final pull request.
3 supporting quotes
Why this architecture
CBA combines deterministic engines with agents because modernization needs facts, repeatable transformations, and compliance evidence, not just generated prose or code. Static analysis and OpenRewrite provide grounded baselines, AI agents fill gaps and repair failures, evaluation agents add reliability, and humans remain in the approval loop for enterprise migration risk.
3 supporting quotes
Models used: Amazon Q Developer · Kiro CLI · AI agents
Scale
- CBA moved from about 10 applications per year to 20-30 applications per quarter.“So, our baseline before we started our AI journey to assist us was about 10 applications a year. Where we ended up was about 20 to 30 applications per quarter.”transcript, implied
- Average transformation time had previously been one to two years.“I think based upon the market research from Gartner, McKenzie and ISG, about 70% of the workloads are still in on-prem with a code written about 20 plus years ago and an average transformation time takes from one to two years approximately. In reality, this is the reality we are operating in.”transcript, stated
Alternatives considered (roads not taken)
Pure generative-AI modernization
Rejected because: The team added deterministic engines and evaluation agents to make results reliable.
Deterministic OpenRewrite alone
Rejected because: OpenRewrite could fail or produce poor transformation quality, requiring agent repair.
Patterns
multi-agent-orchestration (modernization)
Lumos orchestrates application analysis, design, transformation, testing, deployment, and operations.
human-in-the-loop-gate (governance)
The modernization process keeps validation gates for security, compliance, and quality.
Tradeoffs
Combine deterministic engines with AI agents for modernization reliability.
Chose Static analyzers, OpenRewrite, evaluation agents, and continuous compliance agents alongside generative agents over A pure generative-agent modernization pipeline.
Rationale: CBA needed factual baselines, evaluation, and compliance checks to make generated code and documents reliable enough for enterprise migration.
How to make generated modernization artifacts reliable.
Chose deterministic engines plus evaluation/compliance agents over pure generative modernization.
Rationale: Static facts, deterministic transforms, and continuous checks reduce the risk of agent-generated code and documentation.
Gotchas (what bit them)
Legacy modernization required documentation archaeology before agents could reason about applications.
Root cause: Application knowledge lived in scattered, incomplete documentation and often lacked a current SME.
Resolution: Lumos added analysis and documentation accelerators to reconstruct application baselines before transformation.
Pure deterministic code transformation produced poor-quality builds in the modernization loop.
Root cause: OpenRewrite alone could not complete all version-upgrade fixes successfully.
Resolution: The orchestrator brought in Q Developer after OpenRewrite failed, iterated to a successful build, then raised a pull request for human review.
Evaluation
CBA measured modernization velocity and transformation time.
Metrics: applications per year · applications per quarter · transformation time
Outcomes
- The summary reports velocity moving from 10 apps/year to 20-30 apps/quarter.
The platform supports end-to-end modernization lifecycle orchestration.