Spec2COBOLRot: An Agentic-AI Degradation Loop for Realistic COBOL Corpus Generation
Jean-Baptiste Espinasse, Djamel Eddine Khelladi, Mathieu Acher
Abstract
COBOL remains widely deployed, yet representative corpora reflecting real production code are rarely available, limiting rigorous benchmarking of modernization approaches. We propose a systematic agentic AI pipeline for generating realistic COBOL programs, combining specification-driven generation with iterative degradation guided by patterns and complexity targets extracted from real production code. Here, realism is understood as structural fidelity to production code as captured by our metrics. We evaluate whether degradation reaches target complexity levels while preserving business behavior, and examine the limits of the approach, across three programs from distinct business domains. Results show the pipeline reliably produces syntactically valid programs and moves them toward realistic structural complexity. However, preserving business behavior is not always achieved by construction, and targeting structural metrics independently of business logic risks producing programs whose complexity does not reflect a plausible maintenance history. We discuss these limitations and outline a more realistic alternative as a direction for future work, generating legacy programs from scratch along a simulated development history.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
- Journal
- The 2nd International Workshop on AI for Software Modernization (AISM 2026) co-located with Automated Software Engineering Conference, Oct 2026, Munich (Allemagne), Germany
Related papers
Scaffold, Fill, Verify: An Industrial Experience Report on Agentic Generation of Integration Pipelines
Shared title terminologycs.SELuciano Lucindo Chaves, Renan Novais, Pablo Calvache
Teach-to-Crash: A Closed-Loop Student-Teacher LLM Framework for Collision-Inducing Test Scenario Generation
Shared title terminologycs.SEZaid Ghazal, Khouloud Gaaloul, Bruce Maxim
A Closed-Loop Control Architecture for Reliable Constraint Satisfaction in LLM Text Generation
Shared title terminologycs.SEQuan Zhou, Shahbaz Siddeeq, Mika Saari et al.
The Obsolescence of High-Level Code: Agentic Generation from Semantic Artifacts
Shared title terminologycs.SEDi Santi Eduardo
A Study of the Reliability of Agentic AI-Generated Programs
Shared title terminologycs.SEAyesha Shafique, Barton P. MIller, Elisa R. Heymann
Horizontal Models, Vertical Systems: A Position on Where Domain Knowledge Belongs in Enterprise Agents
Shared title terminologycs.SELuciano Lucindo Chaves