Starlark Reference
Use this reference to look up the globals, modules, and types that Remediation Orchestrator adds to workflow scripts. It does not document the Starlark language.
Globals
Top-level names the orchestrator provides without loading a module: see Globals.
Modules
Modules that scripts call by name, such as slurm.drain_node(...). Some modules are available to every script. Others must be enabled in your Remediation Orchestrator config, and their reference pages note this requirement.
- json
- math
- time
- agent
- archive
- childworkflow
- command
- cycletracker
- domains
- featureflags
- globals
- history
- http
- insights
- jira
- kubernetes
- llm
- logging
- messaging
- metrics
- monitor
- nexus
- noderegistry
- objectstore
- patterns
- runbooks
- screentest
- screentest_results
- signalstore
- slack
- slurm
- ssh
- stringutils
- teleport
- temporal
Types
Types returned by Remediation Orchestrator globals and modules.
- File: File is a struct to pass file/blob like data around.
- Result: A value that represents either a successful value or an error value.
- Workflow: A workflow object.
- agent.AgentWorkflowResults: The result of an agent workflow execution.
- archive.ArchiveCreator: A file archive creator.
- archive.ArchiveReader: A file archive reader and extractor.
- childworkflow.ChildWorkflowHandle: A handle to a running child workflow. Use get() to block for the result, or pass as a key to patterns.select() for event-driven composition.
- childworkflow.ParentClosePolicy: Temporal parent-close policies for child workflows.
- childworkflow.WorkflowResult: Result of a completed child workflow execution.
- command.ExecuteCommandResult: Command execution result.
- command.WaitForResponseResult: Wait for response result.
- command.WaitForSuccessResult: Wait for success result.
- domains.DomainResult: Persisted domain row (state + metadata)
- domains.JoinCoordinatorResult: Result of joining a domain coordinator
- domains.PerformResult: Result of performing an operation across a domain
- domains.RackResult: Rack topology scope and its node membership
- history.NodeHistory: A node history record.
- http.Response: HTTP response body and status code.
- http.RetryPolicy: Temporal retry policy for one HTTP activity.
- jira.Asset: An Atlassian Assets object. Returned by workspace.objects(aql) and workspace.object(id).
- jira.AssetsWorkspace: An Atlassian Assets workspace scope. Returned by connection.assets(workspace_id).
- jira.Comment: A Jira comment.
- jira.CommentVisibility: Jira comment visibility. Built via jira.comment_visibility(value, type=“role”) and passed to messaging.comment(…, headers=…).
- jira.Connection: A Jira connection.
- jira.ConnectionInfo: Server information for a Jira connection.
- jira.LegacyNamespace: DEPRECATED: jirasm-compatible namespace for standard Jira. Use jira.open() for new code.
- jira.LegacyRequest: DEPRECATED: jirasm-compatible work item. Use jira.WorkItem for new code.
- jira.RemoteLinkApplication: A Jira remote-link application grouping. Built via jira.remote_link_application(name, type) and passed to jira.remote_link.
- jira.RequestTypeInfo: Request type metadata returned by request_type.info().
- jira.RequestTypeScope: A (service desk, request type) scope built from service_desk.request_type(name_or_id). Pure-data at construction; resolves via API on first leaf method call.
- jira.ServiceDesk: A JSM service desk handle. Exposes the SM portal API (request / requests / request_type). Returned by connection.service_desk(sd_id).
- jira.ServiceManagementLegacyConnection: DEPRECATED: jirasm-compatible connection. Use jira.Connection for new code.
- jira.ServiceManagementLegacyNamespace: DEPRECATED: jirasm-compatible namespace for Jira Service Management. Use jira.open() for new code.
- jira.ServiceManagementNamespace: Jira Service Management namespace.
- jira.Space: A Jira project handle. Exposes the standard issue API (workitem / workitems / work_type). For JSM portal operations (creating customer requests with proper request-type routing), use connection.service_desk(sd_id) instead.
- jira.SpaceInfo: Project metadata returned by space.info() / service_desk.info(). Includes project type and service desk id (when JSM).
- jira.WorkItem: A Jira work item.
- jira.WorkItemCaseJQLEventSource: An event source that fires when a Jira work item matches given JQL. Use with patterns.select().
- jira.WorkTypeInfo: Issue type metadata returned by work_type.info().
- jira.WorkTypeScope: A (project, issue type) scope built from space.work_type(name_or_id). Pure-data at construction; resolves via API on first leaf method call.
- kubernetes.BulkNodeMutationResult: Per-node failures returned by bulk node mutation calls
- kubernetes.CRInfo: A custom resource with status details
- kubernetes.CRList: List of custom resources returned by list_crs
- kubernetes.Condition: A Kubernetes status condition
- kubernetes.ExecResult: Result of executing a command in a pod via exec_in_pod
- kubernetes.GVR: A Kubernetes GroupVersionResource for specifying CR types
- kubernetes.NodeDetail: Details about a node, including its labels
- kubernetes.NodeDetailList: List of nodes returned by list_node_details
- kubernetes.NodeInfo: A node in a Kubernetes cluster
- kubernetes.NodeList: List of nodes returned by list_nodes
- kubernetes.PodDetail: Details about any pod, including its labels
- kubernetes.PodHandle: Handle to a session pod created by create_pod
- kubernetes.PodList: List of pods returned by list_pods
- kubernetes.RunPodResult: Result of running a command in a Kubernetes pod
- kubernetes.SessionPodDetail: Details about a Remediation Orchestrator session pod
- kubernetes.SessionPodList: List of session pods returned by list_session_pods
- kubernetes.Taint: A taint on a Kubernetes node
- messaging.Author: A comment author — display name and email address. Carried as the “author” header on comment revisions.
- messaging.ElementConstants: Element type constants.
- messaging.FormatConstants: MIME content-type constants.
- messaging.Revision: A message revision.
- noderegistry.DatacenterNode: A datacenter node object.
- noderegistry.SyncInfo: A datacenter node sync info object.
- noderegistry.SystemNodeIdentifier: A system node identifier object.
- objectstore.PresignedPost: A presigned post for uploading multiple files in object storage.
- objectstore.PresignedRequest: A presigned request for a file in object storage.
- objectstore.VerifiedObject: Metadata for an immutable object verified by SHA-256.
- patterns.DeadlineEventSource: An event source that fires once at an absolute deadline. Created by patterns.deadline().
- patterns.Halt: A value indicating that a pattern can stop iterating.
- patterns.Metadata: A collection of metadata.
- patterns.Precursor: A value that preceeded the current expression, resulting in the need for it to be computed.
- patterns.Semaphore: A bounded concurrency token. Created by patterns.semaphore().
- patterns.SpawnEventSource: An event source that runs a function asynchronously. Created by patterns.spawn().
- patterns.TimeoutEventSource: An event source that fires after a duration. Created by patterns.timeout().
- runbooks.ClusterConfig: This struct represents cluster configuration settings.
- runbooks.ClusterID: This string represents a cluster ID.
- runbooks.DatacenterNode: This struct represents a noderegistry node.
- runbooks.EnhancedPowerCycleResult: This struct represents the comprehensive result of an enhanced power cycle.
- runbooks.EnsureBootResult: This struct represents the result of ensuring boot completes.
- runbooks.GetPostCodeResult: This struct represents the result of a POST code query.
- runbooks.GetPowerStateResult: This struct represents the result of a power state query.
- runbooks.GracefulShutdownResult: This struct represents the result of a graceful shutdown attempt.
- runbooks.ImageConfig: This struct represents container image configuration.
- runbooks.NodeHostname: This string represents a node hostname.
- runbooks.NodeID: This string represents a node ID.
- runbooks.OperationResult: This struct represents the outcome of non-test operations.
- runbooks.Results: This struct represents acceptance test results.
- runbooks.ResultsReport: This struct represents the results report from an operation.
- runbooks.SetPowerStateResult: This struct represents the result of setting power state.
- runbooks.SlurmNodeID: This string represents a Slurm node ID.
- runbooks.TestID: This string represents a test ID.
- runbooks.TestOutput: This struct represents the test output from a test tool.
- runbooks.TestOutputType: This string represents the type of test output.
- runbooks.TestSuiteFieldDiagsStarlarkResult: This struct represents the results of running field diagnostics.
- runbooks.TestSuiteGb200Result: This struct represents the results of running GB200 test suite.
- runbooks.VerifyBmcOfflineResult: This struct represents the result of verifying BMC is offline.
- runbooks.VerifyBmcOnlineResult: This struct represents the result of verifying BMC is online.
- runbooks.WaitBootResult: This struct represents the result of waiting for boot.
- screentest.AppendPipelineEligibleNodesFilterResult: Pipeline eligible-node filter append result
- screentest.ClaimedNode: A claimed node screening may use
- screentest.CreateDomainThresholdOverrideResult: Pipeline domain-threshold override create result
- screentest.DomainThresholdOverrideResult: Pipeline domain-threshold override row
- screentest.E2eDynamicThresholdTagsResult: E2E dynamic-threshold hw/sw config tags
- screentest.FixedPhaseConfig: Configuration for a fixed phase in screen testing
- screentest.GetActiveDomainThresholdOverridesResult: Pipeline domain-threshold override active-read result
- screentest.GetFailureMessageResult: Screen test failure messages for a run
- screentest.GetScreenTestProcessStatusEntry: Screen test process status for a node
- screentest.LaunchArgDefinition: A keyword argument definition
- screentest.ListClaimedNodesResult: Result of screentest.list_claimed_nodes()
- screentest.MarkDomainThresholdOverridesUsedResult: Pipeline domain-threshold override mark-used result
- screentest.NodeGroup: A node group to be validated
- screentest.NodeSelectionConfig: Configuration for selecting nodes to test
- screentest.NodeStateArgs: Typed node_state args for apply_node_transition
- screentest.NodeTransitionArgs: Typed transition args for apply_node_transition
- screentest.ParseAndStoreResultsResult: Result of parsing and storing screentest results
- screentest.PipelineEligibleNodesFilterResult: Pipeline eligible-node filter read result
- screentest.PipelineNotificationArgs: Typed pipeline notification args for send_pipeline_notifications
- screentest.PipelineResetResult: Pipeline reset result
- screentest.ScreenTestFailureMessage: A screen test failure message
- screentest.ScreenTestNodeLockStatus: The lock status of a node for screen testing purposes
- screentest.ScreenTestStatus: The latest screen test status for a node
- screentest.SetPipelineEligibleNodesFilterResult: Pipeline eligible-node filter set result
- screentest.SieveConfig: Configuration for sieve-based node filtering
- screentest.Validator: A screen test validator
- signalstore.WorkflowSignal: A tenant-scoped durable workflow waiter.
- slurm.BreakfixPoliciesConfig: Breakfix policy snapshot.
- slurm.BulkSetSlurmStateNodeResult: Per-node result for a bulk Slurm state update.
- slurm.BulkSetSlurmStateResult: Bulk Slurm state update result.
- slurm.BulkSetSlurmStateSummary: Summary counts for a bulk Slurm state update.
- slurm.Node: A slurm node object.
- slurm.ParsedDrainReason: A parsed drain reason object containing tags and cleaned reason.
- ssh.ExecuteResult: Represents the result of an SSH command execution (stdout, stderr, exit_code).
- teleport.Node: A Teleport node.
- temporal.Schedule: A Temporal schedule spec.