Introduction
Requirements Engineering (RE) is the foundational "upstream" phase of software development, yet it remains one of the most human-intensive and error-prone stages. While Large Language Models (LLMs) have made significant strides in automated code generation, the complex process of eliciting, analyzing, and documenting requirements has largely remained a manual task. The Knowledge-Guided Multi-Agent Framework (KGMAF) presents a novel vision for bridging this gap, transforming rough project ideas into professional-grade Software Requirements Specifications (SRS) through a collaborative team of specialized AI agents.
The Challenge: Beyond Simple Prompts
Traditional automated development tools often treat requirements as a static prompt. However, real-world RE involves navigating conflicting needs, simulating user interactions, and adhering to strict industry standards. LLMs, while capable, often lack the specific domain expertise and structured workflow required to produce rigorous engineering artifacts. KGMAF addresses this by moving away from a single general-purpose bot toward a multi-agent system that mirrors the roles found in a professional software engineering team.
The KGMAF Architecture
The framework is built upon two pillars: specialized agent roles and a shared "Artifacts Pool."
Specialized Agents
KGMAF assigns six distinct roles to LLM agents, each with a specific focus:
- Interviewer: Conducts research and gathers initial requirements.
- End-User: Simulates a client to provide raw descriptions and iterative feedback.
- Analyst: Classifies requirements and constructs visual models (e.g., use case diagrams).
- Archivist: Drafts and refines the formal SRS documentation.
- Reviewer: Validates artifacts against standards and provides critical feedback.
- Deployer: Analyzes the target operating environment and runtime constraints.
The Artifacts Pool and Knowledge Injection
Inspired by the "blackboard" architectural pattern, the Artifacts Pool serves as a shared workspace. Agents monitor this pool; when one agent completes a task (e.g., the Interviewer uploads a record), it triggers the next agent (e.g., the Analyst) to begin work.
Crucially, the framework utilizes Knowledge Injection. Rather than relying on generic personas, agents are provided with specific research templates, SRS standards, and technical domain expertise. This ensures that the output is not just coherent text, but a document that meets professional engineering criteria.
Case Study: Automating an Insurance Management System
To validate the vision, the authors applied KGMAF to a real-world scenario: developing an enterprise-level Insurance Management System (IMS). Starting from a single, simple prompt—"I want to develop an insurance management system"—the framework utilized GPT-4-turbo to generate a complete suite of RE artifacts.
Key Results
The framework successfully produced a comprehensive set of documents, including:
- Product Analysis Report (PAR): A 9-page summary of market research and potential risks.
- Interview Records (IR): Seven rounds of simulated dialogue between the Interviewer and End-User agents.
- Requirements Model (RM): Four distinct use case diagrams visualizing system functionality.
- Operating Environment List (OEL): Fourteen specific environment and infrastructure requirements.
- Software Requirements Specification (SRS): A professional 12-page document ready for development.
Key Insights and Future Directions
The KGMAF vision highlights that role-playing is insufficient for complex engineering tasks; agents require structured knowledge and templates to be effective. By simulating the elicitation process through agent-to-agent interaction, the system can uncover nuanced requirements that a human might overlook in a single prompt.
Limitations and Next Steps
While the results are promising, the authors identify several areas for future growth:
- Reasoning Depth: Enhancing the agents' ability to resolve complex, conflicting requirements in high-stakes environments.
- Traceability: Developing an automated feedback loop to ensure that changes in one requirement propagate correctly through all models and code.
- Human-in-the-Loop: Exploring how human experts can most effectively guide or intervene in the automated process without creating bottlenecks.
KGMAF represents a significant step toward a fully automated software development lifecycle, proving that with the right knowledge guidance, AI can handle the most complex "upstream" phases of engineering.
Summary updated