# chemli-fay/supportops architecture

> Architecture diagram of the GitHub repository chemli-fay/supportops, 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/chemli-fay/supportops
- Repository: https://github.com/chemli-fay/supportops

## Overview

Northstar Support is a local support-operations demo: a customer selects a fictional customer context, asks a support question in the Streamlit workspace, and receives an answer grounded in bounded agent tools and local records. Cancellation adds an approval pause before a simulated SQLite update. The graph also includes documented operations views, deterministic and live evaluation, and optional tracing. Relationships are grounded in the README and shown excerpts; unsampled UI and evaluation details are represented only where documented.

Main entry points: [`src/support_ops/agent.py`](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/agent.py) (Support agent), [`app.py`](https://github.com/chemli-fay/supportops/blob/main/app.py) (Operations workspace), [`src/support_ops/storage.py`](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/storage.py) (Support store), [`src/support_ops/agent_evaluation.py`](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/agent_evaluation.py) (Agent evaluation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_streamlit["Operations workspace<br/>[app.py]"]
  node_notebooks["Notebook workflow"]
  node_catalog["Catalog views<br/>[app.py]"]
end

subgraph group_support["Support workflow"]
  node_agent["Support agent<br/>[agent.py]"]
  node_groq{{"Groq model"}}
  node_tools["Validated tools<br/>[tools.py]"]
  node_policies["Policy search<br/>[policies.py]"]
  node_approval(("Human approval"))
  node_checkpoints[("Run checkpoints<br/>[agent.py]")]
  node_config["Project settings<br/>[config.py]"]
end

subgraph group_data["Local data"]
  node_store["Support store<br/>[storage.py]"]
  node_sqlite[("Local SQLite<br/>[storage.py]")]
  node_records["Validated records<br/>[records.py]"]
  node_fixtures["Synthetic fixtures"]
end

subgraph group_quality["Evaluation"]
  node_graph["Deterministic workflow<br/>[graph.py]"]
  node_evaluation["Scenario checks<br/>[evaluation.py]"]
  node_agent_evaluation["Agent evaluation"]
end

subgraph group_telemetry["Observability"]
  node_observability["Trace context<br/>[observability.py]"]
  node_langsmith{{"LangSmith"}}
end

node_customer(("Support user"))

node_customer -->|"asks support"| node_streamlit
node_streamlit -->|"submits requests"| node_agent
node_notebooks -->|"runs workflow"| node_agent
node_agent -->|"invokes model"| node_groq
node_agent -->|"dispatches tools"| node_tools
node_agent -->|"loads and searches"| node_policies
node_agent -->|"requests approval"| node_approval
node_streamlit -->|"collects decision"| node_approval
node_agent -->|"resumes runs"| node_checkpoints
node_tools -->|"reads and updates"| node_store
node_store -->|"reads and writes"| node_sqlite
node_store -->|"loads validated records"| node_records
node_records -.->|"validates customer and product data"| node_fixtures
node_store -->|"loads orders and related data"| node_fixtures
node_streamlit -->|"renders operations views"| node_store
node_streamlit -->|"renders catalog"| node_catalog
node_graph -->|"creates order lookup"| node_tools
node_evaluation -->|"evaluates scenarios"| node_graph
node_agent_evaluation -->|"executes cases"| node_agent
node_agent_evaluation -->|"uses scenario checks"| node_evaluation
node_agent_evaluation -->|"publishes experiments"| node_langsmith
node_agent -.->|"configures trace metadata"| node_observability
node_observability -->|"loads settings"| node_config
node_observability -->|"configures tracing"| node_langsmith
node_agent -->|"loads runtime settings"| node_config

click node_streamlit "https://github.com/chemli-fay/supportops/blob/main/app.py"
click node_notebooks "https://github.com/chemli-fay/supportops/tree/main/notebooks"
click node_agent "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/agent.py"
click node_tools "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/tools.py"
click node_policies "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/policies.py"
click node_checkpoints "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/agent.py"
click node_store "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/storage.py"
click node_sqlite "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/storage.py"
click node_records "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/records.py"
click node_fixtures "https://github.com/chemli-fay/supportops/tree/main/data"
click node_catalog "https://github.com/chemli-fay/supportops/blob/main/app.py"
click node_graph "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/graph.py"
click node_evaluation "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/evaluation.py"
click node_agent_evaluation "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/agent_evaluation.py"
click node_observability "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/observability.py"
click node_config "https://github.com/chemli-fay/supportops/blob/main/src/support_ops/config.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_streamlit,node_notebooks,node_catalog,node_customer toneBlue
class node_agent,node_groq,node_tools,node_policies,node_approval,node_checkpoints,node_config toneAmber
class node_store,node_sqlite,node_records,node_fixtures toneMint
class node_graph,node_evaluation,node_agent_evaluation toneRose
class node_observability,node_langsmith toneIndigo
```

## Components

### User experience

- [Operations workspace](https://github.com/chemli-fay/supportops/blob/main/app.py): `app.py`
- [Notebook workflow](https://github.com/chemli-fay/supportops/tree/main/notebooks): `notebooks`
- [Catalog views](https://github.com/chemli-fay/supportops/blob/main/app.py): `app.py`

### Support workflow

- [Support agent](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/agent.py): `src/support_ops/agent.py`
- **Groq model**
- [Validated tools](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/tools.py): `src/support_ops/tools.py`
- [Policy search](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/policies.py): `src/support_ops/policies.py`
- **Human approval**
- [Run checkpoints](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/agent.py): `src/support_ops/agent.py`
- [Project settings](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/config.py): `src/support_ops/config.py`

### Local data

- [Support store](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/storage.py): `src/support_ops/storage.py`
- [Local SQLite](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/storage.py): `src/support_ops/storage.py`
- [Validated records](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/records.py): `src/support_ops/records.py`
- [Synthetic fixtures](https://github.com/chemli-fay/supportops/tree/main/data): `data`

### Evaluation

- [Deterministic workflow](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/graph.py): `src/support_ops/graph.py`
- [Scenario checks](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/evaluation.py): `src/support_ops/evaluation.py`
- [Agent evaluation](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/agent_evaluation.py): `src/support_ops/agent_evaluation.py`

### Observability

- [Trace context](https://github.com/chemli-fay/supportops/blob/main/src/support_ops/observability.py): `src/support_ops/observability.py`
- **LangSmith**

### Other components

- **Support user**

## Connections

- Support user → Operations workspace: asks support (evidence: `README.md`)
- Operations workspace → Support agent: submits requests (evidence: `README.md`)
- Notebook workflow → Support agent: runs workflow (evidence: `README.md`)
- Support agent → Groq model: invokes model (evidence: `src/support_ops/agent.py`)
- Support agent → Validated tools: dispatches tools (evidence: `README.md`)
- Support agent → Policy search: loads and searches (evidence: `src/support_ops/agent.py`)
- Support agent → Human approval: requests approval (evidence: `README.md`)
- Operations workspace → Human approval: collects decision (evidence: `app.py`)
- Support agent → Run checkpoints: resumes runs (evidence: `README.md`)
- Validated tools → Support store: reads and updates (evidence: `README.md`)
- Support store → Local SQLite: reads and writes (evidence: `src/support_ops/storage.py`)
- Support store → Validated records: loads validated records (evidence: `src/support_ops/storage.py`)
- Validated records → Synthetic fixtures: validates customer and product data
- Support store → Synthetic fixtures: loads orders and related data (evidence: `src/support_ops/storage.py`)
- Operations workspace → Support store: renders operations views (evidence: `README.md`)
- Operations workspace → Catalog views: renders catalog (evidence: `app.py`)
- Deterministic workflow → Validated tools: creates order lookup (evidence: `src/support_ops/graph.py`)
- Scenario checks → Deterministic workflow: evaluates scenarios (evidence: `src/support_ops/evaluation.py`)
- Agent evaluation → Support agent: executes cases (evidence: `src/support_ops/agent_evaluation.py`)
- Agent evaluation → Scenario checks: uses scenario checks (evidence: `src/support_ops/agent_evaluation.py`)
- Agent evaluation → LangSmith: publishes experiments (evidence: `README.md`)
- Support agent → Trace context: configures trace metadata
- Trace context → Project settings: loads settings (evidence: `src/support_ops/observability.py`)
- Trace context → LangSmith: configures tracing (evidence: `README.md`)
- Support agent → Project settings: loads runtime settings (evidence: `src/support_ops/agent.py`)
