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
Trigger
A person, a schedule or the API starts the flow. The core persists the run before it answers.
Queue
Each ready step enters the priority queue, within the concurrency limits.
Dispatch
The core hands the step to a connected agent, with an ownership token (the attempt number) and the authorized credentials.
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.
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.
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-01 | The core never runs step code; only the agent does, in isolated processes. |
|---|---|
AP-02 | The core is a modular monolith: one service, explicit module boundaries. |
AP-03 | The agent always initiates the connection to the core, over mutual TLS. |
AP-04 | The core is the single writer to the database and storage; agents have no DB credentials. |
AP-05 | Every state change is persisted before it is acknowledged; results require the current ownership token. |
AP-06 | The web UI is static and talks only to the public API. |
AP-07 | Run tabular data and persistent flow state live in their own SQLite files. |
AP-08 | Windows-specific code is isolated in platform modules. |
Technology
| Core, agent and CLI | C# on .NET 10 LTS |
|---|---|
| Platform database | SQLite |
| Agent ↔ core | gRPC over HTTP/2 with mTLS and versioned Protocol Buffers |
| Agent ↔ step | stdin/stdout, one JSON message per line |
| Steps | Python 3.12+ (SDK) or an executable |
| Web UI | React + strict TypeScript, served by the core |
| Events | Server-Sent Events |