Results

rwx results --json returns a run and its tasks as JSON. This page describes the run and task fields in that output. See rwx results for how to invoke the command and the available flags. To find a run ID to pass, list recent runs with rwx runs list.

The shape depends on what you request:

  • A run (e.g. rwx results <run-id>): the run-level fields plus the full Tasks tree. See Run.
  • A single task (e.g. rwx results <run-id> --task <key>): a single Task object, plus the top-level fields, including the containing run's RunID.

Parsing with jq

--json pairs well with jq. Keep the two shapes above in mind, and note that tasks nest recursively under Subtasks — use recurse(.Subtasks[]?) to walk the whole tree rather than just .Tasks[].

# Overall run result
rwx results <run-id> --json | jq -r '.Status.Result'

# Every command task as "key<tab>result"
rwx results <run-id> --json | jq -r '.Tasks[] | recurse(.Subtasks[]?) | select(.TaskType == "command") | "\(.Key)\t\(.Status.Result)"'

# Just the failed command tasks, at any depth
rwx results <run-id> --json | jq -r '[.Tasks[] | recurse(.Subtasks[]?)] | .[] | select(.TaskType == "command" and .Status.Result == "failed") | .Key'

# Output values across all command tasks
rwx results <run-id> --json | jq -r '.Tasks[] | recurse(.Subtasks[]?) | select(.TaskType == "command") | .Outputs.Values[]? | "\(.Key)=\(.Value)"'

# A single task's result (task-scoped shape)
rwx results <run-id> --task <key> --json | jq -r '.Status.Result'

Top-level fields

Every result includes these fields unless marked as conditional:

fieldtypedescription
IDstringThe ID of the run or task you requested.
RunIDstringThe containing run's ID. Equal to ID for a run-scoped result; also present for a task-scoped result.
TaskIDstringPresent for a task-scoped result (equal to ID).
ResultStatusstringThe result of the requested run or task.
For a run, this will be one of: succeeded, debugged, sandboxed, failed, no_result.
For a task, this will be one of: succeeded, failed, no_result.
CompletedbooleanWhether results are ready. With --fail-fast, this can be true before execution finishes, once actionable failures are available.
ResultPromptstringThe failure-investigation prompt, when available. See agentic run loops.

Run

Returned when you request a run. It has the top-level fields described above, plus the run's own fields, and the full Tasks tree.

Run attributes are present even when their values are null. For example, repository and merge-request metadata can be null when the run was not triggered by a git event.

Attributes

attributetypedescription
StatusRun Status
StartedAtstring (ISO 8601) or null
CompletedAtstring (ISO 8601) or null
CompletedRuntimeSecondsintegerDefaults to zero. A zero value does not mean the run has completed.
RepositoryNamestring or null
RepositorySlugstring or null
RepositoryUrlstring or null
Branchstring or null
Tagstring or null
CommitShastring or null
Authorstring or nullMay be a name, email address, or GitHub username, depending on the trigger.
CommitMessagestring or null
RwxUserEmailstring or null
DefinitionPathstring or null
TriggerstringOne of cache-rebuild, cli, cron, dispatch, github.push, github.pull_request, gitlab.push, gitlab.tag-push, gitlab.merge-request, forgejo.push, forgejo.pull-request, origin.push, origin.pull-request, entire.push, entire.trail, app, webhook.
TargetedTaskKeysstring[] or nullThe targeted tasks, or null when the run does not target specific tasks.
MergeRequestUrlstring or nullVendor-agnostic (GitHub, GitLab, Forgejo/Codeberg, Cursor Origin, Entire)
MergeRequestTitlestring or nullVendor-agnostic (GitHub, GitLab, Forgejo/Codeberg, Cursor Origin, Entire)
MergeRequestNumberstring or nullVendor-agnostic (GitHub, GitLab, Forgejo/Codeberg, Cursor Origin, Entire)
MergeRequestLabelstring or nullVendor-agnostic (GitHub, GitLab, Forgejo/Codeberg, Cursor Origin, Entire)
MessagesMessage[]Includes any messages that would have been shown in the UI.
Titlestring
VcsProviderstring or nullOne of github, gitlab, forgejo, origin, entire, or null when unavailable.
Initobject or nullAny init parameters passed to the run (returned as key/value pairs). Parameter names retain their original casing.
WebhookDefinitionKeystring or nullSee webhook triggers.
DispatchDefinitionKeystring or nullSee dispatch triggers.
StatusChecksStatus ChecksThe status checks the run's definition produces.
RetryOptionsRetry OptionsThe run's retry options.
TasksTask[]

Run status

attributetypedescription
ResultstringOne of succeeded, debugged, sandboxed, failed, no_result.
ExecutionstringOne of waiting, in_progress, finished, aborted.
WaitingSubStatusstringOne of waiting_for_lease, waiting_for_manual_start, not_applicable.
AbortedSubStatusstringOne of cancelled, timed_out, internal_failure, initialization_error, not_applicable.
FinishedSubStatusstringnot_applicable.

Task

Each entry in a run's Tasks (and in a task's Subtasks), and the top-level object when you request a single task.

Every task carries an ID. When a task is the top-level result, it also carries TaskID (equal to ID), the containing run's RunID, and the other top-level fields.

Attributes

attributetypedescription
IDstringThe task ID.
Keystring
ScopedKeystringThe task's key prefixed by the scope it ran in, uniquely identifying it within the run. Dependency and tool cache references use this form.
AttemptNumberintegerThe selected attempt's number.
LatestAttemptNumberintegerThe latest attempt number for this task.
AttemptCountintegerThe number of recorded attempts.
AttemptsAttempt[]Available attempts, sorted by attempt number, including the selected attempt. Also present for tasks without retries.
TaskTypestringOne of command, parallel, package, local-package, embedded-run, or app-config.
CacheKeystring or nullSHA of the key used to determine if the task has a cache hit.
CacheHitFromTaskIDstring or nullIf the given task was a cache hit, this is the ID of the task whose output was re-used.
StatusTask Status
StartedAtstring (ISO 8601) or null
DebugReadyAtstring (ISO 8601) or nullOnly populated when a task was debugged.
DebugStartedAtstring (ISO 8601) or nullOnly populated when a task was debugged.
DebugEndedAtstring (ISO 8601) or nullOnly populated when a task was debugged.
CompletedAtstring (ISO 8601) or null
CompletedRuntimeSecondsintegerDefaults to zero. A zero value does not mean the task has completed.
PreparingRuntimeSecondsinteger or nullThe duration between when the task started and when execution started (e.g. when layers for the task are assembled).
ExecutionRuntimeSecondsinteger or nullThe duration of the user-provided code execution.
PostProcessingRuntimeSecondsinteger or nullThe duration of the post-processing of the task's output (e.g. uploading artifacts and cleaning up).
SandboxReadyAtstring (ISO 8601) or nullOnly populated when a task was sandboxed.
SandboxStartedAtstring (ISO 8601) or nullOnly populated when a task was sandboxed.
SandboxEndedAtstring (ISO 8601) or nullOnly populated when a task was sandboxed.
MessagesMessage[]Any messages that would have been shown in the UI.
EnvobjectThe sanitized environment variables available to the task. Variable names retain their original casing. Empty when no resolved environment is recorded.
ArtifactCountintegerThe number of artifacts produced by the task. To pull artifacts, see Artifacts.
TestCountinteger or nullSee test results.
FailedTestCountinteger or nullThe number of failed tests. See ResultPrompt for failure-investigation details when available.
TipsTip[]
Initobject or nullSimilar to run-level init key/value pairs - only relevant for embedded runs. Parameter names retain their original casing.
PackageParamsobject or nullKey/value pairs specifically exposed to subtasks of packages. Parameter names retain their original casing.
ResolvedPackageIdentifierResolved Package Identifier or nullThe package resolved for this task.
ExecutionStartedAtstring (ISO 8601) or null
ExecutionFinishedAtstring (ISO 8601) or null
RunnerRunner Specification or nullThe specification of the runner used by this task, or null when unavailable.
ApproximateLogBytesinteger or null
OutputsOutputs
RawDefinitionstring (YAML) or nullThe YAML definition of the task as of the time it ran (before expressions have been evaluated), or null when source data is unavailable.
SourcePositionSource Position or nullThe character offsets of the task's block in the run definition file, not line numbers.
Dependenciesstring[]The keys of every task this task depends on, whether through use, after, or an expression.
ScopedDependenciesstring[]The same dependencies as executed task keys. Each one matches the ScopedKey of a task in the run.
ToolCachesTool CachesThe tool caches in play for the task.
RetryOptionsRetry OptionsThe task's retry options.
ResolvedWorkspaceFilterWorkspace Filter Entry[] or nullThe task's filter as the engine applied it, after expressions were resolved. null when the task has no filter.
SubtasksTask[]

Task status

attributetypedescription
ResultstringOne of succeeded, failed, no_result.
ExecutionstringOne of not_generated, waiting, ready, running, finished, aborted, skipped, user_error.
AbortedSubStatusstringOne of cancelled, subtasks_retried, terminated, timed_out, approval_request_denied, background_process_failure, before_hook_failure, after_hook_failure, internal_failure, spot_interrupted, app_failure, not_applicable.
FinishedSubStatusstringOne of cache_hit, executed, sandbox_closed, app_stopped, not_applicable.
WaitingSubStatusstringOne of not_ready, waiting_for_approval, waiting_for_duplicate_task, waiting_for_lease, waiting_for_app, waiting_for_manual_start, not_applicable.

Attempt

An entry in a task's Attempts array.

attributetypedescription
IDstringThe task ID for this attempt.
AttemptNumberinteger
StatusTask Status
StartedAtstring (ISO 8601) or null
CompletedAtstring (ISO 8601) or null
RetryRequestedByNamestring or nullThe name recorded for the actor who requested the retry, when available.

Resolved package identifier

attributetypedescription
TypestringOne of nameAndVersion, digest.
Namestring or nullThe package name, when resolved by name and version.
Versionstring or nullThe package version, when resolved by name and version.
DigeststringThe resolved package digest.

Retry options

Appears on both runs and tasks. See rwx retry.

attributetypedescription
RetryablebooleanWhether the run or selected task attempt can be retried in its current state.
UnavailableReasonstringPresent when retries are unavailable. Omitted otherwise.
PotentialActionsRetry Action[]Potential retry actions for this run or task.
ToolCachesRetry Tool Cache[]Tool caches that can be selected for a retry without tool caches.

Retry action

attributetypedescription
ValuestringOne of standard, failures, clean, no-tool-cache, or custom:<key>. Only actions relevant to this run or task are included.
LabelstringThe action's display label.
Descriptionstring or null

Retry tool cache

These entries differ from the task's Tool Caches: their task keys are relative to the selected task's scope. For a run, the keys are relative to the run's top level.

attributetypedescription
NamestringThe tool cache name.
ScopedTaskKeysstring[]The tasks using this cache, relative to the selected scope, with duplicates removed and sorted.
UsageDescriptionstringA description of the cache's usage.

Message

Appears in a run's Messages, a task's Messages, and a Tip's Details.

attributetypedescription
TypestringThe message category. For runs, one of error, cancelled_reason, waiting_for_manual_start, warning. For tasks, one of user_error, produced_error, timed_out, cancelled_reason, skip_reason, invalid_dynamic_tasks, warning, info.
Messagestring
Advicestring or null
FileNamestring or null
Lineinteger or null
Columninteger or null
StackTraceStack Frame[] or null
Framestring or null

Stack frame

An entry in a Message's StackTrace.

attributetypedescription
FileNamestring or null
Lineinteger or null
Columninteger or null
Namestring or null

Outputs

attributetypedescription
ValuesOutput Value[]
LinksOutput Link[]

Output value

See output values.

attributetypedescription
Keystring
Valuestring

See Links.

attributetypedescription
Namestring
Urlstring

Status checks

See status checks.

attributetypedescription
DefaultDefault Status Check
CustomCustom Status Check[]

Default status check

attributetypedescription
Enabledboolean
Namestring or null
StartManuallyBehaviorstringOne of succeeded, waiting. See start manually.

Custom status check

attributetypedescription
Namestring or null
TaskKeysstring[]The tasks the status check covers.

Tool caches

See tool caches.

attributetypedescription
DeclaredByTaskTool Cache Usage[]The tool cache the task declares with tool-cache. A task declares at most one, so this holds zero or one entry.
InheritedFromDependenciesTool Cache Usage[]The tool caches declared by tasks upstream of this one.

Tool cache usage

attributetypedescription
NamestringThe name of the tool cache.
TaskIDstringThe ID of the task that used the tool cache.
ScopedTaskKeystringThe ScopedKey of that task.

Workspace filter entry

An entry in a task's ResolvedWorkspaceFilter. See filtering files.

attributetypedescription
Pathstring
CacheKeystringOne of included, excluded.

Source position

Where a task's block sits in the run definition file. StartOffset and EndOffset are character offsets, not line numbers. Slicing the file's text from StartOffset to EndOffset gives the task's RawDefinition.

Sort a run's tasks by StartOffset to read them in the order they appear in the definition file. That needs no access to the file itself.

The offsets count UTF-16 code units, so a file that contains any character outside the Basic Multilingual Plane, such as an emoji, shifts them relative to a byte offset. Convert with a UTF-16 aware slice.

attributetypedescription
StartOffsetintegerThe offset of the first character of the block.
EndOffsetintegerThe offset just past the last character, exclusive.

Runner specification

See Runner Specifications.

attributetypedescription
Cpusinteger
MemoryGbinteger
DiskSizeGigabytesinteger or null

Tip

attributetypedescription
Keystring
DetailsMessageWithout Type.