# jj1210-spec/telecom-support-resolution-assistant architecture

> Architecture diagram of the GitHub repository jj1210-spec/telecom-support-resolution-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jj1210-spec/telecom-support-resolution-assistant
- Repository: https://github.com/jj1210-spec/telecom-support-resolution-assistant

## Overview

Resolve Desk is a telecom customer-support application: customers submit complaints, receive adaptive intake, and get cited troubleshooting guidance or an admin-owned ticket. Its FastAPI service saves tickets before analysis, then coordinates privacy-aware triage, retrieval, drafting, and routing; customers and admins follow ticket outcomes in a React interface. Admin capabilities also include Copilot, Deep Analysis, taxonomy discovery, drift review, and Incident Radar. PostgreSQL/SQLite is the system of record, with derived vector search and optional model, cache, and observability providers. Some subsystem links are documented in the README; unsampled implementation details are not inferred.

Main entry points: [`src/telecom_assistant/api/app.py`](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/api/app.py) (FastAPI service), [`src/telecom_assistant/tickets/desk.py`](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/tickets/desk.py) (Support desk), [`src/telecom_assistant/knowledge/retrieval.py`](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/knowledge/retrieval.py) (Hybrid retrieval), [`frontend/src/pages/admin/Admin.jsx`](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/admin/Admin.jsx) (Admin console)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["React interface"]
  node_webapp["React app<br/>[main.jsx]"]
  node_auth["Session auth<br/>[useAuth.jsx]"]
  node_customerintake["Ticket intake<br/>[NewTicket.jsx]"]
  node_customertickets["Customer tickets<br/>[Tickets.jsx]"]
  node_adminconsole["Admin console<br/>[Admin.jsx]"]
  node_adminticket["Ticket Copilot<br/>[AdminTicket.jsx]"]
  node_deepanalysis["Deep Analysis<br/>[Console.jsx]"]
end

subgraph group_ticket["API and tickets"]
  node_api["FastAPI service<br/>[app.py]"]
  node_security["Access control<br/>[security.py]"]
  node_desk["Support desk<br/>[desk.py]"]
  node_lifecycle["Ticket lifecycle<br/>[lifecycle.py]"]
end

subgraph group_decision["Analysis and retrieval"]
  node_triage["Triage and drafting<br/>[resolver.py]"]
  node_clarify["Adaptive intake<br/>[clarify.py]"]
  node_retrieval["Hybrid retrieval<br/>[retrieval.py]"]
  node_taxonomy["Taxonomy<br/>[taxonomy.py]"]
  node_indexer["Search indexing<br/>[indexer.py]"]
end

subgraph group_insights["Admin insights"]
  node_insights["Discovery and drift<br/>[discovery.py]"]
  node_incidents["Incident Radar<br/>[incidents.py]"]
end

subgraph group_platform["State and providers"]
  node_database[("System of record<br/>[db.py]")]
  node_vectors[("Vector index<br/>[vectors.py]")]
  node_llm{{"LLM providers<br/>[llm.py]"}}
  node_embeddings{{"Embedding services<br/>[embeddings.py]"}}
  node_cache[("Cache gateway<br/>[kv.py]")]
end

node_customer(("Customer"))
node_admin(("Admin"))

node_customer -->|"uses"| node_webapp
node_admin -->|"uses"| node_webapp
node_webapp -->|"provides session"| node_auth
node_customer -->|"submits complaint"| node_customerintake
node_customer -->|"reviews outcome"| node_customertickets
node_admin -->|"reviews queue"| node_adminconsole
node_admin -->|"investigates ticket"| node_adminticket
node_admin -->|"analyzes complaint"| node_deepanalysis
node_customerintake -->|"sends requests"| node_api
node_customertickets -->|"loads ticket data"| node_api
node_adminconsole -->|"loads admin data"| node_api
node_adminticket -->|"updates ticket"| node_api
node_api -->|"checks access"| node_security
node_api -->|"routes support"| node_desk
node_desk -->|"requests clarification"| node_clarify
node_desk -->|"resolves complaint"| node_triage
node_desk -->|"retrieves evidence"| node_retrieval
node_desk -->|"advances ticket"| node_lifecycle
node_triage -->|"requests generation"| node_llm
node_triage -->|"grounds draft"| node_retrieval
node_clarify -->|"checks evidence"| node_retrieval
node_clarify -->|"uses issue classes"| node_taxonomy
node_retrieval -->|"embeds query"| node_embeddings
node_retrieval -->|"searches index"| node_vectors
node_indexer -->|"embeds documents"| node_embeddings
node_indexer -->|"updates index"| node_vectors
node_indexer -->|"loads source data"| node_database
node_api -->|"persists records"| node_database
node_insights -->|"analyzes ticket data"| node_database
node_insights -->|"proposes classes"| node_taxonomy
node_adminconsole -.->|"reviews drift"| node_insights
node_adminconsole -.->|"reviews incidents"| node_incidents
node_api -.->|"serves incident data"| node_incidents
node_llm -->|"tracks quotas"| node_cache

click node_webapp "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/main.jsx"
click node_auth "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/hooks/useAuth.jsx"
click node_customerintake "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/customer/NewTicket.jsx"
click node_customertickets "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/customer/Tickets.jsx"
click node_adminconsole "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/admin/Admin.jsx"
click node_adminticket "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/admin/AdminTicket.jsx"
click node_deepanalysis "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/admin/Console.jsx"
click node_api "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/api/app.py"
click node_security "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/api/security.py"
click node_desk "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/tickets/desk.py"
click node_lifecycle "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/tickets/lifecycle.py"
click node_triage "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/ai/resolver.py"
click node_clarify "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/ai/clarify.py"
click node_retrieval "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/knowledge/retrieval.py"
click node_taxonomy "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/knowledge/taxonomy.py"
click node_indexer "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/knowledge/indexer.py"
click node_insights "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/insights/discovery.py"
click node_incidents "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/insights/incidents.py"
click node_database "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/db.py"
click node_vectors "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/gateways/vectors.py"
click node_llm "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/gateways/llm.py"
click node_embeddings "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/gateways/embeddings.py"
click node_cache "https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/gateways/kv.py"

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_webapp,node_auth,node_customerintake,node_customertickets,node_adminconsole,node_adminticket,node_deepanalysis toneBlue
class node_api,node_security,node_desk,node_lifecycle toneAmber
class node_triage,node_clarify,node_retrieval,node_taxonomy,node_indexer toneMint
class node_insights,node_incidents toneRose
class node_database,node_vectors,node_llm,node_embeddings,node_cache,node_customer,node_admin toneIndigo
```

## Components

### React interface

- [React app](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Session auth](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/hooks/useAuth.jsx): `frontend/src/hooks/useAuth.jsx`
- [Ticket intake](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/customer/NewTicket.jsx): `frontend/src/pages/customer/NewTicket.jsx`
- [Customer tickets](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/customer/Tickets.jsx): `frontend/src/pages/customer/Tickets.jsx`
- [Admin console](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/admin/Admin.jsx): `frontend/src/pages/admin/Admin.jsx`
- [Ticket Copilot](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/admin/AdminTicket.jsx): `frontend/src/pages/admin/AdminTicket.jsx`
- [Deep Analysis](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/frontend/src/pages/admin/Console.jsx): `frontend/src/pages/admin/Console.jsx`

### API and tickets

- [FastAPI service](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/api/app.py): `src/telecom_assistant/api/app.py`
- [Access control](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/api/security.py): `src/telecom_assistant/api/security.py`
- [Support desk](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/tickets/desk.py): `src/telecom_assistant/tickets/desk.py`
- [Ticket lifecycle](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/tickets/lifecycle.py): `src/telecom_assistant/tickets/lifecycle.py`

### Analysis and retrieval

- [Triage and drafting](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/ai/resolver.py): `src/telecom_assistant/ai/resolver.py`
- [Adaptive intake](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/ai/clarify.py): `src/telecom_assistant/ai/clarify.py`
- [Hybrid retrieval](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/knowledge/retrieval.py): `src/telecom_assistant/knowledge/retrieval.py`
- [Taxonomy](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/knowledge/taxonomy.py): `src/telecom_assistant/knowledge/taxonomy.py`
- [Search indexing](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/knowledge/indexer.py): `src/telecom_assistant/knowledge/indexer.py`

### Admin insights

- [Discovery and drift](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/insights/discovery.py): `src/telecom_assistant/insights/discovery.py`
- [Incident Radar](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/insights/incidents.py): `src/telecom_assistant/insights/incidents.py`

### State and providers

- [System of record](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/db.py): `src/telecom_assistant/db.py`
- [Vector index](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/gateways/vectors.py): `src/telecom_assistant/gateways/vectors.py`
- [LLM providers](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/gateways/llm.py): `src/telecom_assistant/gateways/llm.py`
- [Embedding services](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/gateways/embeddings.py): `src/telecom_assistant/gateways/embeddings.py`
- [Cache gateway](https://github.com/jj1210-spec/telecom-support-resolution-assistant/blob/main/src/telecom_assistant/gateways/kv.py): `src/telecom_assistant/gateways/kv.py`

### Other components

- **Customer**
- **Admin**

## Connections

- Customer → React app: uses (evidence: `README.md`)
- Admin → React app: uses (evidence: `README.md`)
- React app → Session auth: provides session (evidence: `frontend/src/main.jsx`)
- Customer → Ticket intake: submits complaint (evidence: `README.md`)
- Customer → Customer tickets: reviews outcome (evidence: `README.md`)
- Admin → Admin console: reviews queue (evidence: `README.md`)
- Admin → Ticket Copilot: investigates ticket (evidence: `README.md`)
- Admin → Deep Analysis: analyzes complaint (evidence: `README.md`)
- Ticket intake → FastAPI service: sends requests (evidence: `frontend/src/pages/customer/NewTicket.jsx`)
- Customer tickets → FastAPI service: loads ticket data (evidence: `frontend/src/pages/customer/Tickets.jsx`)
- Admin console → FastAPI service: loads admin data (evidence: `frontend/src/pages/admin/Admin.jsx`)
- Ticket Copilot → FastAPI service: updates ticket (evidence: `frontend/src/pages/admin/AdminTicket.jsx`)
- FastAPI service → Access control: checks access (evidence: `src/telecom_assistant/api/app.py`)
- FastAPI service → Support desk: routes support (evidence: `src/telecom_assistant/api/app.py`)
- Support desk → Adaptive intake: requests clarification (evidence: `src/telecom_assistant/tickets/desk.py`)
- Support desk → Triage and drafting: resolves complaint (evidence: `src/telecom_assistant/tickets/desk.py`)
- Support desk → Hybrid retrieval: retrieves evidence (evidence: `src/telecom_assistant/tickets/desk.py`)
- Support desk → Ticket lifecycle: advances ticket (evidence: `src/telecom_assistant/tickets/desk.py`)
- Triage and drafting → LLM providers: requests generation (evidence: `src/telecom_assistant/ai/resolver.py`)
- Triage and drafting → Hybrid retrieval: grounds draft (evidence: `src/telecom_assistant/ai/resolver.py`)
- Adaptive intake → Hybrid retrieval: checks evidence (evidence: `src/telecom_assistant/ai/clarify.py`)
- Adaptive intake → Taxonomy: uses issue classes (evidence: `src/telecom_assistant/ai/clarify.py`)
- Hybrid retrieval → Embedding services: embeds query (evidence: `src/telecom_assistant/knowledge/retrieval.py`)
- Hybrid retrieval → Vector index: searches index (evidence: `src/telecom_assistant/knowledge/retrieval.py`)
- Search indexing → Embedding services: embeds documents (evidence: `src/telecom_assistant/knowledge/indexer.py`)
- Search indexing → Vector index: updates index (evidence: `src/telecom_assistant/knowledge/indexer.py`)
- Search indexing → System of record: loads source data (evidence: `src/telecom_assistant/knowledge/indexer.py`)
- FastAPI service → System of record: persists records (evidence: `README.md`)
- Discovery and drift → System of record: analyzes ticket data (evidence: `src/telecom_assistant/insights/discovery.py`)
- Discovery and drift → Taxonomy: proposes classes (evidence: `src/telecom_assistant/insights/discovery.py`)
- Admin console → Discovery and drift: reviews drift (evidence: `README.md`)
- Admin console → Incident Radar: reviews incidents (evidence: `README.md`)
- FastAPI service → Incident Radar: serves incident data (evidence: `README.md`)
- LLM providers → Cache gateway: tracks quotas (evidence: `src/telecom_assistant/gateways/llm.py`)
