How nithinvn/microsoft_hackathon works
IncidentMind is a prototype incident-response application: monitoring alerts and simulated incidents enter a FastAPI backend, which can coordinate investigation, blast-radius assessment, memory retrieval, diagnosis, and bounded remediation with human approval. Results and post-incident records are presented in a React dashboard and stored in PostgreSQL; runbooks and optional Hindsight Cloud memory provide separate evidence sources. The frontend also offers a scripted demo. Relationships below follow excerpts, SOURCE INDEX references, or README documentation; unsampled implementation details and uncertain wiring are omitted.
Main entry points: incident_orchestrator.py Workflow Orchestrator · endpoints FastAPI API · App.tsx React Dashboard · engine.py Incident Simulator
Components 23
Intake and State
- FastAPI API
backend/app/api/v1/endpoints - Incident Intake
backend/app/services/incident_intake.py - Incident Simulator
backend/app/simulator/engine.py - Incident Repository
backend/app/repositories/incident_repository.py - PostgreSQL State
Response Workflow
- Workflow Orchestrator
backend/app/orchestration/incident_orchestrator.py - Investigation
backend/app/agents/investigation_agent.py - Blast Radius
backend/app/agents/blast_radius_agent.py - Incident Memory
backend/app/agents/incident_memory_agent.py - Diagnosis
backend/app/agents/diagnosis_agent.py - Remediation Options
backend/app/agents/remediation_agent.py - Time Machine
backend/app/agents/time_machine_agent.py - Response Tools
backend/app/tools/incident_response_tools.py
Evidence Sources
- Runbook Retrieval
backend/app/knowledge/rag_service.py - Memory Adapter
backend/app/memory/hindsight_service.py - Hindsight Cloud
Operator Interface
- React Dashboard
frontend/src/App.tsx - API Client
frontend/src/api/client.ts - Scripted Demo
frontend/src/App.tsx - Human Approval
frontend/src/components/HumanApprovalModal.tsx - Post-incident Learning
frontend/src/components/PostmortemLearningLoop.tsx
Other components
- Responders
- Alert Sources
Connections 27
- Alert Sources → FastAPI API: sends alerts
- Responders → FastAPI API: uses API
- FastAPI API → Incident Intake: normalizes alerts
backend/app/api/v1/endpoints/webhooks.py - FastAPI API → Workflow Orchestrator: starts workflow
backend/app/api/v1/endpoints/incidents.py - FastAPI API → Incident Simulator: runs simulation
backend/app/api/v1/endpoints/simulator.py - Incident Intake → Incident Repository: records incidents
backend/app/services/incident_intake.py - Incident Repository → PostgreSQL State: persists state
- Incident Simulator → Incident Intake: uses intake path
backend/app/simulator/engine.py - Incident Simulator → Incident Repository: writes records
backend/app/simulator/engine.py - Workflow Orchestrator → Investigation: runs investigation
backend/app/orchestration/incident_orchestrator.py - Workflow Orchestrator → Blast Radius: assesses impact
backend/app/orchestration/incident_orchestrator.py - Workflow Orchestrator → Incident Memory: assesses memory
backend/app/orchestration/incident_orchestrator.py - Workflow Orchestrator → Diagnosis: diagnoses cause
backend/app/orchestration/incident_orchestrator.py - Workflow Orchestrator → Remediation Options: proposes actions
backend/app/orchestration/incident_orchestrator.py - Workflow Orchestrator → Response Tools: uses tools
backend/app/orchestration/incident_orchestrator.py - Investigation → Runbook Retrieval: retrieves runbooks
- Diagnosis → Runbook Retrieval: uses guidance
- Incident Memory → Memory Adapter: requests evidence
backend/app/agents/incident_memory_agent.py - Memory Adapter → Hindsight Cloud: recalls and retains
- Workflow Orchestrator → Memory Adapter: retains lessons
backend/app/orchestration/incident_orchestrator.py - Workflow Orchestrator → Time Machine: compares actions
- React Dashboard → API Client: fetches health
frontend/src/App.tsx - API Client → FastAPI API: calls backend
- Responders → React Dashboard: views results
- React Dashboard → Scripted Demo: launches demo
frontend/src/App.tsx - React Dashboard → Human Approval: presents approval
- React Dashboard → Post-incident Learning: shows learning
frontend/src/components/PostmortemLearningLoop.tsx