# suleymandiker/ao-hackathon-2026-teletabiler architecture

> Architecture diagram of the GitHub repository suleymandiker/ao-hackathon-2026-teletabiler, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/suleymandiker/ao-hackathon-2026-teletabiler
- Repository: https://github.com/suleymandiker/ao-hackathon-2026-teletabiler

## Overview

AOP is a deterministic SRE log-and-alert analysis platform with Streamlit operational and layer-monitoring views. Its principal workflow takes an uploaded alarm package or raw log through input handling, segmentation, parsing and templating, then derives qualified signals, correlations, incidents, RCA hypotheses and safe plans. AI is limited to unknown-format discovery and post-incident expert commentary. The repository also contains a separate OpenSearch-backed monitoring/acquisition path. Relationships below follow README claims and indexed or excerpted source references; unsampled implementation details are not assumed.

Main entry points: [`src/backend/downstream_pipeline.py`](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/downstream_pipeline.py) (Downstream orchestrator), [`src/backend/full_pipeline_v2.py`](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/full_pipeline_v2.py) (Full pipeline), [`src/frontend/streamlit_app.py`](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/frontend/streamlit_app.py) (Streamlit interface), [`src/backend/ai_engine.py`](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/ai_engine.py) (AI gateway)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User experience"]
  node_streamlit["Streamlit interface<br/>[streamlit_app.py]"]
  node_investigation["Investigation views"]
  node_layer_views["Layer monitoring views"]
end

subgraph group_ingest["Input and normalization"]
  node_pipeline["Full pipeline"]
  node_package["Input package loader<br/>[package_loader.py]"]
  node_segmentation["Log segmentation"]
  node_parser["Canonical parser<br/>[parser_pipeline.py]"]
  node_templates["Template extraction"]
  node_ai["AI gateway<br/>[ai_engine.py]"]
end

subgraph group_analysis["Deterministic analysis"]
  node_downstream["Downstream orchestrator"]
  node_aggregation["Window aggregation<br/>[aggregator.py]"]
  node_qualification["Signal qualification<br/>[noise_gate.py]"]
  node_correlation["Topology correlation<br/>[correlator.py]"]
end

subgraph group_insight["Incident response"]
  node_incident["Incident clustering<br/>[builder.py]"]
  node_context["Context enrichment<br/>[enricher.py]"]
  node_rca["RCA hypotheses<br/>[rca_engine.py]"]
  node_planning["Response planning<br/>[planner.py]"]
end

subgraph group_monitor["Monitoring and acquisition"]
  node_os_source["OpenSearch acquisition"]
  node_os_client["OpenSearch transport"]
  node_monitor_app["Monitoring application"]
  node_repository[("Monitoring repository<br/>[repository.py]")]
  node_worker["Monitoring worker<br/>[worker.py]"]
end

node_operator(("SRE operator"))
node_opensearch[("OpenSearch")]

node_operator -->|"uploads data"| node_streamlit
node_streamlit -->|"starts analysis"| node_pipeline
node_streamlit -.->|"shows analysis"| node_investigation
node_streamlit -.->|"shows stages"| node_layer_views
node_pipeline -->|"loads packages"| node_package
node_pipeline -->|"segments logs"| node_segmentation
node_pipeline -->|"parses events"| node_parser
node_pipeline -->|"extracts templates"| node_templates
node_pipeline -->|"dispatches events"| node_downstream
node_segmentation -->|"discovers formats"| node_ai
node_parser -->|"discovers parsers"| node_ai
node_downstream -->|"aggregates events"| node_aggregation
node_downstream -->|"qualifies signals"| node_qualification
node_downstream -->|"correlates signals"| node_correlation
node_downstream -->|"clusters incidents"| node_incident
node_downstream -->|"enriches context"| node_context
node_downstream -->|"ranks hypotheses"| node_rca
node_downstream -->|"creates plans"| node_planning
node_rca -->|"requests commentary"| node_ai
node_layer_views -->|"reads monitoring"| node_repository
node_worker -->|"records runs"| node_repository
node_monitor_app -->|"acquires records"| node_os_source
node_os_source -->|"sends queries"| node_os_client
node_os_client -->|"queries"| node_opensearch

click node_streamlit "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/frontend/streamlit_app.py"
click node_investigation "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/frontend/investigation_views.py"
click node_layer_views "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/frontend/monitoring_views.py"
click node_pipeline "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/full_pipeline_v2.py"
click node_package "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/input_package_layer/package_loader.py"
click node_segmentation "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/segmentation_layer/segmentation_pipeline.py"
click node_parser "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/parser_layer/parser_pipeline.py"
click node_templates "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/template_layer/template_pipeline.py"
click node_ai "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/ai_engine.py"
click node_downstream "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/downstream_pipeline.py"
click node_aggregation "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/aggregation_layer/aggregator.py"
click node_qualification "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/signal_qualification_layer/noise_gate.py"
click node_correlation "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/correlation_layer/correlator.py"
click node_incident "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/incident_candidate_layer/builder.py"
click node_context "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/context_enrichment_layer/enricher.py"
click node_rca "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/rca_layer/rca_engine.py"
click node_planning "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/learning_planning_layer/planner.py"
click node_os_source "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/ingestion_layer/opensearch_source.py"
click node_os_client "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/ingestion_layer/opensearch_client.py"
click node_monitor_app "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/opensearch_application.py"
click node_repository "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/monitoring/repository.py"
click node_worker "https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/monitoring/worker.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_investigation,node_layer_views toneBlue
class node_pipeline,node_package,node_segmentation,node_parser,node_templates,node_ai,node_opensearch toneAmber
class node_downstream,node_aggregation,node_qualification,node_correlation toneMint
class node_incident,node_context,node_rca,node_planning toneRose
class node_os_source,node_os_client,node_monitor_app,node_repository,node_worker,node_operator toneIndigo
```

## Components

### User experience

- [Streamlit interface](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/frontend/streamlit_app.py): `src/frontend/streamlit_app.py`
- [Investigation views](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/frontend/investigation_views.py): `src/frontend/investigation_views.py`
- [Layer monitoring views](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/frontend/monitoring_views.py): `src/frontend/monitoring_views.py`

### Input and normalization

- [Full pipeline](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/full_pipeline_v2.py): `src/backend/full_pipeline_v2.py`
- [Input package loader](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/input_package_layer/package_loader.py): `src/backend/input_package_layer/package_loader.py`
- [Log segmentation](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/segmentation_layer/segmentation_pipeline.py): `src/backend/segmentation_layer/segmentation_pipeline.py`
- [Canonical parser](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/parser_layer/parser_pipeline.py): `src/backend/parser_layer/parser_pipeline.py`
- [Template extraction](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/template_layer/template_pipeline.py): `src/backend/template_layer/template_pipeline.py`
- [AI gateway](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/ai_engine.py): `src/backend/ai_engine.py`

### Deterministic analysis

- [Downstream orchestrator](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/downstream_pipeline.py): `src/backend/downstream_pipeline.py`
- [Window aggregation](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/aggregation_layer/aggregator.py): `src/backend/aggregation_layer/aggregator.py`
- [Signal qualification](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/signal_qualification_layer/noise_gate.py): `src/backend/signal_qualification_layer/noise_gate.py`
- [Topology correlation](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/correlation_layer/correlator.py): `src/backend/correlation_layer/correlator.py`

### Incident response

- [Incident clustering](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/incident_candidate_layer/builder.py): `src/backend/incident_candidate_layer/builder.py`
- [Context enrichment](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/context_enrichment_layer/enricher.py): `src/backend/context_enrichment_layer/enricher.py`
- [RCA hypotheses](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/rca_layer/rca_engine.py): `src/backend/rca_layer/rca_engine.py`
- [Response planning](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/learning_planning_layer/planner.py): `src/backend/learning_planning_layer/planner.py`

### Monitoring and acquisition

- [OpenSearch acquisition](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/ingestion_layer/opensearch_source.py): `src/backend/ingestion_layer/opensearch_source.py`
- [OpenSearch transport](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/ingestion_layer/opensearch_client.py): `src/backend/ingestion_layer/opensearch_client.py`
- [Monitoring application](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/opensearch_application.py): `src/backend/opensearch_application.py`
- [Monitoring repository](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/monitoring/repository.py): `src/backend/monitoring/repository.py`
- [Monitoring worker](https://github.com/suleymandiker/ao-hackathon-2026-teletabiler/blob/main/src/backend/monitoring/worker.py): `src/backend/monitoring/worker.py`

### Other components

- **SRE operator**
- **OpenSearch**

## Connections

- SRE operator → Streamlit interface: uploads data (evidence: `README.md`)
- Streamlit interface → Full pipeline: starts analysis (evidence: `README.md`)
- Streamlit interface → Investigation views: shows analysis
- Streamlit interface → Layer monitoring views: shows stages
- Full pipeline → Input package loader: loads packages (evidence: `src/backend/full_pipeline_v2.py`)
- Full pipeline → Log segmentation: segments logs (evidence: `src/backend/full_pipeline_v2.py`)
- Full pipeline → Canonical parser: parses events (evidence: `src/backend/full_pipeline_v2.py`)
- Full pipeline → Template extraction: extracts templates (evidence: `src/backend/full_pipeline_v2.py`)
- Full pipeline → Downstream orchestrator: dispatches events (evidence: `src/backend/full_pipeline_v2.py`)
- Log segmentation → AI gateway: discovers formats (evidence: `src/backend/segmentation_layer/segmentation_pipeline.py`)
- Canonical parser → AI gateway: discovers parsers
- Downstream orchestrator → Window aggregation: aggregates events (evidence: `src/backend/downstream_pipeline.py`)
- Downstream orchestrator → Signal qualification: qualifies signals (evidence: `src/backend/downstream_pipeline.py`)
- Downstream orchestrator → Topology correlation: correlates signals (evidence: `src/backend/downstream_pipeline.py`)
- Downstream orchestrator → Incident clustering: clusters incidents (evidence: `src/backend/downstream_pipeline.py`)
- Downstream orchestrator → Context enrichment: enriches context (evidence: `src/backend/downstream_pipeline.py`)
- Downstream orchestrator → RCA hypotheses: ranks hypotheses (evidence: `src/backend/downstream_pipeline.py`)
- Downstream orchestrator → Response planning: creates plans (evidence: `src/backend/downstream_pipeline.py`)
- RCA hypotheses → AI gateway: requests commentary (evidence: `src/backend/rca_layer/rca_engine.py`)
- Layer monitoring views → Monitoring repository: reads monitoring (evidence: `src/frontend/monitoring_views.py`)
- Monitoring worker → Monitoring repository: records runs (evidence: `src/backend/monitoring/worker.py`)
- Monitoring application → OpenSearch acquisition: acquires records (evidence: `src/backend/opensearch_application.py`)
- OpenSearch acquisition → OpenSearch transport: sends queries (evidence: `src/backend/ingestion_layer/opensearch_source.py`)
- OpenSearch transport → OpenSearch: queries (evidence: `src/backend/ingestion_layer/opensearch_client.py`)
