How rakshithay3/incident-mind works
IncidentMind investigates microservice incidents, ranks likely faulty services, dispatches specialist investigations, and presents an evidence-based RCA in a dashboard. Its documented workflow combines GraphSAGE anomaly scoring and PPO dispatch with Log, Metrics, Code, and Report agents; a separate recovery path waits for services to return to baseline before notifying registered users. The repository also documents priority-weighted multi-instance dispatch and a fault-injectable ShopMind testbed. Some of these latter connections are documented capabilities rather than inspected call paths; unsampled implementations are represented at their existing directory paths.
Main entry points: pipeline.py Investigation Pipeline · incidentmind_p1/pipeline.py Inference Pipeline · App.jsx Dashboard App · recovery.py Recovery Monitor
Components 24
Detection and Dispatch
- Inference Pipeline
incidentmind_p1/pipeline.py - Incident Loader
incidentmind_p1/loader.py - Anomaly Scorer
incidentmind_p1/scoring.py - GraphSAGE Scorer
incidentmind_p1/gnn_scorer.py - PPO Dispatcher
incidentmind_p1/dispatch.py - Incident Contracts
incidentmind_p1/contracts.py - Priority Dispatch
priority/global_dispatch.py - Multi-instance Queue
priority/cross_instance_queue.py
Agent Investigation
- Investigation Pipeline
pipeline.py - Log Agent
agents/log_agent.py - Metrics Agent
agents/metrics_agent.py - Code Agent
agents/code_agent.py - Report Agent
agents/report_agent.py
Operations and Recovery
- ShopMind Services
services - Fault Injection
services/order-service/fault-injector.js - Recovery Monitor
notifications/recovery.py - User Recipients
notifications/recipients.py - Email Notifier
notifications/notifier.py
Incident Console
- Dashboard App
dashboard/src/App.jsx - Incident Data Hook
dashboard/src/hooks/useIncidentData.js - Result Transformer
dashboard/src/data/transformDemoResult.js - Service Graph
dashboard/src/components/ServiceGraph.jsx - Incident Views
dashboard/src/components/tabs
Other components
- Incident Telemetry
Connections 23
- Incident Telemetry → Inference Pipeline: supplies incident
- Inference Pipeline → Incident Loader: loads graph
incidentmind_p1/pipeline.py - Inference Pipeline → Anomaly Scorer: scores graph
incidentmind_p1/pipeline.py - Anomaly Scorer → GraphSAGE Scorer: may use
- Inference Pipeline → PPO Dispatcher: chooses dispatch
incidentmind_p1/pipeline.py - Inference Pipeline → Incident Contracts: returns output
incidentmind_p1/pipeline.py - Incident Telemetry → Priority Dispatch: submits instances
- Priority Dispatch → Multi-instance Queue: queues dispatch
priority/global_dispatch.py - PPO Dispatcher → Investigation Pipeline: dispatches agents
- Investigation Pipeline → Log Agent: calls
pipeline.py - Investigation Pipeline → Metrics Agent: calls
pipeline.py - Investigation Pipeline → Code Agent: calls
pipeline.py - Investigation Pipeline → Report Agent: generates report
pipeline.py - ShopMind Services → Incident Telemetry: exports telemetry
- Fault Injection → ShopMind Services: injects faults
services/order-service/server.js - Recovery Monitor → ShopMind Services: checks baseline
- Recovery Monitor → User Recipients: gets users
- Recovery Monitor → Email Notifier: requests email
- Investigation Pipeline → Dashboard App: publishes RCA
- Dashboard App → Incident Data Hook: loads incident
dashboard/src/App.jsx - Incident Data Hook → Result Transformer: transforms result
dashboard/src/hooks/useIncidentData.js - Dashboard App → Service Graph: renders topology
dashboard/src/App.jsx - Dashboard App → Incident Views: renders views
dashboard/src/App.jsx