# sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows architecture

> Architecture diagram of the GitHub repository sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows
- Repository: https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows

## Overview

#### Purpose and Entry Points
This is a Python multi-agent operations-triage prototype. It accepts a natural-language failure query, gathers operational evidence, and produces a consolidated response that can include a simulated JIRA ticket. Primary execution paths are `main.py` and `multi_agent_ops_ai.py`; `Core Agentic Architecture.py` appears to be a top-level architecture/demo artifact.

#### Orchestration and Routing
`agents/orchestrator_agent.py` is the control-plane component. It interprets the user query, selects relevant specialist agents—described as keyword-based routing—and coordinates their outputs into the final result. Agent package exports are rooted at `agents/__init__.py`.

#### Log Investigation Stage
`agents/log_agent.py` analyzes task/application log content, extracts errors, and classifies failures. Its capability boundary is `tools/log_tools.py`, isolating log parsing/classification from agent-level prompting or orchestration.

#### Code Correlation Stage
`agents/code_agent.py` retrieves relevant source snippets and identifies likely root causes associated with reported error terms. `tools/code_tools.py` provides the code-search or pattern-matching boundary, allowing code analysis to remain distinct from log evidence collection.

#### Metrics and Historical Context
`agents/database_agent.py` retrieves task latency/runtime or performance data through `tools/db_tools.py`; the documented backing store is SQLite. `agents/incident_agent.py` searches prior incident descriptions through `tools/incident_tools.py`; the documented source is a CSV incident-history dataset. These stages enrich diagnosis with quantitative signals and precedent rather than directly resolving the issue.

#### Ticketing and Finalization
`agents/jira_agent.py` converts gathered findings into a JIRA-style ticket summary via `tools/jira_tools.py`. The documented implementation simulates ticket creation, so this is an integration boundary rather than evidence of a live JIRA API dependency. The orchestrator returns this artifact alongside the specialist findings.

#### Runtime and Configuration Boundaries
The system targets Python 3.10+ and uses pandas plus standard-library SQLite. CrewAI is the stated agent-framework influence/runtime. Shared configuration belongs in `config/config.py`. External operational inputs are represented by filesystem data and local SQLite/CSV sources; no deployed web service or live JIRA integration is established by the supplied tree.

Main entry points: [`agents/orchestrator_agent.py`](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/orchestrator_agent.py) (Orchestrator), [`agents/jira_agent.py`](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/jira_agent.py) (Ticket author), [`agents/log_agent.py`](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/log_agent.py) (Log investigator), [`agents/code_agent.py`](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/code_agent.py) (Code correlator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry points"]
  node_main["Main runner<br/>Python entry point<br/>[main.py]"]
  node_multi_agent["Multi-agent runner<br/>Python entry point"]
  node_architecture_demo["Architecture demo<br/>Demo artifact"]
end

subgraph group_agents["Agent control plane"]
  node_agent_package["Agent exports<br/>Python package<br/>[__init__.py]"]
  node_orchestrator{{"Orchestrator<br/>Control-plane agent"}}
  node_log_agent["Log investigator<br/>Specialist agent<br/>[log_agent.py]"]
  node_code_agent["Code correlator<br/>Specialist agent<br/>[code_agent.py]"]
  node_database_agent["Metrics investigator<br/>Specialist agent<br/>[database_agent.py]"]
  node_incident_agent["Incident researcher<br/>Specialist agent<br/>[incident_agent.py]"]
  node_jira_agent["Ticket author<br/>Specialist agent<br/>[jira_agent.py]"]
end

subgraph group_tools["Evidence and integration tools"]
  node_log_tools["Log parsing<br/>Tool boundary<br/>[log_tools.py]"]
  node_code_tools["Code search<br/>Tool boundary<br/>[code_tools.py]"]
  node_db_tools["Metrics access<br/>Tool boundary<br/>[db_tools.py]"]
  node_incident_tools["Incident search<br/>Tool boundary<br/>[incident_tools.py]"]
  node_jira_tools["JIRA simulation<br/>Integration boundary<br/>[jira_tools.py]"]
end

subgraph group_data["Local operational data"]
  node_filesystem_logs["Operational log files<br/>Filesystem input"]
  node_sqlite[("SQLite metrics store<br/>Local database")]
  node_incident_csv["Incident-history CSV<br/>Local dataset"]
end

node_config["Shared configuration<br/>Configuration module<br/>[config.py]"]
node_final_response["Consolidated response<br/>Output artifact"]

node_main -->|"submits query"| node_orchestrator
node_multi_agent -->|"submits query"| node_orchestrator
node_agent_package -->|"exports"| node_orchestrator
node_orchestrator -->|"routes log queries"| node_log_agent
node_orchestrator -->|"routes code queries"| node_code_agent
node_orchestrator -->|"routes metrics queries"| node_database_agent
node_orchestrator -->|"routes history queries"| node_incident_agent
node_orchestrator -->|"supplies findings"| node_jira_agent
node_orchestrator -->|"returns consolidated result"| node_final_response
node_log_agent -->|"analyzes via"| node_log_tools
node_code_agent -->|"searches via"| node_code_tools
node_database_agent -->|"queries via"| node_db_tools
node_incident_agent -->|"searches via"| node_incident_tools
node_jira_agent -->|"creates via"| node_jira_tools
node_log_tools -->|"reads"| node_filesystem_logs
node_db_tools -->|"queries"| node_sqlite
node_incident_tools -->|"reads"| node_incident_csv
node_jira_agent -->|"adds ticket"| node_final_response
node_config -.->|"configures"| node_orchestrator

click node_main "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/main.py"
click node_multi_agent "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/multi_agent_ops_ai.py"
click node_architecture_demo "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/Core%20Agentic%20Architecture.py"
click node_agent_package "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/__init__.py"
click node_orchestrator "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/orchestrator_agent.py"
click node_log_agent "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/log_agent.py"
click node_code_agent "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/code_agent.py"
click node_database_agent "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/database_agent.py"
click node_incident_agent "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/incident_agent.py"
click node_jira_agent "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/jira_agent.py"
click node_log_tools "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/log_tools.py"
click node_code_tools "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/code_tools.py"
click node_db_tools "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/db_tools.py"
click node_incident_tools "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/incident_tools.py"
click node_jira_tools "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/jira_tools.py"
click node_config "https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/config/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_main,node_multi_agent,node_architecture_demo toneBlue
class node_agent_package,node_orchestrator,node_log_agent,node_code_agent,node_database_agent,node_incident_agent,node_jira_agent toneAmber
class node_log_tools,node_code_tools,node_db_tools,node_incident_tools,node_jira_tools toneMint
class node_filesystem_logs,node_sqlite,node_incident_csv toneRose
class node_config,node_final_response toneNeutral
```

## Components

### Entry points

- [Main runner](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/main.py): Python entry point · Primary execution path for a failure query. · `main.py`
- [Multi-agent runner](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/multi_agent_ops_ai.py): Python entry point · `multi_agent_ops_ai.py`
- [Architecture demo](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/Core%20Agentic%20Architecture.py): Demo artifact · `Core Agentic Architecture.py`

### Agent control plane

- [Agent exports](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/__init__.py): Python package · `agents/__init__.py`
- [Orchestrator](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/orchestrator_agent.py): Control-plane agent · Keyword-routes a query and consolidates specialist findings. · `agents/orchestrator_agent.py`
- [Log investigator](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/log_agent.py): Specialist agent · Extracts and classifies log failures. · `agents/log_agent.py`
- [Code correlator](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/code_agent.py): Specialist agent · Finds source evidence and likely root causes. · `agents/code_agent.py`
- [Metrics investigator](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/database_agent.py): Specialist agent · Retrieves runtime and latency context. · `agents/database_agent.py`
- [Incident researcher](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/incident_agent.py): Specialist agent · Finds similar historical incidents. · `agents/incident_agent.py`
- [Ticket author](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/agents/jira_agent.py): Specialist agent · Produces a simulated JIRA-style ticket. · `agents/jira_agent.py`

### Evidence and integration tools

- [Log parsing](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/log_tools.py): Tool boundary · `tools/log_tools.py`
- [Code search](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/code_tools.py): Tool boundary · `tools/code_tools.py`
- [Metrics access](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/db_tools.py): Tool boundary · `tools/db_tools.py`
- [Incident search](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/incident_tools.py): Tool boundary · `tools/incident_tools.py`
- [JIRA simulation](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/tools/jira_tools.py): Integration boundary · Simulates ticket creation; no live JIRA dependency. · `tools/jira_tools.py`

### Local operational data

- **Operational log files**: Filesystem input
- **SQLite metrics store**: Local database
- **Incident-history CSV**: Local dataset

### Other components

- [Shared configuration](https://github.com/sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows/blob/main/config/config.py): Configuration module · `config/config.py`
- **Consolidated response**: Output artifact · Findings plus optional simulated ticket.

## Connections

- Main runner → Orchestrator: submits query
- Multi-agent runner → Orchestrator: submits query
- Agent exports → Orchestrator: exports
- Orchestrator → Log investigator: routes log queries
- Orchestrator → Code correlator: routes code queries
- Orchestrator → Metrics investigator: routes metrics queries
- Orchestrator → Incident researcher: routes history queries
- Orchestrator → Ticket author: supplies findings
- Orchestrator → Consolidated response: returns consolidated result
- Log investigator → Log parsing: analyzes via
- Code correlator → Code search: searches via
- Metrics investigator → Metrics access: queries via
- Incident researcher → Incident search: searches via
- Ticket author → JIRA simulation: creates via
- Log parsing → Operational log files: reads
- Metrics access → SQLite metrics store: queries
- Incident search → Incident-history CSV: reads
- Ticket author → Consolidated response: adds ticket
- Shared configuration → Orchestrator: configures
