# Workstation

> For the complete documentation index, see [llms.txt](https://docs.ringleader.dev/llms.txt).


> A development computer Ringleader creates and manages for you: a VM on your laptop or in your cloud account.


A **Workstation** is a development computer that Ringleader creates and manages
for you: a VM on your laptop (vz on macOS, hcs on Windows, or qemu on Linux) or in your
cloud account. You describe the computer you want (OS, tools, code, settings) and Ringleader builds it and keeps it matching that
description.

This page lists every field. `spec` is the description you write, and `status` is what
Ringleader and the agent inside the workstation report as true now.
To see how the parts fit together, read [workstation basics](https://docs.ringleader.dev/workstations/basics/).

```text
apiVersion: workstations.ringleader.dev/v1
kind: Workstation
```

A workstation is **namespaced**. Its effective configuration merges every
[WorkstationConfig](https://docs.ringleader.dev/reference/resources/workstationconfig/) that attaches to it, by
selector or by explicit reference, with its own inline spec.

## Minimal example

Everything is implicit: a provider is chosen by automatic placement, and configs
attach by selector.

```yaml
apiVersion: workstations.ringleader.dev/v1
kind: Workstation
metadata:
  name: hello-ws
  namespace: dev
  labels:
    tier: dev
spec: {}
```

## Spec fields

You author these. Many are **config-layer fields**: they can also be set on a
WorkstationConfig and merged in.

### Placement & provider

| Field | Type | Description |
|-------|------|-------------|
| `requirements` | `[]string` | Machine requirements in precedence order (e.g. `["provider:gcp"]`); matched against discovered provider capabilities. |
| `provider` | `string` | Explicit provider pin, shorthand for `requirements: [provider:X]`. |
| `providerConfig` | `object` | Per-provider opaque config (e.g. `memory`/`cpus` for local VMs, or `{gcp: {machineType, diskGiB}}`). On a cloud, you set the keys that size the machine and a namespace admin sets the keys that place it, as [Keys you set and keys an administrator sets](https://docs.ringleader.dev/workstations/providers/cloud/#keys-you-set-and-keys-an-administrator-sets) says. Not merged from WorkstationConfig config layers, though the matching [CloudIdentity](https://docs.ringleader.dev/reference/resources/cloudidentity/)'s `defaultProviderConfig` and `overrideProviderConfig` are folded around it. |
| `machineType` | `string` | No provider reads this field, so Ringleader refuses a write that adds it or changes its value. A workstation that already stores one keeps working, and you can remove it. Size a cloud workstation with `providerConfig.<cloud>`, or with `--machine-type` on `rl workstation create`. |
| `securityProfile` | `string` | Reserved for later use, and nothing reads it yet, so Ringleader refuses a write that adds it or changes its value. A workstation that already stores one keeps working, and you can remove it. A workstation's isolation comes from the VM its provider runs, as [Enforced protections](https://docs.ringleader.dev/security/model/enforced-protections/) says. |
| `node` | `string` | On a [node-bound workstation](https://docs.ringleader.dev/workstations/basics/#node-bound-workstations), the node of the computer that runs it. `rl` sets it when it creates a local workstation in any namespace but `local`, and it cannot change after that. |
| `hostAccess` | `object` | On a node-bound workstation, the settings that decide what of the computer it runs on it reaches, such as `loopback` and `labels`. It stays on that computer and never reaches the control plane. See [Host access fields](#host-access-fields) and [Host access that stays on your computer](https://docs.ringleader.dev/workstations/connectivity/host-access-loopback/#host-access-that-stays-on-your-computer). Refused on a WorkstationConfig. |

### Host access fields

`spec.hostAccess` decides what a node-bound workstation reaches on the computer that runs it:

| Field | Type | What it does |
| --- | --- | --- |
| `loopback` | `bool` | Whether the workstation reaches the computer's own `127.0.0.1`. What each provider does with it is in [Loopback reach](https://docs.ringleader.dev/workstations/connectivity/host-access-loopback/#loopback-reach). |
| `labels` | `map` | Labels that the SSHKey and LocalBinding resources on the computer select the workstation by. They replace the workstation's own labels for that purpose, so relabeling the workstation at Ringleader forwards no key and no port. |

### Lifecycle

| Field | Type | Description |
|-------|------|-------------|
| `stopped` | `bool` | `true` stops the workstation. The workstation powers off and rests in the `Stopped` phase. A workstation created with `stopped: true` boots once, applies its first configuration, and then powers off. |
| `restartNonce` | `string` | Change this to restart the workstation. Only the change matters, never the value. |
| `recycleNonce` | `string` | Change this to have the in-VM agent rewrite the block of authorized keys the configuration owns and run every `onRecycle` script once, as a [workstation pool](https://docs.ringleader.dev/workstations/lifecycle/pools-leases/#member-recycling) does to recycle a member. The outcome is in `status.recycle`. Only the change matters. The value is letters, digits, dots, underscores and hyphens, up to 512 bytes. |
| `lifecycle` | `object` | When the workstation stops or is deleted on its own: `{idle, maxRunTime, ttl, ttlAction}`. See [Lifecycle block fields](#lifecycle-block-fields). |
| `ttl` | `string` | The older top-level spelling of `lifecycle.ttl`, still accepted. Declaring a lifetime here and in `lifecycle` is rejected. |
| `ttlAction` | `string` | The older top-level spelling of `lifecycle.ttlAction`, still accepted: `delete` (the default) or `stop`. Only consulted when `ttl` is set. |
| `exchangeSecretNonce` | `string` | Change this to rotate the workstation's own credential, which is what to do if one leaks. Like `restartNonce`, only the *change* matters, never the value; absent means nothing to rotate. |

#### Lifecycle block fields

[Starts, stops and restarts](https://docs.ringleader.dev/workstations/lifecycle/starts-stops-restarts/) and
[Deletion and delete deadlines](https://docs.ringleader.dev/workstations/lifecycle/deletion-deadlines/) explain these fields. A duration is a number and a unit (`45s`, `90m`, `2h`) or a whole
number of days (`7d`). `rl apply` rejects a duration that can't be read or isn't positive. It
also rejects `ttl` or `ttlAction` declared here and at the top level, and all three fields on
a WorkstationConfig.

| Field | Type | Description |
|-------|------|-------------|
| `idle.timeout` | `string` | How long every declared condition must agree the workstation is idle before it stops. Required once a condition is declared. |
| `idle.action` | `string` | `stop`, the only action. |
| `idle.sshSessions` | `bool` | `true` counts a person's SSH session with a terminal as activity. |
| `idle.processes` | `[]string` | Executable names as they appear in `/proc/<pid>/comm`: letters, digits, `- _ . +`, at most 15 characters each. A running process with one of these names is activity. A path or a wildcard is rejected. |
| `idle.ports` | `[]int` | Ports from 1 to 65535. An established inbound connection to one is activity. A listening socket is not. |
| `idle.checkCommand` | `string` | A command that runs as root on a repeating timer. A non-zero exit, or no exit in time, is activity. Only letters, digits, spaces and `- _ . / = : , @ + %`, at most 256 characters. Put anything longer in [`spec.files`](#machine-contents-config-layer-fields) and name the script. |
| `maxRunTime` | `string` | Stop the workstation once its current run has lasted this long. Rejected together with `ttlAction: stop`. |
| `ttl` | `string` | Delete the workstation this long after it was created. |
| `ttlAction` | `string` | `delete` (the default) or `stop`. `stop` is the older spelling of `maxRunTime`. Only read when `ttl` is set. |

### Configuration attachment

| Field | Type | Description |
|-------|------|-------------|
| `configs` | `[]object` | Explicit WorkstationConfig references: `{name, priority}`, each naming a WorkstationConfig in the workstation's own namespace. The priority is taken from the reference **verbatim, with no default**, so an omitted one is `0`, the lowest layer of all. See [Layer merge order](https://docs.ringleader.dev/workstations/configuration/configuration-layers/#layer-merge-order). |

### Machine contents (config-layer fields)

| Field | Type | Description |
|-------|------|-------------|
| `image` | `object` | OS image: `{distribution, version}`. A string is read as no image. A cloud workstation that names no image boots Debian 13. |
| `packages` | `[]` | Packages to install: each a bare name, which is a system package, or `{type, name, version, updatePolicy}`. `type` is `system`, `npm`, `pypi`, `go` or `mise`. See [Packages and repositories](https://docs.ringleader.dev/reference/resources/workstationconfig/#packages-and-repositories). |
| `devtools` | `[]object` | Curated install recipes: `{name, version}` (e.g. `nodejs`, `claude-code`, `vscode-web`). |
| `toolconfigs` | `[]object` | Per-tool config channel: `{id, name, config}` (opaque config) for already-installed tools. |
| `packageRepositories` | `[]object` | Third-party repos: `{name, type, urls, key, …}` (apt/ppa). |
| `aptSources` | `[]` | **Legacy** apt repos + keys (normalized to `packageRepositories`). |
| `scripts` | `[]object` | Provisioning scripts: `{name, phase, content, …}`. |
| `sources` | `[]object` | Code/repos synced into the workstation: `{name, git\|local, path, updatePolicy, …}`. A source can also run its repository's own devcontainer. See [devcontainer workstations](https://docs.ringleader.dev/workstations/packages-tools-settings/devcontainers/). |
| `files` | `[]object` | Declarative files materialized on the machine. |
| `services` | `[]object` | User-declared managed services (systemd units / command-mode). |
| `ports` | `[]int` | Declared listening ports. |
| `dotfilesRepo` | `object` | A [dotfiles repository](https://docs.ringleader.dev/reference/resources/workstationconfig/#dotfiles-repository) cloned into the machine and installed by running its own install script. |
| `trustedFolders` | `[]string` | More folders for the workstation's coding tools to trust, beside every `sources[].path`. A relative path is read from the login user's home folder. See [Trusted folders](https://docs.ringleader.dev/workstations/packages-tools-settings/code-dotfiles-trusted-folders/#trusted-folders). |
| `sshKnownHosts` | `[]` | Outbound SSH host-key trust pinned into `~/.ssh/known_hosts`: a bare hostname, or `{host, keys}`. |
| `tailscale` | `object` | Join the workstation to a Tailscale tailnet. The join credential is always a Secret reference. |
| `egress` | `object` | Restrict what the workstation may connect **out** to: `{enforcement, destinations[], deny[]}`. Absent means no restriction: everything your network routes, your local network included. See [Outbound connection restrictions](https://docs.ringleader.dev/reference/resources/workstationconfig/#outbound-connection-restrictions). |

### System settings (config-layer fields)

| Field | Type | Description |
|-------|------|-------------|
| `identity` | `object` | The login user: `{user, uid, gid, group, groups, shell, sudo}`. This is the **only** place to declare the login user. The default shell is `/bin/bash`, and the user gets passwordless `sudo` unless you set `sudo: false`. Without `user`, the login name is your account name on the computer you created the workstation from, changed as [Login user](https://docs.ringleader.dev/workstations/packages-tools-settings/users-environment-system-settings/#login-user) describes. Only a new workstation gets the declared `user`. An existing workstation keeps its login user when its spec or a WorkstationConfig declares another, and reports [`LoginUserChangeNotApplied`](#conditions-that-report-a-problem). |
| `environment` | `map` | System-wide env vars → `/etc/environment` + `profile.d`. |
| `dotfiles` | `map` | Shell-dotfile fragments: path → content (managed blocks). |
| `sysctls` | `map` | Kernel sysctls → `/etc/sysctl.d/`. |
| `limits` | `[]` | `pam_limits` entries → `/etc/security/limits.d/`. |
| `hostname` | `string` | Machine hostname. |
| `timezone` | `string` | IANA timezone (e.g. `America/New_York`). |
| `locale` | `string` | Locale (e.g. `en_US.UTF-8`). |
| `securityUpdates` | `bool` | Install operating system security updates once a day, on Debian, Ubuntu and Alpine. The same as `updates.system: security` when no layer sets `updates.system`. See [Security updates and diagnostics](https://docs.ringleader.dev/reference/resources/workstationconfig/#security-updates-and-diagnostics). |
| `updates` | `object` | Which updates the workstation installs on its own, and whether it may reboot for them: `{system, packages, minimumReleaseAge, reboot}`. `system` is `off` (the default), `security` or `all`. `packages` is `latest` (the default) or `off`. `minimumReleaseAge` is a duration, `24h` by default. `reboot` is `never` (the default) or `window`. See [Update settings](https://docs.ringleader.dev/reference/resources/workstationconfig/#update-settings). |
| `maintenance` | `object` | When the workstation may restart a service, reboot or update its agent for an update: `{timezone, windows[], maxDeferral, openNow}`, each window `{days, start, duration}`. Without it, a restart or an agent update runs as soon as it is ready, and an update never reboots the workstation. See [Maintenance windows](https://docs.ringleader.dev/reference/resources/workstationconfig/#maintenance-windows). |
| `diagnostics` | `object` | Ledger config: `{ledger: {enabled, retain, maxOutputBytes}}`. `maxOutputBytes` limits captured stdout and stderr for each step. A value above 128 KiB resolves to 128 KiB. |
| `defaultLocalBinding` | `object` | Device-local forwarding template; the daemon seeds a [LocalBinding](https://docs.ringleader.dev/reference/resources/localbinding/) from it once when the workstation first reaches Running (honor-delete). |
| `capabilities` | `[]string` | What the workstation's **own** identity may do: `self:read`, `self:power`, `sa:assume`. Both the admin and member tiers must declare a capability for the machine to hold it, and it takes effect only on a deployment that turns workstation identity on. See [Workstation capabilities](https://docs.ringleader.dev/reference/resources/workstationconfig/#workstation-capabilities). |

## Status fields

The system writes these. They are read-only.

| Field | Type | Description |
|-------|------|-------------|
| `phase` | `string` | `Pending`, `Provisioning`, `PostInstall`, `Running`, `Reconfiguring`, `Starting`, `Stopping`, `Stopped`, `Failed`, or `Terminating`. |
| `message` | `string` | The one human headline: what is going on with this workstation, in a sentence. |
| `provider` | `string` | Selected provider (e.g. `gcp`, `vz`, `qemu`, `hcs`). |
| `cloudIdentity` | `string` | On a cloud workstation, the [CloudIdentity](https://docs.ringleader.dev/reference/resources/cloudidentity/) whose selector its labels match. `<none matched>` when none does, and the workstation then uses the deployment's own cloud credential. Empty on a local workstation. |
| `providerID` | `string` | Provider-specific machine ID (e.g. the GCE instance name). |
| `os` | `string` | The operating system the workstation's merged configuration selects, as a short name such as `debian` or `ubuntu`. |
| `osVersion` | `string` | The version from the same selection, such as `13`. Empty when the selection names none. |
| `image` | `string` | The base image the machine was actually created from. |
| `machineType` | `string` | The size the provider reports the machine running as. It changes on the first status read after a resize. |
| `rootDisk` | `object` | `{observedBytes}`: the size of the root filesystem the machine measured. See [`RootDiskShortfall`](#conditions-that-report-a-problem). |
| `address` | `string` | SSH address reachable by the daemon (absent for a NAT'd VM the daemon can't dial). |
| `internalAddress` | `string` | The machine's address inside your cloud network. Empty on a local workstation. |
| `networkTags` | `[]string` | The cloud network tags the machine carries, including ones Ringleader adds. On GCP they decide which firewall rules apply to it. |
| `managementAddress` | `string` | The `host:port` on an [edge instance](https://docs.ringleader.dev/security/outbound/edge-management/#access-to-a-workstation-behind-an-edge) that reaches this workstation's SSH while the edge instance routes its traffic. Ringleader connects there instead of `address`. Empty on every other workstation. |
| `recycle` | `object` | The result of the last recycle `spec.recycleNonce` asked for: `{nonce, outcome, failedScript, finishedAt}`. `outcome` is `Succeeded` or `Failed`, and `failedScript` names the first `onRecycle` script that failed. Absent until a recycle has run. |
| `skippedMounts` | `[]string` | On vz, the folders in [`providerConfig.mounts`](https://docs.ringleader.dev/reference/providers/images-keys/#shared-folder-keys) that the last start left out because the folder was not on your Mac. Absent when every folder was shared, and on every other provider. |
| `user` | `string` | The SSH login user. Without `identity.user`, it is the name described under [`identity`](#system-settings-config-layer-fields). |
| `observedGeneration` | `int` | The `spec` generation the controller last observed. |
| `stopCause` | `string` | Why a stopped workstation is stopped, present only while `spec.stopped` is `true`: `Idle` when its [idle policy](https://docs.ringleader.dev/workstations/lifecycle/starts-stops-restarts/#idle-stop) stopped it, `RunLimit` when `maxRunTime` (or `ttlAction: stop`) did, `RunningCap` when Ringleader stopped it because its namespace or org was over a [running, vCPU or GPU cap](https://docs.ringleader.dev/organizations-teams/accounts-access/namespaces-limits/#running-limits), and `Requested` for every other stop, such as yours. A run-limit stop stays `RunLimit` even after someone stops the workstation again. An idle stop or a cap stop becomes `Requested` once someone stops it again. |
| `expiresAt` | `string` | When the next [lifetime deadline](https://docs.ringleader.dev/workstations/lifecycle/starts-stops-restarts/#deadline-enforcement) falls due, as a timestamp: the delete deadline, or the run limit while the workstation is running, whichever comes first. Absent on a workstation that declares neither. |
| `idle` | `object` | `{state, condition}`: the workstation's last report against its [idle policy](https://docs.ringleader.dev/workstations/lifecycle/starts-stops-restarts/#idle-stop). `state` is `idle` or `busy`. A `busy` report names what kept the workstation in use in `condition`, such as `sshSessions` or `ports`. |
| `idleSince` | `string` | When the control plane first saw an unbroken run of `idle` reports, as a timestamp. The idle `timeout` counts from here. A `busy` report clears it, and so do removing the idle policy and any stop or start. |
| `config` | `object` | Configuration state: `{effectiveHash, appliedHash, appliedAt}`. `effectiveHash` is the configuration the control plane wants; `appliedHash` is what the machine last reported applying. |
| `egress.inputs` | `string` | A fingerprint of the rules and credentials that the Edge serving the workstation last confirmed. Present on the workstations that report `EgressApplied`, as [Conditions and their reasons](#conditions-and-their-reasons) describes. It never contains a credential value or digest. |
| `egress.deny` | `object` | What the workstation's deny list refuses, present only while whatever enforces the list reports holding it: `{privateNetworks, ranges[], hosts[]}`. A range or host refused on some ports only carries them after a colon, such as `10.0.0.0/8:22,80`. See [Block destinations with a deny list](https://docs.ringleader.dev/reference/resources/workstationconfig/#block-destinations-with-a-deny-list). |
| `egress.recorded` | `[]string` | `["allowed"]` when the workstation's allowed connections are recorded, and absent otherwise. An Edge that sets `records.allowed` lists it on every workstation it serves, whatever version that Edge runs, so it can appear a little before the first connection is counted. An `audit` policy lists it only once whatever serves the workstation can record, and until then it lists nothing. See [Connection records and traffic totals](https://docs.ringleader.dev/security/outbound/connection-records/). |
| `agent.seenAt` | `string` | When the control plane last heard the in-VM agent keep its connection open, as a timestamp rounded down to a five-minute boundary. `rl workstation describe` prints it as **Last heard**. Present only on a workstation whose agent connects out to Ringleader for its configuration, and only once the agent has connected. See [`AgentNotReporting`](#conditions-that-report-a-problem). |
| `conditions` | `[]object` | Conditions, each with a `reason` and a `message`. See [Conditions and their reasons](#conditions-and-their-reasons). |
| `configState` | `object` | Present while a configuration pass runs, and when the pass keeps failing. See [Fields that report a problem](#fields-that-report-a-problem). |
| `nonFatalConfig` | `object` | Present only while an *optional* configuration step is failing. See [Fields that report a problem](#fields-that-report-a-problem). |
| `ambientAgent` | `object` | Present only while ambient `SSH_AUTH_SOCK` delivery has come up short. See [Fields that report a problem](#fields-that-report-a-problem). |
| `userConfig` | `object` | Present only while Ringleader cannot set up the login user. See [Fields that report a problem](#fields-that-report-a-problem). |
| `jobResult` | `object` | `{done, code}`: the exit status the workstation's job reported. Absent until a job reports one, and cleared by a stop or start. See [`Finished`](#finished-reasons). |
| `diagnostics` | `object` | Ledger rollup (path + last-run counts). |
| `sshHostKeys` | `[]string` | The workstation's SSH host public keys, for pinning into `known_hosts`. |

### Fields that report a problem

Four status fields report trouble. A healthy workstation carries none of them, apart from
`configState` while a configuration pass runs. Their absence is normal, and does not by
itself prove that anything succeeded.

**`configState`** reads `{state: configuring}` while a configuration pass runs. It reads
`{state: failed}` when the workstation reports that its configuration keeps failing, the same
fact as the `Configured` condition's `ConfigurationFailed` reason that
`rl workstation describe` prints. A failed state names the failing `step` (`{kind, target}`)
and a `cause`. The `Configured` message and `rl troubleshoot` both say what the cause means
and what to do about it:

| `cause` | What happened | What to do |
|---|---|---|
| `disk-full` | The workstation's disk is full. | Free space on the workstation, or give it a larger disk. |
| `permission-denied` | A configuration step was denied permission. | Check the file and user permissions the step needs. |
| `read-only-filesystem` | A configuration step tried to write to a read-only filesystem. | Check how the workstation's filesystems are mounted. |
| `network-unreachable` | A configuration step could not reach the network. | Check the workstation's DNS and outbound network access. |
| `step-timeout` | A configuration step ran past its time limit. | Raise the step's timeout, or make the step finish sooner. |
| `ringleader-only-secret` | The configuration names a Ringleader-only Secret, which is never delivered to a workstation, as [Ringleader-only Secrets](https://docs.ringleader.dev/security/credentials/secret-handling/#ringleader-only-secrets) describes. | Take the reference out of the configuration. |
| `other` | The workstation could not tell why the step failed. | Run `rl troubleshoot` to see the failing step and its output. |

**`nonFatalConfig`** appears while an optional step is failing: a step from a
[personal layer](https://docs.ringleader.dev/workstations/configuration/configuration-layers/#personal-layers),
a dotfiles fragment, a dotfiles repository, or a personal
[Integration](https://docs.ringleader.dev/reference/resources/integration/)'s endpoint file. An
optional step blocks nothing, so the workstation still reports `Configured`.
`rl workstation describe` prints it as **Optional configuration**, and
`rl troubleshoot` has the failing step and its output. It clears on recovery, and
on a power cycle along with the rest of the applied-configuration record.

**`ambientAgent`** appears while ambient `SSH_AUTH_SOCK` delivery has come up
short, as `{profile, sshd, reason, detail, observedAt}`: the two booleans say which
of the env files are in place, and `reason` names the precondition that stopped the
other. A workstation your daemon has never connected to also carries no
`ambientAgent`, so absence alone does not prove delivery worked.
`rl workstation describe` prints it as **Ambient SSH agent**, and `rl troubleshoot`
confirms the live state with its `ssh-agent-env` probe. See
[SSHKey](https://docs.ringleader.dev/reference/resources/sshkey/).

**`userConfig`** appears while Ringleader cannot set up the login user, its groups or its
`sudo` setting, as `{state, reason, since, message}`. `since` is when the failure started and
`message` describes it. `reason` says which of two problems it is:

- `PushFailing`: Ringleader reaches the workstation, and setting up the login user keeps
  failing. The `Configured` condition reports it as `UserConfigFailed`.
- `Unreachable`: the workstation does not answer SSH as the login user its configuration
  declares, so nothing can be set up. No condition reports this one.

`rl workstation describe` prints it as **User config**. It clears once the login user is set up.

<div class="callout callout-note">
  <p class="callout-title">Status does not carry the merged configuration</p>
  <div class="callout-body">
    There is no <code>status.resolved</code>. Status carries <code>status.config.effectiveHash</code>, a fingerprint
of what Ringleader delivers to the workstation, not the
configuration itself.
<a href="https://docs.ringleader.dev/workstations/configuration/configuration-merging-resolution/">Configuration merging and resolution</a> shows how to read the
configuration itself.
  </div>
</div>


## Lifecycle phases

`status.phase` holds the phase a workstation is in.
[Workstation phases](https://docs.ringleader.dev/workstations/basics/#workstation-phases)
shows how a workstation moves between them.

A workstation is fully configured when `status.config.appliedHash` equals
`status.config.effectiveHash` and its `Configured` condition is `True`.

Stopping a workstation clears its record of the applied configuration, as
[State reset by a stop or start](https://docs.ringleader.dev/workstations/lifecycle/starts-stops-restarts/#state-reset-by-a-stop-or-start)
describes.

## Conditions and their reasons

`Available`, `Ready` and `Configured` are always published, and the others appear only when
there is something to report. Each condition carries a `reason`, a short token from a fixed
set, and a `message` for people. `Available` takes `Configured` and `ToolsReady` into
account. It ignores every other condition below, so a workstation can be `Available` while one of them
reports a problem.
[Check that a workstation is ready](https://docs.ringleader.dev/workstations/basics/#check-that-a-workstation-is-ready)
says why `Available` is the condition to check.

| Condition | Meaning |
|---|---|
| `Available` | The aggregate readiness signal: `True` only when the workstation is `Running` **and** fully configured. |
| `Ready` | The machine itself is up and reachable. Says nothing about configuration. |
| `Configured` | The in-VM agent has applied the configuration the control plane wants. |
| `ToolsReady` | Devtool installation, and **usually absent**: it is published only once a tool has failed to install. A workstation whose tools all installed cleanly carries no `ToolsReady` condition at all. |
| `Finished` | Whether the job the workstation runs has ended. Absent until a job reports an exit status. See [`Finished` reasons](#finished-reasons). |
| `EgressEnforced` | Whether the workstation's declared **egress policy** is actually being enforced. Published while `egress` is declared, and while an attached [credential injection](https://docs.ringleader.dev/reference/resources/integration/#injection-fields) Integration asks an edge instance to inject or inspect for the workstation. Removed when neither holds. |
| `EgressApplied` | Whether whatever serves the workstation holds the rule set and credentials that its current Integrations, Secrets and egress policy resolve to. On hcs, vz and qemu, that is the workstation's own network process or an edge VM, as [Network processes and edge VMs](https://docs.ringleader.dev/security/outbound/enforcement/#network-processes-and-edge-vms) describes. On a cloud provider, it is an Edge. A cloud workstation that no Edge serves does not report it. `True` has reason `Applied`. `False` has reason `InputsOutstanding` and names what remains. Run `rl workstation wait <name> --for=EgressApplied` after one of those inputs changes. |
| `SteeredWithoutServing` | On AWS and Azure: an edge instance routes this workstation's subnet and holds no rule for it. Present only while that is true. |
| `RootDiskShortfall` | The root filesystem is much smaller than the disk size declared. |
| `AgentNotReporting` | The control plane has not heard the in-VM agent for more than 15 minutes. |
| `SSHAdmissionMissing` | Ringleader could not put its own firewall rule admitting SSH in place, on a cloud workstation. |
| `PublicAddressChangeNotApplied` | The public address setting changed after the machine was created, and the machine keeps its original setting. |
| `LoginUserChangeNotApplied` | The configuration declares a login user other than the one the workstation already has, and the workstation keeps its own. |
| `SubnetUnchecked` | On AWS and Azure, Ringleader built the workstation without checking its subnet for another organization's machines. |

### `Available` reasons

| Reason | Meaning |
|---|---|
| `Ready` | Running and fully configured, so the workstation is usable. |
| `Configuring` | Running, but the configuration is still being applied. |
| `ToolsInstalling` | Running and configured, but declared tools are still installing. |
| `ProviderUnavailable` | The provider this workstation was created on is not available on this machine. A local workstation that names no provider stays on the one it was created with, even when your default changes. It carries on once that provider is available again. |
| `StoppedResolveStuck` | The workstation is stopped, and its configuration or its provider has failed to load for long enough that it cannot start. The message names which one and why. It clears the first time it loads again. |
| *(a phase name)* | Not running. The reason is the phase itself (`Provisioning`, `Stopped`, `Failed`, …). |

### `Ready` reasons

`Ready` is `True` with reason `Running` once the machine is up. While the workstation is on its
way there, or on its way down, the reason is the phase it is in, such as `Provisioning`,
`Starting` or `Stopped`. When `Ready` is `False` because something needs you, the message says
what, and the reason is usually one of these:

| Reason | Meaning |
|---|---|
| `ImmutableFieldConflict` | You changed a field the machine can only take when it is created. The message names the field. Revert the change, or delete the workstation and create it again. |
| `StopRequiredChangeNotApplied` | A change that needs the machine stopped, such as a resize, was still not in place after a full stop and start. The message names the field. Edit or revert it to try again. |
| `UnknownProviderName` | The workstation names a provider this version of Ringleader does not know. Check the spelling in `provider` or `requirements`. |
| `ProviderMismatch` | The workstation's requirements now name a different provider from the one its machine is on. To keep the machine, remove the provider requirement or name the provider it is on. To move it, delete the workstation and create it again. |
| `CloudIdentityNotMatched` | Your cloud refused the request, and no [CloudIdentity](https://docs.ringleader.dev/reference/resources/cloudidentity/) in the namespace selects this workstation, so the request used the deployment's own credential. The message lists the workstation's labels. Label it to match a CloudIdentity's selector. |
| `StoppedResolveStuck` | The same as the `Available` reason of that name, for a stopped workstation that has never run. |
| `SubnetHeldByAnotherOrganization` | On AWS and Azure, the workstation's subnet holds a machine of another organization, so its VM is not created. It stays in `Provisioning`, and Ringleader checks again every minute and builds it once that machine has gone. The message names the subnet. Name a subnet your namespace owns, or ask an administrator of your namespace to claim one. See [Subnets held by another organization](https://docs.ringleader.dev/cloud-accounts/cloud-identities/subnet-claims/#subnets-held-by-another-organization). |
| `TerminatingFailed` | The workstation is being deleted and removing its machine failed. It stays in `Terminating`, and Ringleader keeps trying. The message names the step that failed. |

A cloud workstation whose owner may not use any CloudIdentity that matches it does not start.
Each of those identities sets `requireUse`, and the owner holds the `use` right on none of them.
The message names the identities and says to ask an administrator to grant the owner the `use`
right, or to recreate the workstation under an owner who holds it. Ringleader does not fall back
to the deployment's own credential. See
[Restricted cloud identities](https://docs.ringleader.dev/cloud-accounts/cloud-identities/restricted-identities/).

### `Configured` reasons

| Reason | Meaning |
|---|---|
| `Applied` | The in-VM agent reported an applied configuration matching the one requested. |
| `Configuring` | Waiting for the in-VM agent to apply the current configuration. |
| `ConfigurationStalled` | The configuration has been waiting past the grace period and the agent has reported **nothing** at all. |
| `ConfigurationFailed` | The agent **reported** that its own configuration pass keeps failing. |
| `ConfigurationNotCompleting` | The agent **reported that a pass is running**, and it has been outstanding past the grace period without finishing. |
| `ConfigurationNotDelivered` | The control plane's configuration update has not reached the workstation for some time. The workstation is healthy and still applying its **previous** configuration. |
| `ConfigurationIncomplete` | `Configured` stays `False` for one of two causes, and the condition's message names which. In the first, the control plane could not put together the whole configuration the workstation declares, for example because something it refers to is not there yet. Nothing is wrong with the workstation, and this clears on its own once the configuration is complete again. In the second, the workstation declares its own package registries, and its agent cannot use them yet. The message says either that the agent needs an update to use them, or that it has not reported its version within the grace period. When both causes hold, the message names the first. |
| `Stopped` | The workstation is powered down, so nothing is being applied. |
| `UserConfigFailed` | The login user, groups or sudo could not be configured. See [`userConfig`](#fields-that-report-a-problem). |

The first three differ in what is actually known, and that is what decides where to
look:

- **`ConfigurationStalled` is silence**, so it stays a diagnosis rather than a
  verdict. A failed boot-time agent bootstrap is the usual cause, but a slow
  install looks identical from outside, and the workstation is neither failed nor
  destroyed.
- **`ConfigurationFailed` is a report**, so it names a real problem. Read the agent
  log and the diagnostic ledger (`status.diagnostics`), or run `rl troubleshoot`.
- **`ConfigurationNotCompleting` means the agent is alive** and a pass is
  outstanding, so the boot console and the agent service are the two places *not*
  to look. A slow step such as a large image build and a pass that will never
  return look the same from outside; the workstation's own configuration log and
  on-box ledger name the step.

`ConfigurationNotDelivered` is the only reason here that does not send you inside
the machine, because the problem is upstream of it. `UserConfigFailed` is about the
login user rather than the applied configuration, so a workstation can carry it
while its configuration hashes match exactly.

While `ToolsReady` is present its reason names the step that failed; it flips to
`Installed` once a workstation that previously failed has every declared tool present.

### `Finished` reasons

`Finished` reports that a job on the workstation, such as a CI build, has ended, and what it
exited with.
[Jobs and their results](https://docs.ringleader.dev/workstations/lifecycle/jobs-results/)
shows how a job reports one.

| Reason | Status | Meaning |
|---|---|---|
| `JobSucceeded` | `True` | The job exited with status 0. |
| `JobFailed` | `True` | The job exited with a non-zero status, which the message gives. |
| `NoJobResult` | `False` | The workstation reported a result and then stopped or started, so no result stands for the machine as it is now. |

### `EgressEnforced` reasons

The reasons on the **False** arm say the declared policy is not in force, and why:

| Reason | Meaning |
|---|---|
| `NoEdge` | The policy names a `host` or is `audit`, or an attached Integration injects a credential or inspects a host, and no [Edge](https://docs.ringleader.dev/reference/resources/edge/) serves this workstation. A `bestEffort` workstation enforces nothing in the policy, **including your `cidr` destinations**. A `strict` or `audit` workstation is held closed. [Fix a held-closed workstation](https://docs.ringleader.dev/security/outbound/enforcement/#fix-a-held-closed-workstation) says how to fix it. |
| `GatewayNotServing` | An Edge serves this workstation and is not holding its policy yet, so a cloud workstation with an egress policy is held closed. The message says which state an hcs, vz or qemu workstation is in. [Fix a held-closed workstation](https://docs.ringleader.dev/security/outbound/enforcement/#fix-a-held-closed-workstation) says what to do. |
| `SteeringHeld` | On a cloud, the edge instance is deliberately not routing this workstation yet, and the Edge's message names what it waits for. The workstation stays reachable at its own address and is held closed meanwhile. |
| `SubnetSteeredElsewhere` | On AWS and Azure, another edge instance already routes this workstation's subnet, and a subnet can be routed by only one. Nothing in the workstation's file fixes this, so ask a namespace administrator. |
| `BoundaryIncomplete` | Every declared destination is held, but the workstation can still reach undeclared addresses inside its own network, because the edge instance could not read the network's address ranges. It is reported instead of any reason on the `True` arm. Check the permissions of the cloud identity that builds the Edge, change the network's addressing, or remove the Edge. |
| `EndpointUnreachable` | An endpoint an attached [Integration](https://docs.ringleader.dev/reference/resources/integration/) points at did not resolve, or resolved to nothing an address rule can hold, so the workstation runs unrestricted. A `strict` workstation behind an edge instance is held closed instead. Change the endpoint or the DNS resolver that could not answer for it. |
| `DeploymentNotConfigured` | Your policy is fine and **the deployment** is not set up to hold it, so ask whoever runs Ringleader. A `strict` workstation behind an edge instance is held closed. |
| `DenyNotHeld` | The workstation declares a deny list that needs an Edge, and none serves it: a `host` entry anywhere, or any entry on AWS. The message says which. Another reason that is already reported stays, and the message adds that the list is not enforced. |
| `DenyNotServing` | The workstation declares a deny list where it can be enforced, and whatever enforces it does not report holding it yet, so the workstation still reaches what the list names. Another reason that is already reported stays, and the message adds this. |
| `RuleSetNotAttached` | The firewall objects exist and **this workstation is not on them**, so nothing is filtering its traffic. Change whatever is blocking the attach, which the message names. |
| `RuleSetMissing` | The firewall objects that were holding the policy are **gone**, most often deleted in your cloud account. The workstation is not restricted at all. Restart it (`rl workstation restart <name>`) to rebuild them. Re-applying does nothing, because an unchanged file never reaches the provider. |
| `RuleSetIncomplete` | Some of the objects have been **deleted** while the rest stand, so the workstation is not restricted. Ringleader does not repair a partly deleted set by itself. Restart the workstation (`rl workstation restart <name>`) to rebuild it. Seen on `gcp` only, where a rule set is several objects. |
| `RuleSetDrifted` | The objects are still there and **no longer match the policy** (a rule widened, a deny switched off) and Ringleader issued the repair and was refused. Rebuilding is not the fix: change whatever denies the repair, usually a permission. Ringleader retries on its own, so a corrected grant clears this. |

The reasons on the **True** arm say the policy is in force:

| Reason | Meaning |
|---|---|
| `Enforced` | The restriction is real, and the message names what holds it. |
| `Audit` | The policy is `audit` and an Edge serves the workstation: a declared Edge or, on hcs, vz and qemu, its own network process. The route is live and no destination is enforced. See [Connection records and traffic totals](https://docs.ringleader.dev/security/outbound/connection-records/). |
| `CredentialOnly` | The workstation declares no egress policy, and an edge instance, an edge VM or, on hcs, vz and qemu, its own network process serves it because an attached Integration [injects a credential](https://docs.ringleader.dev/reference/resources/integration/#injection-fields) or inspects a host. Its policy restricts nothing, and only the hosts the Integration names are decrypted. |
| `InterceptionPending` | On hcs, vz and qemu: its Edge serves the workstation and restricts it as declared, and a host an attached Integration names is not being injected or checked. The message names the host and the cause: the rule's `allowDaemonPlacement` gate is closed on this workstation (the rule sets `false`, or leaves it unset and the workstation's owner is not the Integration's author, unless the rule uses `userAuthorization: boxOwner`), the Secret is missing or empty, the author cannot read it, or the Edge is not reading that host yet. |
| `DenyHeld` | The policy is `open` and whatever serves the workstation holds its deny list. The message names which, and says what else the workstation reaches. Beside another policy, a held deny list adds a sentence to that policy's reason instead. |
| `InboundUnreachable` | The workstation is enforced, and routing its traffic through the edge instance took away its own inbound path, so it no longer answers at its public address and `rl shell`, `rl code` and the live checks cannot reach it. [Access to a workstation behind an Edge](https://docs.ringleader.dev/security/outbound/edge-management/#access-to-a-workstation-behind-an-edge) says when this happens. Reach the workstation over your own private network. |
| `DestinationUnreachable` | The workstation is enforced, and a `cidr` destination cannot be reached while an edge instance routes it: on GCP and Azure any private address range, and on AWS a range inside the VPC. The message names each one. Declare a range outside those, or ask a namespace administrator whether this workstation needs an Edge. |

When more than one of these applies, the reason is the first that applies of
`BoundaryIncomplete`, `InboundUnreachable`, `DestinationUnreachable`, `InterceptionPending`
and `Enforced`, and the message carries every sentence. On an `audit` policy, `Audit` takes
`Enforced`'s place in that list.


### Conditions that report a problem

These conditions are absent on a healthy workstation.
`RootDiskShortfall`, `SSHAdmissionMissing`, `PublicAddressChangeNotApplied`,
`LoginUserChangeNotApplied` and `AgentNotReporting` turn `True` when something needs your
attention, and `False` once it has cleared, so their last transition time records when it
cleared.
`SteeredWithoutServing` is present only while it applies, and `SubnetUnchecked` only on a
workstation built without its subnet check.

| Condition | Reason while it applies | What to do |
|---|---|---|
| `RootDiskShortfall` | `RootDiskSmallerThanDeclared`: the root filesystem measured under 80% of the declared size (`rootVolumeGiB` on AWS, `diskGiB` on GCP, `osDiskGiB` on Azure), or a disk was grown and the filesystem has not followed yet. The message gives both sizes. | On AWS and GCP a larger disk takes effect at the next start, so restart the workstation. On Azure the message says what happened. It clears as `RootDiskMatchesDeclared`. |
| `AgentNotReporting` | `AgentSilent`: the control plane has not heard the workstation's in-VM agent for more than 15 minutes. The message gives the time it last did. The workstation itself may still be reachable. | If you can reach the workstation, run `rl logs <workstation>` to read the agent's log. It clears as `AgentReporting` once the agent is heard again, and the condition is removed when the workstation leaves `Running`. |
| `SSHAdmissionMissing` | `SSHAdmissionNotWritten`: Ringleader could not create the firewall rule it keeps admitting SSH to this cloud workstation. The message has what the cloud refused. A rule your own onboarding created may still let you in. | Usually a missing permission in your cloud onboarding. It clears as `SSHAdmissionInPlace`. |
| `PublicAddressChangeNotApplied` | `PublicAddressSetAtCreate`: the public address setting now resolves to a different value, because a CloudIdentity or the [CloudAccount](https://docs.ringleader.dev/reference/resources/cloudaccount/) changed it. A public address is set when the machine is created. | Recreate the workstation to apply it. An edit to the workstation's own setting fails the workstation instead. It clears as `PublicAddressMatchesWorkstation`. |
| `LoginUserChangeNotApplied` | `LoginUserKept`: the workstation's own spec or a WorkstationConfig declares an `identity.user` other than the login user the workstation already has. The workstation keeps its user, and its home folder with your files. The message names the kept user, the declared user and what declares it. Only a new workstation gets the declared user. | Delete and recreate the workstation to change its login user. Restarting the workstation, or recycling it in a pool, keeps the old one. It clears as `LoginUserMatchesWorkstation` once the configuration declares the kept user again or stops declaring another. |
| `SteeredWithoutServing` | An edge instance routes this workstation's AWS or Azure subnet and holds no rule for it, so it reaches nothing, and nothing outside can reach it: `SteeredFromAnotherNamespace`, `NotBoundToSteeringEdge`, or `NotServedBySteeringEdge`. | Put the workstation in another subnet, or, as the message says, declare a policy that edge instance serves. The condition is removed when it clears. |
| `SubnetUnchecked` | `SubnetUnreadable`: on AWS or Azure, Ringleader could not read the machines in the workstation's subnet, so it could not check that none belongs to another organization, and built the workstation anyway. The message names the subnet. | Nothing: the workstation works normally. See [Subnets held by another organization](https://docs.ringleader.dev/cloud-accounts/cloud-identities/subnet-claims/#subnets-held-by-another-organization). |

`AgentNotReporting` applies to a workstation whose in-VM agent connects out to Ringleader
to fetch its configuration, which is the default for cloud workstations. A workstation
that Ringleader configures over SSH never carries it. Ringleader counts the 15 minutes from
the later of the last time it heard the agent and the moment the workstation reached
`Running`, and that last time is the `agent.seenAt` status field. The condition counts
toward neither `Configured` nor `Available`, so a workstation whose agent has stopped can
still be `Available`.

## Next steps
- Read [workstation basics](https://docs.ringleader.dev/workstations/basics/) for the parts of a workstation and how they fit together.
- [WorkstationConfig](https://docs.ringleader.dev/reference/resources/workstationconfig/): the reusable layers a workstation merges.
- [Node-bound workstations](https://docs.ringleader.dev/workstations/basics/#node-bound-workstations): a local workstation whose record Ringleader keeps, so your other devices and your teammates see it.
- [WorkstationPool and WorkstationPoolLease](https://docs.ringleader.dev/reference/resources/workstationpool/): a set of workstations leased out one at a time.
- [Integration](https://docs.ringleader.dev/reference/resources/integration/): attaching a shared service, and the file that lets a program on the workstation find it.
- [Edge](https://docs.ringleader.dev/reference/resources/edge/): the VM that enforces a hostname destination and adds injected credentials.
- [Run VS Code in a browser on a workstation](https://docs.ringleader.dev/guides/run-vscode-in-browser/): a worked browser-IDE example.

