The Converted Code Is the Easy Part

A demo of an agent converting COBOL to Java is convincing because the visible output is exactly what a migration appears to need: Java files that compile and read cleanly. What the demo cannot show is the proportion of the engagement that sits outside those files. None of the sources reports a measured split of effort. The pattern across them is consistent enough that I will say where I think the remainder lives.

Start with what the converting agent is told to do. In Microsoft's COBOL Agentic Migration Factory, the converter's prompt tells it to create class structures, convert variables and procedures, and handle PERFORM and GOTO idiomatically. The authors flag a failure to avoid: replicating COBOL structure in Java, sometimes called JOBOL. So even the conversion step contains a judgment about how faithful to be. A literal port preserves behavior and is hard to maintain. An idiomatic rewrite is easier to own and changes the structure the behavior was embedded in. Someone with authority over the system has to choose, and the model cannot.

Next, the pieces that never appear in the source file. Microsoft writes that many COBOL modules are tied to the non-functional behavior of the mainframe, namely batch throughput, I/O handling, JCL orchestration, and strict SLAs, which "can't be handwaved away." Some modules need a redesign, and others need a closer look at those dependencies. A nightly batch window that closes at six in the morning is a business commitment, and the COBOL program is only one participant in keeping it. The Java version can be functionally correct and still miss the window, which for a bank means payments or statements arriving late. Reproducing that behavior takes performance engineering, scheduler redesign, and operational runbooks, none of which an agent produces from reading a program.

Then the middleware. The IBM Research team evaluating its translator checks EXEC SQL, EXEC CICS, and IMS calls with strict one-to-one matching, and treats an unmatched Java call as a hallucination. A call of the right type with wrong parameters gets flagged separately. That level of scrutiny exists because the business rules in these estates are carried by transaction and data semantics, such as how a CICS ABEND unwinds work or how a SQL cursor behaves, more than by arithmetic. In their running example, an abend call with a wrong parameter was caught by an analytic checker and missed by the LLM judge, while the judge caught a wrong exception type that the analytic checkers missed. Both faults sat in the code that decides what happens when something goes wrong, and neither automated method caught both. One example does not make a rate, but it shows why error-handling paths deserve a human reading.

The tooling itself is early. Microsoft's post describes a first agentic iteration of three agents on AutoGen, later rebuilt on Semantic Kernel, and ends with "This is just the beginning." In the early experiments the team reached call-chain level 3 "but not beyond" and found that too much context made agents lose coherence. The authors cannot publish a detailed report because the Bankdata code is sensitive. A comment in the post's own analyzer snippet says a real implementation would parse the analysis text into structured data, and the sample keeps it as raw text. The IBM evaluation paper says its syntactic checkers, which test for things like empty output, endlessly repeated text, and unparsable Java, failed frequently in the early stages of the project and such failures have become less common. That progress is real, and it is progress on the part that was already easy to check.

So the engagement shape I would expect, as my own reading of these sources, looks like this. The agents produce a first pass quickly. After that, the work that sets the schedule is the validation harness, the decisions about structure versus fidelity, the operational behavior around the code, the data migration, and the cutover and rollback plan. Each of those is slow because it depends on knowledge held by people, on production data that has to be handled carefully, and on a risk appetite that belongs to the institution. A better model shortens none of them. It shifts the first pass from months to days, and the remainder becomes easier to see.

That visibility has a budget consequence. A project that was estimated by lines of code converted will show remarkable early progress and then look stalled, and the stall is when the sponsor's patience is tested. The reverse framing holds up better. If conversion is cheap and fast, the plan should be priced and tracked on evidence of equivalence, on batch window performance, and on the tested rollback, because those are the milestones that correspond to reduced risk. A percentage of code converted measures output, which is a poor guide to when a bank can switch off a mainframe.

The most telling sentence in the Microsoft post is about tests, which the authors call crucial for verifying and validating the agents' output. A team that builds an agent factory and then names deterministic tests as the thing it leaned on is telling you where the trust comes from. The model produces candidates in volume, and confidence gets built by everything around it. I suspect the firms that do this well will end up resembling careful operators of a system that happens to include a model.


Sources: Microsoft All Things Azure, "How We Use AI Agents for COBOL Migration and Mainframe Modernization" (Julia Kordick and Gustav Kaleta, Jul 9, 2025, devblogs.microsoft.com/all-things-azure); Froimovich et al., "Quality Evaluation of COBOL to Java Code Transformation," IBM Research (arXiv 2507.23356, Jul 2025); Hans et al., "Automated Testing of COBOL to Java Transformation" (arXiv 2504.10548, Apr 2025).