Can LLMs Turn Design Discussions into Architectural Tests? An Empirical Study with Codestral

This is a preprint version of the contribution submitted to ECSA 2026. It has not undergone peer review or post-submission revisions.Architectural drift remains a persistent challenge as system implementations often diverge from their intended designs. While detection tools exist, they require formalizing constraints in specific languages—a process that is often costly and time-consuming. Meanwhile, much architectural knowledge emerges during development through informal discussions, such as pull request comments on platforms like GitHub, where design rules are expressed in natural language but remain disconnected from automated verification.In this paper, we explore using Large Language Models (LLMs) to bridge this gap by transforming informal artifacts into executable representations. We conducted an empirical study using the Codestral model to convert 10,500 design rules extracted from GitHub into Java tests via the ArchUnit library. We evaluated the generated checks based on syntactic validity, API usage, semantic alignment, and violation detection.Our results show that the model consistently produces syntactically valid code, with 67% of the outputs showing partial or full alignment with the original rule. Additionally, 58% of the checks correctly applied the ArchUnit API. These findings highlight the significant potential of LLMs to turn informal architectural knowledge into executable verification, while also identifying key reliability challenges that remain for future improvement.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-10
DOI
https://doi.org/10.5281/zenodo.22685716
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Can LLMs Turn Design Discussions into Architectural Tests? An Empirical Study with Codestral

João Brunet, Andrielly de Lima Lucena, Everton L. G. Alves
Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
preprint

Can LLMs Turn Design Discussions into Architectural Tests? An Empirical Study with Codestral

João Brunet, Andrielly de Lima Lucena, Everton L. G. Alves
preprint en

Abstract

This is a preprint version of the contribution submitted to ECSA 2026. It has not undergone peer review or post-submission revisions.Architectural drift remains a persistent challenge as system implementations often diverge from their intended designs. While detection tools exist, they require formalizing constraints in specific languages—a process that is often costly and time-consuming. Meanwhile, much architectural knowledge emerges during development through informal discussions, such as pull request comments on platforms like GitHub, where design rules are expressed in natural language but remain disconnected from automated verification.In this paper, we explore using Large Language Models (LLMs) to bridge this gap by transforming informal artifacts into executable representations. We conducted an empirical study using the Codestral model to convert 10,500 design rules extracted from GitHub into Java tests via the ArchUnit library. We evaluated the generated checks based on syntactic validity, API usage, semantic alignment, and violation detection.Our results show that the model consistently produces syntactically valid code, with 67% of the outputs showing partial or full alignment with the original rule. Additionally, 58% of the checks correctly applied the ArchUnit API. These findings highlight the significant potential of LLMs to turn informal architectural knowledge into executable verification, while also identifying key reliability challenges that remain for future improvement.

Zenodo (CERN European Organization for Nuclear Research)
Universidade Federal de Campina Grande (BR)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.