Architecture
This page describes how Remediation Orchestrator runs durable datacenter automation: the service process, the required backing systems, and the optional modules that connect workflows to real infrastructure.
At A Glance
Every deployment has three required pieces: the Remediation Orchestrator service, Temporal, and PostgreSQL. The integrations beyond that depend on which modules are configured for the deployment or tenant.
Read the diagram from top to bottom. Callers start work through the API or UI. The Remediation Orchestrator service validates the request, loads the right Starlark workflow, and runs it on Temporal. Temporal and PostgreSQL are always present. Modules are enabled as needed to call systems such as ticketing, schedulers, SSH, Kubernetes, health data, LLMs, and human handoff tools.
Required Runtime
Remediation Orchestrator Service
The Remediation Orchestrator service is the Go process that exposes API and UI routes, hosts the Starlark runtime, registers the script-workflow worker, loads module configuration, and connects to Temporal and PostgreSQL.
Inside the process, the API/UI layer uploads and lists scripts, starts workflow entrypoints, queries status, manages versions, exposes workflow controls, and serves operational pages. The core service prepares workflow starts by validating arguments, computing workflow IDs, checking disabled workflows, enforcing dedupe and max concurrency, and applying circuit breaker rules before starting Temporal.
The Starlark runtime loads scripts into sessions, wires configured modules into the script environment, validates docstring-based argument types, records entrypoints, resolves load() dependencies, and executes workflow functions inside a Temporal workflow context.
Temporal
Temporal provides durable execution. Remediation Orchestrator uses it for the main script-workflow, module activities, child workflows, retries, long sleeps, queries, signals, cancellation handling, and restart-with-latest control flow. This is what lets operational automation survive worker restarts and long human or service delays.
PostgreSQL
The store is backed by PostgreSQL and is part of the required platform. It holds scripts and script versions, dependency metadata, entrypoints, workflows, circuit breaker state, tenant configuration, dynamic module configuration, workflow run metadata, and indexed workflow events.
Modules
Remediation Orchestrator modules are the boundary between workflow intent and external effects. They are implemented in Go and exposed to Starlark as workflow-safe functions when the deployment config enables them. Modules hide service credentials, retry behavior, telemetry, polling, database access, and API details from workflow authors.
The module edge is intentionally optional. A local deployment might enable only a few modules. A production deployment can add modules for Jira, SSH, Slurm, Kubernetes, LLM-backed decisions, agent workflows, and other local systems.
Agentic automation fits here too. The agent module is not a second control plane; it is a module layered on the same architecture. A Starlark workflow can call the agent module with a prompt, choices, tools, and tool parameters. The agent may use an LLM to choose among approved Starlark tools, but the surrounding workflow still uses Temporal durability, module boundaries, logging, metrics, and indexing.
Where To Go Next
- Getting Started: run the local stack and start a first workflow.
- Helm deployment: deploy the stack on Kubernetes.
- Guides: operate workflows, write runbooks, add modules, and troubleshoot.
- Reference: look up APIs, Starlark built-ins, module docs, and generated endpoints.
- Contributing: work on Remediation Orchestrator itself.