# debagit2000/actionable_agent architecture

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

- Interactive diagram: https://gitdiagram.com/debagit2000/actionable_agent
- Repository: https://github.com/debagit2000/actionable_agent

## Overview

The implemented product is a command-line CloudOps diagnostic agent: a user submits an issue, the agent generates and validates a read-only script, executes it, sanitizes the output, requests an RCA, and saves an encrypted audit record. The README describes a much broader incident-management and multi-agent system, but those stages are not represented in the sampled implementation; they are shown as documented capabilities, not verified runtime components. The separate OpenSlate client is not called by Agent.py.

Main entry points: [`Agent.py`](https://github.com/debagit2000/actionable_agent/blob/main/Agent.py) (Issue workflow), [`openslate_client.py`](https://github.com/debagit2000/actionable_agent/blob/main/openslate_client.py) (OpenSlate client), [`config.py`](https://github.com/debagit2000/actionable_agent/blob/main/config.py) (Model configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Diagnostic workflow"]
  node_issue_flow["Issue workflow<br/>[Agent.py]"]
  node_script_generation["Script generation<br/>[Agent.py]"]
  node_script_validation["Script validation<br/>[Agent.py]"]
  node_script_execution["Script execution<br/>[Agent.py]"]
  node_log_sanitization["Log sanitization<br/>[Agent.py]"]
  node_rca_analysis["RCA analysis<br/>[Agent.py]"]
  node_audit_store[("Encrypted audit log<br/>[Agent.py]")]
end

subgraph group_integrations["AI and configuration"]
  node_openrouter{{"OpenRouter API"}}
  node_openslate_client["OpenSlate client"]
  node_model_config["Model configuration<br/>[config.py]"]
end

subgraph group_documented["README capabilities"]
  node_event_sources{{"Observability sources"}}
  node_ingestion["Secure ingestion"]
  node_incident_engine["Incident engine"]
  node_observation_agent["Observation agent"]
  node_investigation_agent["Investigation agent"]
  node_rca_recommendation["RCA recommendations"]
  node_deep_research["Deep research"]
  node_policy_gate["Risk and policy gate"]
  node_human_ops(("Human operations"))
end

node_operator(("Operator"))

node_operator -->|"submits issue"| node_issue_flow
node_issue_flow -->|"generates script"| node_script_generation
node_issue_flow -->|"validates script"| node_script_validation
node_issue_flow -->|"executes script"| node_script_execution
node_issue_flow -->|"sanitizes output"| node_log_sanitization
node_issue_flow -->|"requests analysis"| node_rca_analysis
node_issue_flow -->|"saves audit"| node_audit_store
node_script_generation -->|"requests script"| node_openrouter
node_rca_analysis -->|"requests RCA"| node_openrouter
node_openslate_client -->|"imports settings"| node_model_config
node_openslate_client -->|"uses endpoint and model"| node_model_config
node_event_sources -.->|"provides events"| node_ingestion
node_ingestion -.->|"normalizes events"| node_incident_engine
node_incident_engine -.->|"starts investigation"| node_observation_agent
node_observation_agent -.->|"passes observations"| node_investigation_agent
node_investigation_agent -.->|"ranks hypotheses"| node_rca_recommendation
node_rca_recommendation -.->|"checks confidence"| node_policy_gate
node_rca_recommendation -.->|"requests research"| node_deep_research
node_deep_research -.->|"revises RCA"| node_rca_recommendation
node_deep_research -.->|"escalates findings"| node_human_ops

click node_issue_flow "https://github.com/debagit2000/actionable_agent/blob/main/Agent.py"
click node_script_generation "https://github.com/debagit2000/actionable_agent/blob/main/Agent.py"
click node_script_validation "https://github.com/debagit2000/actionable_agent/blob/main/Agent.py"
click node_script_execution "https://github.com/debagit2000/actionable_agent/blob/main/Agent.py"
click node_log_sanitization "https://github.com/debagit2000/actionable_agent/blob/main/Agent.py"
click node_rca_analysis "https://github.com/debagit2000/actionable_agent/blob/main/Agent.py"
click node_audit_store "https://github.com/debagit2000/actionable_agent/blob/main/Agent.py"
click node_openslate_client "https://github.com/debagit2000/actionable_agent/blob/main/openslate_client.py"
click node_model_config "https://github.com/debagit2000/actionable_agent/blob/main/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_issue_flow,node_script_generation,node_script_validation,node_script_execution,node_log_sanitization,node_rca_analysis,node_audit_store toneBlue
class node_openrouter,node_openslate_client,node_model_config toneAmber
class node_event_sources,node_ingestion,node_incident_engine,node_observation_agent,node_investigation_agent,node_rca_recommendation,node_deep_research,node_policy_gate,node_human_ops toneMint
class node_operator toneIndigo
```

## Components

### Diagnostic workflow

- [Issue workflow](https://github.com/debagit2000/actionable_agent/blob/main/Agent.py): `Agent.py`
- [Script generation](https://github.com/debagit2000/actionable_agent/blob/main/Agent.py): `Agent.py`
- [Script validation](https://github.com/debagit2000/actionable_agent/blob/main/Agent.py): `Agent.py`
- [Script execution](https://github.com/debagit2000/actionable_agent/blob/main/Agent.py): `Agent.py`
- [Log sanitization](https://github.com/debagit2000/actionable_agent/blob/main/Agent.py): `Agent.py`
- [RCA analysis](https://github.com/debagit2000/actionable_agent/blob/main/Agent.py): `Agent.py`
- [Encrypted audit log](https://github.com/debagit2000/actionable_agent/blob/main/Agent.py): `Agent.py`

### AI and configuration

- **OpenRouter API**
- [OpenSlate client](https://github.com/debagit2000/actionable_agent/blob/main/openslate_client.py): `openslate_client.py`
- [Model configuration](https://github.com/debagit2000/actionable_agent/blob/main/config.py): `config.py`

### README capabilities

- **Observability sources**
- **Secure ingestion**
- **Incident engine**
- **Observation agent**
- **Investigation agent**
- **RCA recommendations**
- **Deep research**
- **Risk and policy gate**
- **Human operations**

### Other components

- **Operator**

## Connections

- Operator → Issue workflow: submits issue (evidence: `Agent.py`)
- Issue workflow → Script generation: generates script (evidence: `Agent.py`)
- Issue workflow → Script validation: validates script (evidence: `Agent.py`)
- Issue workflow → Script execution: executes script (evidence: `Agent.py`)
- Issue workflow → Log sanitization: sanitizes output (evidence: `Agent.py`)
- Issue workflow → RCA analysis: requests analysis (evidence: `Agent.py`)
- Issue workflow → Encrypted audit log: saves audit (evidence: `Agent.py`)
- Script generation → OpenRouter API: requests script (evidence: `Agent.py`)
- RCA analysis → OpenRouter API: requests RCA (evidence: `Agent.py`)
- OpenSlate client → Model configuration: imports settings (evidence: `openslate_client.py`)
- OpenSlate client → Model configuration: uses endpoint and model (evidence: `openslate_client.py`)
- Observability sources → Secure ingestion: provides events (evidence: `README.md`)
- Secure ingestion → Incident engine: normalizes events (evidence: `README.md`)
- Incident engine → Observation agent: starts investigation (evidence: `README.md`)
- Observation agent → Investigation agent: passes observations (evidence: `README.md`)
- Investigation agent → RCA recommendations: ranks hypotheses (evidence: `README.md`)
- RCA recommendations → Risk and policy gate: checks confidence (evidence: `README.md`)
- RCA recommendations → Deep research: requests research (evidence: `README.md`)
- Deep research → RCA recommendations: revises RCA (evidence: `README.md`)
- Deep research → Human operations: escalates findings (evidence: `README.md`)
