# The dashboard and the console

This page is the map of the dashboard at `https://durablesdk.com/dashboard` and of the Console tab, where an app's runs, their steps and images, [the ledger](https://durablesdk.com/docs/concepts.md), limbo and the facts are read. It teaches the Console tab's actions, their API twin `/api/v1/apps/:slug/console/*`, and `durable-sdk runs limbo|get|redrive` for the platform's own runs.

## The pages

| Page                                  | What it shows                                                                                                                                         | Who may act                                                  |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| `/dashboard`                          | The active organization's apps with their status and hostname; **New app** (slug, [region](https://durablesdk.com/docs/hosting/regions.md), the template)                      | an admin creates                                             |
| `/dashboard/apps/<slug>`              | **Overview**: status, hostname, the current deployment, the database's status, the last deployments                                                   | read                                                         |
| `…/deployments`, `…/deployments/<id>` | Every deployment with its state; a deployment's build lines, the check's verdict rows, **Promote**, **Rollback**, **Redeploy**, **Cancel**            | deploy                                                       |
| `…/domains`                           | The platform hostname and custom domains with their TXT challenge ([domains](https://durablesdk.com/docs/hosting/domains.md))                                                  | deploy                                                       |
| `…/secrets`                           | Names, targets and stamps, never a value; set and delete ([secrets](https://durablesdk.com/docs/hosting/secrets.md))                                                           | deploy                                                       |
| `…/database`                          | Status, region, compute; the read string behind a press, **Rotate**, **Revoke** ([database](https://durablesdk.com/docs/hosting/database.md))                                  | admin for the read string                                    |
| `…/logs`                              | The current deployment's runtime lines, filtered by environment, level and text ([logs](https://durablesdk.com/docs/hosting/logs.md))                                          | read                                                         |
| `…/usage`                             | The daily rows as a table and a sparkline per line ([usage and limits](https://durablesdk.com/docs/hosting/usage-and-limits.md))                                               | read                                                         |
| `…/console`                           | The app's engine: runs, a run, the ledger, limbo, facts, limits (below)                                                                               | read; actions under deploy; a destructive action under admin |
| `…/settings`                          | The promotion rule (`auto`, `manual`); **Delete** with the hold's days from your tier; **Restore** on a deleted app                                   | admin                                                        |
| `/dashboard/keys`                     | Your organization's API keys; **Create** with a name, a scope and an expiry; the one-time panel; **Revoke** ([keys](https://durablesdk.com/docs/operate/accounts-and-keys.md)) | a person, never a key                                        |
| `/dashboard/settings`                 | Members, roles, the organization's name and slug; the plan and its entitlements as a read                                                             | admin                                                        |

A failed deployment or a failed app shows its sentence and its remedy on the page, the same sentence the API and the CLI print; the code links to [the error reference](https://durablesdk.com/docs/reference/api/errors.md). Every list pages.

## The Console tab

The Console tab is a thin client over your app's own operator API, the one every Durable app serves at `/admin/api/*`. The platform forwards each request to the app's production hostname with a short-lived signed session for you (five minutes, spent once), and hands the answer back unchanged. The platform stores none of what it reads: a run's input, a step's output and an image live in your app's database alone.

- **Runs**: the newest first, filtered by workflow and state; a run opens to its attempts and its steps, each step with its stored input and output and, for a write, the before and after image the ledger holds.
- **Ledger**: the hash-chained rows of a scope in order, each a before/after image with its actor and moment; the chain's verification is a read.
- **Limbo**: every run that failed and waits for a person, with its sentence. **Redrive** resumes the run from its stored input; **Invalidate** dismisses it with a reason. Both are keyed actions under your name and land as ledger rows in the app.
- **Facts**: the catalogued facts the app emitted, the newest first, with their delivery to listeners.
- **Limits**: the engine's time contract for the app (the function's duration, the tick, the caps) beside your tier's entitlements and today's usage.

A preview deployment has no scheduled tick (`tick: "request-only"` on [environments](https://durablesdk.com/docs/hosting/deploy.md)): a timer wake there resumes at the app's next request, so a preview's limbo may lag the production one.

### The same through the API

Every Console read and action is `ANY /api/v1/apps/:slug/console/<path>`, the path after `console/` matched against the operator API's own route table (an unknown path is a 404 at the platform, the app never asked). A GET needs the `read` scope, an action `deploy`, a destructive action `admin`.

```bash
curl -s https://durablesdk.com/api/v1/apps/my-app/console/runs?state=limbo \
  -H "Authorization: Bearer $DURABLE_API_KEY"
```

```bash
curl -s https://durablesdk.com/api/v1/apps/my-app/console/health \
  -H "Authorization: Bearer $DURABLE_API_KEY"
```

The reaction graph is a read like any other: `catalog/graph?from=<node id>&direction=out&depth=2&format=text` answers the closure from a node as one line per edge (`direction` `out`, `in` or `both`, `depth` one to three), the same walk `durable-sdk graph walk <subject>` prints offline over the app's committed index, with the body edges (`indexed: true`) once the app's build has run `durable-sdk index`.

```bash
curl -s "https://durablesdk.com/api/v1/apps/my-app/console/catalog/graph?from=workflow:hello.say&depth=2&format=text" \
  -H "Authorization: Bearer $DURABLE_API_KEY"
```

The answer is the app's own, with its status and its `X-Durable-Api` version. The proxy's bucket is 120 requests a minute per organization; a 429 carries `Retry-After`. A 502 `plane.console.redirected` or `plane.console.not_json` means the app answered something other than its operator API (a custom route on the path, a redirect); a 504 `plane.console.timeout` means the app took longer than 20 seconds. The whole route table with its schemas is in [the API reference](https://durablesdk.com/docs/reference/api.md) and in `/openapi.json` under `/apps/{slug}/console/<path>`.

## The platform's own runs

Creating an app, deploying, setting a secret, adding a domain: each is a run of the platform's engine under your organization, with the same ledger. A run that fails against the platform is compensated and finishes as a value (the app or the deployment `failed`, with its sentence), never left for you to clean up. The one run that waits is a run whose irreversible step failed; it stands in limbo under your organization until you redrive it.

```bash
durable-sdk runs limbo
durable-sdk runs get <runId>
durable-sdk runs redrive <runId>
```

`runs redrive` needs the `deploy` scope; a run that is not in limbo is refused `plane.run.not_in_limbo`; another organization's run is a 404. Every remedy that names a run names this command. The same three are `GET /runs?state=limbo`, `GET /runs/:runId` and `POST /runs/:runId/redrive`.

## What the Console never shows

- A secret's value, a database password, a bearer: the app's redaction policy clears them by name and by shape before any image is stored, and the platform forwards what the app answers.
- Another organization's app: an app is looked up under your organization alone, and a miss is a 404.
- The provider behind the build or the database: every hostname and id on the page is the product's.

---

Prompt for an agent:

```text
Read https://durablesdk.com/docs/operate/console.md, then find a stranded run of a hosted app in the Console tab and redrive it; run durable-sdk doctor --host before and after; a refused line is a refusal id: durable-sdk explain <id>
```
