How sam4410/from-logs-to-jira-a-multi-agent-ai-system-for-operational-workflows works
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: orchestrator_agent.py Orchestrator · jira_agent.py Ticket author · log_agent.py Log investigator · code_agent.py Code correlator
Components 20
Entry points
- Main runner · Primary execution path for a failure query.
main.py - Multi-agent runner
multi_agent_ops_ai.py - Architecture demo
Core Agentic Architecture.py
Agent control plane
- Agent exports
agents/__init__.py - Orchestrator · Keyword-routes a query and consolidates specialist findings.
agents/orchestrator_agent.py - Log investigator · Extracts and classifies log failures.
agents/log_agent.py - Code correlator · Finds source evidence and likely root causes.
agents/code_agent.py - Metrics investigator · Retrieves runtime and latency context.
agents/database_agent.py - Incident researcher · Finds similar historical incidents.
agents/incident_agent.py - Ticket author · Produces a simulated JIRA-style ticket.
agents/jira_agent.py
Evidence and integration tools
- Log parsing
tools/log_tools.py - Code search
tools/code_tools.py - Metrics access
tools/db_tools.py - Incident search
tools/incident_tools.py - JIRA simulation · Simulates ticket creation; no live JIRA dependency.
tools/jira_tools.py
Local operational data
- Operational log files
- SQLite metrics store
- Incident-history CSV
Other components
- Shared configuration
config/config.py - Consolidated response · Findings plus optional simulated ticket.
Connections 19
- 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