Results

rwx results --json returns a run and its tasks as JSON. This page describes every field in that output. See rwx results for how to invoke the command and the available flags.

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, with no run-level fields.

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:

fieldtypedescription
IDstringThe ID of the run or task you requested.
RunIDstringPresent for a run-scoped result (equal to ID).
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 the run/task has reached a terminal state (e.g. completed or cancelled).
ResultPromptstringThe failure-investigation prompt. Present when one is available (for example, with --wait). 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.

Some attributes are only present for certain types of runs, depending on how the run was triggered. For example, attributes related to repositories and merge requests are only present for runs triggered by a git event.

Attributes

attributetypedescription
StatusRun Status
StartedAtstring (ISO 8601) or null
CompletedAtstring (ISO 8601) or null
CompletedRuntimeSecondsinteger or null
RepositoryNamestring
RepositorySlugstring
RepositoryUrlstring
Branchstring or null
Tagstring or null
CommitShastring
AuthorstringMay be a name, email address, or GitHub username, depending on the trigger.
CommitMessagestring
RwxUserEmailstring or null
DefinitionPathstring
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, webhook.
TargetedTaskKeysstring[]Only present for runs that target specific tasks.
MergeRequestUrlstring or nullVendor-agnostic (GitHub, GitLab, Forgejo/Codeberg)
MergeRequestTitlestring or nullVendor-agnostic (GitHub, GitLab, Forgejo/Codeberg)
MergeRequestNumberinteger or nullVendor-agnostic (GitHub, GitLab, Forgejo/Codeberg)
MergeRequestLabelstring or nullVendor-agnostic (GitHub, GitLab, Forgejo/Codeberg)
MessagesMessage[]Includes any messages or tips that would have been shown in the UI.
Titlestring
VcsProviderstringOne of github, gitlab, forgejo.
Initobject or nullAny init parameters passed to the run (returned as key/value pairs)
WebhookDefinitionKeystring or nullSee webhook triggers.
DispatchDefinitionKeystring or nullSee dispatch triggers.
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.

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. Only the latest attempt of each task is included; AttemptNumber / LatestAttemptNumber / AttemptCount expose the attempt history.

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

Attributes

attributetypedescription
IDstringThe task ID.
Keystring
AttemptNumberinteger
LatestAttemptNumberinteger
AttemptCountinteger
TaskTypestringOne of command, parallel, 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 present when a task was debugged.
DebugStartedAtstring (ISO 8601) or nullOnly present when a task was debugged.
DebugEndedAtstring (ISO 8601) or nullOnly present when a task was debugged.
CompletedAtstring (ISO 8601) or null
CompletedRuntimeSecondsinteger or null
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 present when a task was sandboxed.
SandboxStartedAtstring (ISO 8601) or nullOnly present when a task was sandboxed.
SandboxEndedAtstring (ISO 8601) or nullOnly present when a task was sandboxed.
MessagesMessage[]Any messages that would have been shown in the UI.
EnvobjectThe sanitized environment variables available to the task.
ArtifactCountintegerThe number of artifacts produced by the task. To pull artifacts, see Artifacts.
TestCountinteger or nullSee test results.
FailedTestCountinteger or nullMore actionable information on failures will be in the LLM-friendly Prompt node.
TipsTip[]
Initobject or nullSimilar to run-level init key/value pairs - only relevant for embedded runs.
PackageParamsobject or nullKey/value pairs specifically exposed to subtasks of packages.
ExecutionStartedAtstring (ISO 8601) or null
ExecutionFinishedAtstring (ISO 8601) or null
AgentAgent Specification or null
ApproximateLogBytesinteger
OutputsOutputs
RawDefinitionstring (YAML)The YAML definition of the task as of the time it ran (before expressions have been evaluated).
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, not_applicable.

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

Agent Specification

See Agent Specifications.

attributetypedescription
Cpusinteger
MemoryGbinteger
DiskSizeGigabytesinteger

Tip

attributetypedescription
Keystring
DetailsMessage