# mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform architecture

> Architecture diagram of the GitHub repository mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform
- Repository: https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform

## Overview

CASE is presented as a human-in-the-loop workflow platform: a job request is planned, paused for approval, processed into a document, then paused for delivery approval. In the available tree, the only runtime implementation is server.py; it uses placeholder fetched data and document content, with in-memory workflow checkpoints. The README describes broader ingress, dashboard, connector, and format-specific generator capabilities, but their source paths are absent here, so they are not represented as implemented components. Edges reflect server.py calls and graph transitions; broader API actors are documented there or in the README.

Main entry points: [`server.py`](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py) (LangGraph Workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Job API"]
  node_job_api["Job Endpoints<br/>[server.py]"]
end

subgraph group_workflow["Workflow Engine"]
  node_workflow_graph["LangGraph Workflow<br/>[server.py]"]
  node_planner["Intent Planner<br/>[server.py]"]
  node_gate1["Data Approval<br/>[server.py]"]
  node_data_fetch["Data Fetch Placeholder<br/>[server.py]"]
  node_doc_builder["Document Placeholder<br/>[server.py]"]
  node_gate2["Delivery Approval<br/>[server.py]"]
end

subgraph group_services["AI and State"]
  node_ollama["Ollama Model"]
  node_checkpoint[("Memory Checkpointer<br/>[server.py]")]
end

node_ingress(("Gmail / Telegram"))
node_dashboard["Approval Dashboard"]

node_ingress -->|"submits job"| node_job_api
node_dashboard -->|"reviews jobs"| node_job_api
node_job_api -->|"starts or resumes"| node_workflow_graph
node_workflow_graph -->|"dispatches"| node_planner
node_planner -->|"plans with"| node_ollama
node_workflow_graph -->|"dispatches"| node_gate1
node_workflow_graph -->|"dispatches"| node_doc_builder
node_workflow_graph -->|"dispatches"| node_gate2
node_gate1 -->|"returns sample data"| node_data_fetch
node_workflow_graph -->|"persists state"| node_checkpoint

click node_job_api "https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py"
click node_workflow_graph "https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py"
click node_planner "https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py"
click node_gate1 "https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py"
click node_data_fetch "https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py"
click node_doc_builder "https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py"
click node_gate2 "https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py"
click node_checkpoint "https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.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_job_api toneBlue
class node_workflow_graph,node_planner,node_gate1,node_data_fetch,node_doc_builder,node_gate2 toneAmber
class node_ollama,node_checkpoint toneMint
class node_ingress,node_dashboard toneIndigo
```

## Components

### Job API

- [Job Endpoints](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py): `server.py`

### Workflow Engine

- [LangGraph Workflow](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py): `server.py`
- [Intent Planner](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py): `server.py`
- [Data Approval](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py): `server.py`
- [Data Fetch Placeholder](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py): `server.py`
- [Document Placeholder](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py): `server.py`
- [Delivery Approval](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py): `server.py`

### AI and State

- **Ollama Model**
- [Memory Checkpointer](https://github.com/mirulhakim/cognitive-auditable-security-execution-case-opensource-ai-automation-workflow-orchestration-platform/blob/main/server.py): `server.py`

### Other components

- **Gmail / Telegram**
- **Approval Dashboard**

## Connections

- Gmail / Telegram → Job Endpoints: submits job (evidence: `server.py`)
- Approval Dashboard → Job Endpoints: reviews jobs (evidence: `server.py`)
- Job Endpoints → LangGraph Workflow: starts or resumes (evidence: `server.py`)
- LangGraph Workflow → Intent Planner: dispatches (evidence: `server.py`)
- Intent Planner → Ollama Model: plans with (evidence: `server.py`)
- LangGraph Workflow → Data Approval: dispatches (evidence: `server.py`)
- LangGraph Workflow → Document Placeholder: dispatches (evidence: `server.py`)
- LangGraph Workflow → Delivery Approval: dispatches (evidence: `server.py`)
- Data Approval → Data Fetch Placeholder: returns sample data (evidence: `server.py`)
- LangGraph Workflow → Memory Checkpointer: persists state (evidence: `server.py`)
