Niveus Solutions / PS 01
Verified AI Modernization of Legacy Code
Understand legacy code. Verify every change.
Use Gemini to understand, translate or test a legacy module, with source-line traceability and executable checks against a baseline.
Verified AI Modernization of Legacy Code
The objective
The challenge.
This challenge from NTT DATA’s Google Cloud Business Unit focuses on verified AI modernization of legacy code. Engineers often inherit undocumented COBOL, PL/I, RPG, older Java or stored procedures with few tests. A plausible AI translation can still silently change rounding, dates, fixed-width records or error handling. Choose one user, one modernization bottleneck and one measurable outcome. Build a working Gemini-powered product that helps understand, translate or test one legacy module, with executable evidence showing what behaviour is preserved and what still needs review.
Choose a modernization engineer, application developer, business analyst or solution architect and one specific workflow step. Application owners, QA leads and security reviewers are supporting stakeholders.
Take a legacy artefact to a checked output that the user can inspect and use in the next modernization step. Demonstrate a relevant improvement in correctness, speed, coverage or reviewer effort against a stated baseline.
Suggested directions
Choose a focused direction.
Choose one focused direction below or propose another modernization problem with a clear user, legacy artefact and executable evaluation. These are starting points within this challenge, not separate mandatory problem statements.
- Legacy batch translation
Translate a small COBOL or similar batch program to Java, Python or Go. Run both versions on identical input files; measure identical-output records or time needed to reach output parity.
- Business-rule extraction
Turn a legacy module into a readable specification, linking each rule to its original source lines. Measure precision and recall against a hand-labelled rule set for the same module.
- Characterization test generation
Generate a safety-net test suite capturing the existing behaviour of an untested module. Measure line or branch coverage and the proportion of generated tests passing on unmodified code.
- Stored-procedure refactoring
Move database procedure logic into an application service. Compare query results on a sample database, measuring result parity and the number of procedures converted without manual fixes.
- Service decomposition support
Propose service boundaries for a small monolith using its call graph and data-access patterns. Evaluate against a documented reference decomposition or expert review while retaining an executable checking method.
Product capabilities
What to build.
Required features
- One working modernization workflow
Work on at least one real legacy module. Substantiate the bottleneck with a representative public sample, cited industry material or practitioner feedback. Identify your own contribution when extending an existing open-source tool.
- Gemini inside the product
Meaningfully use at least one Google Gemini model through the Gemini API or Vertex AI. Gemini used only as a coding assistant during development does not count. Choose your own interface, architecture, legacy language and target stack.
- Executable checks and source traceability
Check generated output using tests, side-by-side execution, output comparison or compilation. Trace generated output back to source lines and provide a repeatable evaluation script. Explain what each check proves and where uncertainty remains. Compilation alone does not establish behavioural equivalence.
- User review of each change
Let users supply a module and test inputs, inspect the proposed output alongside its evidence, and accept, edit or reject changes. Mark unverified output and security-sensitive logic for human review before merging or deployment.
- A fair baseline comparison
Name an appropriate manual workflow, conversion tool or simple AI baseline. Identify the specific limitation in your selected baseline. Use the same module, inputs, test data and evaluation conditions. Define task-specific targets and report correctness alongside time, token usage and cost per module.
Optional ideas
- Verification and repair loops
Feed compiler or test failures back to Gemini and track repeated attempts. Agent orchestration, including Google’s open-source Agent Development Kit, is optional.
- Reviewer-friendly evidence
Add per-function confidence or risk flags, clear diff views and attempt history to make generated changes easier to assess.
- A deployable modernized service
Run the modernized service in a local container or deploy it to Cloud Run. Cloud deployment is optional; a locally executed, reproducible module is sufficient.
Typical workflow
Supply a legacy module and test inputs → use Gemini to understand, translate or test it → compile, run and compare the result → inspect source-linked evidence and remaining risks → accept, edit or reject changes → repeat the documented baseline evaluation.
Demo & deliverables
Show it working.
- Reviewable repository and README
Provide a GitHub repository accessible for review. Document setup, the legacy sample and its licence, where Gemini is used and which model powers each feature. Any restricted repository access must be agreed in advance.
- Reproducible evaluation and results
Include test inputs, the evaluation script, baseline results and prototype measurements. Report every run, including failures and retries, plus limitations, known failure cases and required manual fixes rather than selecting only the best result.
- A short working demonstration
Show the complete workflow, actual Gemini use, executable checks and user review. Demonstrate invalid-input and API-failure handling. Label prerecorded demonstrations and explain how simplified tests differ from a real migration.
Success criteria
What success looks like.
Demonstrate an end-to-end result on a reproducible module. Use these success indicators as guidance; the organiser must confirm final judging rules. No fixed scoring weights or performance thresholds are supplied.
Choose an appropriate metric: output parity, test pass rate, branch coverage, rule-extraction precision and recall, or manual fixes. Explain failures and limitations as clearly as successful results.
Compare effort, review time or confidence with the current workflow. Include practitioner feedback where available and label assumptions otherwise. Quantify demonstrated benefit, cost and time per module. Outline a pilot on a larger public codebase, including tooling, integration effort and data-residency considerations.
Show code/data provenance, protected credentials, explicit uncertainty and human approval. Distinguish generated suggestions from tested results and account for external-service retries and failures.
Scope & constraints
Build within the brief.
Small modules of a few hundred to a few thousand lines, synthetic inputs, simplified file/database I/O, local containers and partial language support are acceptable. State assumptions. Mainframe hardware, licensed conversion products and production deployment are not required.
A generic code-chat wrapper, a concept deck without working functionality, proprietary/client code, or full-application migration and guaranteed-equivalence claims. Treat generated code as a proposal, never as production-ready or certified equivalent.
Project ownership remains with participants; participation does not automatically transfer ownership or commercial rights to NTT DATA or Google. Respect licences and do not imply company endorsement or certification. Publicity needs participant permission and credit; later collaboration requires mutual interest and separate agreement.
Technical & safety requirements
Use public open-source, self-written or synthetic code/data with compatible licences; document every sample’s source and licence. Never use client, employer or NTT DATA proprietary code. Keep keys server-side or in protected local configuration, out of repositories and demos.
Free-tier Gemini API requests may be used by Google to improve products. Send nothing confidential and make submissions shareable with reviewers. The organiser should not collect API keys or passwords. Follow applicable Google terms and third-party rights.
Check model availability and rate limits in Google AI Studio before development and the final sprint; some models may be unavailable free. Recheck pricing before development. Handle HTTP 429 and temporary errors with bounded retries, backoff and a clear failure state.
API calls require internet access. Teams provide compilers, runtimes and computing resources, including any GnuCOBOL toolchain. No mainframe, licensed converter, private NTT DATA system, dedicated event sandbox, event Google Cloud project or reserved model capacity is committed. NTT DATA is not providing client code, proprietary datasets or confidential material.
Resources & help
Useful before you start.
Rounds 1 and 2 use each team’s own Gemini free-tier account within current limits. Finalist credits and activation dates are unconfirmed; plan experiments without relying on them.
Teams may use Vertex AI in their own Google Cloud projects at their own cost. Consult the public generative AI documentation.
Google’s open-source Agent Development Kit and Gen AI SDKs are optional supporting tools; select only what helps the chosen workflow.
Public deployment documentation for teams choosing optional cloud hosting; local execution remains acceptable.
An open-source COBOL compiler that teams can run in their own environment when it fits the selected sample.

































