How sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution works
This is a locally runnable incident-investigation copilot. Users inject or report an incident, the system gathers and correlates telemetry, discovers service dependencies, and runs a bounded tool-using agent to produce an evidence-backed diagnosis. If evidence is insufficient, a reporter can clarify; remediation remains human-gated, and verified resolutions can enter sanitized incident memory. The graph preserves documented evaluation and dashboard capabilities. Some subsystem links rely on README documentation because their implementation excerpts were not provided.
Main entry points: server.go HTTP API · store.go Incident Store · telemetry.go Telemetry Service · orchestrator.go Investigation Orchestrator
Components 22
User Entry
- Web Dashboard
web/src/App.tsx - Dashboard API Client
web/src/api/client.ts - HTTP API
internal/api/server.go
Signals and Evidence
- Scenario Simulator
internal/simulator/simulator.go - Telemetry Service
internal/telemetry/telemetry.go - PII Redaction
internal/pkg/redact/redactor.go - Signal Correlation
internal/correlation/correlation.go - Dependency Discovery
internal/discovery/discovery.go
Investigation
- Investigation Orchestrator
internal/investigation/orchestrator.go - Diagnostic Tool Registry
internal/tools/registry.go - LLM / Demo Agent
internal/agent/llm.go - Reporter Conversation
internal/conversation/conversation.go
Resolution and Learning
- Human Review and Remediation
internal/review/review.go - Verified Incident Memory
internal/memory/memory.go - Scenario Evaluation
internal/evaluation/evaluation.go
Runtime Platform
- Application Bootstrap
cmd/api/main.go - Incident Store
internal/repository/store.go - Ticket Providers
internal/ticket/provider.go
Other components
- Operator / SRE
- Reporter
- LLM Provider
- Jira
Connections 30
- Operator / SRE → Web Dashboard: uses
README.md - Web Dashboard → Dashboard API Client: calls
web/src/App.tsx - Dashboard API Client → HTTP API: requests
web/src/api/client.ts - Reporter → HTTP API: submits clarification
README.md - HTTP API → Scenario Simulator: runs scenarios
README.md - Scenario Simulator → Incident Store: creates ticket and telemetry
internal/simulator/simulator.go - HTTP API → Investigation Orchestrator: starts investigation
README.md - HTTP API → Reporter Conversation: adds reporter messages
internal/api/server.go - Investigation Orchestrator → LLM / Demo Agent: requests diagnosis
internal/investigation/orchestrator.go - Investigation Orchestrator → Diagnostic Tool Registry: executes tool calls
internal/investigation/orchestrator.go - LLM / Demo Agent → LLM Provider: calls provider
README.md - Diagnostic Tool Registry → Telemetry Service: queries signals
internal/tools/registry.go - Diagnostic Tool Registry → Incident Store: reads and writes
internal/tools/registry.go - Telemetry Service → Incident Store: stores and searches logs
README.md - Incident Store → Signal Correlation: supplies telemetry
README.md - Telemetry Service → Dependency Discovery: provides signals
README.md - HTTP API → Dependency Discovery: triggers discovery
README.md - HTTP API → Human Review and Remediation: handles approval and execution
README.md - Operator / SRE → Human Review and Remediation: approves remediation
README.md - Human Review and Remediation → Incident Store: updates investigation
internal/review/review.go - Human Review and Remediation → Verified Incident Memory: records verified resolution
README.md - HTTP API → Scenario Evaluation: runs benchmark
README.md - Scenario Evaluation → Scenario Simulator: runs scenarios
internal/evaluation/evaluation.go - HTTP API → Telemetry Service: searches logs
internal/api/server.go - Application Bootstrap → HTTP API: starts server
cmd/api/main.go - Application Bootstrap → Incident Store: initializes store
cmd/api/main.go - Application Bootstrap → Investigation Orchestrator: configures investigation
cmd/api/main.go - HTTP API → Ticket Providers: accepts ticket integration
README.md - Ticket Providers → Jira: optionally connects
README.md - Telemetry Service → PII Redaction: sanitizes signals
README.md