> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# Architecture

> How Remediation Orchestrator runs durable datacenter automation

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.

```mermaid
flowchart TB
    callers["Callers:<br />operators, HTTP API, schedules, events"]

    subgraph maestro["Remediation Orchestrator service"]
        api["API and UI:<br />scripts, runs, controls"]
        core["Core:<br />arguments, deduplication, circuit breakers"]
        worker["Temporal worker:<br />script-workflow and activities"]
        api --> core
        core --> worker
    end

    temporal("Temporal:<br />workflow engine")
    modules["Optional modules"]
    postgres[("PostgreSQL")]
    systems["External systems:<br />Jira, Slurm, SSH, cloud APIs, and LLMs"]

    callers -->|start| api
    worker -. required .-> temporal
    worker -->|call| modules
    worker -. required .-> postgres
    modules --> systems

    classDef caller fill:#E1D5E7,stroke:#9673A6,color:#000
    classDef internal fill:#DAE8FC,stroke:#6C8EBF,color:#000
    classDef optional fill:#FFF2CC,stroke:#D6B656,color:#000
    classDef engine fill:#FFE6CC,stroke:#D79B00,color:#000
    classDef database fill:#F8CECC,stroke:#B85450,color:#000

    class callers,systems caller
    class api,core,worker internal
    class modules optional
    class temporal engine
    class postgres database

    style maestro fill:#FFFFFF,stroke:#333
```

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](/remediation-orchestrator/getting-started): run the local stack and start a first workflow.
* [Helm deployment](/remediation-orchestrator/deployment/helm): deploy the stack on Kubernetes.
* [Guides](/remediation-orchestrator/guides): operate workflows, write runbooks, add modules, and troubleshoot.
* [Reference](/remediation-orchestrator/reference): look up APIs, Starlark built-ins, module docs, and generated endpoints.
* [Contributing](https://github.com/dsx-ai-factory/remediation-orchestrator/blob/1785e695a8bff76c910115b3c96398a5a59a7183/CONTRIBUTING.md): work on Remediation Orchestrator itself.