Overview
This traceability matrix demonstrates how each requirement is addressed by specific components in the ASRO architecture. It ensures that all requirements have corresponding design elements and that no components exist without purpose.
The matrix is organized by requirement categories. Each row shows a requirement and the components responsible for satisfying it, along with a brief explanation of how the requirement is fulfilled.
Functional Requirements Traceability
Resource Monitoring and Detection
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| FR-1 | Real-time Resource Monitoring | C-1, C-6, C-8 | Monitor Agent continuously queries Prometheus and system tools, publishes to Kafka event backbone, stores in Time-Series DB |
| FR-2 | GPU Mapping Validation | C-1, C-11 | Monitor Agent executes nvidia-smi through MCP Tool Gateway and compares with Slurm allocations |
| FR-3 | Anomaly Detection | C-1, C-8 | Monitor Agent compares current metrics from Time-Series DB against expected patterns and identifies sustained deviations |
| FR-4 | Historical Profiling | C-2, C-8, C-10 | Profiler Agent analyzes Time-Series DB data over 90-day windows and stores profiles in Profile Store |
Analysis and Planning
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| FR-5 | Resource Optimization Recommendations | C-3, C-10, C-11 | Planner Agent uses LLM reasoning with profile data and safely accesses tools via MCP to generate ranked recommendations |
| FR-6 | Action Simulation | C-3, C-13 | Planner Agent invokes Job Simulator with proposed changes and recent metrics to predict impact |
| FR-7 | Risk Assessment | C-3, C-5 | Planner Agent computes risk scores based on multiple factors; Audit Agent enforces risk-based policies |
| FR-8 | Batch Optimization | C-3, C-2 | Planner Agent uses Profiler's pattern recognition to identify similar jobs and propose group optimizations |
Safe Execution and Control
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| FR-9 | Dry-run Mode | C-4, C-9 | Executor Agent supports dry-run flag that logs planned actions to Audit Store without executing them |
| FR-10 | Human Approval Workflow | C-5, C-12 | Audit Agent checks risk thresholds and presents high-risk actions via Web Interface for approval |
| FR-11 | Canary Deployment | C-4, C-1 | Executor Agent applies changes to subset first, Monitor Agent tracks canary metrics |
| FR-12 | Automatic Rollback | C-4, C-1 | Executor Agent monitors post-change metrics from Monitor and reverts via Slurm if degradation detected |
| FR-13 | Job Control Operations | C-4, C-11 | Executor Agent uses MCP to safely call Slurm scontrol and slurmrestd APIs |
| FR-14 | Checkpoint-aware Restart | C-4 | Executor Agent queries checkpoint status and coordinates restart from saved state when available |
Communication and Transparency
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| FR-15 | User Notification | C-5, C-12 | Audit Agent sends notifications through Web Interface and email when jobs are targeted for optimization |
| FR-16 | Web Dashboard | C-12, C-7 | Web Interface provides real-time views by querying agents via gRPC Service |
| FR-17 | Audit Trail | C-5, C-9, C-6 | All agents publish events to Kafka; Audit Agent persists comprehensive logs to Audit Store |
Integration and Extensibility
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| FR-18 | Multi-cluster Support | C-1, C-4 | Monitor and Executor agents support configuration for multiple Slurm endpoints |
| FR-19 | Policy Customization | C-5, C-12 | Audit Agent reads policy configuration files; administrators modify via Web Interface |
| FR-20 | Tool Integration via MCP | C-11, C-3, C-4 | MCP Tool Gateway provides controlled access for Planner and Executor agents |
Non-Functional Requirements Traceability
Performance
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| NFR-1 | Monitoring Latency (60s max) | C-1, C-6, C-8 | Monitor Agent uses streaming queries to Prometheus and publishes to Kafka with minimal buffering |
| NFR-2 | Scalability (10K nodes, 100K jobs) | C-1, C-6, All | Horizontal scaling of Monitor agents, Kafka partitioning, and database sharding support large clusters |
| NFR-3 | Action Generation Time (5 min) | C-3, C-10 | Planner Agent uses cached profiles and efficient LLM prompts; timeout enforced |
Reliability
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| NFR-4 | System Availability (99.9%) | All, K8s | Kubernetes provides health checks and automatic restarts; database replication ensures data availability |
| NFR-5 | Fault Tolerance | C-1, C-5, C-6 | Monitor and Audit continue operating if other agents fail; Kafka durably stores events for replay |
| NFR-6 | Data Persistence | C-8, C-9, C-10 | All databases use persistent volumes with replication and backup |
Security
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| NFR-7 | Authentication and Authorization | C-7, C-12 | gRPC Service enforces mutual TLS; Web Interface implements RBAC with JWT tokens |
| NFR-8 | Audit Immutability | C-9, C-5 | Audit Store uses append-only tables; Audit Agent computes checksums on write |
| NFR-9 | Secure Communication | C-6, C-7 | Kafka configured with TLS; gRPC Service requires TLS 1.3 with strong ciphers |
Usability
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| NFR-10 | Explanation Quality | C-3, C-5, C-12 | Planner generates natural language explanations; Audit Agent formats for display; Web Interface presents clearly |
| NFR-11 | Dashboard Responsiveness (2s) | C-12, C-7 | Web Interface uses React for fast rendering; gRPC provides low-latency queries; WebSocket for push updates |
| NFR-12 | Configuration Simplicity (8h setup) | All, K8s | Containerized deployment with Helm charts; automated configuration scripts; comprehensive documentation |
Maintainability
| Req ID | Requirement | Components | How Satisfied |
|---|---|---|---|
| NFR-13 | Modular Architecture | All Agents | Five independent agents with clear interfaces; communication via well-defined protocols |
| NFR-14 | Logging and Diagnostics | All, C-11 | All components use structured logging; health endpoints exposed; MCP logs all tool calls |
| NFR-15 | API Stability | C-6, C-7 | Kafka topics use versioned schemas; gRPC Service maintains backward compatibility through Protocol Buffers |
Component Coverage Summary
This reverse mapping shows which requirements each component addresses, ensuring no orphaned components exist.
C-1: Monitor Agent
Requirements: FR-1, FR-2, FR-3, FR-11, FR-12, FR-18, NFR-1, NFR-2, NFR-5
C-2: Profiler Agent
Requirements: FR-4, FR-8
C-3: Planner Agent
Requirements: FR-5, FR-6, FR-7, FR-8, FR-20, NFR-3, NFR-10
C-4: Executor Agent
Requirements: FR-9, FR-11, FR-12, FR-13, FR-14, FR-18, FR-20
C-5: Audit Agent
Requirements: FR-7, FR-10, FR-15, FR-17, FR-19, NFR-5, NFR-8, NFR-10
C-6: Event Backbone (Kafka)
Requirements: FR-1, FR-17, NFR-1, NFR-2, NFR-5, NFR-9, NFR-15
C-7: RPC Service (gRPC)
Requirements: FR-16, NFR-7, NFR-9, NFR-11, NFR-15
C-8: Time-Series Database
Requirements: FR-1, FR-3, FR-4, NFR-1, NFR-6
C-9: Audit Store
Requirements: FR-9, FR-17, NFR-6, NFR-8
C-10: Profile Store
Requirements: FR-4, FR-5, NFR-3, NFR-6
C-11: Tool Gateway (MCP)
Requirements: FR-2, FR-5, FR-13, FR-20, NFR-14
C-12: Web Interface
Requirements: FR-10, FR-15, FR-16, FR-19, NFR-7, NFR-10, NFR-11, NFR-12
C-13: Job Simulator
Requirements: FR-6
Validation
All requirements map to at least one component, and all components serve at least one requirement. The design is complete and traceable.