Skip to navigation

Modules available to Remediation Orchestrator workflow scripts.

Core Modules

  • json: JSON encoding and decoding functions.
  • math: Mathematical functions and constants.
  • time: Time-related functions and constants.

Remediation Orchestrator Modules

  • agent: This module provides Agentic breakfix capabilities.

  • archive: This module provides functionality for creating and extracting file archives.

  • childworkflow: Launch child workflows. Returns a handle that can be awaited directly via get() or used as an event source with patterns.select().

  • command: This module provides utilities for executing remote commands.

  • cycletracker: A module for tracking cycles.

  • domains: Domain-level operations for managing groups of nodes that share infrastructure (e.g., NVSwitch domains).

  • featureflags: This module provides functionality for managing feature flags.

  • globals: Globals module allows setting and getting global variables within a workflow context. This is useful for storing state that is shared across multiple functions in a workflow which includes the failure & cancel handlers.

  • history: This module is used to record node history.

  • http: http performs HTTP requests from the Remediation Orchestrator worker. Header {secret:NAME} placeholders resolve inside the activity. GET and POST accept explicit secret names for a URL base, GET query fields, and POST JSON body fields. Ordinary URL, query, and body text stays literal; poll_json supports header placeholders. Set auth to a configured OAuth2 client-credentials profile to attach a bearer token minted inside the activity.

  • insights: The insights module runs on a schedule to produce insights from the Slurm and History data.

  • jira: Jira module

  • kubernetes: This module provides functionality for interacting with Kubernetes clusters.

  • llm: Send messages to an LLM through a configured chat-completions endpoint.

  • logging: Emit structured script logs through the session logger. Custom fields are emitted as top-level slog attributes. Workflow logs use Temporal’s replay-aware logger without scheduling activities.

  • messaging: messaging module

  • metrics: This module provides utilities for recording workflow metrics.

  • monitor: Monitor provides an on-call interface for cluster and node health. It does not expose Starlark functions.

  • nexus: Call Temporal Nexus operations served by a process outside Remediation Orchestrator. Tenant configuration enables services; the runtime discovers their operations in the background. Each call records its observed interface; a discovery flush invalidates metadata for subsequent lookups. A run can have at most 30 calls in flight, the Temporal server’s default limit; a call beyond that fails, so a script fanning out wider must bound its own concurrency. Canceled calls keep their slot until the operation closes. Cancellation allows up to one second for the operation to close before returning.

  • noderegistry: This module provides functionality for interacting with the node registry.

  • objectstore: This module provides utilities for interacting with object storage.

  • patterns: Provides common patterns for flow control and data types. Each pattern defines a mapping from a control case to a handler for that case. Patterns may be nested and, will cihild patterns will be provided with details about the case that was selected by the parent. Cases may be functions, which receive a precursor object detailing any previous selections. The returned value is used for selection purposes. Each handler is a function that receives a single value, the precursor, that provides information about the case that was chosen. The return value for the handler is pattern specific. See each pattern’s documentation for additional details.

  • runbooks: Host remediation and diagnostic suites using operator-installed tools. Functions accept a cluster_config describing the selected operation and return its diagnostic or remediation results.

  • screentest: The screentest module provides multi-rack screen testing orchestration capabilities

  • screentest_results: Screentest results parsing and storage module

  • signalstore: Provides access to durable storage of workflow signals

  • slack: This module provides functionality for interacting with Slack.

  • slurm: This module provides functionality for interacting with slurm.

  • ssh: This module provides functionality for executing commands over SSH. It supports authentication via ssh-agent, private key (with optional passphrase), or password. Host key verification can be done using a known_hosts file or disabled (not recommended for untrusted networks).

  • stringutils: This module provides utilities for string manipulation.

  • teleport: This module lists the nodes registered in a Teleport cluster.

When knowledge graph sync is enabled, each sync treats the discovered nodes as the complete set of Teleport facts for the tenant. Nodes that are no longer discovered, including every node when discovery returns none, are closed and remain queryable as history. Facts from other systems and other tenants are not changed. The sync runs every 5 minutes.

  • temporal: This module provides functionality for interacting with Temporal.