# Architecture Diagram

```mermaid
flowchart TD
    core["Core Execution Layer"]
    mcp_servers["MCP Servers"]
    KNOWLEDGE_GRAPH["Knowledge Graph"]
    Sunaiva["Sunaiva Products"]
    RECEPTIONISTAI["ReceptionistAI"]
    TRADIES["TradiesVoice"]
    scripts["Scripts & Tools"]
    database["Database Layer"]
    loop["RWL Loop"]
    deploy["Deploy / Static"]
    AIVA["AIVA Queen"]
    infra["Infrastructure"]

    core -->|"writes KG"| KNOWLEDGE_GRAPH
    core -->|"tool calls"| mcp_servers
    core -->|"dispatches tasks"| loop
    loop -->|"feeds results"| core
    scripts -->|"ingests data"| KNOWLEDGE_GRAPH
    scripts -->|"triggers execution"| core
    mcp_servers -->|"connects"| AIVA
    RECEPTIONISTAI -->|"voice pipeline"| core
    TRADIES -->|"voice pipeline"| core
    Sunaiva -->|"product APIs"| core
    deploy -->|"static assets"| Sunaiva
    database -->|"persistent state"| core
    AIVA -->|"agent commands"| core
    infra -->|"hosts"| database
```
