AIがレガシーCOBOLプログラムをJavaに移行、バグも含む
AI migrated legacy COBOL programs to Java, bugs included (arxiv.org)
要約
本論文では、レガシーCOBOLプログラムのJavaへの移行におけるテストの課題に対処するため、新しいエージェントベースのテスト合成手法「Locksmith Loop」を提案しています。この手法は、COBOLソースと生成されたJavaターゲットの両方をモックでインストルメント化し、エージェントループが入力モック上でWitness Searchを実行してプログラムの分岐を探索し、パリティを維持するミューテーションを行います。このアプローチにより、特にテストデータが不足している場合に、カバレッジを大幅に向上させ、移行されたJavaコードの正確性を検証できることが示されています。
全文翻訳
Computer Science > Software Engineering
arXiv:2607.28271 (cs)
[Submitted on 30 Jul 2026]
Title: Agentic Method for Deterministic Validation of Legacy Code Migration
Authors:Andras Ferenczi, Jordan Docherty, Mariya Bessonov, Matthew Findlay, Krishna Lingamneni
View a PDF of the paper titled Agentic Method for Deterministic Validation of Legacy Code Migration, by Andras Ferenczi and 4 other authors
Abstract: Migration of legacy COBOL programs to Java requires extensive testing to ensure correct functionality. This effort is often complicated by the lack of test data and the difficulty of validating all corner cases. In this paper we propose a novel agentic test-synthesis method, the "Locksmith Loop," which is initiated by preparing two runtime environments: the COBOL source and the generated Java target are each instrumented with mocks and executed off-mainframe on commodity hardware, then an iterative agentic loop performs Witness Search over input mocks to penetrate program branches, followed by parity-preserving mutations. When routing boundaries are reached, an analyzer identifies a Locked Paragraph: a condition preventing deeper exploration. Across three COBOL-Java case studies, spanning two open-source programs and one internal production-like COBOL program and ranging from 430 to 4,114 source lines, Locksmith consistently improved coverage beyond input-search plateaus, reaching nearly complete coverage on the two open-source programs and 91.90% branch coverage on the internal production-like COBOL program. The generated Java matched the COBOL reference under deterministic parity checks in all accepted test cases. Through these findings we demonstrate, to the best of our knowledge, a novel approach for validating agentic coding output using a deterministic oracle.
要約: COBOLからJavaへのレガシープログラムの移行には、機能が正しいことを保証するための広範なテストが必要です。この作業は、テストデータの不足や、すべてのコーナーケースを検証することの難しさによってしばしば複雑になります。本稿では、新しいエージェントテスト合成手法である「Locksmith Loop」を提案します。これは、2つの実行時環境を準備することから始まります。COBOLソースと生成されたJavaターゲットはそれぞれモックで計装され、コモディティハードウェア上でオフメインフレームで実行されます。その後、反復的なエージェントループが、入力モックに対するWitness Searchを実行してプログラムの分岐を貫通し、それに続いてパリティを維持する変異を行います。ルーティング境界に到達すると、アナライザーがLocked Paragraphを特定します。これは、より深い探索を妨げる条件です。2つのオープンソースプログラムと1つの内部本番ライクなCOBOLプログラムにまたがる3つのCOBOL-Javaケーススタディ(430から4,114ソースライン)全体で、Locksmithは入力探索のプラトーを超えてカバレッジを一貫して改善し、2つのオープンソースプログラムでほぼ完全なカバレッジに達し、内部本番ライクなCOBOLプログラムで91.90%の分岐カバレッジに達しました。生成されたJavaは、すべての受け入れられたテストケースで、決定論的なパリティチェックの下でCOBOLリファレンスと一致しました。これらの発見を通じて、我々は、決定論的なオラクルを使用してエージェントコーディング出力を検証するための、我々の知る限り新しいアプローチを実証します。
| Comments: | 11 pages, 6 figures |
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2607.28271 [cs.SE] |
| (or arXiv:2607.28271v1 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2607.28271 arXiv-issued DOI via DataCite |
Submission history
From: Andras Ferenczi [view email]
[v1] Thu, 30 Jul 2026 14:25:23 UTC (2,963 KB)
Full-text links:
Access Paper:
View a PDF of the paper titled Agentic Method for Deterministic Validation of Legacy Code Migration, by Andras Ferenczi and 4 other authors
Additional Features
Current browse context:
cs.SE
Change to browse by:
References & Citations
Loading...
BibTeX formatted citation
loading...
Data provided by:
Bookmark
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
- Author
- Venue
- Institution
- Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)