An AI-Assisted Migration Framework for Transforming Legacy Scientific Applications into Reusable Cloud-Based Workflows
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
An AI-Assisted Migration Framework for Transforming Legacy Scientific Applications into Reusable Cloud-Based Workflows Nafiseh Soveizi∗ , Sven Tesselaar∗ , Hero Robinson Brouwer∗ , Zhiming Zhao∗† ∗ University of Amsterdam, Science Park 904, Amsterdam, the Netherlands
{n.soveizi, z.zhao}@uva.nl
arXiv:2608.23146v1 [cs.SE] 24 Aug 2026
† LifeWatch ERIC Virtual Lab Innovation Center, Science Park 904, Amsterdam, the Netherlands
Abstract—Legacy scientific applications remain valuable research assets but are often tightly coupled to project-specific execution environments, limiting their reuse, reproducibility, and deployment within modern scientific workflow systems and cloud-native Virtual Research Environments (VREs). Existing migration approaches primarily target individual artifacts, such as notebooks or containers, and provide limited support for systematically transforming heterogeneous legacy applications into reusable cloud-native workflows. This paper presents an AIassisted migration framework that combines the Reference Model of Open Distributed Processing (RM-ODP)-guided architectural analysis, Large Language Models (LLMs), and Design Structure Matrix (DSM) analysis. The framework first uses RM-ODP to guide an LLM in identifying reusable workflow components, their interfaces, and execution dependencies from heterogeneous legacy applications. The resulting workflow structure is then iteratively evaluated and refined using DSM analysis. Finally, an LLMbased workflow generator implements the validated workflow components and produces containerized execution environments and executable workflow definitions for deployment in cloudnative workflow systems, including VREs. The framework was evaluated on two legacy scientific applications from different scientific domains. In both cases, the applications were successfully transformed into reusable cloud-native workflows while preserving their original functionality, demonstrating the feasibility of the proposed approach for modernizing legacy scientific software. Index Terms—Scientific Workflows, Legacy Software Migration, Large Language Models, RM-ODP, Design Structure Matrix, Virtual Research Environments
I. I NTRODUCTION Scientific workflows have become the primary mechanism for conducting computational research by orchestrating software components, datasets, and computational resources into reproducible and scalable analysis pipelines [2], [3]. Workflow Management Systems (WMSs) enable researchers to compose, execute, and share workflows across heterogeneous computing infrastructures, while cloud-native Virtual Research Environments (VREs) further integrate workflow execution with shared data, software, and computational resources to support collaborative and reproducible scientific research [2], [7], [9], [33]. Despite these advances, much scientific knowledge remains embedded in legacy research software, including standalone scripts, Jupyter notebooks, simulation codes, and domainspecific applications [16], [17], [19]. These applications were
typically developed for project-specific execution environments rather than reusable workflows. As a result, they often contain tightly coupled implementations, implicit execution logic, hard-coded configurations, and undeclared software dependencies, making them difficult to reuse, reproduce, and migrate to modern cloud-based workflow platforms. Migrating legacy software into reusable workflows is a challenging software engineering task. It requires identifying meaningful workflow components, reconstructing execution and data dependencies, externalizing software environments, and preserving the scientific behaviour of the original application. These activities are largely performed manually, demanding substantial software engineering and domain expertise that limits the scalability of migration across heterogeneous scientific applications. Existing approaches mainly address isolated migration tasks, such as notebook containerization, workflow execution, dependency management, and cloud deployment [21]– [23], [29]. While valuable, they provide limited support for systematically understanding legacy applications, defining reusable workflow boundaries, and automatically generating executable workflows. Recent advances in Large Language Models (LLMs) have demonstrated promising capabilities for software understanding and code generation, yet few approaches combine LLMs with established software architecture principles and objective quality assessment to guide workflow migration. To address this gap, this paper presents an AI-assisted migration framework for transforming legacy scientific applications into reusable cloud-native workflows. The framework first combines the Reference Model of Open Distributed Processing (RM-ODP) [1] with a LLM to identify workflow components, their interfaces, and execution dependencies from heterogeneous legacy artifacts. RM-ODP provides complementary architectural viewpoints that capture the functional, informational, computational, engineering, and technological aspects of legacy applications, enabling the LLM to identify reusable workflow components based on architectural responsibilities rather than source-code structure alone. The resulting workflow structure is then evaluated and iteratively refined using Design Structure Matrix (DSM) analysis [5], which provides an objective assessment of component dependencies,
coupling, and modularity to identify structural issues that guide workflow refinement. Finally, an LLM-based workflow generator implements the validated workflow components and produces containerized workflow artifacts and executable workflow definitions that can be executed in cloud-native workflow platforms, including VREs. The proposed framework is evaluated using two representative legacy applications from different scientific domains: BGIS, an urban digital twin application implemented as standalone Python scripts, and FreVA, a food-resource optimization model implemented as a Jupyter notebook. Together, these case studies demonstrate that the proposed approach can systematically migrate heterogeneous legacy software into reusable cloud-native workflows while preserving the functionality of the original applications. The remainder of this paper is organized as follows. Section II reviews scientific workflow systems, VREs, and existing approaches to legacy workflow migration. Section III presents the research methodology and the proposed framework. Section IV reports the experimental evaluation. Section V discusses the findings, lessons learned, and limitations. Finally, Section VI concludes the paper and outlines future research directions. II. BACKGROUND AND R ELATED W ORK A. Scientific Workflow Systems and Virtual Research Environments Scientific WMSs provide computational environments for composing, executing, and monitoring scientific analyses across distributed computing infrastructures. By explicitly representing computational tasks and their dependencies, they improve reproducibility, portability, and scalability of scientific applications [2], [3]. Mature workflow systems, including Pegasus [2], Galaxy [7], Kepler [4], [6], Nextflow [8], and Snakemake [20], support workflow orchestration, provenance management, and execution on cloud and high-performance computing infrastructures. VREs extend workflow systems by integrating workflow execution with shared datasets, computational resources, metadata management, and collaborative services within a unified research platform. Rather than treating software as isolated scripts, VREs enable researchers to share reusable computational workflows and scientific assets across research communities. Notebook-based scientific computing has become increasingly popular because Jupyter notebooks combine executable code, documentation, and visualisation within a single environment [30]. However, notebooks were originally designed for interactive development rather than scalable and reusable workflow execution. Notebook-as-a-VRE (NaaVRE) addresses this limitation by extending Jupyter notebooks with automatic feature extraction, component containerisation, workflow composition, and cloud-native execution [29]. This enables notebook cells to be transformed into reusable workflow components while preserving the interactive development experience familiar to researchers.
B. Legacy Scientific Workflow Migration Although workflow platforms provide mature execution environments, a large proportion of scientific software is still developed as standalone scripts and Jupyter notebooks. Such applications often contain implicit execution order, hidden execution state, undeclared software dependencies, and tightly coupled implementations that complicate reproducibility, portability, and reuse [31]. Several studies have investigated techniques for migrating notebooks to cloud environments. Cunha et al. proposed context-aware execution migration to preserve notebook state during migration, while demonstrating that block-cell migration outperforms single-cell migration for computationally intensive notebooks [32]. Duan and Dennis introduced Jup2Kub, which translates Jupyter notebook pipelines into fault-tolerant distributed deployments on Kubernetes [34]. NaaVRE further supports notebook migration by automatically extracting workflow components from notebook cells and containerising them for execution within collaborative cloud environments [29]. These approaches considerably improve notebook portability and execution. However, they primarily assume that suitable workflow boundaries are already known or are manually defined. Determining how legacy scientific software should be decomposed into reusable workflow components remains largely dependent on expert knowledge. C. Architectural Analysis for Workflow Generation Software architecture recovery has long been used to understand and modernise legacy software systems before restructuring or migration. RM-ODP provides a standard architectural framework that analyses distributed systems from complementary enterprise, information, computational, engineering, and technology viewpoints [1]. Considering these viewpoints enables software systems to be understood from multiple architectural perspectives rather than solely through their sourcecode structure. Dependency analysis provides another complementary perspective for software modularisation. DSM represents dependencies between software elements and has been widely applied to identify cohesive modules, evaluate coupling, and support software restructuring [5], [28]. Because DSM provides quantitative measures of dependency structure, it offers an objective basis for assessing alternative software decompositions. Recent advances in LLMs have demonstrated remarkable capabilities for program understanding, code summarisation, documentation generation, and software transformation. These capabilities make LLMs promising tools for analysing heterogeneous legacy software artefacts and assisting workflow generation. Despite these advances, workflow migration, software architecture recovery, and AI-assisted software engineering have largely evolved as separate research directions. Existing notebook migration approaches primarily focus on execution and deployment, architectural methods recover software structure without generating executable workflows, and LLM-based
software engineering generally lacks explicit architectural guidance and objective structural quality assessment. Consequently, there remains a gap between understanding legacy scientific software and automatically transforming it into reusable scientific workflows. This paper addresses this gap by integrating RM-ODP-guided architectural analysis, LLM-based workflow decomposition, and DSM-based structural quality assessment into a single iterative framework for generating reusable workflows from legacy scientific applications. III. R ESEARCH M ETHODOLOGY This study adopts a Design Science Research (DSR) methodology to develop an AI-assisted framework for migrating legacy scientific applications into reusable cloud-native workflows. Rather than proposing the framework directly, the architecture was systematically derived by identifying the requirements of legacy workflow migration and selecting appropriate software engineering methods to satisfy those requirements. The overall research methodology is illustrated in Fig. 1. The methodology comprises two stages. First, it analyses the challenges of migrating legacy scientific applications to derive the functional and non-functional requirements for the framework. Second, it translates these requirements into a conceptual migration framework by integrating complementary software engineering methods and AI techniques. The resulting design is presented as the proposed AI-assisted Legacy Workflow Migration Framework in the following section. A. Requirement Analysis The first stage derives the design requirements for the proposed AI-assisted legacy workflow migration framework by analysing recurring challenges in legacy workflow migration, scientific workflow engineering, and cloud-based VREs. Existing approaches are limited by incomplete architectural documentation, implicit software dependencies, tightly coupled implementations, limited component modularity, poor reproducibility, and largely manual migration processes that hinder the decomposition of legacy scientific applications into reusable workflow components. Based on these challenges, functional and non-functional requirements were derived to guide the framework design. The functional requirements define the capabilities needed for AI-assisted workflow migration, while the non-functional requirements specify the desired quality attributes of the resulting reusable workflows. Table I summarizes the identified requirements. B. Conceptual Design The second stage translates the identified migration requirements into a conceptual framework by integrating complementary software engineering methods that collectively satisfy the functional and non-functional requirements derived in the previous stage. Instead of relying on a single migration technique, the conceptual design integrates architectural analysis,
TABLE I F UNCTIONAL AND NON - FUNCTIONAL REQUIREMENTS DERIVED FOR LEGACY WORKFLOW MIGRATION . ID Requirement Functional Requirements FR1 Analyse legacy applications to extract architectural information, computational tasks, execution flow, and software dependencies. FR2 Automatically decompose legacy applications into reusable workflow components. FR3 Preserve the scientific functionality and execution semantics of the original application throughout migration. FR4 Generate executable workflow components and workflow specifications suitable for containerization and deployment in cloud-based VREs. FR5 Support iterative workflow refinement based on structural quality assessment and expert feedback. Non-functional Requirements NFR1 Minimize manual migration effort through AI-assisted automation. NFR2 Maximize the reusability of generated workflow components. NFR3 Produce modular workflow components with low coupling and high cohesion. NFR4 Ensure reproducible execution by explicitly capturing software dependencies and runtime environments. NFR5 Support scalable, cloud-native workflow deployment. NFR6 Provide transparent and traceable migration decisions to support expert validation and iterative refinement.
AI-assisted workflow decomposition, structural quality assessment, expert validation, and automated workflow generation into a unified migration process. To analyse and decompose legacy scientific applications (FR1, FR2, and NFR1), the framework incorporates an RMODP-Guided LLM Workflow Decomposer. Because legacy applications are often poorly documented and lack explicit architectural descriptions, direct workflow extraction from source code alone is error-prone. The decomposer integrates the five RM-ODP viewpoints (Enterprise, Information, Computational, Engineering, and Technology) into the LLM reasoning process, enabling the identification of scientific objectives, information flow, computational responsibilities, deployment characteristics, and technology dependencies before deriving workflow components, interfaces, and execution dependencies. This architecture-guided decomposition improves consistency while reducing manual migration effort. To improve structural quality (FR5, NFR2, and NFR3), the framework employs a DSM-Based Quality Assessor. Although LLMs can generate meaningful workflow decompositions, they do not guarantee desirable software engineering properties such as low coupling, high cohesion, appropriate component granularity, or minimal dependencies. The quality assessor evaluates these structural properties using DSM analysis and produces a quality report that supports iterative refinement of the workflow decomposition. To preserve scientific correctness and ensure transparent migration decisions (FR3 and NFR6), the framework incorporates Human Validation. Domain experts review the workflow after decomposition to verify that it preserves the functionality and execution semantics of the original application, and again after DSM assessment to evaluate both the workflow and the
Fig. 1. Overview of the two-stage research methodology used to derive the proposed AI-assisted Legacy Workflow Migration Framework
generated quality report. When revisions are required, expert feedback and the DSM report are returned to the RM-ODPGuided LLM Workflow Decomposer for iterative refinement. Finally, the framework addresses workflow implementation (FR4, NFR4, and NFR5) through an LLM-Based Workflow Generator. Separating workflow design from implementation, the generator receives the validated workflow specification, including the approved workflow schema, mapped legacy modules, component descriptions, interfaces, software dependencies, runtime libraries, and original artifacts. It then generates executable workflow components together with the workflow definition. By explicitly incorporating dependency and environment information, the generated workflow supports reproducible execution while producing containerizable components suitable for deployment within cloud-based VREs. Together, these design choices satisfy the identified functional and non-functional requirements and provide the conceptual basis for the migration framework described in the following section. IV. P ROPOSED AI-A SSISTED L EGACY W ORKFLOW M IGRATION F RAMEWORK Figure 2 illustrates the proposed AI-assisted Legacy Workflow Migration Framework. It comprises three software components: the RM-ODP-Guided LLM Workflow Decomposer, the DSM Quality Assessor, and the LLM-Based Workflow Generator, connected through two expert validation checkpoints that support iterative refinement. The functionality of each component is described in the following subsections. A. RM-ODP-Guided LLM Workflow Decomposer The migration process begins with the RM-ODP-Guided LLM Workflow Decomposer, which derives a reusable workflow schema from heterogeneous legacy artifacts using RMODP-guided LLM reasoning. Rather than introducing RMODP as a separate software component, the five RM-ODP viewpoints are embedded directly into the LLM prompt to
Fig. 2. Architecture of the proposed AI-assisted legacy workflow migration framework.
support architectural reasoning during workflow decomposition. The decomposer receives legacy artifacts, including source code, Jupyter notebooks, configuration files, and documentation, together with descriptions of the five RM-ODP viewpoints and the expected workflow-schema format. The prompt guides the LLM to analyse the application from complementary architectural perspectives, including its scientific purpose and stakeholder objectives (Enterprise viewpoint), information flow (Information viewpoint), functional responsibilities and execution dependencies (Computational viewpoint), deployment and orchestration concerns (Engineering viewpoint), and software technologies and runtime environments (Technology viewpoint). Considering these viewpoints enables the LLM to identify workflow components according to their scientific responsibilities rather than the implementation structure of the source code. The output is a candidate workflow schema describing each workflow component, including its identifier, responsibility, mapped legacy modules, inputs, outputs, execution dependencies, required software libraries, container suitability, and implementation metadata for subsequent workflow generation. Before DSM-based quality assessment, the candidate workflow schema undergoes expert validation to verify that it correctly represents the scientific behaviour of the original application. Domain experts review the identified workflow
components, information flows, execution dependencies, deployment considerations, and component boundaries for completeness, scientific correctness, and traceability to the legacy artifacts. If revisions are required, the workflow schema is regenerated using expert feedback while preserving previously validated design decisions; otherwise, the validated workflow schema proceeds to the DSM Quality Assessor. B. DSM Quality Assessor Once the candidate workflow schema has passed the initial scientific validation, it is analysed by the DSM Quality Assessor, which evaluates the structural quality of the proposed workflow decomposition using DSM analysis. The quality assessor analyses dependency relationships among workflow components and evaluates software engineering properties including coupling, cohesion, cyclic dependencies, decomposition granularity, and overall dependency structure. It then produces a structured DSM Quality Report describing architectural weaknesses together with recommendations for improving the workflow decomposition. Unlike the workflow decomposer, it evaluates the workflow schema without modifying either the schema or its implementation. Following the assessment, domain experts review both the workflow schema and the DSM Quality Report to determine whether the decomposition satisfies the required scientific and software engineering quality criteria. If refinement is required, the report and expert feedback are returned to the RM-ODP-Guided LLM Workflow Decomposer, which revises the workflow schema while preserving previously validated scientific functionality. This process is repeated until the workflow schema is approved from both scientific and architectural perspectives. The approved workflow schema, together with the validated component descriptions, interfaces, execution dependencies, software libraries, and implementation metadata, is then passed to the LLM-Based Workflow Generator. C. LLM-Based Workflow Generator The LLM-Based Workflow Generator transforms the validated workflow schema into an executable reusable scientific workflow. The generator receives the approved workflow schema together with the mapped legacy source modules, component descriptions, declared inputs and outputs, execution dependencies, required software libraries, and the original legacy artifacts. Using these inputs, the LLM generates the implementation of each workflow component while preserving the validated architecture. It also produces the corresponding workflow definition specifying the execution order and dependency relationships among the generated components. By separating workflow decomposition from implementation, the framework ensures that scientific validation and structural quality assessment are completed before code generation, preventing architectural errors from propagating into the executable workflow. The resulting workflow consists of executable components and the corresponding workflow definition, ready for deployment within cloud-based VREs.
TABLE II C HARACTERISTICS OF THE EVALUATED LEGACY SCIENTIFIC APPLICATIONS . Case
Domain
Artifact
BGIS [11]
Source LOC 483
Urban digital Python twin / blue-green scripts infrastructure siting FreVA Food-loss-to-chemical Jupyter 50 (Food2Chemical) resource optimisation notebook [12] Note: Source LOC denotes the number of lines of source code in the original legacy application.
V. R ESULTS The proposed migration approach was evaluated using the two representative legacy scientific applications summarized in Table II. The selected case studies differ in both their scientific objectives and software structures, providing complementary scenarios for evaluating the proposed migration approach. All LLM-assisted stages were implemented using GPT-4o (gpt-4o-2024-11-20) through the OpenAI API using the default generation settings. The same model configuration was used for both case studies and across all refinement iterations. The decomposition prompts included the legacy artifacts, the five RM-ODP viewpoint descriptions, and the required workflow-schema format. During refinement, the previous workflow schema, DSM Quality Report, and expert feedback were additionally provided to the LLM. The evaluation considered four aspects. First, the iterative refinement process was assessed by analysing how feedback improved the generated workflow decomposition. Second, the final LLM-generated workflows were compared with manually constructed reference workflows. These reference workflows were used only for evaluation and were not provided to the LLM or used to guide the refinement process. Third, the functional correctness of the migrated workflows was validated by comparing their outputs with those of the original applications. Finally, workflow component reusability was evaluated using the reusability metrics proposed by Singh and Tomar [10]. A. Workflow Refinement Across Iterations The proposed framework supports iterative workflow refinement through feedback generated at Decision Point 2. After each workflow generation step, the DSM-based quality assessment evaluates the candidate workflow and produces recommendations when the workflow does not satisfy the quality criteria. These recommendations are incorporated into the next generation iteration until an acceptable workflow is obtained or the maximum number of iterations is reached. Table III summarizes the refinement process for the two case studies. B. Generated Reusable Workflows The proposed migration methodology successfully transformed both legacy applications into reusable containerized workflows executable in the NaaVRE Virtual Lab. NaaVRE
TABLE III W ORKFLOW REFINEMENT ACROSS ITERATIONS . Case BGIS
FreVA
Iter. 1
GT # 5
Gen. # 6
2
5
5
1
3
5
Issues Identified One additional workflow component and an incorrect dependency between two components detected by DSM analysis. No critical semantic or structural inconsistencies remained. Several scientific responsibilities assigned to incorrect workflow components.
Refinement Performed Merged redundant component and corrected dependency relationships. –
Reassigned component responsibilities based on semantic feedback. 2 3 2 Semantic decomposition accepted, but DSM detected Separated solver responsibilities merged solver responsibilities and suboptimal compoand refined component boundnent boundaries. aries. 3 3 3 No semantic or structural inconsistencies detected. – Note: GT # = number of reference workflow components; Gen. # = number of generated workflow components.
was selected as the target platform because it supports cloudnative workflow orchestration using reusable workflow components. Despite differences in implementation and scientific domain, both applications were decomposed into modular components with explicit interfaces and execution dependencies. Table IV compares the manually constructed reference workflows with the final LLM-generated workflows. BGIS, originally implemented as two standalone Python scripts, was decomposed into five workflow components corresponding to the major stages of the blue-green infrastructure analysis pipeline. FreVA, implemented as a Jupyter notebook, was decomposed into three workflow components representing data loading, optimization, and result generation. The generated workflows closely matched the reference decompositions for both case studies. In FreVA, the optimization model construction and solver execution were combined into a single workflow component because the internal Pyomo model cannot be reliably transferred between containers. This design preserves correct execution while maintaining workflow reusability. Each generated workflow exposes configurable inputs and parameters through explicit component interfaces rather than relying on hard-coded values. This allows the same workflow to be reused with different datasets, optimization objectives, and execution settings without modifying the underlying source code. Consequently, both applications were transformed from standalone research software into reusable scientific workflows that can be shared, executed, and reproduced through the Virtual Lab. C. Workflow Validation To evaluate whether the migration preserved the scientific functionality of the original applications, the outputs generated by the reusable workflows were compared with those produced by the legacy implementations. For BGIS, the migrated workflow was executed on both a small validation dataset and a real-world dataset containing approximately 72,000 land parcels. The generated GeoPackage files, feasibility classifications, optimization results, and visualizations were identical to those of the original Python
Status Rejected Accepted Rejected Rejected Accepted
implementation. For FreVA, the migrated workflow reproduced the same optimization objective values and generated identical reports for both supported optimization objectives. In both case studies, no differences were observed between the outputs of the legacy applications and the migrated workflows, confirming that the proposed approach preserved the scientific functionality and execution semantics of the original applications despite changes to the execution environment and workflow architecture. D. Component Reusability Evaluation In addition to comparing the generated workflows with the reference decompositions, we evaluated the reusability of the generated workflow components using the model proposed by Singh and Tomar [10]. The evaluation considers four quality attributes: Interface Complexity (IC), Understandability (UC), Rate of Component Customisability (RCC), and Reliability (R). Because the original model was developed for black-box software components, the metrics were adapted to workflow components. IC measures the complexity of a component interface based on its inputs, outputs, and external dependencies, where lower values indicate simpler interfaces. UC evaluates the completeness and clarity of the component specification. RCC measures the proportion of configurable execution parameters relative to hard-coded values, reflecting the ease with which a component can be adapted to different workflows. The final metric measures the proportion of successful executions during workflow validation. The four metrics were computed for every component in the reference and LLM-generated workflows and averaged to obtain workflow-level scores. Table V summarizes the results. VI. D ISCUSSION The evaluation demonstrates that the proposed RM-ODPguided workflow migration approach can successfully transform legacy scientific applications with different implementation styles into reusable cloud-native workflows. Despite differences in programming paradigm, application domain, and software structure, both BGIS and FreVA were decomposed into workflow components that reproduced the behaviour of
TABLE IV C OMPARISON BETWEEN THE MANUALLY CONSTRUCTED ( GROUND - TRUTH ) WORKFLOWS AND THE FINAL LLM- GENERATED WORKFLOWS . Case BGIS
Ground-Truth Components Data Loader, Land Cover Mapper, Feasibility Checker, Output Generator, Optimizer Data Loading, Optimization Model, Result Generation
FreVA
TABLE V AVERAGE COMPONENT REUSABILITY METRICS FOR THE REFERENCE AND LLM- GENERATED WORKFLOWS . Case BGIS FreVA
Workflow Reference LLM Reference LLM
IC↓ 0.23 0.25 0.19 0.20
UC↑ 0.91 0.89 0.94 0.92
RCC↑ 0.82 0.80 0.86 0.84
R↑ 1.00 1.00 1.00 1.00
the original applications while exposing explicit interfaces suitable for workflow composition. The workflow refinement results further indicate that combining LLM-based generation with iterative DSM-based quality assessment improves the quality of the generated workflow structures. Initial workflow decompositions contained structural issues such as inappropriate component boundaries and incorrect dependencies. Incorporating feedback from the DSM assessment and expert validation enabled the LLM to progressively refine the decomposition until these issues were resolved. The final workflows also showed close agreement with the independently constructed reference workflows, which were used only for evaluation. This suggests that architectural quality assessment provides an effective feedback mechanism for guiding LLM-based workflow generation rather than relying on a single-generation step. The evaluation also highlights that successful migration depends on more than identifying computational modules. Across both case studies, migration required resolving implicit assumptions embedded in legacy software, including undeclared software dependencies, hard-coded filesystem paths, machine-specific configuration, and hidden execution dependencies. These issues are rarely represented explicitly in source code but substantially affect reproducibility once applications are executed on shared cloud infrastructures. Consequently, migration should be viewed as both a software decomposition problem and an environment reconstruction problem. A. Lessons Learned Several observations consistently emerged from the migration of both applications. First, reproducible execution requires explicit specification of the software environment. Legacy scientific applications frequently assume that libraries and external tools are already available on the developer’s machine. Containerization therefore becomes not only a deployment mechanism but also a way to preserve the complete execution environment required for reproducibility. Second, legacy applications commonly embed assumptions about the local filesystem through hard-coded paths and
LLM-Generated Components DataParser, LandUseLoader, FeasibilityChecker, DataIntegrator, OptimizationSolver DataProcessing, ModelBuilder, ResultDisplay
Equivalent Yes Yes
machine-specific configuration. Replacing these assumptions with parameterized workflow inputs and persistent cloud storage substantially improves workflow portability and allows the same workflow to execute across different research infrastructures without modifying the source code. Third, meaningful workflow decomposition should reflect scientific responsibilities rather than source-code structure alone. In BGIS, the identified workflow components correspond to stages of the urban planning analysis, while FreVA was decomposed according to the logical optimization process instead of notebook cell boundaries. This supports the use of RM-ODP viewpoints for identifying reusable workflow components from complementary architectural perspectives rather than purely syntactic code analysis. Finally, workflow decomposition must balance modularity with practical implementation constraints. Although finergrained components generally improve reuse, tightly coupled computations cannot always be separated without introducing unnecessary complexity or excessive communication overhead. For example, the optimization model construction and solver execution in FreVA remained within a single workflow component because the internal Pyomo model could not be reliably serialized across container boundaries. This illustrates that architectural decomposition should consider both scientific modularity and execution constraints. B. Limitations This work has several limitations. First, the evaluation includes two representative legacy scientific applications. Although they originate from different scientific domains and represent different legacy artifacts (Python scripts and Jupyter notebooks), additional case studies are needed to evaluate the generality of the proposed approach. Second, the reference workflows used for evaluating generation accuracy were manually constructed, introducing some degree of expert judgement. Third, the proposed framework currently relies on a human expert to review workflow decompositions during iterative refinement. Reducing this dependency through more automated architectural validation represents an important direction for future work. Finally, the evaluation focused on functional correctness, workflow quality, and execution performance; future studies should also investigate long-term maintainability and reuse by independent researchers. VII. C ONCLUSION AND F UTURE W ORK This paper presented an AI-assisted framework for migrating legacy scientific applications into reusable cloudnative workflows. The framework combines RM-ODP-guided architectural analysis, LLM-based workflow decomposition,
and DSM-based quality assessment to automate workflow migration while iteratively improving workflow quality. The evaluation on two legacy scientific applications demonstrated that the migrated workflows preserved the functionality of the original applications while producing reusable workflow components suitable for cloud execution. Iterative DSM-guided refinement consistently improved agreement with reference workflows and enhanced workflow modularity, highlighting the value of combining architectural guidance with LLM-based generation. Future work will evaluate the framework on a broader range of legacy applications and programming languages to assess its generality. Additional directions include reducing reliance on expert feedback through automated architectural validation and self-refinement, and supporting richer workflow constructs, such as loops and conditional execution, together with interoperability across multiple scientific workflow platforms. ACKNOWLEDGMENT This research was partially supported by the Dutch Research Council (NWO) Large-Scale Research Infrastructures (LSRI) programme for the LTER-LIFE infrastructure (grant 184.036.014), LifeWatch ERIC, and the European Union through the projects ENVRI-Hub Next (101131141), EVERSE (101129744), OSCARS (101129751), and BMD (101181294). R EFERENCES [1] ISO/IEC, “Information Technology — Open Distributed Processing (RM-ODP): Reference Model,” ISO/IEC 10746, 1998. [2] E. Deelman et al., “Pegasus, a workflow management system for science automation,” Future Generation Computer Systems, vol. 46, pp. 17–35, 2015. [3] E. Deelman et al., “The future of scientific workflows,” International Journal of High Performance Computing Applications, vol. 32, no. 1, pp. 159–175, 2018. [4] B. Ludäscher et al., “Scientific workflow management and the Kepler system,” Concurrency and Computation: Practice and Experience, 2006. [5] S. D. Eppinger and T. R. Browning, Design Structure Matrix Methods and Applications. MIT Press, 2012. [6] I. Altintas, C. Berkley, E. Jaeger, M. Jones, B. Ludaescher, and S. Mock, “Kepler: An extensible system for design and execution of scientific workflows,” SSDBM, 2004. [7] J. Goecks, A. Nekrutenko, and J. Taylor, “Galaxy: A comprehensive approach for supporting accessible, reproducible, and transparent computational research,” Genome Biology, 2010. [8] P. Di Tommaso et al., “Nextflow enables reproducible computational workflows,” Nature Biotechnology, 2017. [9] C. Goble et al., “myExperiment: a repository and social network for the sharing of bioinformatics workflows,” Nucleic Acids Research, 2010. [10] P. Singh and P. Tomar, “A Reusability Assessment Model for Black-Box Software Components,” International Journal of Computer Applications, vol. 87, no. 9, pp. 1–6, 2014. [11] BGISHub. BGIS: Blue-Green Infrastructure Siting. GitHub repository. Available: https://github.com/bgishub/BGIS [12] W. Jun et al. Food2Chemical: Food-Loss-to-Chemical Resource Optimisation. GitHub repository. Available: https://github.com/weiyujun18/ Food2Chemical [13] J. Freire et al., “CrowdLabs: social analysis and visualization for the sciences,” SSDBM, 2011. [14] W. Michener et al., “DataONE: Data Observation Network for Earth,” Ecological Informatics, 2012. [15] T. Malik et al., “BioModels and Virtual Research Environments,” 2020. [16] G. Wilson et al., “Best practices for scientific computing,” PLoS Biology, 2014.
[17] J. Hannay et al., “How do scientists develop and use scientific software?” ICSE Workshop on Software Engineering for Computational Science, 2009. [18] D. Katz, “Transitive credit as a means to address social and technological concerns stemming from citation and attribution of digital products,” Journal of Open Research Software, 2014. [19] J. Carver et al., “The future of research software engineering,” Computing in Science & Engineering, 2022. [20] J. Köster and S. Rahmann, “Snakemake—a scalable bioinformatics workflow engine,” Bioinformatics, vol. 28, no. 19, pp. 2520–2522, 2012. [21] Nteract, “Papermill: Parameterizing and Executing Jupyter Notebooks,” GitHub, 2024. [22] Project Jupyter, “Binder 2.0: Reproducible, interactive, sharable environments for science at scale,” 2018. [23] T. Simko et al., “REANA: Reusable research data analyses,” EPJ Web of Conferences, 2019. [24] D. Merkel, “Docker: Lightweight Linux Containers for Consistent Development and Deployment,” Linux Journal, 2014. [25] D. V. Steward, “The Design Structure System: A Method for Managing the Design of Complex Systems,” IEEE Transactions on Engineering Management, 1981. [26] Z. Zhao et al., “Notebook-as-a-Virtual Research Environment (NaaVRE),” 2023. [27] P. Goble et al., “WorkflowHub: Community Framework for Scientific Workflows,” 2021. [28] T. R. Browning, “Applying the Design Structure Matrix to System Decomposition and Integration Problems: A Review and New Directions,” IEEE Transactions on Engineering Management, vol. 48, no. 3, pp. 292–306, Aug. 2001. [29] Z. Zhao, S. Koulouzis, M. de Boer, J. Zhou, and H. Wang, “Notebookas-a-VRE: From Private Notebooks to a Collaborative Cloud Virtual Research Environment,” in Proc. IEEE 18th International Conference on e-Science (e-Science), Salt Lake City, UT, USA, 2022. [30] T. Kluyver et al., “Jupyter Notebooks—A Publishing Format for Reproducible Computational Workflows,” in Positioning and Power in Academic Publishing: Players, Agents and Agendas, F. Loizides and B. Schmidt, Eds. Amsterdam, The Netherlands: IOS Press, 2016, pp. 87–90. [31] J. F. Pimentel, L. Murta, V. Braganholo, and J. Freire, “A Large-Scale Study About Quality and Reproducibility of Jupyter Notebooks,” in Proc. 16th International Conference on Mining Software Repositories (MSR), Montreal, QC, Canada, 2019, pp. 507–517. [32] J. Cunha, M. W. S. Oliveira, J. C. Campos, and J. Saraiva, “ContextAware Execution Migration Tool for Data Science Jupyter Notebooks on Hybrid Clouds,” in Proc. IEEE/ACM 21st International Symposium on Cluster, Cloud and Internet Computing (CCGrid), Melbourne, Australia, 2021. [33] M. D. Wilkinson, M. Dumontier, I. J. Aalbersberg, G. Appleton, M. Axton, A. Baak, N. Blomberg, J.-W. Boiten, L. B. da Silva Santos, P. E. Bourne et al., “The FAIR Guiding Principles for Scientific Data Management and Stewardship,” Scientific Data, vol. 3, no. 1, Art. no. 160018, 2016. doi: 10.1038/sdata.2016.18. [34] J. Duan and S. Dennis, “Jup2Kub: Algorithms and a System to Translate a Jupyter Notebook Pipeline to a Fault Tolerant Distributed Kubernetes Deployment,” arXiv preprint arXiv:2311.12308, 2023, doi: 10.48550/arXiv.2311.12308.
Related documents
- AI-Powered Cloud Migration: Automating the Transition from On-Premises to Cloud Environments with Zero Downtime#81625
- DataFlow: An LLM-Driven Framework for Unified Data Preparation and Workflow Automation in the Era of Data-Centric AI#192040
- Convergence of Cloud-Native Architectures and AI#694957
- Structuring agentic AI for HPC code modernization#986272
- 7.3. AI Pipelines for the Edge-to-cloud Continuum#1971
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive