# `SquidMesh.Persistence.Run`
[🔗](https://github.com/ccarvalho-eng/squid_mesh/blob/main/lib/squid_mesh/persistence/run.ex#L1)

Persisted workflow run state.

A run is the top-level durable record for one workflow execution. It stores
the workflow identity, the initial workflow payload, the current step
pointer, and any replay lineage needed for later inspection or recovery.

# `status`

```elixir
@type status() :: String.t()
```

# `t`

```elixir
@type t() :: %SquidMesh.Persistence.Run{
  __meta__: term(),
  context: term(),
  current_step: term(),
  id: term(),
  input: term(),
  inserted_at: term(),
  last_error: term(),
  replayed_from_run: term(),
  replayed_from_run_id: term(),
  status: term(),
  step_runs: term(),
  trigger: term(),
  updated_at: term(),
  workflow: term()
}
```

# `changeset`

```elixir
@spec changeset(t(), map()) :: Ecto.Changeset.t()
```

Builds a changeset for persisted workflow run state.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
