ArchJIT: Just-in-Time Warning of Architecture Smells via Incremental Dependency Graph Evolution and Learning-Based Prioritization
Software architecture tends to degrade during evolution, yet most studies analyze architectural decay offline at the version level. This limits early intervention when developers submit changes. We propose ArchJIT, a just-in-time warning framework for architecture smells that combines incremental dependency graph evolution with learning-based warning prioritization. ArchJIT updates a package-level dependency graph from changed source files, detects commit-induced smell events, generates warning candidates, and uses a lightweight binary retention model to select final warnings. We evaluate ArchJIT on multiple open-source Java repositories for detection effectiveness, incremental efficiency, structural discriminability, warning usefulness, and retention learnability. ArchJIT identifies smell-inducing commits at commit granularity, remains highly consistent with full reconstruction while reducing analysis cost, and emits concise warnings with interpretable evidence. Using calibrated retention labels, the retention model achieves 0.91 accuracy and a 0.89 F1-score on held-out candidates, and a small-scale expert study shows that final warnings are understandable and often comment-worthy. These results suggest that ArchJIT is a practical AI-for-software-engineering method for commit-time architecture warning.
Authors
- Hao Zhou (ORCID: https://orcid.org/0000-0002-0717-6784)
- Tong Wang (ORCID: https://orcid.org/0000-0003-2365-2039)
- Haiyang Hu
Institutions
- Anhui University of Technology (CN)
Publication Details
- Journal
- Electronics
- Published
- 2026-06-17
- DOI
- https://doi.org/10.3390/electronics15122682
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Anhui Provincial Department of Education