AutomatRPA
RPA orchestrator architecture

How the core dispatches work to isolated agents

A modular monolith at the core, agents that run isolated steps, and a protocol designed to survive crashes.

The path of a run

  1. Trigger

    A person, a schedule or the API starts the flow. The core persists the run before it answers.

  2. Queue

    Each ready step enters the priority queue, within the concurrency limits.

  3. Dispatch

    The core hands the step to a connected agent, with an ownership token (the attempt number) and the authorized credentials.

  4. Isolated execution

    The agent runs the step in a slot: its own process, local account, Job Object, Low integrity and firewall. Inputs and secrets arrive on standard input.

  5. Result

    The agent keeps the result in a durable outbox and sends it; the core accepts it only from the attempt that owns the step.

  6. Failure

    Transient errors are retried per the retry policy; if the agent disappears, the step returns to the queue after the lost timeout.

Architecture principles

AP-01The core never runs step code; only the agent does, in isolated processes.
AP-02The core is a modular monolith: one service, explicit module boundaries.
AP-03The agent always initiates the connection to the core, over mutual TLS.
AP-04The core is the single writer to the database and storage; agents have no DB credentials.
AP-05Every state change is persisted before it is acknowledged; results require the current ownership token.
AP-06The web UI is static and talks only to the public API.
AP-07Run tabular data and persistent flow state live in their own SQLite files.
AP-08Windows-specific code is isolated in platform modules.

Technology

Core, agent and CLIC# on .NET 10 LTS
Platform databaseSQLite
Agent ↔ coregRPC over HTTP/2 with mTLS and versioned Protocol Buffers
Agent ↔ stepstdin/stdout, one JSON message per line
StepsPython 3.12+ (SDK) or an executable
Web UIReact + strict TypeScript, served by the core
EventsServer-Sent Events