# `Spectre.Run.Ref`
[🔗](https://github.com/elchemista/spectre/blob/0.3.0/lib/spectre/run/ref.ex#L1)

Opaque, revision-fenced reference to an observable point in a `Spectre.Run`.

A reference contains only logical identifiers. It is therefore safe to put
on a transport envelope or use as part of an idempotency key; it never
contains the Run continuation, runtime options, provider clients, or process
handles.

# `kind`

```elixir
@type kind() :: :reply | :policy | :invocation | :complete | :error
```

# `t`

```elixir
@type t() :: %Spectre.Run.Ref{
  boundary_id: String.t(),
  kind: kind(),
  revision: non_neg_integer(),
  run_id: String.t(),
  subject_id: String.t() | nil
}
```

# `token`

```elixir
@spec token(t()) :: String.t()
```

Returns a stable, privacy-safe token suitable for transport idempotency.

---

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