CN-121981215-A - Traceability graph construction method based on human-multi-agent collaborative software development
Abstract
The invention discloses a traceable graph construction method based on human-multi-agent collaborative software development, which relates to the technical field of software engineering and specifically comprises the steps of defining a traceable graph framework for representing the full life cycle of software development; the method comprises the steps of collecting events generated by multiple intelligent agents and manual developers in a full life cycle of software development, normalizing the events into preset event models, analyzing the preset event models, creating and updating corresponding nodes in the traceable atlas, identifying the evolution relation of code entities of the software development through static analysis based on scenes, adjusting the consistency of the traceable relation between the nodes and edges in the traceable atlas based on identification results, and providing a structured graph query interface and a natural language query interface through the traceable atlas, so that the problem of inconsistent event semantics among heterogeneous systems can be solved, an enhanced updating mechanism is provided to ensure the instantaneity and accuracy of the atlas, and the risk of information lag is reduced.
Inventors
- WANG WEI
Assignees
- 北京词元无限科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260126
Claims (8)
- 1. The traceability map construction method based on the collaborative software development of the human-multi-agent is characterized by comprising the following steps: Defining a traceable spectrum framework for representing a full lifecycle of software development; Collecting events generated by multiple agents and manual developers in a full life cycle of software development, and normalizing the events into a preset event model; Analyzing the preset event model, and creating and updating corresponding nodes in the traceable map; identifying the evolution relationship of the code entity developed by the software through static analysis based on the scene, and adjusting the consistency of the traceability relationship between the node and the edge in the traceability map based on the identification result; And providing a structured graph query interface and a natural language query interface through the traceable graph.
- 2. The traceability map construction method based on human-multi-agent collaborative software development according to claim 1, characterized in that: The traceable map framework specifically comprises: The traceback graph comprises a plurality of node types and edge types, wherein the node types at least comprise a requirement node, a design node, a code node, a test node, a deployment node, a defect node, an agent execution node and a human decision node, and the edge types at least comprise a requirement-design, a design-code, a code-test, a test-defect, a code-defect, a requirement-defect and a design-deployment.
- 3. The traceability map construction method based on human-multi-agent collaborative software development according to claim 1, characterized in that: The multi-agent includes, but is not limited to, a demand agent, a design agent, a code agent, a test agent, an audit agent, and an operation and maintenance agent; The events include, but are not limited to, demand creation, update events, design generation, modification events, code generation, code editing, code submission, merge request creation, test case generation, modification execution result events, defect work order creation, update and close events, change and execution events, human developer acceptance of multi-agent output, editing, overrule and retry events; The normalizing the event into the preset event model specifically comprises: constructing an event set corresponding to the life cycle stage according to the event, and defining a corresponding general event template; the general event templates include, but are not limited to, event type, event time, event participants, event processing status; defining event labels and mapping the event labels and the optional character list of the events to the universal event templates; The time field is unified to an ISO8601 timestamp of a standard time zone, the time consumption of the standardized measurement unit is unified to millisecond, and the total number of bytes is unified to bytes.
- 4. The traceability map construction method based on human-multi-agent collaborative software development according to claim 1, characterized in that: the analyzing the preset event model specifically includes: Receiving an event and identifying based on a preset event model; Creating node types according to the universal event templates, and constructing node attributes and interrelationships; judging whether corresponding nodes exist in the traceable map or not according to the identified events; defining the types of edges according to the logic relation between the events; Judging whether the current event causes the change of the existing relation or not; an enhanced update mechanism is maintained based on the parsing process.
- 5. The traceability map construction method based on human-multi-agent collaborative software development according to claim 1, characterized in that: The identification of the evolution relationship specifically comprises the following steps: Analyzing the code entity developed by the software through an AST analyzer, and extracting code structure information; Comparing the differences between different versions through version control, and judging whether the code entity changes or not; identifying the evolution relationship of the code entities of the software development according to the dependency relationship among the code entities in different versions; judging whether the existing nodes and edges in the traceable atlas are consistent with the evolution relationship, and deleting the nodes and edges which are inconsistent and are not used in static analysis.
- 6. The traceability map construction method based on human-multi-agent collaborative software development according to claim 1, characterized in that: The natural language query interface converts natural language query input by a manual developer into a graph query statement, and returns a query result in at least one form of a graph view and a list view after the natural language query is executed; carrying out statistical analysis on the constructed nodes and edges in the traceability graph, and identifying code entities with high historical defects, high-frequency overruled agent suggestion types and artificial development test weak areas; by providing a graph query interface for the traceable graph for the multi-agent, before the multi-agent executes the task, the nodes related to the code entity corresponding to the current task are queried based on the traceable graph; judging the risk level of the module related to the current task according to the query result, and adjusting the behavior strategy of the multi-agent under the high risk condition; And automatically inserting a manual approval node through a multi-agent arrangement platform according to the risk level, and writing the manual approval result into the traceability graph in the form of a human decision node.
- 7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the modules of the traceability map construction method based on human-multi-agent collaborative software development according to any one of claims 1 to 6.
- 8. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the modules of the traceability map construction method based on human-multi-agent collaborative software development according to any one of claims 1 to 6.
Description
Traceability graph construction method based on human-multi-agent collaborative software development Technical Field The invention relates to the technical field of software engineering, in particular to a traceable graph construction method based on human-multi-agent collaborative software development. Background Along with the increasing large and complicated scale of software systems, more and more development organizations adopt a software development mode of human-multi-agent collaboration, so as to improve development efficiency, enhance collaborative collaboration capability and shorten product marketing period. The traditional software development process is divided into main lines by static stages, and the comprehensive traceable description of cross-main-body and cross-stage collaborative activities is lacking. The prior art still has several limitations and challenges in achieving the above objectives: (1) The existing method tries to make events in the software development process into events and uniformly model, but under a cross-agent cooperative scene, the event types are numerous and have strong isomerism, and a uniform and expandable event model and label mapping mechanism are lacked, so that the accuracy and consistency of event normalization are difficult to ensure, and the accuracy and practicability of a traceable map are further affected. (2) The existing scheme only pays attention to traceability of a single process stage, lacks complete coverage of a full life cycle, is difficult to reflect an evolution relationship between requirements, design, implementation, test, deployment and defect repair, and cannot fully embody dynamic cooperation and decision making processes under human-multi-agent cooperation. (3) In the aspect of map maintenance, nodes and edges which are established statically are difficult to cope with high-frequency changes in actual development, an efficient enhancement updating mechanism is lacked, relation changes caused by the latest events cannot be reflected in real time, and hysteresis exists between a trace-back map and a real development state. (4) The existing system often only uses static analysis or local difference in code evolution analysis, and has insufficient comprehensive recognition capability on evolution relations, dependence changes and version differences among code entities, so that omission or incorrect evolution deduction is easily caused, and further the maintenance of traceability consistency is affected. (5) The limitation of the query capability restricts the availability of the traceable graph, it is difficult to support task scheduling and policy adjustment based on risk level, and it is difficult to seamlessly write the manual approval node into the traceable graph to achieve compliance control. The above information disclosed in the background section is only for enhancement of understanding of the background of the disclosure and therefore it may include information that does not form the prior art that is already known to a person of ordinary skill in the art. Disclosure of Invention The invention aims to provide a traceability graph construction method based on human-multi-agent collaborative software development, so as to solve the problems in the background technology. In order to achieve the above purpose, the invention provides the following technical scheme that the traceability map construction method based on the collaborative software development of human-multi-agent specifically comprises the following steps: Defining a traceable spectrum framework for representing a full lifecycle of software development; Collecting events generated by multiple agents and manual developers in a full life cycle of software development, and normalizing the events into a preset event model; Analyzing the preset event model, and creating and updating corresponding nodes in the traceable map; identifying the evolution relationship of the code entity developed by the software through static analysis based on the scene, and adjusting the consistency of the traceability relationship between the node and the edge in the traceability map based on the identification result; And providing a structured graph query interface and a natural language query interface through the traceable graph. As a preferable scheme of the traceability map construction method based on the human-multi-agent collaborative software development, the invention comprises the following steps: The traceback graph comprises a plurality of node types and edge types, wherein the node types at least comprise a requirement node, a design node, a code node, a test node, a deployment node, a defect node, an agent execution node and a human decision node, and the edge types at least comprise a requirement-design, a design-code, a code-test, a test-defect, a code-defect, a requirement-defect and a design-deployment. As a preferable scheme of the traceability map construction method based