Application maintenance using agentic artificial intelligence
Agentic AI enhances software maintenance by identifying and resolving issues through a dependency tree analysis, ensuring consistent and compatible code, thus reducing downtime and vulnerabilities in enterprise systems.
Patent Information
- Application Number
- US19/213617
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
Software maintenance in enterprises is time-consuming, prone to human error, and requires coordination across multiple discrete tools, leading to compatibility issues and vulnerabilities due to unmanaged dependencies and code structure problems.
Utilizing agentic artificial intelligence (AI) for software maintenance, including a source agent to identify issues, an analysis agent to generate a dependency tree and analysis report, and a remediation agent to automatically apply changes to the code base, ensuring compatibility and security across the enterprise.
Improves the accuracy and timeliness of software maintenance, reducing downtime and vulnerabilities by ensuring consistent and compatible code, and automatically addressing dependencies and vulnerabilities across the enterprise.
Smart Images

Figure US20260377144A1-D00000_ABST
Abstract
Description
BACKGROUND
[0001] Software in enterprises require regular maintenance to manage dependencies, address or prevent issues with code structure, and respond to discovered vulnerabilities. When software is not maintained, there can be compatibility issues causing downtime to systems, vulnerabilities can emerge for old code, and the like. Manual maintenance is time-consuming and subject to delays or human error. Additionally, identifying dependencies, code structure issues, and updates on vulnerabilities currently relies on various discrete tools, causing maintenance to be a complex task for developers in an enterprise to coordinate and complete.SUMMARY
[0002] This disclosure is directed to systems for maintenance of software, particularly using agentic artificial intelligence to maintain the software.
[0003] In an embodiment, a software maintenance system includes one or more processors and one or more non-transitory memories. The one or more non-transitory memories store a software repository and instructions. The instructions, when executed by the one or more processors, cause the system to obtain, using a source agent, one or more issues for one or more software projects contained in the software repository. The instructions further cause the system to generate a dependency tree for libraries in a code base for the one or more software projects. The instructions also cause the system to generate, using the analysis agent, an analysis report including one or more changes to be made to the code base to remedy the one or more issues. The analysis report is based on the dependency tree. The instructions additionally cause the system to edit, using a remediation agent, the code base for the one or more software projects in the software repository to implement the one or more changes to the code base based on the analysis report.
[0004] In an embodiment, a method for software maintenance includes obtaining, using a source agent, one or more issues for one or more software projects contained in a software repository. The method further includes generating a dependency tree for libraries in a code base for the one or more software projects. The method also includes generating, using the analysis agent, an analysis report including one or more changes to be made to the code base to remedy the one or more issues. The analysis report is based on the dependency tree. The method additionally includes editing, using a remediation agent, the code base for the one or more software projects in the software repository to implement the one or more changes to the code base based on the analysis report.
[0005] In an embodiment, a method for software maintenance includes accessing an issue source using a source agent and obtaining, using the source agent, an identity of a software component having a vulnerability. The method further includes generating a dependency tree for a software project and determining, using the analysis agent, a software library of the software project including or dependent on the software component having the vulnerability based on the dependency tree. The method also includes determining, using the analysis agent, an update to the software library of the software project and editing, using a remediation agent, a code base to implement the determined update to the software library of the software project.
[0006] The details of one or more techniques are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of these techniques will be apparent from the description, drawings, and claims.BRIEF DESCRIPTION OF THE DRAWINGS
[0007] FIG. 1 shows an example software maintenance system.
[0008] FIG. 2 shows an example method for software maintenance using the system of FIG. 1.
[0009] FIG. 3 shows an example interaction diagram for the software maintenance system of FIG. 1
[0010] FIG. 4 shows an example of a dependency tree usable by the software maintenance system of FIG. 1.
[0011] FIG. 5 shows an example computing device of the software maintenance system of FIG. 1.DETAILED DESCRIPTION
[0012] This disclosure is directed to systems for maintenance of software, particularly using agentic artificial intelligence to maintain the software.
[0013] By utilizing agentic artificial intelligence (AI) to perform software maintenance, the accuracy of maintenance can be improved, reducing downtime of enterprise systems due to maintenance failures or incompatibilities. The timeliness of maintenance can also be improved by using agentic AI to perform the maintenance, reducing windows of vulnerability to exploits by performing requisite updates as vulnerabilities are discovered. Changes in configurations such as new mandates, standards, and the like can be propagated across the enterprise automatically and comprehensively through the agentic AI. The agentic AI for software maintenance thus improves software across an enterprise by ensuring compatible and consistent code across the organization and timely response to security vulnerabilities.
[0014] In some examples, the agentic AI can implement experimentation when determining upgrades to make, thereby allowing many possible configurations to be tested to optimize tradeoffs between compatibility, vulnerabilities, and future-proofing, beyond what would be possible for human developers.
[0015] An analysis agent can perform code analysis, automatically determining code structure issues and deviations from coding standards. The use of an analysis agents can ensure consistent and compatible code being used across an enterprise. The analysis agent can use dependency tree mapping to understand dependencies across all libraries of an enterprise, allowing vulnerabilities to be addressed even if such vulnerabilities are not defined within a particular project within the enterprise, thereby improving security and ensuring comprehensive updating of libraries. The analysis agent can apply and test different changes to dependencies, thus performing experiments not possible through human developers to identify changes comprehensively addressing vulnerabilities or other such issues.
[0016] A remediation agent can automatically apply updates to code repositories in the enterprise, implementing changes determined by the analysis agent. The remediation agent can make such changes to ensure compatibility across the enterprise, thereby reducing errors, outages, or the like. The remediation agent can be configured to make minimal required changes to complete maintenance, thereby reducing risk of incompatibilities or resulting outages.
[0017] FIG. 1 shows an example software maintenance system. Software maintenance system 100 includes a computing device 102. The computing device 102 can implement a source agent 104, an analysis agent 106, a remediation agent 108, and an interaction agent 110. The software maintenance system 100 can optionally further include an onboarding system 112 and a notification system 114.
[0018] Software maintenance system 100 is configured to automatically perform software maintenance tasks, such as upgrading software modules to address identified vulnerabilities, replacing code that has structural or compatibility issues, or does not meet coding standards for an enterprise, and managing dependencies among software components. The software maintenance system 100 can maintain one or more software projects, for example a particular service or application, or multiple software projects for a line of business, organization, or an enterprise. The software projects maintained by software maintenance system 100 can include various software components and libraries of such components. Software maintenance system can maintain software code in code repository 136. Code repository 136 can be, for example a software development platform storing and allowing management of the one or more software projects. Code repository 136 can be, for example, an open-source, commercial, or internal software development platform.
[0019] Computing device 102 can be any suitable computer, for example a server device or the like. Computing device 102 can include any suitable processors, memories, network adapters, and the like for implementing source agent 104, an analysis agent 106, a remediation agent 108, and an interaction agent 110. A non-limiting example of computing device 102 showing physical components thereof is provided in FIG. 5 and discussed below. In some embodiments, multiple computing devices 102 can be used to provide the system 100. In such embodiments, the computing devices 102 can be communicatively connected to one another, for example through any suitable wired or wireless networking devices or protocols.
[0020] Source agent 104 is configured to obtain a set of issues that may be present in a code base of a software project. Source agent 104 can be configured to access sources of potential issues in a code base of a software project. Source agent 104 can be trained to access the sources to obtain and record the issues. The source agent 104 can further be configured to process the issues, for example by including one or more models trained to classify or group issues, to add information to the issues such as tags or contextual information, to filter issues based on relevance to software projects, or the like.
[0021] Source agent 104 can include one or more plugin toolkits 116. Each plugin toolkit is configured to access a source of issues relating to software components. The sources of issues accessed by plugin toolkits 116 can include commercial repositories of software issues, such as lists of vulnerabilities, code quality issues, and the like. A non-limiting example of an issue source is the National Vulnerability Database (NVD). Additional examples of issue sources include commercial databases of software issues, internally developed databases of software issues, internal coding practices or standards, publications by software organizations or developers, and the like.
[0022] The source agent 104 can be configured to link or group issues, for example to remove duplicate issues or identify issues that can be addressed through a common set of software upgrades or modifications. The linking or grouping of issues can be performed using one or more artificial intelligence models or machine learning algorithms. In an embodiment, source agent 104 can include classifier 118. Classifier 118 can be configured to use, for example, graph memory learning to link or group the issues. The source agent 104 can provide the obtained issues or groups thereof to analysis agent 106.
[0023] Analysis agent 106 receives issues from the source agent 104. Analysis agent 106 is configured to analyze a code base for a software project maintained by system 100, so as to identify issues that are present in the code base and to determine changes to the code base. The changes to the code base determined by analysis agent 106 can be capable of remedying one or more of the issues identified in the code base. Analysis agent 106 can output an analysis report containing proposed changes to remedy issues detected in the code base. Analysis agent 106 can be an agentic AI agent including a model trained on coding tasks generally, coding standards, dependency structures, and code vulnerability analysis. The analysis agent 106 can be trained, for example, based on example code, dependency structures for such example code, code associated with known vulnerabilities, and the like. The model can be, for example, a large language model (LLM). For example, analysis agent 106 can be trained on examples of code meeting organizational standards. Analysis agent 106 can further intake data including a code base or particular segments thereof, a dependency tree for a software project, and the like.
[0024] The analysis agent 106 can be prompted to generate an analysis report containing changes to be made to the code base to remedy one or more issues. The analysis report generated by analysis agent 106 can contain changes such as, for example, revisions to sections of the code base, updates to versions of libraries being called in the software project and relationships between library versions, and the like. The analysis report can further include version control information, such as a version of the code base used as a basis for the analysis report, a timestamp, or the like.
[0025] In an embodiment, the version control information can be an identifier for the analysis report with respect to a version hierarchy for the software project being maintained. The version hierarchy information (for example, 1.1, 1.1.1, 1.1.12, 1.2, etc.) can be referred to during a rollback to a previous version or development of additional changes, for example when it is determined that changes according to the analysis report do not address all issues in the code base.
[0026] The analysis agent 106 can include an artifactory toolkit 120, a code repository reader 122, and a dependency tree toolkit 124. Analysis agent 106 can be configured to read from and write to shared memory 126, for example to obtain a remediation report to ensure previous maintenance is accounted for. Analysis agent 106 can write the analysis report to shared memory 126 such that the analysis report can be obtained by remediation agent 108.
[0027] The contents of shared memory 126 including previous analysis reports and remediation reports generated by the remediation agent 108 can be used as contextual information for the determination of changes to the code base to be included when generating an analysis report by the analysis agent 106. The contextual information supplied by the analysis and remediation reports in shared memory 126 can include states of library versions, relationships thereof, and the like.
[0028] Artifactory toolkit 120 can be included in analysis agent 106. The artifactory toolkit 120 can access artifacts of a software project, such as code, documentation, models, packages, files, and the like. The artifacts can be used by analysis agent 106, for example as contextual data for the software project when generating the analysis report.
[0029] Code repository reader 122 is configured to access a code base of a software project being maintained by the system 100 and identify portions of the code base corresponding to issues obtained by the source agent 104. The code repository reader 122 can access code repository 136 where the code base for the software project is stored. For example, the code repository reader 122 can identify portions of code associated with vulnerabilities, identify references to vulnerable libraries within the code base, segments of code that do not meet coding standards, and the like. Analysis agent 106 can analyze the code identified by code repository reader 122 and make proposed changes to said code based on the training of the analysis agent 106, the issues received from source agent 104, configuration information obtained by interaction agent 110, and the like. In an embodiment, the code including the proposed changes can be included in the analysis report output by the analysis agent 106.
[0030] Dependency tree toolkit 124 is configured to generate a dependency tree for use by analysis agent 106 in generating an analysis report. An example of a dependency tree generated by dependency tree toolkit 124 is shown in FIG. 4 and described below. Dependency tree toolkit 124 can obtain dependency information from a suitable source and, based on the dependency information, generate a dependency tree including the chains of dependencies present in a software project being maintained by the system 100. The dependency tree can be generated, for example, through using structured tree analysis on the obtained dependency information to arrange the dependencies into a hierarchical structure. Dependency tree toolkit 124 can communicate with at least one package manager 128 to obtain dependency information used for determining the dependency tree. The package manager 128 can coordinate software updates and / or manage dependencies in the organization. The package manager 128 can be a commercially available package manager, an internally developed package manager, or the like.
[0031] The dependency tree generated by dependency tree toolkit 124 can be used by the analysis agent 106 to identify code associated with certain issues in the code base. In an embodiment, the dependency tree generated by dependency tree toolkit 124 can be traversed by analysis agent 106 to identify code to be changed even when the code is not expressly defined as part of the software project.
[0032] In an embodiment, the dependency tree generated by dependency tree toolkit 124 can be used to analyze proposed changes to be made to the code base generated by the analysis agent 106. The analysis of proposed changes can allow analysis agent 106 to experiment with different approaches to resolving issues, and determine a most suitable set of changes to be made to the code base based on, for example, the resolution of the issues by the proposed changes, compliance with configuration information such as having a suitable extent of change to the code base, and the like. For example, the dependency tree can be used by the analysis agent 106 to determine whether a root cause of an issue is being addressed. In an embodiment, the proposed changes can be generated in parallel with one another and tested. In an embodiment, proposed changes can be implemented, and rolled back using version control information for the code base and associated with changes thereto. In an embodiment, the version control information can be stored in shared memory 126. The version control information can be, for example, included in analysis reports generated by analysis agent 106 or in remediation reports generated by remediation agent 108.
[0033] In an embodiment, the dependency tree generated by dependency tree toolkit can be used by the analysis agent 106 to make determinations regarding association of libraries within a software project, changes to maintain compatibility beyond a single software project, and the like. For example, the dependency tree can be used to determine a full set of libraries relied on by a software project and the extent of dependence on certain libraries to inform the association of such libraries with the software project. In another example, the dependency tree can allow identification of related libraries, software, or the like or other software projects relying on certain libraries to allow analysis agent 106 to identify and account for potential compatibility issues beyond a single software project.
[0034] Remediation agent 108 is an agent configured to modify the code base of the software project in accordance with the analysis report. The remediation agent 108 can be an agentic AI agent including a model trained to perform coding tasks, for example by being trained on code examples. The model can be, for example, an LLM. Remediation agent 108 can have privileges to edit the code base. Remediation agent 108 can be configured to read from and write to the shared memory 126, for example to obtain an analysis report or to write a remediation report to the shared memory 126. The remediation report can include a log of the changes made by remediation agent 108 to the code base. The remediation report can include version control information, time stamps, or the like.
[0035] The version control information can be an identifier for the remediation report with respect to a version hierarchy for the software project being maintained. The version hierarchy information (for example, 1.1, 1.1.1, 1.1.12, 1.2, etc.) can be referred to during a rollback to a previous version or development of additional changes, for example when it is determined that changes according to the analysis report do not address all issues in the code base.
[0036] Remediation agent 108 can include a code repository editor 130. Code repository editor 130 is configured to write the changes determined by remediation agent 108 to the code base for the software project being maintained by system 100. The code repository editor 130 can, for example, perform pull requests in a continuous integration / continuous deployment (CI / CD) pipeline with the changes to be made to the code base by remediation agent 108. The code repository editor can edit the code base in the code repository 136 containing the code base.
[0037] Remediation agent 108 can include a build pipeline toolkit 132. Build pipeline toolkit 132 can be configured to perform scans, tests, or the like on the changes to the code base being made by remediation agent 108 so as to confirm the success of those changes. The changes can be deemed successful based on remedying the issues and not giving rise to incompatibilities or other such issues. The build pipeline toolkit 132 can include or utilize testing tools such as commercial testing tools, internally developed testing tools, or the like. When the changes to the code base fail a scan or test performed by build pipeline toolkit 132, the remediation agent can roll the code base back to a previous version based on version control information. When the changes to the code base fail a scan or test performed by build pipeline toolkit 132, the analysis agent 106 can be directed to determine a new analysis report containing different changes to the code base.
[0038] Interaction agent 110 is configured to interact with an end user so as to obtain configuration information. The configuration information is information controlling the performance of software maintenance by the system 100. The configuration information can include, for example, coding standards, timing for performing maintenance tasks, a permissible extent of changes, or the like. The interaction agent 110 can include a chat interface such as a chat agent 134. In an embodiment, chat agent 134 can include an LLM trained to solicit the configuration information from users and interpret the inputs to determine the configuration information in a format usable by analysis agent 106 or remediation agent 108. In an embodiment, interaction agent 110 can trigger iterations of software maintenance performed by system 100, for example according to a schedule, based on a user request through interaction agent 110, in response to a trigger such as a trigger defined by a user of the interaction agent 110, or the like.
[0039] Onboarding system 112 can be included in system 100 to register software projects in the system 100. Onboarding system 112 can obtain information regarding software projects to be maintained by system 100, for example obtaining an identity of the software project and the components thereof, obtaining access to the code base for said software project, and the like.
[0040] Notification system 114 can be included in system 100 to provide notifications to users. Notification system 114 can provide notifications based on actions taken by the system 100. For example, notification system 114 can inform one or more users when the system 100 has performed maintenance on a software project, when issues have been identified in the software project, or the like. In an embodiment, the notification system 114 can provide a user with proposed changes to be made to the code base. In an embodiment, the notification can prompt a user to accept or reject such proposed changes to the code base. The notifications can be provided to one or more users, with examples including owners or administrators of a software project, a set of people associated with the project, or the like. The notification system can provide the notification in any suitable form, for example an email, a text message, through messaging software, or the like.
[0041] FIG. 2 shows an example method for software maintenance. Method 200 can be performed, for example, by the system 100 described above and shown in FIG. 1. Method 200 includes obtaining one or more issues relating to a software project at step 202, analyzing a code repository for the software project at step 204, determining a dependency tree for the software project at step 206, determining one or more changes to the software projects at step 208, and implementing the determined changes in the code repository at step 210. Optionally, the method 200 can further include obtaining configuration information at step 212. Optionally, the method 200 can further include onboarding one or more software projects at step 214. Optionally, the method can further include providing a notification to one or more users at step 216.
[0042] Method 200 can be performed for one or more software projects. Examples of software projects include an application, service, or the like. The software projects can be software projects in active development, in use but in a maintenance state, or the like. In an embodiment, the method 200 can be performed periodically, for example according to a fixed schedule or the like. In an embodiment, the method 200 can be performed continuously, for example initiating when a prior iteration of method 200 has completed. In an embodiment, the method 200 can be performed in response to a trigger, such as a manual request by a user, configuration information such as configuration information received through interaction agent 110, an issue arising in the software project such as a vulnerability being exploited or a compatibility issue, or the like. Method 200 can be performed by, for example, the software maintenance system 100 or components thereof, such as one or more of the computing devices 102.
[0043] At step 202, issues are obtained. The issues can be obtained from one or more issue sources. The issues can be obtained by accessing one or more sources, such as commercial repositories of software issues, such as lists of vulnerabilities, code quality issues, and the like. The one or more sources can be accessed by respective toolkits of a source agent, such as plugin toolkits 116. The one or more sources can be accessed, for example, through a network connection, such as through the Internet. The issues obtained at 202 can include, for example, identities of components having vulnerabilities, code not meeting a quality standard, or the like.
[0044] In an embodiment, obtaining the issues at step 202 can further include classifying, grouping, linking, or removing duplicates from the set of issues. In an embodiment, grouping or linking the issues can be performed based on a machine learning classifier such as classifier 118. The set of issues can be provided to an analysis agent such as analysis agent 106. In an embodiment, the set of issues can include the classification, grouping, or linking of issues obtained from the sources, or be provided following the removal of duplicates from the set of issues.
[0045] At step 204, a code repository containing the software project is analyzed. The analysis of the code repository at step 204 can be performed by an agentic AI through a component thereof, for example through an agent trained on coding tasks generally, coding standards, dependency structures, and code vulnerability analysis such as analysis agent 106. The analysis of the code repository at step 204 can be performed using a toolkit, such as the code repository reader 122 of analysis agent 106. The analysis of the code repository at step 204 includes scanning the code base of the software project being maintained through method 200 to identify portions of code associated with vulnerabilities, identify references to vulnerable libraries within the code base, segments of code that do not meet coding standards, and the like. The identified portions of code and references to vulnerable libraries can be used by the agentic AI for determination of changes to the code base for the software project at step 208.
[0046] At step 206, a dependency tree for the software project is determined. The dependency tree can be determined by a component included in an agentic AI, such as dependency tree toolkit 124. The dependency tree can be determined at step 206 through, for example, obtaining dependency information from one or more sources such as package managers used to manage the software project and using structured tree analysis to determine the dependency tree from the dependency information. The dependency tree determined at step 206 can include dependency among software components of the software project. The dependency tree determined at step 206 can further include additional software components not defined as being within the software project but which components within the software project are dependent on. An example of a dependency tree generated at step 206 is shown in FIG. 4 and described below. The dependency tree determined at step 206 can be used by the agentic AI for determination of changes to the code base for the software project at step 208.
[0047] At step 208, one or more changes to the code base of the software project are determined. The changes to the code base can include replacement or revision of certain segments of the code base, updates to libraries or versions of software components being used or references thereto, updates for compatibilities with more recent versions of libraries or software components, and the like. For example, libraries containing vulnerabilities can be updated to current versions where the vulnerability has been resolved, and reference to the libraries can be updated. The one or more changes to the code base can be determined using an agentic AI or agent thereof trained on coding tasks generally, coding standards, dependency structures, and code vulnerability analysis such as analysis agent 106. The determination of the changes to the code base determined at step 208 can be based on the analysis of the code base at step 204, the dependency tree determined at step 206, and the issues obtained at step 202.
[0048] The determination of the changes to the code base at step 208 can further be based on additional contextual information obtained by the analysis agent, for example prior analysis or remediation reports. The prior analysis or remediation reports can be obtained from, for example, shared memory 126. The prior analysis or remediation reports can include version control information such as an identifier for a particular version within a hierarchy.
[0049] In an embodiment, step 208 can include experimentation to determine the one or more changes to make to the code base. For example, a plurality of different sets of proposed changes to make to the code base can be generated based on the analysis of the code base at step 204, the dependency tree determined at step 206, and the issues obtained at step 202 and each of the sets of proposed changes tested to determine whether the set of proposed changes remedies the issues obtained at step 202. In an embodiment, the sets of proposed changes can further be evaluated based on configuration information, for example which set of proposed changes remedying the issues involves the least number of changes to the code base, which set of proposed changes best conforms to coding standards or the like. One of the plurality of sets of proposed changes can be selected based on effectiveness in addressing the issues obtained at step 202, and any further evaluation of the proposed changes based on configuration information. The selected set of proposed changes can become the changes to the code base determined at step 208 to be implemented at step 210.
[0050] The one or more changes to the code base determined at step 208 can be made accessible to or provided to another agent of the agentic AI, for example remediation agent 108, for implementation in the code base. The one or more changes to the code base can be recorded in an analysis report. The analysis report can be, for example, stored in a shared memory such as shared memory 126 accessible by an agent implementing the changes into the code base at step 210, for example remediation agent 108.
[0051] At step 210, the one or more changes are implemented in the code base. The changes can be implemented by an agentic AI or an agent thereof, for example through an agent trained to perform coding tasks such as remediation agent 108. The changes to be implemented at step 210 can be based on the one or more changes determined at step 208, such as editing code in the code base for the software project, updating libraries and references thereto in the code base, and the like. The changes determined at step 208 can be obtained by the agent accessing a shared memory containing the changes determined at step 208, for example shared memory 126. The implementation of the changes to the code base at step 210 modifies the production code base for the software project.
[0052] The implementation of changes at step 210 can include testing of the changes to confirm successful implementation. For example, software testing tools, scans of the updated code base and dependencies thereof, or the like can be used to determine whether the implementation of changes have been successful. If it is determined that the implementation was unsuccessful, for example due to issues with upstream or downstream dependencies, compatibility, or success in addressing the issues obtained at 202, the method 200 can return to step 208 and a different one or more changes to the code base can be determined.
[0053] In some examples, when the changes at step 210 do not remedy the issues or give rise to incompatibilities or other issues, the changes implemented at step 210 can be rolled back, for example based on version control information for the code base. When the changes implemented at step 210 are rolled back, the method 200 can return to the determination of changes to make to the code base at 208 or a new iteration of the method 200 can be performed. The rollback of changes can be based on version control information included in analysis and remediation reports, for example from prior maintenance of the software project according to method 200.
[0054] The implementation of changes at step 210 can include reporting of the changes made, for example by providing a remediation report containing the changes made to the code base. In an embodiment, the remediation report can be written to a shared memory accessible by an analysis agent, such as shared memory 126. The reporting of the changes made can include version control information for the code base, for example by including a time stamp, a version control identifier, or the like in the report.
[0055] At step 212, configuration information can be obtained. The configuration information obtained at step 212 is information for controlling the performance of software maintenance in method 200. The configuration information can include, for example, coding standards, timing for performing maintenance tasks, a permissible extent of changes to the code base, or the like. The configuration information can be obtained from input by one or more users. The configuration information can be obtained through an interaction agent such as interaction agent 110, for example using an LLM providing a chat interface.
[0056] At step 214, one or more software projects can be onboarded. The software projects can be existing or new software projects within an enterprise that are to be maintained through method 200. The software projects can be, for example, applications, services, or the like. The onboarding of software projects at step 214 can include providing access to the code base of the software project for example by providing a location of the code base or components thereof, access permissions for reading and editing the code base, and the like. The onboarding of software projects at step 214 can include analyzing the contents of the code base for the onboarded software project so as to allow relevant issues to be obtained at step 202. The onboarding of software projects of step 214 can be directed by a user. In an embodiment, software projects to be onboarded through step 214 can be suggested based on relationships among software projects or dependencies thereof, for example based on a dependency tree generated at step 206. The onboarded software projects can then be maintained through performance of method 200.
[0057] At step 216, a notification can be provided to one or more users. The notification can be, for example, an email, a text message, a message in a messaging service, or the like. The notification can be provided at step 216 to inform the one or more users of completion of one or more steps of method 200, for example to notify the one or more users of the determination of changes to be made to the code base from step 208, completion of the changes to the code base at step 210, or the like. In an embodiment, the notification can request a user confirmation or grant of permission to perform changes to the code base. The users receiving a notification provided at step 216 can include one or more developers of the software project, one or more administrators of the software project, groups identified as affected by the software project such as developer or administrators for related software projects, or the like.
[0058] FIG. 3 shows an example interaction diagram for the software maintenance system of FIG. 1. The interaction diagram 300 shows an example of interactions among components of the system 100 when used to maintain a software project. In the interaction shown in FIG. 3, source agent 104 provides an identity of the software project and one or more of issues to the analysis agent 106.
[0059] The analysis agent 106 requests a code base for the identified software project from the code repository reader 122. Code repository reader 122 obtains the requested code base from code repository 136. The code repository reader 122 returns the files for the requested code base. The analysis agent 106 can scan the received code files to detect issues in the code, such as vulnerabilities, code not meeting coding standards, compatibility issues, or the like that correspond to the received issues.
[0060] Analysis agent 106 also requests generation of a dependency tree from the dependency tree toolkit 124. The dependency tree toolkit 124 can return a dependency landscape to analysis agent 106 for use in generating the analysis report. The dependency landscape can include data on the dependencies of components of the software project, including libraries that the software project depends on, such as a list, tree, or other representation of the dependencies. The dependency tree toolkit 124 generates dependency tree 302 in response to the request for tree generation from analysis agent 106. An example of a dependency tree 302 generated by dependency tree toolkit 124 is shown in FIG. 4 and described below.
[0061] Analysis agent 106 can further request parent seeking be performed by the dependency tree toolkit 124. When parent seeking is requested, dependency tree toolkit 124 can traverse the dependency tree 302 to identify parent and child libraries of libraries included in the software project, even where the parent or child libraries are not expressly included in the software project. The parent or child library information regarding such libraries can be included in the dependency landscape returned from dependency tree toolkit 124 to the analysis agent 106.
[0062] Analysis agent 106 can provide the dependency tree toolkit 124 with proposed changes to the code base. Dependency tree toolkit 124 can generate proposed dependency data reflective of the proposed changes to the code base such as a list, tree, or other representation of the dependencies resulting from the proposed changes. The proposed dependency trees can be included in the dependency landscape returned from dependency tree toolkit 124 to the analysis agent 106.
[0063] Analysis agent 106 generates an analysis report which is provided to the remediation agent 108. The analysis report contains changes to be made to the code base for the software project so as to resolve issues present in the software project such as some or all of the issues provided by the source agent 104 to the analysis agent 106. The analysis report can be generated by analysis agent 106 based on the received list of issues, scanning of the code files received from repository reader 122, and the dependency landscape received from dependency tree toolkit 124.
[0064] Remediation agent 108 receives the analysis report generated by analysis agent 106. In an embodiment, the remediation agent 108 can obtain the analysis report generated by the analysis agent from a shared memory accessible to analysis agent 106 and the remediation agent 108, such as shared memory 126 shown in FIG. 1. Remediation agent 108 can request scans or tests on the changes proposed in the analysis report be run by build pipeline toolkit 132, for example to test compatibility, effectiveness in resolving issues, and the like. Build pipeline toolkit 132 can respond with results of the scans or tests, for example a confirmation that the changes proposed in the analysis report would resolve the issues.
[0065] On or after the receipt of the confirmation that the changes proposed in the analysis report would resolve the issues, the remediation agent 108 can provide code changes and pull requests to code repository editor 130, which implements the code changes and pull requests in the code base for the software project in code repository 136. The implementation of the changes in code repository 136 completes an iteration of software maintenance as performed by system 100.
[0066] FIG. 4 shows an example of a dependency tree usable by the software maintenance system of FIG. 1. Dependency tree 400 can be stored in a memory of computing device 102, for example a memory accessible to analysis agent 106 or a component thereof such as dependency tree toolkit 124. Dependency tree 400 shows dependencies among libraries 402a-d of a code base. The code base can be a code base for one or more software projects of an enterprise. The dependency tree 400 can be generated by, for example, an analysis agent such as analysis agent 106 accessing one or more package managers. The dependency tree 400 can include dependencies beyond the scope of a single software project, for example including any dependencies identified in the code base without regard for software project identifiers. The dependency tree 400 can be used to identify libraries 402a,b that are used within a particular software project, represented in FIG. 4 as being lightly shaded. The dependency tree 400 can further identify libraries 402b,d that contain issues such as vulnerabilities, as defined according to the output of a source agent such as source agent 104, represented in FIG. 4 by having thickened borders.
[0067] In an embodiment, the dependency tree 400 can be traversed by the analysis agent so as to identify libraries 402d that that contain vulnerabilities or other issues and are not expressly defined as being part of a software project, but that are dependencies for libraries 402a,b included in the software project. For example, as shown in FIG. 4, a library 402a defined as being within the software project but not containing an issue (shown as shaded but having a thin border) can depend on a library 402d not expressly included in the software project (shown as not shaded) that has one or more of the issues provided by the source agent (shown as having a thick border). The analysis agent can traverse the dependency tree 400 to associate the issue with the parent library 402a,b included in the software project.
[0068] In an embodiment, the dependency tree 400 can be used as a basis for determining proposed changes during experimentation by an analysis agent such as analysis agent 106. The dependency tree can be used to identify libraries in which to make changes, based on the libraries 402b,d having issues, the dependency relationships among the libraries 402a-d, and inclusion of the library 402a-d in the software project. The dependency tree 400 can be used to determine proposed changes in accordance with particular strategies or directives, such as avoiding changes to libraries 402c,d outside the software project. The proposed changes can be tested by the analysis agent. In some examples, the dependency tree 400 can be used to determine reasons proposed changes fail to address certain issues, such as the issue being with a library 402d not defined as being part of a software project, but being a dependency of another library 402a,b that is part of that software project.
[0069] In some examples, the dependency tree 400 can further be utilized by an analysis agent such as analysis agent 106 to make determinations such as explicitly including one or more of the libraries 402a-d in a software project, identifying additional libraries that may present compatibility issues when performing certain changes to the code base, and the like. The dependency tree 400 can be used, for example, to identify libraries 402a-d that are dependencies of or dependent on libraries 402a-d subject to changes to the code base, so that compatibility can be maintained across various software projects when implementing changes to the code base.
[0070] FIG. 5 shows an example computing device of the software maintenance system of FIG. 1. Computing device 102 can be used to implement one or more logical components of the software maintenance system 100 as described above and shown in FIG. 1. FIG. 5 shows example physical components of the computing device 102 of FIG. 1. Computing device 102 includes can include at least one central processing unit (“CPU”) 502, a system memory 504, and a system bus 506 that couples the system memory 504 to the CPU 502. The system memory 504 includes a random-access memory (“RAM”) 508 and a read-only memory (“ROM”) 510. A basic input / output system containing the basic routines that help transfer information between elements within the computing device 102, such as during startup, is stored in the ROM 510. The computing device 102 further includes a mass storage device 512. The mass storage device 512 can store software instructions and data. A central processing unit, system memory, and mass storage device similar to that shown can also be included in the other computing devices disclosed herein.
[0071] The mass storage device 512 is connected to the CPU 502 through a mass storage controller (not shown) connected to the system bus 506. The mass storage device 512 and its associated computer-readable data storage media provide non-volatile, non-transitory storage for the computing device 102. Although the description of computer-readable data storage media contained herein refers to a mass storage device, such as a hard disk or solid-state disk, it should be appreciated by those skilled in the art that computer-readable data storage media can be any available non-transitory, physical device, or article of manufacture from which the CPU 502 can read data and / or instructions. Computer-readable data storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable software instructions, data structures, program modules, or other data. Example types of computer-readable data storage media include, but are not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other solid-state memory technology, CD-ROMs, digital versatile discs (“DVDs”), other optical storage media, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computing device 102.
[0072] According to various embodiments of the invention, the computing device may operate in a networked environment using logical connections to issue sources, code bases, external tools and services, other computing devices 102, and the like. The logical connections can be provided through any suitable network, such as a wired or wireless network, the Internet, or another type of network. The computing device 102 may connect to a network through a network interface unit 514 connected to the system bus 506. The computing device 102 can also include an input / output controller 516 for receiving and processing input from a number of other devices, for example a touch user interface display screen, mouse, keyboard, or another type of input device. Similarly, the input / output controller 516 may provide output to a touch user interface display screen or other output devices.
[0073] As mentioned above, the mass storage device 512 and the RAM 508 of the computing device 102 can store software instructions and data. The software instructions include an operating system 518 suitable for controlling the operation of the computing device 102. The mass storage device 512 and / or the RAM 508 also store software instructions and applications 520, that when executed by the CPU 502, cause the computing device 102 to provide the functionality of the computing device 102 discussed in this document.
[0074] Although various embodiments are described herein, those of ordinary skill in the art will understand that many modifications may be made thereto within the scope of the present disclosure. Accordingly, it is not intended that the scope of the disclosure in any way be limited by the examples provided.
Claims
1. A software maintenance system, comprising:one or more processors; andone or more non-transitory memories, the one or more non-transitory memories storing a software repository and instructions, wherein the instructions, when executed by the one or more processors, cause the system to:obtain, using a source agent, one or more issues for one or more software projects contained in the software repository;generate a dependency tree for libraries in a code base for the one or more software projects;generate, using the analysis agent, an analysis report including one or more changes to be made to the code base to remedy the one or more issues, wherein the analysis report is based on the dependency tree; andedit, using a remediation agent, the code base for the one or more software projects in the software repository to implement the one or more changes to the code base based on the analysis report.
2. The software maintenance system of claim 1, wherein the instructions further cause the system to obtain, using an interaction agent, configuration information and provide the configuration information to one or more of the source agent and the analysis agent.
3. The software maintenance system of claim 1, wherein the instructions further cause the system to direct presentation of a notification to a user when the remediation agent edits the code base.
4. The software maintenance system of claim 1, wherein the instructions further cause the system to generate a remediation report when the remediation agent edits the code base, the remediation report including changes made to the code base.
5. The software maintenance system of claim 4, wherein the instructions further cause the system to write the analysis report to a shared memory and to write the remediation report to the shared memory, wherein the shared memory is accessible to the analysis agent and the remediation agent.
6. The software maintenance system of claim 4, wherein the instructions further cause the system to:apply a version control identifier to the analysis report or the remediation report;determine whether the one or more changes to the code base remedy the one or more issues; andwhen the one or more changes to the code base do not remedy the one or more issues, perform a rollback of the code base based on the version control identifier.
7. The software maintenance system of claim 4, wherein the instructions further cause the system to:apply a version control identifier to the analysis report or the remediation report;determine whether the one or more changes to the code base remedy the one or more issues; andwhen the one or more changes to the code base do not remedy the one or more issues, determine one or more additional changes to the code base based on the version control identifier.
8. The software maintenance system of claim 1, wherein the source agent obtains the one or more issues by fetching a set of issues through one or more toolkits, and comparing the set of issues to the one or more software projects.
9. The software maintenance system of claim 8, wherein the source agent assigns related issues in the set of issues to a group, and the one or more issues includes the group.
10. The software maintenance system of claim 1, wherein the analysis report includes changes to be made to a child library that a library included in the one or more software projects is dependent on according to the dependency tree.
11. The software maintenance system of claim 1, wherein the instructions further cause the system to, using the analysis agent, determine proposed changes to the libraries in the code base, generate a proposed dependency tree based on the proposed changes, and determine whether the proposed changes remedy the one or more issues based on the proposed dependency tree, and the analysis report is based on whether the proposed changes remedy the one or more issues.
12. A method for software maintenance, comprising:obtaining, using a source agent, one or more issues for one or more software projects contained in a software repository;generating a dependency tree for libraries in a code base for the one or more software projects;generating, using the analysis agent, an analysis report including one or more changes to be made to the code base to remedy the one or more issues, wherein the analysis report is based on the dependency tree; andediting, using a remediation agent, the code base for the one or more software projects in the software repository to implement the one or more changes to the code base based on the analysis report.
13. The method of claim 12, wherein the analysis report includes changes to be made to a child library that a library included in the one or more software projects is dependent on according to the dependency tree.
14. The method of claim 12, further comprising obtaining, using an interaction agent, configuration information and providing the configuration information to one or more of the source agent and the analysis agent.
15. The method of claim 12, further comprising:determining proposed changes to the libraries in the code base,generating a proposed dependency tree based on the proposed changes, anddetermining whether the proposed changes remedy the one or more issues based on the proposed dependency tree,wherein the analysis report is based on whether the proposed changes remedy the one or more issues.
16. The method of claim 12, further comprising generating a remediation report when the remediation agent edits the code base, the remediation report including changes made to the code base.
17. The method of claim 16, further comprising writing the analysis report to a shared memory and writing the remediation report to the shared memory, wherein the shared memory is accessible to the analysis agent and the remediation agent.
18. The method of claim 16, further comprising:applying a version control identifier to the analysis report or the remediation report;determining whether the one or more changes to the code base remedy the one or more issues; andwhen the one or more changes to the code base do not remedy the one or more issues, performing a rollback of the code base based on the version control identifier.
19. The method of claim 16, further comprising:applying a version control identifier to the analysis report or the remediation report;determining whether the one or more changes to the code base remedy the one or more issues; andwhen the one or more changes to the code base do not remedy the one or more issues, one or more additional changes to the code base based on the version control identifier.
20. A method for software maintenance, comprising:accessing an issue source using a source agent;obtaining, using the source agent, an identity of a software component having a vulnerability;generating a dependency tree for a software project;determining, using the analysis agent, a software library of the software project dependent on the software component having the vulnerability based on the dependency tree;determining, using the analysis agent, an update to the software library of the software project to provide a determined update; andediting, using a remediation agent, a code base to implement the determined update to the software library of the software project.
