Conference paper
Cite …

Architecture in the Cradle: Early Warning of Architectural Decay with ArchGuard

Haoyu Liu ORCID iD icon 1, Dominik Fuchß ORCID iD icon 1, Sophie Corallo ORCID iD icon 1, Maximilian Hummel ORCID iD icon 1, Jan Keim ORCID iD icon 1 and Tobias Hey ORCID iD icon 1
1 Institute of Information Security and Dependability (KASTEL), Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000191263
Postprint published on Mar 9, 2026
Abstract

Architectural decay can manifest as the evolution of architectural smells, degrading integrity, and increasing maintenance costs. Existing techniques capture smells post hoc or predict on component level, acting too late or on too coarse a granularity. We investigate if the risk of introducing architectural smells can already be predicted when issues are opened. Thus, we propose an issue-level prediction approach that utilizes the semantic representations of Large Language Models (LLMs). To enable training and evaluation, we construct a dataset from three GitLab-hosted projects by linking issues to smells via smell-inducing changes. On this dataset, we train classifiers to identify high-risk issues and conduct an empirical study comparing seven different representations and nine classifiers. Our best-performing classifier (SVM with OpenAI embeddings) achieves F1-scores of up to 0.506, with a recall of about 0.74. This means that our approach can identify approximately 74% of smell-inducing issues before implementation begins. When design alternatives are still being considered. Our approach provides early warnings of potential architectural risks. This work shifts from reactive remediation to proactive quality assurance, raising awareness of potential architectural risks.