# sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution architecture

> Architecture diagram of the GitHub repository sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution
- Repository: https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution

## Overview

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: [`internal/api/server.go`](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/api/server.go) (HTTP API), [`internal/repository/store.go`](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/repository/store.go) (Incident Store), [`internal/telemetry/telemetry.go`](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/telemetry/telemetry.go) (Telemetry Service), [`internal/investigation/orchestrator.go`](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/investigation/orchestrator.go) (Investigation Orchestrator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User Entry"]
  node_dashboard["Web Dashboard<br/>[App.tsx]"]
  node_webclient["Dashboard API Client<br/>[client.ts]"]
  node_httpapi["HTTP API<br/>[server.go]"]
end

subgraph group_signals["Signals and Evidence"]
  node_simulator["Scenario Simulator<br/>[simulator.go]"]
  node_telemetry["Telemetry Service<br/>[telemetry.go]"]
  node_redaction["PII Redaction<br/>[redactor.go]"]
  node_correlation["Signal Correlation<br/>[correlation.go]"]
  node_discovery["Dependency Discovery<br/>[discovery.go]"]
end

subgraph group_investigation["Investigation"]
  node_orchestrator["Investigation Orchestrator<br/>[orchestrator.go]"]
  node_tools["Diagnostic Tool Registry<br/>[registry.go]"]
  node_agent["LLM / Demo Agent<br/>[llm.go]"]
  node_conversation["Reporter Conversation<br/>[conversation.go]"]
end

subgraph group_resolution["Resolution and Learning"]
  node_review["Human Review and Remediation<br/>[review.go]"]
  node_memory[("Verified Incident Memory<br/>[memory.go]")]
  node_evaluation["Scenario Evaluation<br/>[evaluation.go]"]
end

subgraph group_platform["Runtime Platform"]
  node_bootstrap["Application Bootstrap<br/>[main.go]"]
  node_store[("Incident Store<br/>[store.go]")]
  node_tickets["Ticket Providers<br/>[provider.go]"]
end

node_operator(("Operator / SRE"))
node_reporter(("Reporter"))
node_llmservice{{"LLM Provider"}}
node_jira{{"Jira"}}

node_operator -->|"uses"| node_dashboard
node_dashboard -->|"calls"| node_webclient
node_webclient -->|"requests"| node_httpapi
node_reporter -->|"submits clarification"| node_httpapi
node_httpapi -->|"runs scenarios"| node_simulator
node_simulator -->|"creates ticket and telemetry"| node_store
node_httpapi -->|"starts investigation"| node_orchestrator
node_httpapi -->|"adds reporter messages"| node_conversation
node_orchestrator -->|"requests diagnosis"| node_agent
node_orchestrator -->|"executes tool calls"| node_tools
node_agent -.->|"calls provider"| node_llmservice
node_tools -->|"queries signals"| node_telemetry
node_tools -->|"reads and writes"| node_store
node_telemetry -.->|"stores and searches logs"| node_store
node_store -->|"supplies telemetry"| node_correlation
node_telemetry -->|"provides signals"| node_discovery
node_httpapi -->|"triggers discovery"| node_discovery
node_httpapi -->|"handles approval and execution"| node_review
node_operator -->|"approves remediation"| node_review
node_review -->|"updates investigation"| node_store
node_review -->|"records verified resolution"| node_memory
node_httpapi -->|"runs benchmark"| node_evaluation
node_evaluation -->|"runs scenarios"| node_simulator
node_httpapi -->|"searches logs"| node_telemetry
node_bootstrap -.->|"starts server"| node_httpapi
node_bootstrap -->|"initializes store"| node_store
node_bootstrap -->|"configures investigation"| node_orchestrator
node_httpapi -.->|"accepts ticket integration"| node_tickets
node_tickets -.->|"optionally connects"| node_jira
node_telemetry -.->|"sanitizes signals"| node_redaction

click node_dashboard "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/web/src/App.tsx"
click node_webclient "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/web/src/api/client.ts"
click node_httpapi "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/api/server.go"
click node_bootstrap "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/cmd/api/main.go"
click node_simulator "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/simulator/simulator.go"
click node_telemetry "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/telemetry/telemetry.go"
click node_redaction "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/pkg/redact/redactor.go"
click node_correlation "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/correlation/correlation.go"
click node_discovery "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/discovery/discovery.go"
click node_store "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/repository/store.go"
click node_orchestrator "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/investigation/orchestrator.go"
click node_tools "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/tools/registry.go"
click node_agent "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/agent/llm.go"
click node_conversation "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/conversation/conversation.go"
click node_tickets "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/ticket/provider.go"
click node_review "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/review/review.go"
click node_memory "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/memory/memory.go"
click node_evaluation "https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/evaluation/evaluation.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_webclient,node_httpapi toneBlue
class node_simulator,node_telemetry,node_redaction,node_correlation,node_discovery toneAmber
class node_orchestrator,node_tools,node_agent,node_conversation toneMint
class node_review,node_memory,node_evaluation toneRose
class node_bootstrap,node_store,node_tickets,node_operator,node_reporter,node_llmservice,node_jira toneIndigo
```

## Components

### User Entry

- [Web Dashboard](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/web/src/App.tsx): `web/src/App.tsx`
- [Dashboard API Client](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/web/src/api/client.ts): `web/src/api/client.ts`
- [HTTP API](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/api/server.go): `internal/api/server.go`

### Signals and Evidence

- [Scenario Simulator](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/simulator/simulator.go): `internal/simulator/simulator.go`
- [Telemetry Service](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/telemetry/telemetry.go): `internal/telemetry/telemetry.go`
- [PII Redaction](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/pkg/redact/redactor.go): `internal/pkg/redact/redactor.go`
- [Signal Correlation](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/correlation/correlation.go): `internal/correlation/correlation.go`
- [Dependency Discovery](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/discovery/discovery.go): `internal/discovery/discovery.go`

### Investigation

- [Investigation Orchestrator](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/investigation/orchestrator.go): `internal/investigation/orchestrator.go`
- [Diagnostic Tool Registry](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/tools/registry.go): `internal/tools/registry.go`
- [LLM / Demo Agent](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/agent/llm.go): `internal/agent/llm.go`
- [Reporter Conversation](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/conversation/conversation.go): `internal/conversation/conversation.go`

### Resolution and Learning

- [Human Review and Remediation](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/review/review.go): `internal/review/review.go`
- [Verified Incident Memory](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/memory/memory.go): `internal/memory/memory.go`
- [Scenario Evaluation](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/evaluation/evaluation.go): `internal/evaluation/evaluation.go`

### Runtime Platform

- [Application Bootstrap](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/cmd/api/main.go): `cmd/api/main.go`
- [Incident Store](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/repository/store.go): `internal/repository/store.go`
- [Ticket Providers](https://github.com/sohith2007/ai-root-cause-analysis-intelligent-ticket-resolution/blob/main/internal/ticket/provider.go): `internal/ticket/provider.go`

### Other components

- **Operator / SRE**
- **Reporter**
- **LLM Provider**
- **Jira**

## Connections

- Operator / SRE → Web Dashboard: uses (evidence: `README.md`)
- Web Dashboard → Dashboard API Client: calls (evidence: `web/src/App.tsx`)
- Dashboard API Client → HTTP API: requests (evidence: `web/src/api/client.ts`)
- Reporter → HTTP API: submits clarification (evidence: `README.md`)
- HTTP API → Scenario Simulator: runs scenarios (evidence: `README.md`)
- Scenario Simulator → Incident Store: creates ticket and telemetry (evidence: `internal/simulator/simulator.go`)
- HTTP API → Investigation Orchestrator: starts investigation (evidence: `README.md`)
- HTTP API → Reporter Conversation: adds reporter messages (evidence: `internal/api/server.go`)
- Investigation Orchestrator → LLM / Demo Agent: requests diagnosis (evidence: `internal/investigation/orchestrator.go`)
- Investigation Orchestrator → Diagnostic Tool Registry: executes tool calls (evidence: `internal/investigation/orchestrator.go`)
- LLM / Demo Agent → LLM Provider: calls provider (evidence: `README.md`)
- Diagnostic Tool Registry → Telemetry Service: queries signals (evidence: `internal/tools/registry.go`)
- Diagnostic Tool Registry → Incident Store: reads and writes (evidence: `internal/tools/registry.go`)
- Telemetry Service → Incident Store: stores and searches logs (evidence: `README.md`)
- Incident Store → Signal Correlation: supplies telemetry (evidence: `README.md`)
- Telemetry Service → Dependency Discovery: provides signals (evidence: `README.md`)
- HTTP API → Dependency Discovery: triggers discovery (evidence: `README.md`)
- HTTP API → Human Review and Remediation: handles approval and execution (evidence: `README.md`)
- Operator / SRE → Human Review and Remediation: approves remediation (evidence: `README.md`)
- Human Review and Remediation → Incident Store: updates investigation (evidence: `internal/review/review.go`)
- Human Review and Remediation → Verified Incident Memory: records verified resolution (evidence: `README.md`)
- HTTP API → Scenario Evaluation: runs benchmark (evidence: `README.md`)
- Scenario Evaluation → Scenario Simulator: runs scenarios (evidence: `internal/evaluation/evaluation.go`)
- HTTP API → Telemetry Service: searches logs (evidence: `internal/api/server.go`)
- Application Bootstrap → HTTP API: starts server (evidence: `cmd/api/main.go`)
- Application Bootstrap → Incident Store: initializes store (evidence: `cmd/api/main.go`)
- Application Bootstrap → Investigation Orchestrator: configures investigation (evidence: `cmd/api/main.go`)
- HTTP API → Ticket Providers: accepts ticket integration (evidence: `README.md`)
- Ticket Providers → Jira: optionally connects (evidence: `README.md`)
- Telemetry Service → PII Redaction: sanitizes signals (evidence: `README.md`)
