Article Open Access

Automating Institutional Knowledge: A Dynamic, AI-Driven Knowledge Graph Architecture for Safety-Critical Codebases

Parth Govind Vanparia

Abstract


Safety-critical software systems in the automotive, aerospace, and industrial sectors have grown to millions of lines of source code, making traditional approaches to software documentation, architecture comprehension, and knowledge transfer increasingly impractical. As continuous integration and rapid release cycles accelerate software evolution, organizations face persistent challenges related to technical drift, loss of domain expertise, fragmented architectural knowledge, and the dependence on a small number of senior developers. Conventional code discovery techniques based on lexical or keyword searches provide limited support because they identify only literal text rather than the underlying functional semantics of software artifacts. This paper proposes the Dynamic Code Wiki, an intelligent software knowledge architecture that automatically transforms large codebases into continuously evolving, semantically searchable knowledge repositories. The proposed framework integrates Abstract Syntax Tree (AST) parsing, vector-based semantic embeddings, retrieval-augmented generation (RAG), and automated knowledge graph construction to generate structured documentation directly from source code and development artifacts. The architecture further strengthens compliance with functional safety standards by automatically linking software requirements to implementation components and performing call-graph analysis to identify subsystems affected by code modifications. In addition, engineering knowledge embedded within commit messages, code review discussions, defect reports, and software evolution history is preserved as a permanent, searchable organizational knowledge graph independent of individual developers. By combining semantic code understanding with automated documentation and traceability, the proposed framework significantly improves software maintainability, architectural transparency, impact analysis, and long-term knowledge preservation. The Dynamic Code Wiki provides a scalable engineering solution for modern safety-critical software development, enabling organizations to reduce knowledge loss, accelerate developer onboarding, strengthen regulatory compliance, and support continuous software evolution without relying solely on manually maintained documentation or the institutional memory of experienced engineers


Keywords


Knowledge Graph Architecture, Retrieval-Augmented Generation, Semantic Code Search, Functional Safety Compliance, Institutional Knowledge Preservation

References


Y. Parihar and S. Sidharth, "Strategic knowledge management framework for helicopter operations (SKMF-HO) to enhance safety and performance," J. Adv. Manag. Res., pp. 1–37, 2025.

G. Karmakar, A. Wakankar, A. Kabra, and P. Pandya, Development of Safety-Critical Systems, vol. 97. Springer, 2023.

C. Ebert and C. Jones, "Embedded software: Facts, figures, and future," Computer (Long. Beach, Calif), vol. 42, no. 4, pp. 42–52, 2009.

D. M. Buede and W. D. Miller, The engineering design of systems: models and methods. John Wiley & Sons, 2024.

E. Soares, G. Sizilio, J. Santos, D. A. Da Costa, and U. Kulesza, "The effects of continuous integration on software development: a systematic literature review," Empir. Softw. Eng., vol. 27, no. 3, p. 78, 2022.

K. Constantino, S. Zhou, M. Souza, E. Figueiredo, and C. Kästner, "Understanding collaborative software development: An interview study," in Proceedings of the 15th international conference on global software engineering, 2020, pp. 55–65.

S. Gopisetty, "What the Jenkins Logs Won't Tell You: Using an AI Agent to Capture the Lost' Bank Memory'Behind a 76% Sprint Velocity Gain and Whether Another Community Bank Can Borrow It Without the Original Team," Int. J. Artif. Intell. Data Sci. Mach. Learn., vol. 5, no. 3, pp. 259–276, 2024.

A. Tiwana and H. Safadi, "Synchronizing Development Teams with Drifting Software Systems: A Decomposability-Based Theory of Evolutionary Mechanisms," J. Manag. Inf. Syst., vol. 43, no. 1, pp. 67–108, 2026.

T. Myklebust and T. Stålhane, Functional safety and proof of compliance. Springer, 2021.

L. Di Grazia and M. Pradel, "Code search: A survey of techniques for finding code," ACM Comput. Surv., vol. 55, no. 11, pp. 1–31, 2023.

S. Bajracharya et al., "Sourcerer: a search engine for open source code supporting structure-based search," in Companion to the 21st ACM SIGPLAN symposium on Object-oriented programming systems, languages, and applications, 2006, pp. 681–682.

R. DeLine and K. Rowan, "Code canvas: zooming towards better development environments," in Proceedings of the 32nd ACM/IEEE International Conference on Software Engineering-Volume 2, 2010, pp. 207–210.

D. Shepherd, Z. P. Fry, E. Hill, L. Pollock, and K. Vijay-Shanker, "Using natural language program analysis to locate and understand action-oriented concerns," in Proceedings of the 6th international conference on Aspect-oriented software development, 2007, pp. 212–224.

C. Y. Sheng, C. Y. Xin, T. G. Jie, and G. J. Tan, "Beyond the Tokenization Bottleneck: A Conceptual Framework for Efficiency-Plasticity Trade-Offs in ASEAN Large Language Model Adaptation," Cureus Journals, vol. 3, no. 1, 2026.

V. Cosentino, J. L. C. Izquierdo, and J. Cabot, "A systematic mapping study of software development with GitHub," IEEE Access, vol. 5, pp. 7173–7192, 2017.

M. Bruch, M. Monperrus, and M. Mezini, "Learning from examples to improve code completion systems," in Proceedings of the 7th joint meeting of the European software engineering conference and the ACM SIGSOFT symposium on the foundations of software engineering, 2009, pp. 213–222.

S. Gholamian and P. A. S. Ward, "A comprehensive survey of logging in software: From logging statements automation to log mining and analysis," arXiv Prepr. arXiv2110.12489, 2021.

N. Bibi, M. Babar, S. Kaleem, N. Waheed, Z. Khan, and B. Qureshi, "Boosting Code Retrieval Performance on Q&A Sites with Neural Mutual Attentions," J. King Saud Univ. Comput. Inf. Sci., 2026.

Z. Feng et al., "Codebert: A pre-trained model for programming and natural languages," in Findings of the Association for Computational Linguistics: EMNLP 2020, 2020, pp. 1536–1547.

Y. Xie, J. Lin, H. Dong, L. Zhang, and Z. Wu, "Survey of code search based on deep learning," ACM Trans. Softw. Eng. Methodol., vol. 33, no. 2, pp. 1–42, 2023.

M. Mirakhorli and J. Cleland-Huang, "Detecting, tracing, and monitoring architectural tactics in code," IEEE Trans. Softw. Eng., vol. 42, no. 3, pp. 205–220, 2015.

P. Lewis et al., "Retrieval-augmented generation for knowledge-intensive NLP tasks," Adv. Neural Inf. Process. Syst., vol. 33, pp. 9459–9474, 2020.

A. Lomovtsev, "Accelerating Safety-Critical Automotive Software Development Through Reproducible AI-Assisted Requirements Engineering," IEEE Access, 2026.

L. Chen, J. Jiao, and T. Zhao, "A novel hazard analysis and risk assessment approach for road vehicle functional safety through integrating STPA with FMEA," Appl—Sci., vol. 10, no. 21, p. 7400, 2020.

M. Borg, J. L. de la Vara, and K. Wnuk, "Practitioners' perspectives on change impact analysis for safety-critical software--a preliminary analysis," in International Conference on Computer Safety, Reliability, and Security, 2016, pp. 346–358.

Y. Wu, X. Jin, H. Yang, L. Tu, Y. Ye, and S. Li, "Blockchain-Based Internet of Things: Machine Learning Tea Sensing Trusted Traceability System," J. Sensors, vol. 2022, no. 1, p. 8618230, 2022.

S.-C. Crainiciuc, "FLOWDOCS: ONBOARDING SOFTWARE ENGINEERS AT SCALE," 2024.

A. Begel and B. Simon, "Novice software developers, all over again," in Proceedings of the fourth international workshop on computing education research, 2008, pp. 3–14.

J. Krüger and R. Hebig, "To memorize or to document: a survey of developers' views on knowledge availability," in International Conference on Product-Focused Software Process Improvement, 2023, pp. 39–56.

J. Di Rocco, D. Di Ruscio, C. Di Sipio, P. T. Nguyen, and R. Rubei, "Development of recommendation systems for software engineering: the CROSSMINER experience," Empir. Softw. Eng., vol. 26, no. 4, p. 69, 2021.

M. Josifoski, M. Sakota, M. Peyrard, and R. West, "Exploiting asymmetry for synthetic training data generation: SynthIE and the case of information extraction," in Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 2023, pp. 1555–1574.

S. Gandhi, L. Gao, and J. Callan, "Repository-level Code Search with Neural Retrieval Methods," arXiv Prepr. arXiv2502.07067, 2025.

M. Baqar, "RAG4Tickets: AI-Powered Ticket Resolution via Retrieval-Augmented Generation on JIRA and GitHub Data," arXiv Prepr. arXiv2510.08667, 2025.




DOI: https://doi.org/10.52088/ijesty.v6i3.1871

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Parth Govind Vanparia

International Journal of Engineering, Science, and Information Technology (IJESTY) eISSN 2775-2674