# CLI reference

> Look up commands, flags, credentials and exit codes for Sorus client 0.3.0.

Source: https://www.sorus.run/docs/reference/cli
Reviewed: 2026-10-28

Generated from the operation catalogue. Every command accepts `--json` and then prints exactly one JSON document on stdout, the operation's response document; without it the command prints text for a person. Diagnostics go to stderr.

## Command syntax

Run the client as `sorus <command> [arguments]` or replace `sorus` with `cargo sorus` to use the Cargo subcommand. Both forms accept the same commands and options.

Add `--json` before the first `--` separator for machine-readable output. Words after `--` belong to the test binary, formatter, linter or declared program. For example:

```sh
sorus test --json -- --nocapture
```

Use `sorus --version` or `sorus -V` to check the installed client. Client 0.3.0 does not implement `help`, `--help` or `-h`; use the command tables on this page. [Install and run the client](https://www.sorus.run/docs/sorus-ci) provides setup and worked examples.

## Workload commands

Run these commands from the Git working directory you want Sorus to capture. Cargo arguments remain in their original order after Sorus options are removed. Sorus prints the commands the job will run before uploading source.

| Command | Workload and restrictions |
| --- | --- |
| `sorus check [arguments]` | Run `cargo check` with the supplied Cargo arguments. |
| `sorus build [arguments]` | Run `cargo build` with the supplied Cargo arguments. |
| `sorus test [arguments]` | Run `cargo test`; arguments after `--` reach the test binary. |
| `sorus clippy [arguments]` | Run `cargo clippy`; `--fix` is refused. Lint options can follow `--`. |
| `sorus fmt [arguments] --check` | Check formatting with `cargo fmt`. `--check` is required; jobs do not rewrite source. |
| `sorus nextest run [arguments]` | Run the supported nextest `run` invocation, followed by the applicable doctest step after nextest passes. Sorus prints any reason that no doctest step applies. |
| `sorus exec [options] -- <program> [arguments]` | Run a declared program directly, without an implicit shell. The separator and program are required. |

For nextest option restrictions and execution behavior, see [Run Rust jobs with Sorus](https://www.sorus.run/docs/sorus-ci#nextest). For toolchain and environment limits, see [Supported workloads](https://www.sorus.run/docs/supported-workloads).

## Workload options

These options apply to all seven workload commands. Put them before the first `--` separator. Except for repeated artifact selections and distinct environment names, each option can appear once.

| Option | Value and behavior |
| --- | --- |
| `--toolchain <selection>` | Select the Rust toolchain explicitly. Admission checks it against the toolchains the service offers. |
| `--env NAME=VALUE` | Add explicit build configuration. Repeat for distinct permitted names; duplicate names are refused. |
| `--size <class>` | Request `lathe-2cpu`, `lathe-4cpu`, `lathe-8cpu` or `lathe-16cpu`. Omit it to let Sorus choose the class. These identifiers retain their existing names. |
| `--wall-clock-ceiling <seconds>` | Set this job's ceiling to a whole number from 60 to 21600 seconds, overriding its repository pin or setting. |
| `--artifact <path>` | Select a repository-relative output file to retain. Repeat to select more files. |
| `--artifact-dir <directory>` | Download the selected artifacts into a local directory when the job ends. Requires at least one `--artifact`. |
| `--submission-key <key>` | Resume the original captured submission. The key is 1–128 ASCII letters, digits, dots, colons, underscores or hyphens. Keep the same endpoint, tenant, invocation directory and command options. |
| `--check-commit <sha>` | Publish a GitHub check run for the exact 40-character lowercase commit ID through the organization's installation. |
| `--check-name <name>` | Set the full GitHub check name; requires `--check-commit`. Use `lathe` or `lathe / <label>`, such as `--check-name 'lathe / unit'`. The full name is at most 100 printable ASCII characters, with no leading or trailing space in the label. The default is `lathe`. |

[Command details](#commands) cover transfer limits, recovery records, result delivery and the complete operation catalogue. [Exit codes](#exit-codes) distinguish workload outcomes, platform failures and an interrupted follow.

## Follow jobs and retrieve output

Replace `<job>` with the job ID printed after admission. `status` follows a job until it ends; `jobs get` reads its current record once.

| Command | Behavior |
| --- | --- |
| `sorus status` | List recent jobs, scoped to the current repository when it can be identified. |
| `sorus status <job>` | Follow or reattach to a job and retrieve its result and requested artifacts. |
| `sorus status <job> --artifact-dir <directory>` | Follow the same job and choose another local artifact destination. The job ID is required with this option. |
| `sorus jobs get <job>` | Read the job record without following it. |
| `sorus jobs retry <job> [--idempotency-key <key>]` | Submit a fresh job linked to the original. This creates another execution; use the submission key to recover an interrupted submission instead. |
| `sorus cancel <job>` | Request cancellation; read status to confirm completion. |
| `sorus logs <job>` | Print the retained output for a completed Cargo job. |
| `sorus logs <job> --raw <file>` | Write the retained output bytes to a new file after verifying its length and SHA-256. |
| `sorus logs <job> --junit <file>` | Write a nextest job's retained JUnit report to a new file after verifying its length and SHA-256. |
| `sorus artifacts <job>` | List retained artifacts, including their attempt, index, size, SHA-256 and path. |
| `sorus artifacts <job> <attempt> <index> <file>` | Download one artifact into a new file, using the attempt and index from the listing. |

Pressing Ctrl+C while following detaches the client and exits 130; the job continues. Use `cancel` to request that it stop. [Inspect a job](https://www.sorus.run/docs/guides/results) explains result inspection and artifact retrieval.

## Install

The client is one binary for Linux (x86_64 and arm64, statically linked) and macOS (arm64 and x86_64), released with its `SHA256SUMS` and a signed provenance attestation at https://github.com/sorus-run/sorus/releases. Install the latest release:

```sh
curl --proto '=https' --tlsv1.2 -fsSL https://github.com/sorus-run/sorus/releases/latest/download/install.sh | sh
```

The script checks the downloaded file against the release's `SHA256SUMS` and, when the GitHub CLI (`gh`) is on `PATH`, against its provenance attestation, and installs nothing that fails either check. It installs `sorus` into `~/.local/bin` with `cargo-sorus` beside it (for `cargo sorus`), then runs `sorus --version`. `SORUS_VERSION=<version>` installs another release and `SORUS_INSTALL_DIR` another directory.

## Version

- `--version` or `-V` prints one line: the name the client was called by, `cargo-sorus` under `cargo sorus`, `sorus` under `sorus`, its version of three decimal numbers and, in parentheses, the 40 hexadecimal digits of the source commit the build was made from, or `unrecorded commit` for a build that was given none. With `--json` it prints `name`, `version` and `commit`. It reads no credential and sends no request.
- Every request states the version and that name as `User-Agent: sorus/<version> (<calling name>)`, for example `sorus/<version> (cargo-sorus)`, and nothing else in that header. A service configured with a minimum client version refuses an older client as `client_too_old`; the header changes no other answer. The command then prints the service's sentence, which names the minimum and how to get it, as its last line on stderr and exits 2, whichever command it was; a Cargo command refused before admission uploads nothing, and its `--json` document carries the refusal.

## Authentication

- `cargo sorus login` runs the device flow: a person confirms the printed code on the approval page inside a signed-in session.
- To connect a GitHub installation, run `sorus onboarding status --json` and open its `claim_url` in a browser signed in to the organization. A relative URL uses the same API origin. Connect the GitHub App if no installation is selected, then authorize with GitHub. Installation claims require that browser ownership proof; the CLI and MCP do not offer a claim command.
- `SORUS_TOKEN` holds a tenant credential (a device token or an agent credential) and authenticates every command without a device flow.
- `SORUS_CREDENTIAL_FILE` names a file whose content is the credential, or a JSON credential file the CLI stored; it takes effect when `SORUS_TOKEN` is unset.
- `SORUS_ENDPOINT` selects the API origin; the default is `https://app.lathe.run`.

For previous client names, environment aliases and root configuration files, see [Existing installations](https://www.sorus.run/docs/release-status#existing-installations). Conflicting old and new settings or two root configuration files are refused before upload.

## Exit codes

| Code | Meaning |
| --- | --- |
| 0 | The command completed; a followed job succeeded |
| 1 | Workload outcome: a followed job reached a terminal state its workload caused |
| 2 | Usage: the arguments or the request were refused as invalid, not found or conflicting, or the service refused this client's version as older than its minimum (`client_too_old`) |
| 3 | Authentication: no credential, or the credential was refused, revoked, expired or out of scope |
| 4 | No outcome observed: the platform was unreachable, unavailable or answered outside its contract, or the follow ended before the job was terminal; the job, if one exists, may still run |
| 5 | Platform failure: a followed job reached a terminal state the platform caused; the job is final, there is no verdict on the workload, and `cargo sorus jobs retry <job>` submits a fresh linked job |
| 130 | Detached: an interrupt ended the follow; the job continues, and `cargo sorus status <job>` reattaches |

A followed job's terminal state decides between 0, 1 and 5 by its failure code and cancellation source, never by the status label alone:

| Terminal status | `failure.code` | `cancellation_source` | Exit |
| --- | --- | --- | --- |
| `succeeded` | Any | Any | 0 |
| `failed` or `cancelled` | None recorded | Any | 5 |
| `failed` or `cancelled` | `workload_exit` | Any | 1 |
| `failed` or `cancelled` | `workload_test_failure` | Any | 1 |
| `failed` or `cancelled` | `workload_cancelled` | None | 5 |
| `failed` or `cancelled` | `workload_cancelled` | `user` | 1 |
| `failed` or `cancelled` | `workload_cancelled` | `adapter` | 1 |
| `failed` or `cancelled` | `workload_cancelled` | `wall_clock_ceiling` | 1 |
| `failed` or `cancelled` | `platform_provisioning` | Any | 5 |
| `failed` or `cancelled` | `platform_runner_lost` | Any | 5 |
| `failed` or `cancelled` | `platform_evidence_unavailable` | Any | 5 |
| `failed` or `cancelled` | `provider_dispatch` | Any | 5 |
| `failed` or `cancelled` | `provider_execution` | Any | 5 |
| `provisioning_failed` (legacy) | Any | Any | 5 |

A cancellation source of `user` is the customer's request, `adapter` is the customer's GitHub workflow cancelled upstream, and `wall_clock_ceiling` is the ceiling the job recorded at admission, visible before execution: the platform default of 21600 seconds, a lower repository override, or the ceiling `--wall-clock-ceiling` gave for the job, and stderr names which as `(platform default)`, `(repository override)` or `(command override)`. A job that is not terminal when the follow ends, after a lost stream or a failed read, exits 4. A job status read that meets a transport failure or HTTP 408, 429 or 5xx while following, or while reading the job for a `--json` document after the follow, is read again, at most 3 attempts in all, 1 s and then 2 s apart, each within 60 s; stderr names each retry with its attempt number, and only the last attempt's failure is a failed read. After an interrupt has detached the follow, the document read makes one attempt. A succeeded job whose output or requested artifacts cannot be delivered exits 4, or 3 when the delivery is refused for authentication. On a terminal failure stderr names the class, the failure code and the next step.

Under `--json`, `test`, `check`, `build`, `clippy`, `fmt`, `exec` and `nextest run` print one document on every exit path, with `job`, `principal`, `tenant`, `repository`, `submission_key`, `commands` (each command the job runs, as the CLI printed it before any upload), `toolchain`, `toolchain_origin`, `status`, `failure` (`origin`, `code`, `detail`), `cancellation_source`, `stage`, `refusal` and `exit_code`, which equals the process exit status. A command that ends before a job is admitted prints `job`, `status` and `failure` as `null`, the `stage` it ended at (`arguments`, `authenticate`, `prepare` or `deliver`) and the platform's typed `refusal` (`status`, `code`, `detail`) when it gave one. After a follow, `status`, `failure` and `cancellation_source` are `null` when the read after the follow fails on every attempt, is interrupted or carries another tenant's job; `toolchain` and `toolchain_origin` come from that read when the read right after admission failed or carried another tenant's job; neither changes the exit. `status <job> --json` prints one document after the follow on every exit path, with the whole `job` and `exit_code`; `job` is `null` when the read after the follow fails on every attempt, is interrupted or carries another tenant's job, which never changes the exit.

Before 5 and 130 existed, a platform-caused terminal job exited 1 and an interrupt exited 4. A caller that tests only for a nonzero exit is unaffected. A caller that retried on 1 retries on 5; a caller that falls back on 4 falls back on 5 as well once a job was admitted. `failure.code` in the JSON document is unchanged.

## Commands

GitHub check runs keep their current names for now, `lathe` when omitted, otherwise `lathe / <label>`, so existing branch rules keep matching.

Cargo commands capture the complete selected source and upload bounded chunks before submitting a source reference. The API must advertise compatible streamed execution; the CLI refuses an unavailable capability before source upload. Limits are 1 GiB of regular-file bytes, 250000 entries and 32 MiB of metadata, separate from the 4 MiB chunk size. Deployment support still requires qualified management, host and guest artifacts. When the server's source transfer limit answers a chunk check, chunk upload or completion with HTTP 429, the CLI prints a `source transfer limited` line on stderr, waits the window the answer names (1 to 60 seconds) and repeats the same request under the same upload and submission key, for at most 300 seconds of waiting per upload; after that it exits 4 and the same `--submission-key` resumes the upload.

| Source capability refusal | Meaning and next step |
| --- | --- |
| HTTP 404 `not_found`, reason `repository_not_authorized` | The named repository is not authorized for the named organization. Add it to that organization's GitHub App installation, then check `sorus repositories list` and `sorus onboarding status`. No source is captured or uploaded. |


`--wall-clock-ceiling <seconds>` on `test`, `check`, `build`, `clippy`, `fmt`, `exec` and `nextest run` sets the wall-clock ceiling of that one job: a whole number of seconds from 60 to 21600, the platform default, which no tenant or repository setting narrows. It takes precedence over a `wall_clock_ceiling_seconds` pin in the captured `sorus.toml` and over the dashboard repository setting, above or below them, so a job that needs longer than the repository's ceiling gets it without a change to the tree under test, and no other job is affected. The option is read before any `--`; after `--` the same text reaches Cargo or the program. A value outside the bounds or not a whole number, a missing value or a repeated option exits 2 before anything is captured or uploaded. Before it captures, the CLI reads `repositories.settings.get` and goes on only when the answer carries `job_wall_clock_ceiling` and its bounds hold the value. A release that predates the option answers without that member and would run the job under the repository's ceiling, so the CLI exits 2, names that ceiling and uploads nothing; if such a release is met at submission instead, its refusal of the member is relayed naming the option, and no job exists. A settings read that is not answered stops the command before capture as well, saying that the release's support is unknown: exit 4, or 3 or 2 when the answer refuses the credential or the repository. A submission key binds the ceiling: resuming a key with another value, or with none, is refused as a different invocation. The `submitted` line of a job given a ceiling names the ceiling it was admitted with, as `wall-clock ceiling <seconds> seconds (command override)`, and the job records `ceiling_source` `repository_override` with `ceiling_origin` `command`. A client released before `ceiling_origin` decodes both members it knows and names the ceiling a repository override.

Each command prints its submission key and retains a private recovery record under `$XDG_STATE_HOME/lathe/submissions` or `$HOME/.local/state/lathe/submissions`, outside the repository. Repeat the original Cargo invocation with `--submission-key <key>` to resume the captured input after interruption, including after working-tree edits. A changed endpoint, tenant, invocation directory or Cargo options conflicts. The local source copy is removed only after the job acknowledgement is durably recorded; the request and job receipt remain for recovery. An unadmitted upload that expires still refuses admission, preserves the original local archive and never silently captures changed files or submits a new job. Credentials are not stored in these records.

`cargo sorus logs <job>`, and `test`, `check`, `build`, `clippy`, `fmt`, `exec`, `nextest run` and `status <job>` once the job has ended, print the output of the attempt that produced the job's result, verified against the digest and length that attempt's own receipt names. A job the host stopped before its command finished, cancelled by the customer or at its wall-clock ceiling, prints every line the host received; stderr then says the attempt was stopped and how many log records it holds, and that what the command wrote after them did not reach the host. A job the platform re-attempted prints the later attempt's output only; stderr names the earlier attempt and how it closed. An attempt the host retained no output for is said to have none. None of these changes the job's own exit status, and `logs` exits 0. Output is sealed when an attempt closes, so `logs` for a job that has not ended says so and exits 4. `logs <job> --json` prints one document with `job`, `status`, every record of every log page, each `gap` once and the final page's `complete`, `settled` and `watermarks`.

`cargo sorus logs <job> --raw <file>` writes the output that attempt retained to `<file>`, byte for byte as `jobs.cargo_output` serves it and after the same check against the receipt's digest and length, and prints nothing of it. `<file>` must not exist; it is written with owner-only permissions. `sha256sum <file>` then prints the `sha256` that `cargo sorus status <job> --json` and `cargo sorus jobs get <job> --json` state under `provenance.units[].output`, and that `cargo sorus jobs test-results <job> --json` names as the output it was computed from. Under `--json` the command prints one document with `job`, `attempt`, `file`, `sha256` and `bytes`. It exits 4 for a job that has not ended or whose attempt retained no output, and 2 when `<file>` exists.

Generated commands take path parameters as positional arguments in path order, then query parameters and body members as `--name value` flags (`--name` alone for a boolean, repeated for a list). A keyed mutation takes `--idempotency-key <key>`; without it the CLI generates one and prints it on stderr.

### Account and identity commands

| Command | Operation | Arguments |
| --- | --- | --- |
| `cargo sorus openapi` | `openapi.document` |  |
| `cargo sorus login` | `device.start` | None; prints the approval page and the code |
| `cargo sorus login` | `device.poll` | None; prints the approval page and the code |
| `cargo sorus whoami` | `identity.current` |  |
| `cargo sorus onboarding status` | `onboarding.surface` |  |
| `cargo sorus tenant` | `cli.tenant` |  |

### Job, output and artifact commands

| Command | Operation | Arguments |
| --- | --- | --- |
| `cargo sorus jobs list` | `jobs.list` | [--repository <repository>] [--branch <branch>] [--status <status>] [--class <class>] [--cursor <cursor>] [--limit <limit>] |
| `cargo sorus jobs get` | `jobs.get` | <id> |
| `cargo sorus jobs evidence` | `jobs.evidence` | <id> [--cursor <cursor>] |
| `cargo sorus logs` | `jobs.cargo_output` | `<job>`, or `<job> --raw <file>` |
| `cargo sorus jobs test-results` | `jobs.test_results` | <id> |
| `cargo sorus logs` | `jobs.test_report` | `<job> --junit <file>`: a nextest job's JUnit report, written to a new file after its SHA-256 and length are checked against the job's test results |
| `cargo sorus artifacts` | `jobs.artifacts` | `<job>`, or `<job> <attempt> <index> <file>` |
| `cargo sorus artifacts` | `jobs.artifact_bytes` | `<job>`, or `<job> <attempt> <index> <file>` |
| `cargo sorus logs` | `jobs.logs` | `<job>` |
| `cargo sorus logs` | `jobs.logs_stream` | `<job>` |
| `cargo sorus cancel` | `jobs.cancel` | `<job>` |
| `cargo sorus jobs retry` | `jobs.retry` | <id> [--idempotency-key <key>] |
| `cargo sorus status` | `cli.events` | `[<job>]`; follows the job or lists recent jobs |

### Repository and environment commands

| Command | Operation | Arguments |
| --- | --- | --- |
| `cargo sorus environment layer-record` | `environment.layer_record` | <digest> |
| `cargo sorus repositories list` | `repositories.list` | [--cursor <cursor>] [--limit <limit>] |
| `cargo sorus repositories prebuilds` | `repositories.prebuilds` | <owner> <name> [--cursor <cursor>] [--limit <limit>] |
| `cargo sorus repositories get` | `repositories.get` | <owner> <name> |
| `cargo sorus repositories settings get` | `repositories.settings.get` | <owner> <name> |
| `cargo sorus repositories settings set` | `repositories.settings.write` | <owner> <name> --name <name> --value <value> --version <version> [--idempotency-key <key>] |
| `cargo sorus repositories advisories dismiss` | `repositories.advisories.dismiss` | <owner> <name> <advisory> [--idempotency-key <key>] |
| `cargo sorus repositories lineages purge` | `repositories.lineages.purge` | <owner> <name> --confirm <confirm> --lineage <lineage> [--idempotency-key <key>] |

### Settings commands

| Command | Operation | Arguments |
| --- | --- | --- |
| `cargo sorus settings get` | `tenant.settings.get` |  |
| `cargo sorus settings set` | `tenant.settings.write` | --name <name> --value <value> --version <version> [--idempotency-key <key>] |
| `cargo sorus registry-credential replace` | `tenant.registry_credential.replace` | --authorization <authorization> --confirm <confirm> --registry <registry> [--idempotency-key <key>] |

### Credential and token commands

| Command | Operation | Arguments |
| --- | --- | --- |
| `cargo sorus tokens list` | `cli_tokens.list` | [--cursor <cursor>] [--limit <limit>] |
| `cargo sorus tokens revoke` | `cli_tokens.revoke` | <id> [--idempotency-key <key>] |
| `cargo sorus credential create` | `credentials.create` | `<name> --scope <scope>... --expires <duration> [--requests-per-minute <n>]` |
| `cargo sorus credential list` | `credentials.list` | [--cursor <cursor>] [--limit <limit>] |
| `cargo sorus credential revoke` | `credentials.revoke` | <name> [--idempotency-key <key>] |

### Usage and audit commands

| Command | Operation | Arguments |
| --- | --- | --- |
| `cargo sorus usage report` | `usage.report` | [--period <period>] |
| `cargo sorus usage export` | `usage.export` | [--period <period>] |
| `cargo sorus audit list` | `audit.list` | [--cursor <cursor>] [--limit <limit>] |

### Workload submission operation

| Command | Operation | Arguments |
| --- | --- | --- |
| `cargo sorus test` | `jobs.submit` | `test`, `check`, `build`, `clippy` or `fmt` with Cargo arguments, unchanged, including lint flags after `--` (`fmt` only with `--check`, `clippy` never with `--fix`: otherwise the CLI exits 2 before any upload), or `exec -- <program> [arguments]`, a declared command run without a shell as the workload (every word after `--` reaches the program; without `--` and a program the CLI exits 2 before any upload), or `nextest run [arguments]`, nextest's run with the repository's own configuration and then `cargo test --doc` once it passes (a first word other than `run`, `--no-run`, the archive options, `-R`/`--rerun`, `--debugger`, `-h`/`--help` or an option nextest 0.9.146 does not have: the CLI exits 2 before any upload); before any upload the CLI prints each command the job runs as `runs <command>`; `--artifact`, `--artifact-dir`, `--submission-key`, `--toolchain`, `--env NAME=VALUE`, `--check-commit <sha>` (publish a GitHub check run on that commit through the tenant's installation), `--check-name <name>` (with `--check-commit`: the check run's name, `lathe` when omitted, otherwise `lathe / <label>` in at most 100 printable ASCII characters; jobs for one commit under different names publish separate check runs), `--size <class>` (the machine class the job runs on: `lathe-2cpu`, `lathe-4cpu`, `lathe-8cpu` or `lathe-16cpu`; without it the request names no class and Sorus chooses one: `lathe-4cpu` for a job that starts from its repository's prebuilt state or whose repository keeps no build state, `lathe-8cpu` for one that compiles its dependencies while no prebuilt state is usable, and a wider class when a whole-workspace test links more test binaries than the narrower build-state drive holds, with the reason on the job), `--wall-clock-ceiling <seconds>` (the wall-clock ceiling of this one job, 60 to 21600 seconds, before the repository's pin and setting) |

### Automatic source transfer

These operations run inside workload submission. They are not separate commands.

| Command | Operation | Arguments |
| --- | --- | --- |
| `cargo sorus test` | `sources.capabilities` | Automatic source transfer within `test`, `check`, `build`, `clippy`, `fmt`, `exec` or `nextest run`; `--submission-key <key>` resumes the original capture |
| `cargo sorus test` | `sources.lookup` | Automatic source transfer within `test`, `check`, `build`, `clippy`, `fmt`, `exec` or `nextest run`; `--submission-key <key>` resumes the original capture |
| `cargo sorus test` | `sources.reserve` | Automatic source transfer within `test`, `check`, `build`, `clippy`, `fmt`, `exec` or `nextest run`; `--submission-key <key>` resumes the original capture |
| `cargo sorus test` | `sources.status` | Automatic source transfer within `test`, `check`, `build`, `clippy`, `fmt`, `exec` or `nextest run`; `--submission-key <key>` resumes the original capture |
| `cargo sorus test` | `sources.chunk.put` | Automatic source transfer within `test`, `check`, `build`, `clippy`, `fmt`, `exec` or `nextest run`; `--submission-key <key>` resumes the original capture |
| `cargo sorus test` | `sources.chunk.check` | Automatic source transfer within `test`, `check`, `build`, `clippy`, `fmt`, `exec` or `nextest run`; `--submission-key <key>` resumes the original capture |
| `cargo sorus test` | `sources.complete` | Automatic source transfer within `test`, `check`, `build`, `clippy`, `fmt`, `exec` or `nextest run`; `--submission-key <key>` resumes the original capture |

Operations without a command:

- `device.pending`: The approval page is a human surface inside a signed-in session
- `device.approve`: Device approval is a human act inside a signed-in session
- `onboarding.claim`: Claim in a signed-in browser using onboarding status's claim_url; GitHub authorization is required
- `repositories.admission`: Ref admission is not served by the attempt runtime; submit a captured workspace with cargo sorus test
- `events.stream`: The dashboard hint stream is a browser session surface; the CLI reads the tenant event stream
- `jobs.submit_diff`: A retained predecessor route; the CLI submits captured Cargo workspaces
- `jobs.submit_diff_v2`: A retained predecessor route; the CLI submits captured Cargo workspaces
- `jobs.submit_diff_keyed`: A retained predecessor route; the CLI submits captured Cargo workspaces

## Credential management

- `cargo sorus credential create <name> --scope <scope>... --expires <duration>` mints an agent credential and prints its value once; `<duration>` is a count with a unit (`30d`, `12h`, `45m`). `--requests-per-minute <n>` sets its limit.
- `cargo sorus credential list` lists the tenant's credentials without their values.
- `cargo sorus credential revoke <name>` revokes one; its next use is refused.
