R264 · AI-built software and its verification › Agents building production systems

Is a 600K-line agent translation consistent with itself?

Read the original

Authors Federico Tomassetti

migrationlegacy-modernizationcoding-agentscode-qualitygenerators

No, not underneath. Federico Tomassetti (Strumenta) had Claude Code on Opus 5.5 translate about 600,000 lines of IBM i source (RPG, DDS, CL) into more than a million lines of Java, over 49 headless sessions. The result looks uniform on the surface. Underneath, it drifts: one date helper exists in 27 classes with 20 different bodies. The parts the agent produced with its own deterministic generators were the most uniform (article, 23 Nov 2026, part 4 of 5). Strumenta sells parser-based migration tooling, so read the comparison with that in mind.

Setup

What the measurements show

SignalFinding
Surface conventions1,353 of 2,738 classes use the shared KeyedFile abstraction and only 5 use JDBC directly. 1,723 of 1,727 program classes are named after their source member.
Code never revisited97.9% of files were never touched after their creating phase. None of the 29 runtime helpers added after phase 3 is used by an older class.
Style driftEarly phases translated indicator-setting file operations away 89% of the time. Late phases kept them in an Indicators object 88% of the time.
Runtime ignored213 classes written after phase 6 do numeric field arithmetic by hand, although a runtime helper exists. MOVE/MOVEL is handled three different ways (42%, 36%, 15% of programs).
Duplicated helpers37 helper names appear in 5 or more classes, and 35 of them have more than one body. 52 classes have their own private date conversion.
Repetition0.3% of runtime code is repeated, against 32% of hand-translated program code. The share rose from 24% in early phases to 45% in late ones.
VariantsOf the variant programs, 147 became subclasses, 78 forward to a shared helper, and 128 were retranslated from scratch, some at least 90% identical to another class.

The generators

The agent wrote seven Python generators, about 5,000 lines in total. They use regex and fixed-column parsing, with no grammar and no tests. Rerun on 3,558 members, they failed on 15, and about 30 of roughly 3,700 generated files now behave differently from what was delivered. They are all-or-nothing: one unsupported line abandons the whole member. RPG itself had no generator; its only tool produced skeletons that were completed by hand.

Failure modes worth testing for

Takeaways for large agent migrations

Review checklist

Sources

Connections

See R264 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.