# Workflow Runtime

> Navigate definitions, supervisors, durable state, recovery, and lifecycle behavior for Workflows.

- Path: `Guides > Workflows > Workflow Runtime > Workflow Runtime`
- Human: https://looprig.com/docs/guides/workflows/workflow-runtime
- Machine index: https://looprig.com/llms.txt

The runtime subsection explains how a registered workflow becomes a durable, session-owned execution. Start with the [Workflows overview](/docs/guides/workflows/index.md), then choose the page that matches the seam you are implementing.

## Runtime boundary

The [definition page](/docs/guides/workflows/workflow-runtime/definitions.md) covers the typed contract and catalog lookup. The [supervisor page](/docs/guides/workflows/workflow-runtime/runtime.md) covers activation, leases, workers, start acknowledgement, and shutdown. The [state and history page](/docs/guides/workflows/workflow-runtime/state-and-history.md) explains which durable record owns each fact. The [interruption and resume page](/docs/guides/workflows/workflow-runtime/interruption-and-resume.md) covers checkpoint adoption and validated continuation input. The [lifecycle page](/docs/guides/workflows/workflow-runtime/lifecycle.md) covers statuses, cancellation, and failure.

```mermaid
%%{init: {"theme":"dark"}}%%
flowchart LR
    D[Typed definition] --> C[Catalog]
    C --> S[Supervisor]
    S --> F[Flow runner]
    F --> K[Checkpoint]
    S --> R[Run and activity records]
```

## Choose the runtime page

| If you need to... | Read |
| --- | --- |
| Define and register a versioned workflow | [Definitions and schemas](/docs/guides/workflows/workflow-runtime/definitions.md) |
| Start or stop session-owned execution | [Runtime and supervisors](/docs/guides/workflows/workflow-runtime/runtime.md) |
| Separate graph state from run metadata and activity | [State, checkpoints, and history](/docs/guides/workflows/workflow-runtime/state-and-history.md) |
| Recover, interrupt, or resume a run | [Interruption, resume, and recovery](/docs/guides/workflows/workflow-runtime/interruption-and-resume.md) |
| Interpret status transitions or cancellation | [Statuses, cancellation, and failure](/docs/guides/workflows/workflow-runtime/lifecycle.md) |

For graph construction and graph-level interrupts, use the [Flow graph composition guide](/docs/guides/workflows/flow/index.md). For tool exposure and Harness registration, use the [Workflow tools subsection](/docs/guides/workflows/workflow-tools/index.md).

## Source

- [Supervisor implementation](https://github.com/looprig/workflows/blob/main/supervisor.go)

## Proof

- [Supervisor recovery tests](https://github.com/looprig/workflows/blob/main/supervisor_test.go)
