Skip to content

avtomatika-ai/rca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCA: Reverse Command Architecture

A Framework for Taming the Chaos of Multi-Agent Systems.

🌌 Introduction

RCA (Reverse Command Architecture) is an architectural pattern designed to orchestrate autonomous, distributed agents (workers) in a secure, predictable, and scalable manner.
Unlike traditional A2A (Agent-to-Agent) networks where behavior is emergent and often chaotic, RCA introduces a strict "Conductor-Score-Musician" topology. It transforms unpredictable AI swarms into reliable business processes.

🔑 The Core Philosophy

The architecture is built on the "Reverse Connection — Forward Command" principle:

  1. Zero Trust & Security: Workers never open inbound ports. They sit behind NATs, firewalls, or within secure enterprise perimeters.
  2. Pull-Based Control: The Orchestrator never "pushes" tasks. Workers actively "pull" commands using Long-Polling or persistent WebSockets.
  3. Declarative Blueprints: The entire workflow is defined as a State Machine (the "Score"). Workers have no autonomy over the process flow; they only execute their specific "part."

🏗️ Architecture Overview

%%{init: { "theme": "forest" } }%%
graph TD
    %% Define Styles
    classDef orchestrator fill:#e0f7fa,stroke:#00796b,stroke-width:2px;
    classDef worker fill:#e8f5e9,stroke:#388e3c,stroke-width:2px;

    %% Define Nodes
    subgraph "Orchestrators (Public Internet)"
        direction LR
        O1["fa:fa-cogs Orchestrator A"]
        O2["fa:fa-cogs Orchestrator B"]
    end

    subgraph "Private Networks (behind NAT)"
        style private_network fill:#fffde7,stroke:#f57f17,stroke-dasharray:5 5
        subgraph "Creative Workers"
            direction LR
            W_Copy("fa:fa-pencil Copywriter")
            W_Edit("fa:fa-scissors Editor")
            W_Video("fa:fa-film Video Editor")
        end

        subgraph "Content & Art Workers"
            direction LR
            W_Write("fa:fa-book Writer")
            W_Art("fa:fa-paint-brush Artist")
            W_Multi("fa:fa-user-plus Copywriter<br>Writer")
        end
    end

    %% Define Connections
    W_Copy -- "Reverse Connection" --> O1;
    W_Edit -- "Reverse Connection" --> O1;
    W_Video -- "Reverse Connection" --> O2;
    W_Write -- "Reverse Connection" --> O2;
    W_Art -- "Reverse Connection" --> O1;
    W_Art -- "Reverse Connection" --> O2;
    W_Multi -- "Reverse Connection" --> O1;


    %% Apply Classes
    class O1,O2 orchestrator;
    class W_Copy,W_Edit,W_Video,W_Write,W_Art,W_Multi worker;
Loading

📚 Documentation

🛠️ Reference Implementation

The official reference implementation of this standard is Avtomatika.

  • Avtomatika Engine: A production-ready Python implementation of the RCA Orchestrator.
  • Worker SDK: Python SDK for building RCA-compliant workers.

📄 License

This project is licensed under the CC BY 4.0 License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors