> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/concepts/llms.txt. # Concepts Remediation Orchestrator is a durable, scripted "if this, then that" workflow system for datacenter automation. It lets teams knit reusable Go modules into environment-specific business logic written in Starlark, while every deployment runs the same Go codebase. The orchestrator is built for long-running work. Temporal is the async, event-sourced runtime for the orchestrator’s interpreter. A workflow can wait for a provider, an engineer, maintenance, replacement hardware, or validation capacity for days or weeks, while that wait looks like blocking code inside the script: ```starlark def wait_for_provider(hostname): """Wait before checking provider repair. Args: hostname: string, the node hostname """ sleep("168h") print("provider wait complete for %s" % hostname) register_workflow(wait_for_provider) ``` Temporal durably records workflow progress, so the workflow can continue through Remediation Orchestrator restarts, deployments, and worker downtime. See [Starlark and Temporal](/remediation-orchestrator/concepts/starlark-temporal) for the runtime model. The core abstractions start at workflows, regardless of whether a workflow drains a node, creates a ticket, runs validation, populates inventory, or responds to an operator action. ## Workflow First A Remediation Orchestrator workflow is the durable unit of automation. It is a Starlark function registered with the orchestrator, then executed by Temporal through the shared `script-workflow` wrapper. The wrapper is responsible for loading the right script version, resolving `load()` dependencies, constructing modules, preparing arguments, attaching lifecycle hooks, and recording execution metadata. In practice, a workflow has: - a main Starlark function - optional lifecycle functions such as `workflow_id`, `on_failure`, `on_cancel`, and `query` - a durable Temporal workflow ID and run ID - configuration such as max concurrency and circuit breaker state Everything that starts automated work should be explainable as "this entrypoint started this workflow with these arguments". ## Scripts A script is a versioned Starlark source file. Scripts package workflow definitions and helper code. The durable execution boundary lives at the workflow run. Scripts can contain multiple workflows, helper functions, constants, and `load()` imports. Shared scripts let environments reuse Starlark orchestration without forcing all logic into Go. An illustrative script might import shared helpers, define an environment-specific state machine, then register the durable workflow: ```starlark breakfix_wf = register_workflow( breakfix, on_failure = failure_handler, on_cancel = cancel_handler, workflow_id = breakfix_workflow_id, ) slurm.on_drain_node("breakfix", breakfix_wf, "15m", dry_run = False, exclude_node_fn = exclude_node) ``` The `breakfix` function is the workflow. The `slurm.on_drain_node` call is an entrypoint that starts it. ## Entrypoints An entrypoint is a trigger binding. It connects an external event or API surface to a registered workflow. Common entrypoints include: - HTTP calls created by `register_workflow` - schedules created through the Temporal module - event callbacks such as `slurm.on_drain_node` Entrypoints may add base arguments, filters, polling intervals, or target configuration. Treat them as triggers for workflows. ## Workflow Runs A workflow run is one execution of a workflow. It has a Temporal workflow ID, run ID, script context, function arguments, status, timing, and indexing data. This distinction matters when debugging. A decision event inside a workflow is what the script decided at that point in execution. The workflow can still fail later while carrying out that decision. ## Modules Modules are Go-backed capabilities exposed to Starlark. They are meant to wrap high-level functionality that is reused across environments, so each new datacenter needs less custom Starlark. Good module boundaries usually hide things like authentication, retries, polling, API details, data conversion, and Temporal activity wiring. In a workflow script, the code can call high-level operations such as: ```starlark command.execute(node_id, "uptime", timeout = "30s") history.record_v2(cluster_id(), hostname, state, tags = base_tags) slurm.remove_all_and_add_new_reservation(hostname, new_reservation, v2 = True) ``` That keeps the workflow focused on orchestration: what state the node is in, what decision comes next, and which system should be asked to act. There is a trade-off. Moving behavior into Go modules improves reuse, typing, observability, and operational consistency. It also reduces per-environment flexibility because changing module behavior requires Go changes, tests, and deployment. Starlark remains the right layer for environment-specific sequencing and policy. ## Pages And Operator Views Pages in the Remediation Orchestrator web UI, such as **Nodes in Break/Fix** (`/monitor`) and **History Events** (`/history`), are operator views. They display what workflows and modules have recorded about nodes, workflow runs, and external systems such as Slurm and ticketing tools. When a page shows an unexpected state, trace it to the workflow run or module that produced the data. Some pages also offer workflow actions, such as canceling or restarting a run. ## Reading A Remediation Orchestrator Workflow Start with the workflow registration, then work outward: 1. Find `register_workflow` to identify the durable workflow function and lifecycle hooks. 2. Find entrypoint registrations to see what can start the workflow. 3. Read the main workflow body as orchestration logic. 4. Treat module calls as effect boundaries into reusable Go-backed capabilities. For a workflow shaped like this, the script defines the repair policy and state transitions, shared scripts hold reusable Starlark helpers, and modules such as `slurm`, `bcm`, `noderegistry`, `history`, `temporal`, and ticketing modules perform reusable system actions. ## Agentic AI Workflows Remediation Orchestrator offers agentic workflows: bounded agentic loops for validation, diagnosis, repair actions, and routing. See [Using the Remediation Orchestrator Agent](/remediation-orchestrator/guides/agent) for how scripts invoke those agent child workflows safely. ## Docs - [Architecture](https://docs.nvidia.com/remediation-orchestrator/concepts/architecture.md): How Remediation Orchestrator runs durable datacenter automation - [Starlark and Temporal](https://docs.nvidia.com/remediation-orchestrator/concepts/starlark-temporal.md)