AI Engineer

How We Mapped a 35-Million-Line Mainframe in 4 Days - Stephen Chin, Neo4j & Neeraj Deshmukh, Blitzy

Published 2026-11-06 · Duration 19:44

Summary

The talk addresses the challenge of modernizing decades-old, mission-critical mainframe systems (e.g., those running COBOL) that underpin modern finance. Traditional AI approaches fail because they cannot capture the full, complex context—including batch jobs, data layouts, and interdependencies—where business logic is used. The solution presented is mapping the entire codebase into a Knowledge Graph. This graph provides AI agents with multi-hop, accurate context, enabling the safe, automated, and fully validated migration of massive codebases (up to 35 million lines) to modern stacks while preserving critical business behaviors, such as financial precision and rounding rules.

Download summary

Key takeaways

  1. The limitations of current AI context windows 7:02

    AI models, even those with large token windows, are limited in usable context. The speakers argue that context is serial, but code information has relationships, necessitating a graph structure for accurate understanding.

  2. Knowledge Graphs enable 'infinite' code context 11:20

    By mapping the entire software estate into a graph, the system provides agents with access to the right information at the right time, effectively acting as a compiler for the enterprise knowledge base.

  3. The modernization process is highly controlled and validated 14:10

    The process requires human approval at every key decision point. Validation is continuous, involving testing at every stage of code generation, ensuring data parity (e.g., matching the 'golden mainframe baseline' output byte-for-byte), and preserving existing behaviors.

  4. Modernization leads to transformation

    The knowledge layer built during modernization is not just for migration; it allows for subsequent development, such as adding new features (e.g., promotional rates) or implementing compliance checks (e.g., GDPR compliance), making the system more agile.

More digests on Mainframe Modernization

Technical details

  • Legacy Systems & Challenges 14s

    Modern finance relies on old systems (mainframes) running business rules and batch jobs. Changes are high-risk because logic is spread across multiple components (e.g., copybooks, VSAM data, batch contracts).

  • Knowledge Graph Implementation 710s

    The codebase is mapped as a graph, where every edge retains its identity (source, revision, symbols touched). This graph is continuously updated on every merge to keep the context fresh.

  • Agentic Workflow (Blitzy's Approach) 780s

    Each agent receives a specific task context packet, including the task description, its location in the graph, constraints, and evidence. The process involves reverse engineering the estate, defining an agent action plan (reviewed by a human), code generation, and continuous validation.

  • Validation and Parity Testing 1135s

    Validation is critical and includes testing the baseline, equivalent testing on the modern system, and verifying inputs, outputs, persisted states, and error outcomes. The goal is to prove parity, especially for financial calculations (e.g., rounding differences between COBOL and Java).

  • Modern Stack Example

    A monolith with cross-database stored procedures was converted into six capability modules using a modern stack: PostgreSQL, Java, TypeScript, and Python.

Mentioned resources

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.