# devtechedge/aarop architecture

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

- Interactive diagram: https://gitdiagram.com/devtechedge/aarop
- Repository: https://github.com/devtechedge/aarop

## Overview

AAROP is a multi-agent reasoning and orchestration platform. Its canonical Python workflow runs an objective through memory recall, planning, tool execution, observation, verification, and adaptation or bounded escalation; accepted results are committed to memory. A derived browser port runs and visualizes a similar loop, with demo-only multi-agent and failure-injection behavior and an optional real-LLM call. The sampled code supports the core control and call relationships; production integrations described in the README are roadmap or reference-stack capabilities, not shown as runtime components here.

Main entry points: [`core/src/aarop/core/loop.py`](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/core/loop.py) (Agentic loop), [`web-demo/app/page.tsx`](https://github.com/devtechedge/aarop/blob/main/web-demo/app/page.tsx) (Demo interface), [`core/src/aarop/agents/agents.py`](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/agents/agents.py) (Planner, actor, verifier), [`core/src/aarop/tools/registry.py`](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/tools/registry.py) (Tool registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_engine["Python engine"]
  node_loop["Agentic loop<br/>[loop.py]"]
  node_tracing[("Trace and replay<br/>[tracing.py]")]
end

subgraph group_capabilities["Agent capabilities"]
  node_agents["Planner, actor, verifier<br/>[agents.py]"]
  node_memory[("Memory and RAG<br/>[store.py]")]
  node_router["Model router<br/>[model_router.py]"]
  node_registry["Tool registry<br/>[registry.py]"]
  node_demo_tools["Demo tools<br/>[registry.py]"]
end

subgraph group_web["Browser demo"]
  node_page["Demo interface<br/>[page.tsx]"]
  node_ts_loop["Browser loop engine<br/>[aarop.ts]"]
end

subgraph group_integrations["External integration"]
  node_openai["OpenAI API"]
end

node_caller(("Objective submitter"))
node_browser_user(("Demo visitor"))

node_caller -->|"submits objective"| node_loop
node_loop -->|"dispatches phases"| node_agents
node_loop -->|"recalls and commits"| node_memory
node_loop -->|"emits spans"| node_tracing
node_agents -->|"routes completions"| node_router
node_agents -->|"calls tools"| node_registry
node_registry -->|"registers tools"| node_demo_tools
node_registry -->|"records calls"| node_tracing
node_browser_user -->|"starts demo"| node_page
node_page -->|"runs loop"| node_ts_loop
node_ts_loop -->|"yields snapshots"| node_page
node_page -.->|"requests completion"| node_openai
node_ts_loop -->|"fetches completion"| node_openai

click node_loop "https://github.com/devtechedge/aarop/blob/main/core/src/aarop/core/loop.py"
click node_agents "https://github.com/devtechedge/aarop/blob/main/core/src/aarop/agents/agents.py"
click node_memory "https://github.com/devtechedge/aarop/blob/main/core/src/aarop/memory/store.py"
click node_router "https://github.com/devtechedge/aarop/blob/main/core/src/aarop/routing/model_router.py"
click node_registry "https://github.com/devtechedge/aarop/blob/main/core/src/aarop/tools/registry.py"
click node_demo_tools "https://github.com/devtechedge/aarop/blob/main/core/src/aarop/tools/registry.py"
click node_tracing "https://github.com/devtechedge/aarop/blob/main/core/src/aarop/observability/tracing.py"
click node_page "https://github.com/devtechedge/aarop/blob/main/web-demo/app/page.tsx"
click node_ts_loop "https://github.com/devtechedge/aarop/blob/main/web-demo/lib/aarop.ts"

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_loop,node_tracing toneBlue
class node_agents,node_memory,node_router,node_registry,node_demo_tools toneAmber
class node_page,node_ts_loop toneMint
class node_openai toneRose
class node_caller,node_browser_user toneIndigo
```

## Components

### Python engine

- [Agentic loop](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/core/loop.py): `core/src/aarop/core/loop.py`
- [Trace and replay](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/observability/tracing.py): `core/src/aarop/observability/tracing.py`

### Agent capabilities

- [Planner, actor, verifier](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/agents/agents.py): `core/src/aarop/agents/agents.py`
- [Memory and RAG](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/memory/store.py): `core/src/aarop/memory/store.py`
- [Model router](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/routing/model_router.py): `core/src/aarop/routing/model_router.py`
- [Tool registry](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/tools/registry.py): `core/src/aarop/tools/registry.py`
- [Demo tools](https://github.com/devtechedge/aarop/blob/main/core/src/aarop/tools/registry.py): `core/src/aarop/tools/registry.py`

### Browser demo

- [Demo interface](https://github.com/devtechedge/aarop/blob/main/web-demo/app/page.tsx): `web-demo/app/page.tsx`
- [Browser loop engine](https://github.com/devtechedge/aarop/blob/main/web-demo/lib/aarop.ts): `web-demo/lib/aarop.ts`

### External integration

- **OpenAI API**

### Other components

- **Objective submitter**
- **Demo visitor**

## Connections

- Objective submitter → Agentic loop: submits objective (evidence: `README.md`)
- Agentic loop → Planner, actor, verifier: dispatches phases (evidence: `core/src/aarop/core/loop.py`)
- Agentic loop → Memory and RAG: recalls and commits (evidence: `core/src/aarop/core/loop.py`)
- Agentic loop → Trace and replay: emits spans (evidence: `core/src/aarop/core/loop.py`)
- Planner, actor, verifier → Model router: routes completions (evidence: `core/src/aarop/agents/agents.py`)
- Planner, actor, verifier → Tool registry: calls tools (evidence: `core/src/aarop/agents/agents.py`)
- Tool registry → Demo tools: registers tools (evidence: `core/src/aarop/tools/registry.py`)
- Tool registry → Trace and replay: records calls (evidence: `core/src/aarop/tools/registry.py`)
- Demo visitor → Demo interface: starts demo (evidence: `README.md`)
- Demo interface → Browser loop engine: runs loop (evidence: `web-demo/app/page.tsx`)
- Browser loop engine → Demo interface: yields snapshots (evidence: `web-demo/app/page.tsx`)
- Demo interface → OpenAI API: requests completion (evidence: `web-demo/app/page.tsx`)
- Browser loop engine → OpenAI API: fetches completion (evidence: `web-demo/lib/aarop.ts`)
