NVIDIA Remediation Orchestrator (NRO) is a repair, remediation, and maintenance engine for GPU infrastructure. It runs the automation that starts when a node is marked faulty or flagged for maintenance: diagnose the issue, take a remediation step, and either return the node to service or hand it off through a ticket.
NRO is intended for platform engineers, infrastructure operators, and cluster administrators who automate GPU node diagnostics, repairs, and maintenance.
Documentation · Quickstart · Module catalog · Contributing
Experimental: NRO is intended for evaluation. Interfaces, configuration, and behavior may change incompatibly unless a module documents stronger guarantees. The module catalog lists their lifecycles. Modules inherit the Experimental lifecycle by default. Check prerequisites before use.
This repository is the primary source for NRO. Contributions follow the fork and pull request process. See SUPPORT.md for the evaluation support scope.
Commands and configuration retain the historical maestro name, including
//cmd/maestro and MAESTRO_* environment variables.
A repair task can span opening a ticket, running diagnostics, taking a node out of service, waiting for a technician, and resuming after the repair. NRO lets you express that sequence as a script.
Go modules handle integration with schedulers, ticketing systems, cloud APIs, and hardware management tools. Short Starlark scripts compose those modules into workflows. Temporal provides durable execution so that automation can wait for external systems or people and recover after a service restart.
For more detail, see the architecture overview, authorization guide, secrets management guide, and documentation sources.
Guardword checks describes the local pre-commit hook, private catalog access, and the required GitHub check.
- Bazelisk, which selects the Bazel version pinned in
.bazelversion. Bazel downloads the Go toolchain specified by the repository. - Docker with Compose and Buildx for the local PostgreSQL, Temporal, and MiniSlurm containers.
- Git to clone the repository.
The breakfix quickstart runs a disposable MiniSlurm cluster and BCM simulator, then loads the example entrypoint, poller, and agent-assisted remediation scripts. It requires Docker Buildx, at least 8 GiB of Docker memory and 10 GiB of free space, and an OpenAI-compatible LLM endpoint with a model capable of generating Starlark. A local endpoint can be used. No particular hosted provider is required.
git clone https://github.com/dsx-ai-factory/remediation-orchestrator.git
cd remediation-orchestrator
export LLM_BASE_URL="https://llm.example.com/v1"
export LLM_API_KEY="<your-api-key>"
export LLM_MODEL="<model-id>"
bazelisk run //examples/quickstart
The command builds NRO, its production frontend, and the simulators. It starts
PostgreSQL and Temporal, waits for worker inventory, and submits remediation
for worker-1. The first build downloads toolchains and builds MiniSlurm from
source, so allow several minutes. Later runs reuse build caches.
Open NRO, Temporal UI,
and the agent debug page. The command
prints workflow IDs and links. Follow the drain request, poller, remediate_node,
and agent child workflow in Temporal. A successful remediation returns the
worker to service. An unsuccessful investigation can leave it drained with
needs_attention. Poller completion alone does not prove remediation succeeded.
Keep the command running while inspecting the UI. Ctrl-C stops its processes
and removes its dedicated containers, network, and disposable databases.
Logs remain in the temporary directory printed at startup. Ports 2223, 5432,
5433, 6787, 7233, 8080, 8081, 8090, and 10443 must be free. The stack binds to
loopback and is intended for local evaluation.
See Getting Started for troubleshooting
and timeout configuration, or the breakfix example
for manual setup. For a simpler credential-free simulation, use
config_files/examples/local_demo.toml with
--load-scripts-from-folder=examples/starlark/local_demo. That simulation does
not exercise Slurm, BCM, or the agent.
To exercise stateful break/fix commands against a simulated cluster, follow the MCS quick start.
To build without starting the service, or run the repository's tests:
bazelisk build //cmd/maestro
bazelisk test -- //... -//docs:docusaurus_test
The Documentation workflow builds the site and generated API, Starlark, and Helm references with GitHub Pages routing. To check the documentation locally:
bazelisk build //docs:build
See Pages setup for publishing and custom-domain configuration.
The independent Helm module has its own CI workflow. Root //... does not
cover it.
To build the container image (including production frontend assets):
bazelisk build //cmd/maestro:maestro.image
To load it into a running Docker daemon as maestro:latest:
bazelisk run //cmd/maestro:maestro.image.local_load
The image uses Ubuntu 24.04 with public, locked APT packages. Linux CGO
cross-compilers are configured for builds on macOS as well as Linux.
Build //cmd/maestro:maestro.image.index to produce both AMD64 and ARM64 images.
Deploy on Kubernetes with the Helm deployment guide. Start with its Local K8s quick start, or the Shared K8s quick start for an existing cluster. Native Helmfile needs no Bazel. The Bazel module guide is for consumers and contributors. Evaluation deployments require your own configuration and credentials. Review rendered manifests before deploying.
helm/ is an independent Bazel module with its own version pin. From the
repository root, validate it without deploying or pushing artifacts:
cd helm
bazelisk test //...
The shared documentation sources continue to publish through
Docusaurus on GitHub Pages during the Fern transition. bazel run //docs:sync
exports the operator guides and public API references into the committed Fern
site. See Fern publishing for authenticated staging and
release-gated production publishing. Developer Helm manuals remain available
through Docusaurus and their canonical source files.
The Docusaurus site sources publish the Helm landing page, the guides under
helm/docs/, the root design, Bazel and validation guides, and both chart READMEs
under /docs/deployment/helm/, with the landing page at
/docs/deployment/helm/index. To build the site locally, run this
from the repository root:
bazelisk build //docs:build
An NRO script defines a Starlark function and registers it as a workflow. For example, this workflow runs a diagnostic command on a target node and returns its output:
def run_diagnostic_command(node_id):
"""Run a diagnostic command on a node.
Args:
node_id: string, Node ID to run the command on.
Returns:
dict, Diagnostic command output.
"""
result = command.execute(node_id, "nvidia-smi", timeout = "2m")
return {"command_output": result.stdout}
register_workflow(run_diagnostic_command)
This example requires the command module and a configured executor with
access to the target node. To use it, save it as diagnostic.star in your script
folder, configure the required modules and credentials, and start NRO with
that configuration and folder. The credential-free local_demo configuration
does not enable remote command execution.
Once loaded, invoke it with a node ID from your deployment:
curl --fail-with-body -X POST \
http://localhost:6787/api/v1/script/diagnostic.star/run_diagnostic_command \
-H 'Content-Type: application/json' \
-d '{"node_id":"node-0123"}'
The Args and Returns docstring sections describe the workflow's input and
output types. NRO uses them to validate request arguments and the return
value. See the scripting guide for
supported types and workflow registration options.
Every deployment requires the NRO service, Temporal, and PostgreSQL. Integration modules connect workflows to external systems as needed.
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
- NRO service: One Go process contains the API and UI, the core, and the Temporal worker, which runs scripts in the Starlark runtime. It accepts workflow starts, validates arguments and execution controls, loads scripts, and runs them in a Temporal workflow context.
- Temporal: The workflow engine. Coordinates durable workflows and activities, including retries, waits, and replay after worker restarts.
- PostgreSQL: Stores scripts and versions, pinned dependency metadata, configuration, workflow run metadata, and indexed workflow events.
See the architecture guide for component details.
An HTTP request starts a registered Starlark workflow. The script expresses the business logic. Go modules perform reusable operations. Temporal records execution history and coordinates durable work.
- Scripts describe what to check, which actions to take, and in what order. Starlark uses Python-like syntax with deterministic execution.
- Workflows expose entrypoints through
register_workflow(function)atPOST /api/v1/script/{scriptName}/{functionName}. Usetemporal.schedule(...)for scheduled work. See thescheduling example . - Modules expose Go implementations to Starlark and handle external APIs, authentication, retries, and telemetry.
After an interruption, Temporal replays recorded workflow history to restore progress. This supports long-running repair workflows that wait for a ticket or a human action before continuing. See Starlark and Temporal for execution details.
Scripts can share functions and values with load(). Dependency versions are
pinned when the importing script is uploaded, and circular dependencies are
rejected during validation. Updating an imported script does not change the
versions used by an existing root script. Upload the root script again to
adopt the updated dependencies. Older script versions without pinned
dependencies retain latest-version lookup.
Blue-green script deployment routes new executions between root script versions. Each root version uses its own pinned dependency versions.
Circuit breakers limit workflow starts within a configured interval, with automatic or manual reset. They can prevent an automation from sending too many nodes into repair at once.
Workflow queries use
GET /api/v1/script/{scriptName}/{functionName}/workflow/query with workflow
and run identifiers. See the scripting guide for query configuration and
request parameters.
NRO supports automation for both infrastructure operators and workload owners. Each can deploy and manage its own instance:
- Infrastructure operators can drain faulty nodes, diagnose and remediate problems, coordinate hardware repair, and validate nodes before returning them to service.
- Workload owners can automate actions available to them, such as resetting or rebooting nodes and tracking repeated failures.
The workflows and configured integrations determine the role of a deployment. Configure only the modules your workflows need, with the credentials and connectivity required by each integration.
The current implementation and local setup have the following constraints:
- Local evaluation: Thelocal quickstart uses simulators and disposable databases. Running it does not validate connectivity or behavior against your infrastructure; those checks require your configured integrations and services.
- Integration setup: A module's presence in the repository does not enable it in a deployment. Operators must enable and configure each required module, supply credentials, and provide reachable services. Documentation coverage varies by module; see themodule catalog .
- Explicit dependency updates: Updating an imported script does not update the dependency versions pinned by an existing root script. Upload the root script again to adopt those changes, as described inHow it works .
The generated module catalog lists every registered module and named family with its lifecycle. Registration names can differ from Go package names. Follow its Fern links for module summaries, prerequisites and setup.
Modules provide building blocks for repair, remediation, and maintenance. The following groups are a navigation aid, with examples from the catalog:
| Area | Example modules |
|---|---|
| Scripting and workflow primitives | builtins ,patterns ,workflows ,childworkflows |
| Node and fleet inventory | noderegistry ,nautobot ,teleport |
| Remote execution and infrastructure | command ,ssh ,redfish ,enroot ,kubernetes ,gcp ,oci |
| Scheduler and cluster management | slurm ,bcm |
| Observability and data | metrics ,history ,monitor ,analysis ,signalstore |
| Storage and data transfer | archive ,objectstore ,filetransfer ,kv |
| Ticketing and messaging | atlassian ,slack ,messaging ,mqtt ,http |
| Fleet reliability | recidivism ,providerrecidivism ,claim |
| Diagnosis support | agent ,llm ,nico |
Browse the implementations in the modules directory. Enable and configure the modules your workflows need; inclusion in the repository does not enable a module in your deployment. Check the catalog for each module's lifecycle and prerequisites, including required credentials and services.
Two starting points for exploring the module interfaces:
- Agent runs an investigation using a prompt, predefined outcomes, and tools supplied by the script. It returns a choice and description that a repair workflow can act on. It requires a configuredLLM module .
- Node registry maps node identifiers across systems, such as scheduler names, serial numbers, IP addresses, and cloud provider IDs. Inventory can be collected through a deployed script, Kubernetes, or Nautobot.
maestroctl scripts manages script bundles for an NRO deployment. Build it
or inspect the available commands with:
bazelisk build //cmd/maestroctl
bazelisk run //cmd/maestroctl -- scripts --help
| Command | Purpose |
|---|---|
maestroctl scripts validate |
Validate script bundles and print their digests. |
maestroctl scripts plan |
Compare a script bundle with a tenant without deploying it. |
maestroctl scripts deploy |
Plan and atomically deploy a script bundle. |
maestroctl scripts detach |
Detach a tenant from release management while retaining its active scripts as legacy scripts. |
Use each subcommand's --help output for its required flags. See the
script deployment guide for more on
deploying scripts.
GOVERNANCE.md describes the decision process, maintainer roles, and release policy. The project follows Semantic Versioning and targets at least one scheduled minor release per quarter, with patch and security releases as needed. The cadence is a planning target, not a delivery or support commitment.
We accept contributions. Fork the repository and open a PR for your change. See CONTRIBUTING.md for setup, testing, and review requirements.
All participation is governed by the Code of Conduct.
Follow SECURITY.md to report vulnerabilities privately. Do not file public issues for security reports.
Remediation Orchestrator is licensed under the Apache License, Version 2.0.
NVIDIA-authored source uses Apache-2.0 SPDX identifiers. Earlier private-preview
snapshots and release artifacts retain the evaluation terms shipped with them.
Bundled third-party software retains its respective license:
| Component | License | License text |
|---|---|---|
| google/starlark-go | BSD-3-Clause | Starlark license |
| sluongng/nogo-analyzer | Apache-2.0 | nogo-analyzer license |
| quasilyte/go-ruleguard/dsl | BSD-3-Clause | Ruleguard DSL license |
| uiw react-codemirror themes | MIT | Theme license |
| clsx | MIT | clsx license |
See Third-Party Notices for the complete bundled-source license texts and the third-party inventory for source locations and upstream-derived patches. Packages referenced only by dependency manifests are outside this bundled-source inventory.
The Helm deployment and both NVIDIA-authored charts use Apache-2.0:
| Component | License | License text |
|---|---|---|
| Helm deployment | Apache-2.0 | Helm license |
| Remediation Orchestrator chart | Apache-2.0 | Chart license |
| Bootstrap chart | Apache-2.0 | Bootstrap chart license |
For the downloaded Teleport dependency, license classification applies to the API module at the pinned revision:
| Dependency | Version | License | License text |
|---|---|---|---|
github.com/gravitational/teleport/api |
v0.0.0-20260109181918-1d85289ba58b |
Apache-2.0 | API module license |
The parent Teleport project's AGPL license does not apply to this separately licensed API module. Review the API module's license again when updating its pin.
NOTICE AND DISCLAIMER: This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.
See SUPPORT.md for the support scope and request routes.
For general usage or evaluation questions, use GitHub Discussions. Existing maintainers review questions and moderate Discussions under the Code of Conduct.
Report bugs, feature requests, and documentation defects or requests through
GitHub issues.
For bugs, include reproduction steps, expected and actual behavior, and the
output of ./print_env.sh.