International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece
Time: Monday, 26.10
Room: Room 3
Authors: MohammadHadi Dehghani, Stefan Klikovits, Manuel Wimmer
Abstract: The complexity of reliable digital twin systems is rising as they combine heterogeneous models, including formal design artifacts, operational models derived from physical-twin data, and knowledge-representation structures for integration. It is important to maintain the alignment of these models as cyber-physical systems evolve. Graph-based model transformations provide a reliable way to propagate consistent changes across these abstractions; however, authoring correct transformation rules in such frameworks remains expert-intensive. Defects usually show up after the authoring phase, during validation and testing, when transformation rules fail to match intended configurations, turn out to be inapplicable on realistic instances, or produce transformed models that do not conform to the metamodel in terms of well-formedness or semantic constraints. Detecting such failures may require executing rules on many instances beyond a few hand-crafted examples, yet current practice still relies heavily on manual trial-and-error. Building reliable transformation rule sets from high-level intent therefore remains difficult as model heterogeneity increases and the system evolves. We propose an agentic transformation recommender that treats transformation rule generation as a recommendation problem. Given an Ecore metamodel, an exemplar instance, and a natural-language description of the intended change, an LLM guided agent proposes candidate Henshin rules and iteratively refines them through a validation loop: structural checks, semantic conformance to the metamodel. It automatically apply tests that verify conformance, executability, and validity of the resulting models on concrete instances. In this way, generative assistance is directed toward inspectable and testable transformation artifacts rather than opaque suggestions. The proof-of-concept is realized as an automated authoring loop. It analyzes the metamodel, generates or revises Henshin rule modules, and submits each candidate to the validation sequence; diagnostics drive repair guided by common transformation patterns and known failure modes. Prior work reduces manual authoring by demonstration, example inference, or mining edit operations from model repositories; our focus is the complementary case in which practitioners state alignment intent without recorded transformation examples or version histories. Once a rule passes all gates, it enters a reusable transformation library for downstream digital twin engineering workflows.